]> 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)
commit9ecd76d37795ef911e0acbeca276e684e48fc62d
tree8da8f7085ec2369893331c8b859b1d37a58836ac
parentd7e35036b60aeb25cc77211270d976794fcfa3cf
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