kernel_optimize_test/sound
Takashi Iwai ca95c7bf3d ALSA: usb-audio: Fix parse of UAC2 Extension Units
Extension Unit (XU) is used to have a compatible layout with
Processing Unit (PU) on UAC1, and the usb-audio driver code assumed it
for parsing the descriptors.  Meanwhile, on UAC2, XU became slightly
incompatible with PU; namely, XU has a one-byte bmControls bitmap
while PU has two bytes bmControls bitmap.  This incompatibility
results in the read of a wrong address for the last iExtension field,
which ended up with an incorrect string for the mixer element name, as
recently reported for Focusrite Scarlett 18i20 device.

This patch corrects this misalignment by introducing a couple of new
macros and calling them depending on the descriptor type.

Fixes: 23caaf19b1 ("ALSA: usb-mixer: Add support for Audio Class v2.0")
Reported-by: Stefan Sauer <ensonic@hora-obscura.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-07-05 08:06:47 +02:00
..
ac97
aoa
arm
atmel
core Merge branch 'for-linus' into for-next 2019-07-01 17:01:55 +02:00
drivers
firewire Merge branch 'for-linus' into for-next 2019-07-01 17:01:55 +02:00
hda Merge branch 'for-linus' into for-next 2019-07-01 17:01:55 +02:00
i2c
isa
mips
oss
parisc
pci ALSA: hda/ca0132 - remove redundant assignment to variable 'changed' 2019-07-04 15:13:38 +02:00
pcmcia
ppc
sh ALSA: aica: Fix a long-time build breakage 2019-05-08 14:48:01 +02:00
soc Merge branch 'for-linus' into for-next 2019-07-01 17:01:55 +02:00
sparc
spi
synth ALSA: synth: emux: soundfont.c: divide by zero in calc_gus_envelope_time() 2019-05-06 15:08:08 +02:00
usb ALSA: usb-audio: Fix parse of UAC2 Extension Units 2019-07-05 08:06:47 +02:00
x86
xen ALSA: xen-front: fix unintention integer overflow on left shifts 2019-06-28 10:41:17 +02:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c