diff options
author | Jaroslav Kysela <perex@perex.cz> | 2010-10-02 10:00:53 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2010-10-02 10:07:03 -0400 |
commit | ac446fb7e690b317050ed158ba5dfd9273dc9e74 (patch) | |
tree | 64741e9f7ed0766435f85c2dad73e32053d4d2f9 /sound/drivers | |
parent | 20d9a26dbbbec32aa7c9da49b979f201bd7104b9 (diff) |
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.c | 2 |
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, | |||
739 | { | 739 | { |
740 | struct loopback *loopback = snd_kcontrol_chip(kcontrol); | 740 | struct loopback *loopback = snd_kcontrol_chip(kcontrol); |
741 | struct loopback_cable *cable = loopback->cables | 741 | struct loopback_cable *cable = loopback->cables |
742 | [kcontrol->id.subdevice][kcontrol->id.device]; | 742 | [kcontrol->id.subdevice][kcontrol->id.device ^ 1]; |
743 | unsigned int val = 0; | 743 | unsigned int val = 0; |
744 | 744 | ||
745 | if (cable != NULL) | 745 | if (cable != NULL) |