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 ALSA: caiaq: Fix stray URB at probe error path 2017-10-18 09:20:42 +02:00
hiface
line6 ALSA: line6: Fix wrong altsetting for LINE6_PODHD500_1 2019-08-04 09:35:00 +02:00
misc
usx2y ALSA: usx2y: Suppress kernel warning at page allocation failures 2017-10-12 11:27:32 +02:00
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 ALSA: usb-audio: Add sanity checks in v2 clock parsers 2017-11-30 08:37:22 +00:00
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 ALSA: usb-audio: Kill stray URB at exiting 2017-10-18 09:20:42 +02:00
mixer_maps.c ALSA: usb-audio: Skip broken EU on Dell dock USB-audio 2018-05-02 07:53:40 -07:00
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 ALSA: usb-audio: Add native DSD support for Pro-Ject Pre Box S2 Digital 2017-10-27 10:23:16 +02:00
quirks.h
stream.c
stream.h
usbaudio.h