Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+2 -2
+1 -1
sound/usb/caiaq/device.c
··· 366 366 367 367 #ifdef CONFIG_SND_USB_CAIAQ_INPUT 368 368 ret = snd_usb_caiaq_input_init(cdev); 369 - if (ret < 0) { 369 + if (ret < 0 && ret != -ENODEV) { 370 370 dev_err(dev, "Unable to set up input system (ret=%d)\n", ret); 371 371 return ret; 372 372 }
+1 -1
sound/usb/caiaq/input.c
··· 804 804 805 805 default: 806 806 /* no input methods supported on this device */ 807 - ret = -EINVAL; 807 + ret = -ENODEV; 808 808 goto exit_free_idev; 809 809 } 810 810