]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: WM8994: fix wrong value in tristate function
authorQiao Zhou <zhouqiao@marvell.com>
Wed, 19 Jan 2011 11:10:47 +0000 (19:10 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 22:47:09 +0000 (14:47 -0800)
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>
sound/soc/codecs/wm8994.c

index b3fdbbc1d9fda8873fb7cd33e283ce9a4b361011..a887ef0285f5840ddb32b7d42d1bd9c73dbf7aa1 100644 (file)
@@ -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