aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorQiao Zhou <zhouqiao@marvell.com>2011-01-19 19:10:47 +0800
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-17 14:47:09 -0800
commit40fa3eb06faad838478918078f6a0d78c436549e (patch)
treecc6242effdd643d963260efb2cd199a8c9cbdd4a /sound
parent47f995d3e55baad144a3b29e0d5b6de285968e85 (diff)
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 <zhouqiao@marvell.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/wm8994.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index b3fdbbc1d9f..a887ef0285f 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