]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb: supply channel maps even when wChannelConfig is unspecified
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 5 Nov 2013 03:41:06 +0000 (04:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 5 Nov 2013 06:46:15 +0000 (07:46 +0100)
commit1b3b5991a71a6a085f4e58131564a9d7f2551fce
tree8da8f7085ec2369893331c8b859b1d37a58836ac
parentda1f2befd741404938b45db11bc3361e4f1fc3ab
ALSA: usb: supply channel maps even when wChannelConfig is unspecified

If wChannelconfig is given for some formats but not others, userspace
might not be able to set the channel map.

This is RFC because I'm not sure what the best behaviour is - to guess
the channel map from the given number of channels (it's quite likely
that one channel is MONO and two channels is FL FR), or just to supply
UNKNOWN for all channels.

But the complete lack of channel map for a format leads userspace to
believe that the format is not available at all. Or am I
misunderstanding how this should be used?

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/stream.c