Skip to content

Commit 90ec082

Browse files
brooniegregkh
authored andcommitted
ASoC: Ensure WM8962 PLL registers are reset
commit 4f4488a upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent df4c76c commit 90ec082

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎sound/soc/codecs/wm8962.c‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1959,7 +1959,13 @@ static int wm8962_readable_register(struct snd_soc_codec *codec, unsigned int re
19591959

19601960
static int wm8962_reset(struct snd_soc_codec *codec)
19611961
{
1962-
return snd_soc_write(codec, WM8962_SOFTWARE_RESET, 0x6243);
1962+
int ret;
1963+
1964+
ret = snd_soc_write(codec, WM8962_SOFTWARE_RESET, 0x6243);
1965+
if (ret != 0)
1966+
return ret;
1967+
1968+
return snd_soc_write(codec, WM8962_PLL_SOFTWARE_RESET, 0);
19631969
}
19641970

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

0 commit comments

Comments
 (0)