blob: 241ccccaa9479af7c9d6376d96ab885d2b0ab3e9 [file] [log] [blame]
From dbe9bf0e6ddbd8ffad38fcffdf2c5dd6d8e4a56c Mon Sep 17 00:00:00 2001
From: Takashi Iwai <>
Date: Sun, 12 Apr 2020 10:13:28 +0200
Subject: [PATCH] ALSA: usb-audio: Filter error from connector kctl ops, too
commit 48cc42973509afac24e83d6edc23901d102872d1 upstream.
The ignore_ctl_error option should filter the error at kctl accesses,
but there was an overlook: mixer_ctl_connector_get() returns an error
from the request.
This patch covers the forgotten code path and apply filter_error()
properly. The locking error is still returned since this is a fatal
error that has to be reported even with ignore_ctl_error option.
Cc: <>
Signed-off-by: Takashi Iwai <>
Signed-off-by: Paul Gortmaker <>
diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c
index edae32da5b40..a7dfb4fead47 100644
--- a/sound/usb/mixer.c
+++ b/sound/usb/mixer.c
@@ -1446,7 +1446,7 @@ static int mixer_ctl_connector_get(struct snd_kcontrol *kcontrol,
"cannot get connectors status: req = %#x, wValue = %#x, wIndex = %#x, type = %d\n",
UAC_GET_CUR, validx, idx, cval->val_type);
- return ret;
+ return filter_error(cval, ret);
ucontrol->value.integer.value[0] = val;