kernel-fxtec-pro1x/sound/usb
Andreas Steinmetz 65d9546200 ALSA: usb-audio: Fix case when USB MIDI interface has more than one extra endpoint descriptor
[ Upstream commit 5c6cd7021a05a02fcf37f360592d7c18d4d807fb ]

The Miditech MIDIFACE 16x16 (USB ID 1290:1749) has more than one extra
endpoint descriptor.

The first extra descriptor is: 0x06 0x30 0x00 0x00 0x00 0x00

As the code in snd_usbmidi_get_ms_info() looks only at the
first extra descriptor to find USB_DT_CS_ENDPOINT the device
as such is recognized but there is neither input nor output
configured.

The patch iterates through the extra descriptors to find the
proper one. With this patch the device is correctly configured.

Signed-off-by: Andreas Steinmetz <ast@domdv.de>
Link: https://lore.kernel.org/r/1c3b431a86f69e1d60745b6110cdb93c299f120b.camel@domdv.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:14:41 +02:00
..
6fire
bcd2000
caiaq
hiface
line6 ALSA: line6: Sync the pending work cancel at disconnection 2020-07-22 09:32:08 +02:00
misc
usx2y ALSA: usx2y: Fix potential NULL dereference 2020-04-29 16:31:28 +02:00
card.c ALSA: usb-audio: Rewrite registration quirk handling 2020-07-22 09:32:04 +02:00
card.h ALSA: usb-audio: work around streaming quirk for MacroSilicon MS2109 2020-08-19 08:15:04 +02:00
clock.c ALSA: usb-audio: Add clock validity quirk for Denon MC7000/MCX8000 2020-02-19 19:51:54 +01:00
clock.h ALSA: usb-audio: Add clock validity quirk for Denon MC7000/MCX8000 2020-02-19 19:51:54 +01:00
debug.h
endpoint.c Revert "ALSA: usb-audio: Improve frames size computation" 2020-07-09 09:37:12 +02:00
endpoint.h Revert "ALSA: usb-audio: Improve frames size computation" 2020-07-09 09:37:12 +02:00
format.c ALSA: usb-audio: Filter out unsupported sample rates on Focusrite devices 2020-04-29 16:31:29 +02:00
format.h
helper.c
helper.h
Kconfig
Makefile
midi.c ALSA: usb-audio: Fix case when USB MIDI interface has more than one extra endpoint descriptor 2020-10-01 13:14:41 +02:00
midi.h
mixer.c ALSA: usb-audio: Don't create a mixer element with bogus volume range 2020-10-01 13:14:34 +02:00
mixer.h ALSA: usb-audio: Fix OOB access of mixer element list 2020-06-30 23:17:08 -04:00
mixer_maps.c ALSA: usb-audio: Quirks for Gigabyte TRX40 Aorus Master onboard audio 2020-06-03 08:19:39 +02:00
mixer_quirks.c ALSA: usb-audio: Creative USB X-Fi Pro SB1095 volume knob support 2020-08-19 08:15:04 +02:00
mixer_quirks.h
mixer_scarlett.c
mixer_scarlett.h
mixer_us16x08.c
mixer_us16x08.h
pcm.c ALSA: usb-audio: work around streaming quirk for MacroSilicon MS2109 2020-08-19 08:15:04 +02:00
pcm.h
power.c
power.h
proc.c
proc.h
quirks-table.h ALSA: usb-audio: Update documentation comment for MS2109 quirk 2020-09-03 11:24:31 +02:00
quirks.c ALSA: usb-audio: Add delay quirk for H570e USB headsets 2020-10-01 13:14:25 +02:00
quirks.h ALSA: usb-audio: Rewrite registration quirk handling 2020-07-22 09:32:04 +02:00
stream.c ALSA: usb-audio: work around streaming quirk for MacroSilicon MS2109 2020-08-19 08:15:04 +02:00
stream.h
usbaudio.h ALSA: usb-audio: Fix inconsistent card PM state after resume 2020-06-22 09:05:02 +02:00
validate.c ALSA: usb-audio: Fix endianess in descriptor validation 2020-02-11 04:33:56 -08:00