]> rtime.felk.cvut.cz Git - linux-imx.git/commit
ALSA: usb-audio: fix detection of vendor-specific device protocol settings
authorClemens Ladisch <clemens@ladisch.de>
Fri, 3 Sep 2010 08:53:11 +0000 (10:53 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:36:25 +0000 (13:36 -0700)
commita8ff79954a0cd5041c2c7ddd96be446ecf1273de
treedfbbd360e5a11d0b2cb8d35926bae51681183611
parenta6a72ec7a8343e9839f689513f6cc7b35b57487b
ALSA: usb-audio: fix detection of vendor-specific device protocol settings

commit a2acad8298a42b7be684a32fafaf83332bba9c2b upstream.

The Audio Class v2 support code in 2.6.35 added checks for the
bInterfaceProtocol field.  However, there are devices (usually those
detected by vendor-specific quirks) that do not have one of the
predefined values in this field, which made the driver reject them.

To fix this regression, restore the old behaviour, i.e., assume that
a device with an unknown bInterfaceProtocol field (other than
UAC_VERSION_2) has more or less UAC-v1-compatible descriptors.

[compile warning fixes by tiwai]

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Cc: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/usb/card.c
sound/usb/clock.c
sound/usb/endpoint.c
sound/usb/format.c
sound/usb/mixer.c
sound/usb/pcm.c