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

Commit 2af8de8c authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Ensure the WM8962 oscillator and PLLs start up disabled



Since there is no current software control for these they would otherwise
be left enabled, consuming power.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
parent 4f4488ab
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -4035,6 +4035,11 @@ static int wm8962_probe(struct snd_soc_codec *codec)
	snd_soc_update_bits(codec, WM8962_CLOCKING2,
	snd_soc_update_bits(codec, WM8962_CLOCKING2,
			    WM8962_CLKREG_OVD, WM8962_CLKREG_OVD);
			    WM8962_CLKREG_OVD, WM8962_CLKREG_OVD);


	/* Ensure that the oscillator and PLLs are disabled */
	snd_soc_update_bits(codec, WM8962_PLL2,
			    WM8962_OSC_ENA | WM8962_PLL2_ENA | WM8962_PLL3_ENA,
			    0);

	regulator_bulk_disable(ARRAY_SIZE(wm8962->supplies), wm8962->supplies);
	regulator_bulk_disable(ARRAY_SIZE(wm8962->supplies), wm8962->supplies);


	if (pdata) {
	if (pdata) {