Skip to content

Commit 5b8cf7c

Browse files
brooniegregkh
authored andcommitted
ASoC: Ensure the WM8962 oscillator and PLLs start up disabled
commit 2af8de8 upstream. Since there is no current software control for these they would otherwise be left enabled, consuming power. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 90ec082 commit 5b8cf7c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎sound/soc/codecs/wm8962.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3854,6 +3854,11 @@ static int wm8962_probe(struct snd_soc_codec *codec)
38543854
snd_soc_update_bits(codec, WM8962_CLOCKING2,
38553855
WM8962_CLKREG_OVD, WM8962_CLKREG_OVD);
38563856

3857+
/* Ensure that the oscillator and PLLs are disabled */
3858+
snd_soc_update_bits(codec, WM8962_PLL2,
3859+
WM8962_OSC_ENA | WM8962_PLL2_ENA | WM8962_PLL3_ENA,
3860+
0);
3861+
38573862
regulator_bulk_disable(ARRAY_SIZE(wm8962->supplies), wm8962->supplies);
38583863

38593864
if (pdata) {

0 commit comments

Comments
 (0)