linux-stable/sound
Ruliang Lin 2d9b91b6ce ALSA: caiaq: input: Add error handling for unsupported input methods in `snd_usb_caiaq_input_init`
[ Upstream commit 0d727e1856 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-17 13:58:50 +02:00
..
ac97
aoa
arm
atmel
core ALSA: usb-audio: Fix recursive locking at XRUN during syncing 2023-04-06 12:12:31 +02:00
drivers
firewire ALSA: firewire-tascam: add missing unwind goto in snd_tscm_stream_start_duplex() 2023-04-20 12:36:51 +02:00
hda ALSA: hda: intel-dsp-config: add MTL PCI id 2023-03-22 13:38:02 +01:00
i2c ALSA: i2c/cs8427: fix iec958 mixer control deactivation 2023-04-20 12:36:50 +02:00
isa
mips
oss
parisc
pci ALSA: hda/realtek: Fix mute and micmute LEDs for an HP laptop 2023-05-11 23:11:33 +09:00
pcmcia
ppc
sh
soc ASoC: Intel: soc-acpi-byt: Fix "WM510205" match no longer working 2023-05-17 13:58:41 +02:00
sparc
spi
synth ALSA: emux: Avoid potential array out-of-bound in snd_emux_xg_control() 2023-02-07 14:32:33 +01:00
usb ALSA: caiaq: input: Add error handling for unsupported input methods in `snd_usb_caiaq_input_init` 2023-05-17 13:58:50 +02:00
virtio
x86
xen
Kconfig
Makefile
ac97_bus.c
last.c
sound_core.c