android_kernel_oneplus_msm8998/sound/usb
Ard van Breemen 9812dc6f0d ALSA: usb-audio: Skip bSynchAddress endpoint check if it is invalid
[ Upstream commit 1b34121d9f26d272b0b2334209af6b6fc82d4bf1 ]

The Linux kernel assumes that get_endpoint(alts,0) and
get_endpoint(alts,1) are eachothers feedback endpoints.
To reassure that validity it will test bsynchaddress to comply with that
assumption. But if the bsyncaddress is 0 (invalid), it will flag that as
a wrong assumption and return an error.
Fix: Skip the test if bSynchAddress is 0.
Note: those with a valid bSynchAddress should have a code quirck added.

Signed-off-by: Ard van Breemen <ard@kwaak.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-10-05 12:27:46 +02:00
..
6fire
bcd2000
caiaq
hiface
line6 ALSA: line6: Fix wrong altsetting for LINE6_PODHD500_1 2019-08-04 09:35:00 +02:00
misc
usx2y
card.c ALSA: usb-audio: Fix UAF decrement if card has no live interfaces in card.c 2018-12-13 09:21:36 +01:00
card.h
clock.c
clock.h
debug.h
endpoint.c
endpoint.h
format.c
format.h
helper.c
helper.h
Kconfig
Makefile
midi.c
midi.h
mixer.c ALSA: usb-audio: Fix an OOB bug in parse_audio_mixer_unit 2019-09-06 10:18:15 +02:00
mixer.h
mixer_maps.c
mixer_quirks.c ALSA: usb-audio: fix sign unintended sign extension on left shifts 2019-07-10 09:56:43 +02:00
mixer_quirks.h
mixer_scarlett.c
mixer_scarlett.h
pcm.c ALSA: usb-audio: Skip bSynchAddress endpoint check if it is invalid 2019-10-05 12:27:46 +02:00
pcm.h
power.h
proc.c
proc.h
quirks-table.h ALSA: usb-audio: Fix an out-of-bound read in create_composite_quirks 2019-01-13 10:05:32 +01:00
quirks.c
quirks.h
stream.c
stream.h
usbaudio.h