ASoC: WM8995: Fix incorrect use of snd_soc_update_bits()
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- sound/soc/codecs/wm8995.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8995.c +1 -1
@@ -1265,7 +1265,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
Signature · 1 line
1.7.3.5
Quoted 5 lines · Dimitris Papastamos
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 <[email protected]>---
Acked-by Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk
Mark Brown
AppliedQuoted 4 lines · Dimitris Papastamos
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 <[email protected]>
Applied, thanks.