WSL2-Linux-Kernel/sound/usb
Ruliang Lin 0d727e1856 ALSA: caiaq: input: Add error handling for unsupported input methods in `snd_usb_caiaq_input_init`
Smatch complains that:
snd_usb_caiaq_input_init() warn: missing error code 'ret'

This patch adds a new case to handle the situation where the
device does not support any input methods in the
`snd_usb_caiaq_input_init` function. It returns an `-EINVAL` error code
to indicate that no input methods are supported on the device.

Fixes: 523f1dce37 ("[ALSA] Add Native Instrument usb audio device support")
Signed-off-by: Ruliang Lin <u202112092@hust.edu.cn>
Reviewed-by: Dongliang Mu <dzm91@hust.edu.cn>
Acked-by: Daniel Mack <daniel@zonque.org>
Link: https://lore.kernel.org/r/20230504065054.3309-1-u202112092@hust.edu.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2023-05-04 09:50:11 +02:00
..
6fire
bcd2000
caiaq ALSA: caiaq: input: Add error handling for unsupported input methods in `snd_usb_caiaq_input_init` 2023-05-04 09:50:11 +02:00
hiface
line6
misc
usx2y
Kconfig
Makefile
card.c
card.h
clock.c
clock.h
endpoint.c ALSA: usb-audio: Rate limit usb_set_interface error reporting 2023-04-21 17:07:28 +02:00
endpoint.h ALSA: usb-audio: Fix recursive locking at XRUN during syncing 2023-03-21 07:10:43 +01:00
format.c ALSA: usb-audio: Fix regression on detection of Roland VS-100 2023-03-24 08:50:51 +01:00
format.h
helper.c
helper.h
implicit.c
implicit.h
media.c
media.h
midi.c
midi.h
mixer.c
mixer.h
mixer_maps.c
mixer_quirks.c
mixer_quirks.h
mixer_s1810c.c
mixer_s1810c.h
mixer_scarlett.c
mixer_scarlett.h
mixer_scarlett_gen2.c
mixer_scarlett_gen2.h
mixer_us16x08.c
mixer_us16x08.h
pcm.c ALSA: usb-audio: Fix recursive locking at XRUN during syncing 2023-03-21 07:10:43 +01:00
pcm.h
power.c
power.h
proc.c
proc.h
quirks-table.h ALSA: usb-audio: Add quirk for Pioneer DDJ-800 2023-05-04 09:39:06 +02:00
quirks.c
quirks.h
stream.c
stream.h
usbaudio.h ALSA: usb-audio: Rate limit usb_set_interface error reporting 2023-04-21 17:07:28 +02:00
validate.c