mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-01 08:46:36 +09:00
ASoC: Ensure WM8962 PLL registers are reset
commit 4f4488abc9 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
df4c76cf73
commit
90ec082248
@@ -1959,7 +1959,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);
|
||||
|
||||
Reference in New Issue
Block a user