diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-03-28 22:39:55 +0200 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2007-03-28 22:39:55 +0200 |
commit | 19373e32df8abb10fa7e12d76e24a105a6717bfd (patch) | |
tree | dfc12689e795f2860f24fb40b721083438a3dc50 | |
parent | 649fdb2a4ef44c1a2361e72bd4d7d9fa1b78b7df (diff) | |
download | lwn-19373e32df8abb10fa7e12d76e24a105a6717bfd.tar.gz lwn-19373e32df8abb10fa7e12d76e24a105a6717bfd.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>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
-rw-r--r-- | sound/pci/cs4281.c | 2 |
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; |