summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2006-03-29 11:38:01 +0200
committerJaroslav Kysela <perex@suse.cz>2006-03-31 17:59:00 +0200
commite860f00047108ec97ac58c0d1bf59ae23e35f81c (patch)
tree58a32017a7aec5f51e39b2b6d63d93efb7f7e7ef /sound
parent14790f1c73cfa4d4a22ac10b4501b4831380683c (diff)
downloadlinux-e860f00047108ec97ac58c0d1bf59ae23e35f81c.tar.gz
linux-e860f00047108ec97ac58c0d1bf59ae23e35f81c.tar.bz2
linux-e860f00047108ec97ac58c0d1bf59ae23e35f81c.zip
[ALSA] cs4281 - Fix the check of right channel
Fix the check of right channel in mixer volume put callback. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/cs4281.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c
index 4f65ec56bf35..4221dfe8bd7e 100644
--- a/sound/pci/cs4281.c
+++ b/sound/pci/cs4281.c
@@ -1046,7 +1046,7 @@ static int snd_cs4281_put_volume(struct snd_kcontrol *kcontrol,
snd_cs4281_pokeBA0(chip, regL, volL);
change = 1;
}
- if (ucontrol->value.integer.value[0] != volL) {
+ if (ucontrol->value.integer.value[1] != volR) {
volR = CS_VOL_MASK - (ucontrol->value.integer.value[1] & CS_VOL_MASK);
snd_cs4281_pokeBA0(chip, regR, volR);
change = 1;