All of lore.kernel.org
 help / color / mirror / Atom feed
* SoundBlaterX G5
@ 2017-01-14 19:06 Milan Oravec
  2017-01-15 10:29 ` Clemens Ladisch
  0 siblings, 1 reply; 7+ messages in thread
From: Milan Oravec @ 2017-01-14 19:06 UTC (permalink / raw)
  To: alsa-devel

Greetings to all, excuse me please if I'm posting to wrong mailing list.

I've bought  SoundBlaterX G5 USB soundcard/DAC and want to use it in 
linux. Sound-card works OOB in linux with snd_usb_audio driver but only 
at max. 96k/24 sample rate, but HW should be 192K/24 capable. Device 
volume button works too, but LED backlight doesn't change with volume 
set.  Device needs to be plugged twice i to PC to get USB high speed and 
96k support enabled.

Here is alsa-info output after plugging in first time:

http://www.alsa-project.org/db/?f=1805a3c80208a62da101a27e660a8f020ac6ea71

and after re-plugging:

http://www.alsa-project.org/db/?f=74ca49f354e9a100ebf7ba9fe9f6eb82c019f3ef

The device is 192K/24 capable under OSX but only when is DSP clock 
source set to direct stereo ( 
http://support.creative.com/kb/ShowArticle.aspx?sid=132116 ), this may 
be the problem in linux.

Can anybody help/guide me to how to change this setting or tell me what 
to do please? If more info/debugging is needed I'm here to serve.

How can I submit info about this sound-card to ALSA SoundCard Matrix?

Thank you in advance!

Kind regards

Milan

-- 

s pozdravom

Milan Oravec

CIKT UKF Nitra
mobil: +421907670270
email:moravec@ukf.sk

--------------------------------------------------------------------

Tuto spravu nepreveril ziadny antivirus - nebolo treba...

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: SoundBlaterX G5
  2017-01-14 19:06 SoundBlaterX G5 Milan Oravec
@ 2017-01-15 10:29 ` Clemens Ladisch
  2017-01-15 12:59   ` Milan Oravec
  2017-01-16 21:29   ` Milan Oravec
  0 siblings, 2 replies; 7+ messages in thread
From: Clemens Ladisch @ 2017-01-15 10:29 UTC (permalink / raw)
  To: Milan Oravec, alsa-devel

Milan Oravec wrote:
> http://www.alsa-project.org/db/?f=74ca49f354e9a100ebf7ba9fe9f6eb82c019f3ef
>
> The device is 192K/24 capable under OSX but only when is DSP clock
> source set to direct stereo, this may be the problem in linux.

There is a mixer control named "Speaker Clock Source".  Doesn't it work?


Regards,
Clemens

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: SoundBlaterX G5
  2017-01-15 10:29 ` Clemens Ladisch
@ 2017-01-15 12:59   ` Milan Oravec
  2017-01-16 21:29   ` Milan Oravec
  1 sibling, 0 replies; 7+ messages in thread
From: Milan Oravec @ 2017-01-15 12:59 UTC (permalink / raw)
  To: alsa-devel

Hi Clemens,

I can change value of this switch with alsamixer, but 96k is claimed 
maximum. Can I force 192k sample rate with some module parameter? What 
can I try?

Thank you very much!

Kind regards,

Milan

Here is alsa-info output:

  http://www.alsa-project.org/db/?f=e806ab89935bc35b616ef74f8033dfab6c3240c6

and

migo@migo_lenovo:~$ pacmd list-sinks
1 sink(s) available.
   * index: 0
	name: 
<alsa_output.usb-Creative_Technology_Ltd_Sound_BlasterX_G5_2800534752X-00.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9049
	volume: front-left: 58369 /  89% / -3,02 dB,   front-right: 58369 / 
89% / -3,02 dB
	        balance 0,00
	base volume: 65536 / 100% / 0,00 dB
	volume steps: 65537
	muted: no
	current latency: 0,00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s24le 2ch 96000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0,00 ms; range is 0,50 .. 1820,44 ms
	card: 0 
<alsa_card.usb-Creative_Technology_Ltd_Sound_BlasterX_G5_2800534752X-00>
	module: 6
	properties:
		alsa.resolution_bits = "24"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "USB Audio"
		alsa.id = "USB Audio"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "Sound BlasterX G5"
		alsa.long_card_name = "Creative Technology Ltd Sound BlasterX G5 at 
usb-0000:00:1d.7-3.1, high speed"
		alsa.driver_name = "snd_usb_audio"
		device.bus_path = "pci-0000:00:1d.7-usb-0:3.1:1.0"
		sysfs.path = 
"/devices/pci0000:00/0000:00:1d.7/usb2/2-3/2-3.1/2-3.1:1.0/sound/card0"
		udev.id = "usb-Creative_Technology_Ltd_Sound_BlasterX_G5_2800534752X-00"
		device.bus = "usb"
		device.vendor.id = "041e"
		device.vendor.name = "Creative Technology, Ltd"
		device.product.id = "3243"
		device.product.name = "Sound BlasterX G5"
		device.serial = "Creative_Technology_Ltd_Sound_BlasterX_G5_2800534752X"
		device.string = "front:0"
		device.buffering.buffer_size = "1048572"
		device.buffering.fragment_size = "524286"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Sound BlasterX G5 Analog Stereo"
		alsa.mixer_name = "USB Mixer"
		alsa.components = "USB041e:3243"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-usb"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 
usec, available: unknown)
			properties:
				device.icon_name = "audio-speakers"
	active port: <analog-output-speaker>



s pozdravom

Milan Oravec

CIKT UKF Nitra
mobil: +421907670270
email: moravec@ukf.sk

--------------------------------------------------------------------

Tuto spravu nepreveril ziadny antivirus - nebolo treba...

On 15.01.2017 11:29, Clemens Ladisch wrote:
> Milan Oravec wrote:
>> http://www.alsa-project.org/db/?f=74ca49f354e9a100ebf7ba9fe9f6eb82c019f3ef
>>
>> The device is 192K/24 capable under OSX but only when is DSP clock
>> source set to direct stereo, this may be the problem in linux.
>
> There is a mixer control named "Speaker Clock Source".  Doesn't it work?
>
>
> Regards,
> Clemens
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: SoundBlaterX G5
  2017-01-15 10:29 ` Clemens Ladisch
  2017-01-15 12:59   ` Milan Oravec
@ 2017-01-16 21:29   ` Milan Oravec
  2017-01-17  9:39     ` Clemens Ladisch
  1 sibling, 1 reply; 7+ messages in thread
From: Milan Oravec @ 2017-01-16 21:29 UTC (permalink / raw)
  To: alsa-devel

Hi Clemens,

Sound card capabilities are enumerated when si device plugged in. I 
think when I change "Speaker Clock Source" to direct audio sound card 
capabilities need to be re-enumerated to update sampling rates.

Is there any way to achieve this? I've tried to re-plug device after 
changing "Speaker Clock Source" to direct audio, but DSP Clock is 
default value.

No additional drivers install is needed under OSX, there must be way to 
do the same in Linux. Or am I optimist?

Thank you, kind regards,

Milan

s pozdravom

Milan Oravec

CIKT UKF Nitra
mobil: +421907670270
email: moravec@ukf.sk

--------------------------------------------------------------------

Tuto spravu nepreveril ziadny antivirus - nebolo treba...

On 15.01.2017 11:29, Clemens Ladisch wrote:
> Milan Oravec wrote:
>> http://www.alsa-project.org/db/?f=74ca49f354e9a100ebf7ba9fe9f6eb82c019f3ef
>>
>> The device is 192K/24 capable under OSX but only when is DSP clock
>> source set to direct stereo, this may be the problem in linux.
>
> There is a mixer control named "Speaker Clock Source".  Doesn't it work?
>
>
> Regards,
> Clemens
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: SoundBlaterX G5
  2017-01-16 21:29   ` Milan Oravec
@ 2017-01-17  9:39     ` Clemens Ladisch
  2017-01-17 21:16       ` Milan Oravec
  2017-01-17 21:20       ` Milan Oravec
  0 siblings, 2 replies; 7+ messages in thread
From: Clemens Ladisch @ 2017-01-17  9:39 UTC (permalink / raw)
  To: alsa-devel

Milan Oravec wrote:
> I think when I change "Speaker Clock Source" to direct audio sound card capabilities need to be re-enumerated to update sampling rates.
>
> Is there any way to achieve this?

Try unloading and re-loading the driver module (snd-usb-audio).


Regards,
Clemens

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: SoundBlaterX G5
  2017-01-17  9:39     ` Clemens Ladisch
@ 2017-01-17 21:16       ` Milan Oravec
  2017-01-17 21:20       ` Milan Oravec
  1 sibling, 0 replies; 7+ messages in thread
From: Milan Oravec @ 2017-01-17 21:16 UTC (permalink / raw)
  To: alsa-devel

Hi Clemens,

I'm unable to unload snd_usb_audio module because I can't find module 
locking it.

root@migo_lenovo:/home/migo# rmmod snd_usb_audio
rmmod: ERROR: Module snd_usb_audio is in use

Module                  Size  Used by
snd_usb_audio         155648  1

Is there any other way to re-probe sound-card capabilities?

I've changed clock source to direct stereo and stored configuration 
(alsactl store) for device. Now, when plugging device in and checking 
clock source property is set to direct stereo, but still no 192k.

migo@migo_lenovo:~$ cat /proc/asound/card0/stream0
Creative Technology Ltd Sound BlasterX G5 at usb-0000:00:1d.7-1.1, high 
speed : USB Audio

Playback:
   Status: Stop
   Interface 1
     Altset 1
     Format: S24_3LE
     Channels: 2
     Endpoint: 1 OUT (ASYNC)
     Rates: 44100, 48000, 88200, 96000
     Data packet interval: 500 us

Capture:
   Status: Stop
   Interface 2
     Altset 1
     Format: S24_3LE
     Channels: 2
     Endpoint: 2 IN (ASYNC)
     Rates: 44100, 48000, 88200, 96000
     Data packet interval: 500 us


Then I unloaded module with force option and modprobed it again and succes!

migo@migo_lenovo:~$ cat /proc/asound/card0/stream0
Creative Technology Ltd Sound BlasterX G5 at usb-0000:00:1d.7-1.1, high 
speed : USB Audio

Playback:
   Status: Stop
   Interface 1
     Altset 1
     Format: S24_3LE
     Channels: 2
     Endpoint: 1 OUT (ASYNC)
     Rates: 44100, 48000, 88200, 96000, 176400, 192000
     Data packet interval: 500 us

Capture:
   Status: Stop
   Interface 2
     Altset 1
     Format: S24_3LE
     Channels: 2
     Endpoint: 2 IN (ASYNC)
     Rates: 44100, 48000, 88200, 96000, 176400, 192000
     Data packet interval: 500 us

Now, when we have proof of concept is it possible to implement this in 
driver without this module mess please?

How can I help?

I can provide you with remote access to my computer with sound-card 
inserted when needed.

Playback tested and works. ;)

migo@migo_lenovo:~$ pactl list sink-inputs
Sink Input #2
	Driver: protocol-native.c
	Owner Module: 8
	Client: 11
	Sink: 1
	Sample Specification: float32le 2ch 192000Hz
	Channel Map: front-left,front-right
	Format: pcm, format.sample_format = "\"float32le\""  format.rate = 
"192000"  format.channels = "2"  format.channel_map = 
"\"front-left,front-right\""
	Corked: no
	Mute: no
	Volume: front-left: 61840 /  94% / -1,51 dB,   front-right: 61840 / 
94% / -1,51 dB
	        balance 0,00
	Buffer Latency: 398307 usec
	Sink Latency: 41474 usec
	Resample method: copy
	Properties:
		media.role = "video"
		media.name = "audio stream"
		application.name = "VLC media player (LibVLC 2.2.4)"
		native-protocol.peer = "UNIX socket client"
		native-protocol.version = "31"
		application.id = "org.VideoLAN.VLC"
		application.version = "2.2.4"
		application.icon_name = "vlc"
		application.language = "en_US.UTF-8"
		application.process.id = "2872"
		application.process.user = "migo"
		application.process.host = "migo_lenovo"
		application.process.binary = "vlc"
		window.x11.display = ":0"
		application.process.machine_id = "d3a60e6dc8754c9f80f7bb1e19b2d988"
		application.process.session_id = "c5"
		module-stream-restore.id = "sink-input-by-media-role:video"

Thank you for your interest and your time.

Kind regards,

Milan


s pozdravom

Milan Oravec

CIKT UKF Nitra
mobil: +421907670270
email: moravec@ukf.sk

--------------------------------------------------------------------

Tuto spravu nepreveril ziadny antivirus - nebolo treba...

On 17.01.2017 10:39, Clemens Ladisch wrote:
> Milan Oravec wrote:
>> I think when I change "Speaker Clock Source" to direct audio sound card capabilities need to be re-enumerated to update sampling rates.
>>
>> Is there any way to achieve this?
>
> Try unloading and re-loading the driver module (snd-usb-audio).
>
>
> Regards,
> Clemens
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: SoundBlaterX G5
  2017-01-17  9:39     ` Clemens Ladisch
  2017-01-17 21:16       ` Milan Oravec
@ 2017-01-17 21:20       ` Milan Oravec
  1 sibling, 0 replies; 7+ messages in thread
From: Milan Oravec @ 2017-01-17 21:20 UTC (permalink / raw)
  To: alsa-devel

I've forgot to list alsa-info output after successfull change:

http://www.alsa-project.org/db/?f=fb3f42ec787fafc0ca646d0da1a3a907909f90a8


Regards,

Milan


s pozdravom

Milan Oravec

CIKT UKF Nitra
mobil: +421907670270
email: moravec@ukf.sk

--------------------------------------------------------------------

Tuto spravu nepreveril ziadny antivirus - nebolo treba...

On 17.01.2017 10:39, Clemens Ladisch wrote:
> Milan Oravec wrote:
>> I think when I change "Speaker Clock Source" to direct audio sound card capabilities need to be re-enumerated to update sampling rates.
>>
>> Is there any way to achieve this?
>
> Try unloading and re-loading the driver module (snd-usb-audio).
>
>
> Regards,
> Clemens
>
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-01-17 21:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-14 19:06 SoundBlaterX G5 Milan Oravec
2017-01-15 10:29 ` Clemens Ladisch
2017-01-15 12:59   ` Milan Oravec
2017-01-16 21:29   ` Milan Oravec
2017-01-17  9:39     ` Clemens Ladisch
2017-01-17 21:16       ` Milan Oravec
2017-01-17 21:20       ` Milan Oravec

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.