Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f4488ab authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Ensure WM8962 PLL registers are reset



The WM8962 has a separate software reset for the PLL registers. Ensure that
these are reset also on startup.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
parent 64964e82
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -1961,7 +1961,13 @@ static int wm8962_readable_register(struct snd_soc_codec *codec, unsigned int re


static int wm8962_reset(struct snd_soc_codec *codec)
static int wm8962_reset(struct snd_soc_codec *codec)
{
{
	return snd_soc_write(codec, WM8962_SOFTWARE_RESET, 0x6243);
	int ret;

	ret = snd_soc_write(codec, WM8962_SOFTWARE_RESET, 0x6243);
	if (ret != 0)
		return ret;

	return snd_soc_write(codec, WM8962_PLL_SOFTWARE_RESET, 0);
}
}


static const DECLARE_TLV_DB_SCALE(inpga_tlv, -2325, 75, 0);
static const DECLARE_TLV_DB_SCALE(inpga_tlv, -2325, 75, 0);