[PATCH 3/4] ALSA: mixer_evo: Fix endianness of boolean inversion
From: Christian Ruppert
Date: Mon Oct 26 2026 - 13:45:55 EST
Bugfix: The optional inversion in snd_ctl_evo_boolean_get was in the
wrong endianness domain (CPU).
Move it to LE domain to make it work on all machines.
Signed-off-by: Christian Ruppert <arc@xxxxxx>
---
sound/usb/mixer_evo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/usb/mixer_evo.c b/sound/usb/mixer_evo.c
index 1fbcbe61b708..867d083953ba 100644
--- a/sound/usb/mixer_evo.c
+++ b/sound/usb/mixer_evo.c
@@ -326,7 +326,7 @@ static int snd_ctl_evo_boolean_set(struct snd_kcontrol *kctl,
int ret;
if (ctype->invert)
- buf ^= 0x1;
+ buf ^= cpu_to_le32(0x1);
ret = snd_evo_get_cur(mixer, value + i, index,
&rbuf, sizeof(rbuf));
--
2.56.0