linux-stable/sound/usb
Takashi Iwai 3b6992bdf0 ALSA: usb-audio: Fix regression on detection of Roland VS-100
commit fa4e7a6fa1 upstream.

It's been reported that the recent kernel can't probe the PCM devices
on Roland VS-100 properly, and it turned out to be a regression by the
recent addition of the bit shift range check for the format bits.
In the old code, we just did bit-shift and it resulted in zero, which
is then corrected to the standard PCM format, while the new code
explicitly returns an error in such a case.

For addressing the regression, relax the check and fallback to the
standard PCM type (with the info output).

Fixes: 43d5ca88df ("ALSA: usb-audio: Fix potential out-of-bounds shift")
Cc: <stable@vger.kernel.org>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=217084
Link: https://lore.kernel.org/r/20230324075005.19403-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-05 11:23:50 +02:00
..
6fire ALSA: 6fire: fix control and bulk message timeouts 2021-11-18 14:03:39 +01:00
bcd2000 ALSA: bcd2000: Fix a UAF bug on the error path of probing 2022-08-21 15:15:18 +02:00
caiaq
hiface
line6 ALSA: line6: fix stack overflow in line6_midi_transmit 2023-01-14 10:16:27 +01:00
misc ALSA: ua101: fix division by zero at probe 2021-11-18 14:03:39 +01:00
usx2y ALSA: usx2y: Don't call free_pages_exact() with NULL address 2021-07-20 16:05:39 +02:00
card.c ALSA: usb-audio: Register card again for iface over delayed_register option 2022-09-15 11:32:05 +02:00
card.h
clock.c ALSA: usb-audio: fix incorrect clock source setting 2021-08-12 13:22:03 +02:00
clock.h
debug.h
endpoint.c ALSA: usb-audio: Fix NULL dererence at error path 2022-10-26 13:25:06 +02:00
endpoint.h
format.c ALSA: usb-audio: Fix regression on detection of Roland VS-100 2023-04-05 11:23:50 +02:00
format.h
helper.c
helper.h
Kconfig
Makefile
media.c
media.h
midi.c ALSA: usb-audio: Drop snd_BUG_ON() from snd_usbmidi_output_open() 2022-11-25 17:45:49 +01:00
midi.h
mixer.c ALSA: usb-audio: Add missing proc text entry for BESPOKEN type 2021-07-28 14:35:42 +02:00
mixer.h ALSA: usb-audio: scarlett2: Fix wrong resume call 2021-07-14 16:55:35 +02:00
mixer_maps.c ALSA: usb-audio: More comprehensive mixer map for ASUS ROG Zenith II 2022-08-25 11:37:51 +02:00
mixer_quirks.c ALSA: usb-audio: Add mute TLV for playback volumes on RODE NT-USB 2022-03-28 09:57:09 +02:00
mixer_quirks.h
mixer_s1810c.c
mixer_s1810c.h
mixer_scarlett.c
mixer_scarlett.h
mixer_scarlett_gen2.c ALSA: usb-audio: scarlett2: Fix 6i6 Gen 2 line out descriptions 2021-07-20 16:05:45 +02:00
mixer_scarlett_gen2.h ALSA: usb-audio: scarlett2: Improve driver startup messages 2021-06-03 09:00:27 +02:00
mixer_us16x08.c
mixer_us16x08.h
pcm.c ALSA: usb-audio: Don't avoid stopping the stream at disconnection 2021-03-20 10:43:44 +01:00
pcm.h
power.c
power.h
proc.c
proc.h
quirks-table.h ALSA: usb-audio: add the quirk for KT0206 device 2023-01-14 10:16:22 +01:00
quirks.c ALSA: usb-audio: Add DSD support for Accuphase DAC-60 2022-11-16 09:57:16 +01:00
quirks.h
stream.c ALSA: usb-audio: Inform the delayed registration more properly 2022-09-15 11:32:05 +02:00
stream.h
usbaudio.h ALSA: usb-audio: Fix undefined behavior due to shift overflowing the constant 2022-04-27 13:53:53 +02:00
validate.c