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 <dp@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@kernel.org
This commit is contained in:
parent
52fc43f7c1
commit
a282879255
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue