[alsa-devel] how to enumerate useful ALSA devices?

Anssi Hannula anssi.hannula at iki.fi
Thu Jan 5 18:26:03 CET 2012

On 05.01.2012 11:59, Joerg-Cyril.Hoehle at t-systems.com wrote:
> Andrew Eikum wrote:
>> I tried experimenting with snd_device_name_hint().
>> surround40:CARD=SB,DEV=0
>> surround41:CARD=SB,DEV=0
>> surround50:CARD=SB,DEV=0
>> surround51:CARD=SB,DEV=0
>> surround71:CARD=SB,DEV=0
> I'm not sure Wine should enumerate these.  How can it tell the difference
> so as to announce the correct channel mapping to applications?
> E.g. 41 vs 50, both 5 channels? Ideally, that should be announced as
> one device (as it really is), capable of supporting different formats,
> with one preferred format (perhaps the one with most channels) that GetMixFormat uses.

Yep, as noted I think it should just ignore "surroundXX" and "front" and
only announce the "default" ones (there will be multiple "default" ones
with different $CARD when there are multiple cards, except when
pulseaudio is in use in which case there is only one "default" which
goes to pulseaudio).

IIRC the "surroundXX" and "front" ones are just legacy stuff. Then
again, if that is the case, one'd except them to not have the hint tag
making them listed in "-L"...

> OTOH, I find it important that Wine announces a device capable of more
> than stereo if there's one in the system.

Anssi Hannula

More information about the Alsa-devel mailing list