[PATCH 2/4] ALSA: mixer_evo: Add missing snd_usb_lock calls

From: Christian Ruppert

Date: Mon Oct 26 2026 - 13:45:29 EST


Bugfix: Add missing snd_usb_lock_shutdown calls to mixer_evo.c.

Signed-off-by: Christian Ruppert <arc@xxxxxx>
---
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 26846108a3e1..1fbcbe61b708 100644
--- a/sound/usb/mixer_evo.c
+++ b/sound/usb/mixer_evo.c
@@ -275,6 +275,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;
@@ -312,6 +316,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);
@@ -352,6 +360,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;
@@ -386,6 +398,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.56.0