[PATCH v2 04/21] ALSA: mixer_evo: Add missing snd_usb_lock calls
From: Will Porter
Date: Mon Nov 30 2026 - 11:45:13 EST
From: Christian Ruppert <arc@xxxxxx>
Bugfix: Add missing snd_usb_lock_shutdown calls to mixer_evo.c.
Signed-off-by: Christian Ruppert <arc@xxxxxx>
Signed-off-by: Will Porter <mrwillporter@xxxxxxxxx>
---
sound/usb/mixer_evo.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/sound/usb/mixer_evo.c b/sound/usb/mixer_evo.c
index 29b41c9ce1c4f..c1e0332232f2d 100644
--- a/sound/usb/mixer_evo.c
+++ b/sound/usb/mixer_evo.c
@@ -282,6 +282,10 @@ static int snd_ctl_evo_boolean_get(struct snd_kcontrol *kctl,
int i;
+ CLASS(snd_usb_lock, pm)(mixer->chip);
+ if (pm.err < 0)
+ return pm.err;
+
for (i = 0; i < hwchan; i++) {
u32 buf;
int ret;
@@ -319,6 +323,10 @@ static int snd_ctl_evo_boolean_set(struct snd_kcontrol *kctl,
int changed = 0;
int i;
+ CLASS(snd_usb_lock, pm)(mixer->chip);
+ if (pm.err < 0)
+ return pm.err;
+
for (i = 0; i < hwchan; i++) {
u32 rbuf;
u32 buf = cpu_to_le32(ctl_val->value.integer.value[i] ? 1 : 0);
@@ -359,6 +367,10 @@ static int snd_ctl_evo_integer_get(struct snd_kcontrol *kctl,
int i;
+ CLASS(snd_usb_lock, pm)(mixer->chip);
+ if (pm.err < 0)
+ return pm.err;
+
for (i = 0; i < hwchan; i++) {
u16 buf;
s16 val;
@@ -393,6 +405,10 @@ static int snd_ctl_evo_integer_set(struct snd_kcontrol *kctl,
int changed = 0;
int i;
+ CLASS(snd_usb_lock, pm)(mixer->chip);
+ if (pm.err < 0)
+ return pm.err;
+
for (i = 0; i < hwchan; i++) {
s16 rbuf;
s16 buf = cpu_to_le16(ctl_val->value.integer.value[i]);
--
2.47.3