diff options
author | Ruliang Lin <u202112092@hust.edu.cn> | 2023-05-04 14:50:53 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-05-04 09:50:11 +0200 |
commit | 0d727e1856ef22dd9337199430258cb64cbbc658 (patch) | |
tree | 5f19147e2631b22013ddcde1796a4f4b8fb3e1c0 /sound/soc/amd/yc/acp6x-mach.c | |
parent | 7501f472977df233d039d86c6981e0641708e1ca (diff) |
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: 523f1dce3743 ("[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>
Diffstat (limited to 'sound/soc/amd/yc/acp6x-mach.c')
0 files changed, 0 insertions, 0 deletions