[PATCH v2 02/21] ALSA: mixer_evo: Fix endianness of boolean inversion
From: Will Porter
Date: Mon Nov 30 2026 - 11:45:10 EST
From: Christian Ruppert <arc@xxxxxx>
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>
Signed-off-by: Will Porter <mrwillporter@xxxxxxxxx>
---
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 26846108a3e1a..dc1bec71779ca 100644
--- a/sound/usb/mixer_evo.c
+++ b/sound/usb/mixer_evo.c
@@ -318,7 +318,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.47.3