From: Takashi Iwai Date: Wed, 29 Mar 2006 09:38:01 +0000 (+0200) Subject: [ALSA] cs4281 - Fix the check of right channel X-Git-Tag: upstream/snapshot3+hdmi~41117^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e860f00047108ec97ac58c0d1bf59ae23e35f81c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [ALSA] cs4281 - Fix the check of right channel Fix the check of right channel in mixer volume put callback. Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c index 4f65ec5..4221dfe 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;