Skip to content

Commit

Permalink
ASoC: Ensure WM8962 PLL registers are reset
Browse files Browse the repository at this point in the history
The WM8962 has a separate software reset for the PLL registers. Ensure that
these are reset also on startup.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
  • Loading branch information
Mark Brown committed Nov 1, 2011
1 parent 64964e8 commit 4f4488a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sound/soc/codecs/wm8962.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
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);
Expand Down

0 comments on commit 4f4488a

Please sign in to comment.