linux/sound/usb
Alexander Tsoy 387039b250 ALSA: usb-audio: Filter out unsupported sample rates on Focusrite devices
commit 1c82679258 upstream.

Many Focusrite devices supports a limited set of sample rates per
altsetting. These includes audio interfaces with ADAT ports:
 - Scarlett 18i6, 18i8 1st gen, 18i20 1st gen;
 - Scarlett 18i8 2nd gen, 18i20 2nd gen;
 - Scarlett 18i8 3rd gen, 18i20 3rd gen;
 - Clarett 2Pre USB, 4Pre USB, 8Pre USB.

Maximum rate is exposed in the last 4 bytes of Format Type descriptor
which has a non-standard bLength = 10.

Tested-by: Alexey Skobkin <skobkin-ru@ya.ru>
Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200418175815.12211-1-alexander@tsoy.me
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-29 16:33:16 +02:00
..
6fire
bcd2000
caiaq
hiface
line6 ALSA: line6: Fix endless MIDI read loop 2020-03-25 08:25:51 +01:00
misc
usx2y ALSA: usx2y: Fix potential NULL dereference 2020-04-29 16:33:15 +02:00
Kconfig
Makefile
card.c ALSA: usb-audio: unlock on error in probe 2020-02-24 08:36:50 +01:00
card.h ALSA: usb-audio: set the interface format after resume on Dell WD19 2020-01-09 10:19:55 +01:00
clock.c ALSA: usb-audio: Add clock validity quirk for Denon MC7000/MCX8000 2020-02-19 19:52:57 +01:00
clock.h ALSA: usb-audio: Add clock validity quirk for Denon MC7000/MCX8000 2020-02-19 19:52:57 +01:00
debug.h
endpoint.c
endpoint.h
format.c ALSA: usb-audio: Filter out unsupported sample rates on Focusrite devices 2020-04-29 16:33:16 +02:00
format.h
helper.c
helper.h
media.c
media.h
midi.c
midi.h
mixer.c ALSA: usb-audio: Add connector notifier delegation 2020-04-29 16:33:12 +02:00
mixer.h ALSA: usb-audio: Add connector notifier delegation 2020-04-29 16:33:12 +02:00
mixer_maps.c ALSA: usb-audio: Add connector notifier delegation 2020-04-29 16:33:12 +02:00
mixer_quirks.c ALSA: usb-audio: Fix usb audio refcnt leak when getting spdif 2020-04-29 16:33:16 +02:00
mixer_quirks.h
mixer_scarlett.c
mixer_scarlett.h
mixer_scarlett_gen2.c ALSA: usb-audio: Annotate endianess in Scarlett gen2 quirk 2020-02-11 04:35:11 -08:00
mixer_scarlett_gen2.h
mixer_us16x08.c
mixer_us16x08.h
pcm.c ALSA: usb-audio: add implicit fb quirk for MOTU M Series 2020-02-24 08:36:50 +01:00
pcm.h
power.c
power.h
proc.c
proc.h
quirks-table.h ALSA: usb-audio: Add static mapping table for ALC1220-VB-based mobos 2020-04-29 16:33:12 +02:00
quirks.c ALSA: usb-audio: Add boot quirk for MOTU M Series 2020-02-24 08:36:46 +01:00
quirks.h ALSA: usb-audio: Add boot quirk for MOTU M Series 2020-02-24 08:36:46 +01:00
stream.c
stream.h
usbaudio.h ALSA: usb-audio: set the interface format after resume on Dell WD19 2020-01-09 10:19:55 +01:00
validate.c ALSA: usb-audio: Fix endianess in descriptor validation 2020-02-11 04:35:10 -08:00