From: Qiao Zhou Date: Wed, 19 Jan 2011 11:10:47 +0000 (+0800) Subject: ASoC: WM8994: fix wrong value in tristate function X-Git-Tag: v2.6.36.4~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40fa3eb06faad838478918078f6a0d78c436549e;p=thirdparty%2Fkernel%2Fstable.git ASoC: WM8994: fix wrong value in tristate function commit 78b3fb46753872fc79bffecc8d50355a8622b39b upstream. fix wrong value in wm8994_set_tristate func. when updating reg bits, it should use "value", not "reg". Signed-off-by: Qiao Zhou Acked-by: Liam Girdwood Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index b3fdbbc1d9fda..a887ef0285f58 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -3486,7 +3486,7 @@ static int wm8994_set_tristate(struct snd_soc_dai *codec_dai, int tristate) else val = 0; - return snd_soc_update_bits(codec, reg, mask, reg); + return snd_soc_update_bits(codec, reg, mask, val); } #define WM8994_RATES SNDRV_PCM_RATE_8000_96000