]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: caiaq: Don't abort when no input device is available
authorTakashi Iwai <tiwai@suse.de>
Mon, 27 Apr 2026 14:56:15 +0000 (16:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Apr 2026 06:13:33 +0000 (08:13 +0200)
commitb32ae47a2b0a1fb4bd4942242847966d9b178222
tree84d1157ce6ee015ebdc57cfd26324954e92e2175
parent0a7b5221b5b51cc798fcfc3be00d02eade149d69
ALSA: caiaq: Don't abort when no input device is available

The previous fix to handle the error from setup_card() caused a
regression for the models that have no dedicated input device;
snd_usb_caiaq_input_init() just returns -EINVAL, and we treat it as a
fatal error although it should be ignored.

As a regression fix, change the error code to -ENODEV, and ignore this
error in the callee, to continue probing.

Fixes: 28abd224db4a ("ALSA: caiaq: Handle probe errors properly")
Cc: <stable@vger.kernel.org>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=221423
Link: https://patch.msgid.link/20260427145642.6637-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/caiaq/device.c
sound/usb/caiaq/input.c