summaryrefslogtreecommitdiff
path: root/sound/drivers
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2010-10-02 18:00:53 +0400
committerJaroslav Kysela <perex@perex.cz>2010-10-02 18:07:03 +0400
commitac446fb7e690b317050ed158ba5dfd9273dc9e74 (patch)
tree64741e9f7ed0766435f85c2dad73e32053d4d2f9 /sound/drivers
parent20d9a26dbbbec32aa7c9da49b979f201bd7104b9 (diff)
downloadlinux-ac446fb7e690b317050ed158ba5dfd9273dc9e74.tar.xz
ALSA: snd-aloop - fix "PCM Slave Active" element read value
Simple coding fix. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/drivers')
-rw-r--r--sound/drivers/aloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/aloop.c b/sound/drivers/aloop.c
index 2748fee8d405..040030aa9d8e 100644
--- a/sound/drivers/aloop.c
+++ b/sound/drivers/aloop.c
@@ -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)