From: Dimitris Papastamos Date: Wed, 19 Jan 2011 12:55:28 +0000 (+0000) Subject: ASoC: WM8995: Fix incorrect use of snd_soc_update_bits() X-Git-Tag: firefly_0821_release~7613^2~2269^2~32 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a28287925555c93984115d37a1a25315ea369764;p=firefly-linux-kernel-4.4.55.git ASoC: WM8995: Fix incorrect use of snd_soc_update_bits() In the wm8995_set_tristate() function when updating the register bits use the value and not the register index as the value argument. Signed-off-by: Dimitris Papastamos Acked-by: Liam Girdwood Signed-off-by: Mark Brown Cc: stable@kernel.org --- diff --git a/sound/soc/codecs/wm8995.c b/sound/soc/codecs/wm8995.c index 6045cbde492b..608c84c5aa8e 100644 --- a/sound/soc/codecs/wm8995.c +++ b/sound/soc/codecs/wm8995.c @@ -1223,7 +1223,7 @@ static int wm8995_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); } /* The size in bits of the FLL divide multiplied by 10