[alsa-devel] namehint: Evaluate more possibilities for hw devices

Stas Sergeev stsp at aknet.ru
Fri Oct 1 14:26:01 CEST 2010


  01.10.2010 16:08, Jaroslav Kysela wrote:
> This patch should definitely fix it:
>
> http://git.alsa-project.org/?p=alsa-lib.git;a=commitdiff;h=c049d48407ff0459ff15e466edeeee6ecff67fcd 
>
Much better now, thanks!
I still have an issue though.
If the device registers only the playback
substreams and no record substreams,
it is still not listed. To reproduce, set the
"/capture_count" param of /*snd_pcm_new()
*to 0 in dummy.c, and then it disappears
from the list, as follows:
---
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Dummy [Dummy], device 0: Dummy PCM [Dummy PCM]
   Subdevices: 8/8
   Subdevice #0: subdevice #0
   Subdevice #1: subdevice #1
   Subdevice #2: subdevice #2
   Subdevice #3: subdevice #3
   Subdevice #4: subdevice #4
   Subdevice #5: subdevice #5
   Subdevice #6: subdevice #6
   Subdevice #7: subdevice #7
card 2: STx7109 [STx7109 audio subsystem], device 0:  [PCM player #0 (HDMI)]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
card 2: STx7109 [STx7109 audio subsystem], device 1:  [PCM player #1]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
card 2: STx7109 [STx7109 audio subsystem], device 2:  [SPDIF player (HDMI)]
   Subdevices: 1/1
   Subdevice #0: subdevice #0

$ aplay -L
null
     Discard all samples (playback) or generate zero samples (capture)
---

Here you can see also the STx7109 driver, which
is not yet in an alsa tree, having the same problem.
Could you please fix also this?


More information about the Alsa-devel mailing list