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:
Родитель
52fc43f7c1
Коммит
a282879255
|
@ -1223,7 +1223,7 @@ static int wm8995_set_tristate(struct snd_soc_dai *codec_dai, int tristate)
|
||||||
else
|
else
|
||||||
val = 0;
|
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
|
/* The size in bits of the FLL divide multiplied by 10
|
||||||
|
|
Загрузка…
Ссылка в новой задаче