ALSA: snd-aloop - fix "PCM Slave Active" element read value
authorJaroslav Kysela <perex@perex.cz>
Sat, 2 Oct 2010 14:00:53 +0000 (16:00 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 2 Oct 2010 14:07:03 +0000 (16:07 +0200)
Simple coding fix.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/drivers/aloop.c

index 2748fee8d405f8eb8cc04256bb5a10c48048c3e1..040030aa9d8ea418e1ea245f7153f5ce3732c720 100644 (file)
@@ -739,7 +739,7 @@ static int loopback_active_get(struct snd_kcontrol *kcontrol,
 {
        struct loopback *loopback = snd_kcontrol_chip(kcontrol);
        struct loopback_cable *cable = loopback->cables
-                               [kcontrol->id.subdevice][kcontrol->id.device];
+                       [kcontrol->id.subdevice][kcontrol->id.device ^ 1];
        unsigned int val = 0;
 
        if (cable != NULL)