From: Mark Brown Date: Tue, 1 Nov 2011 13:53:37 +0000 (+0000) Subject: ASoC: Ensure the WM8962 oscillator and PLLs start up disabled X-Git-Tag: v2.6.39-400.9.0~823^2~193 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=87cceaa1d4bf4ebb59a1e167b99d0fdc076e13d4;p=users%2Fjedix%2Flinux-maple.git ASoC: Ensure the WM8962 oscillator and PLLs start up disabled commit 2af8de8c39cf58e5a5e40a9d5d71332da98e6ba7 upstream. Since there is no current software control for these they would otherwise be left enabled, consuming power. Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index ebff8ad788ac..4a0f666a90bd 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -3829,6 +3829,11 @@ static int wm8962_probe(struct snd_soc_codec *codec) */ snd_soc_update_bits(codec, WM8962_CLOCKING2, WM8962_SYSCLK_ENA, 0); + /* 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); if (pdata) {