ALSA: usb-audio: skip UAC2 EFFECT_UNIT
authorEldad Zack <eldad@fogrefinery.com>
Wed, 28 Nov 2012 22:55:36 +0000 (23:55 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 10 Sep 2013 00:57:08 +0000 (01:57 +0100)
commit2ca3bc2ba143bdaf753b88310455074a3d2ed7e4
treefe254053f92f9f656dfb71380e81efbc98b63a5b
parent54811a1992e2c5e318ae91b99ea94c9724bc8f66
ALSA: usb-audio: skip UAC2 EFFECT_UNIT

commit 5dae5fd24071319bb67d3375217d5b0b6d16cb0b upstream.

Current code mishandles the case where the device is a UAC2
and the bDescriptorSubtype is a UAC2 Effect Unit (0x07).
It tries to parse it as a Processing Unit (which is similar to two
other UAC1 units with overlapping subtypes), but since the structure
is different (See: 4.7.2.10, 4.7.2.11 in UAC2 standard), the parsing
is done incorrectly and prevents the device from initializing.
For now, just ignore the unit.

Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/usb/mixer.c