From: Mark Brown Date: Tue, 1 Nov 2011 16:02:01 +0000 (+0000) Subject: ASoC: Disable MICBIAS and SYSCLK when stopping WM8962 accessory detection X-Git-Tag: MMI-PSA29.97-13-9~16612^2~504 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=00ae3b8691e6486895d92de05d7d1d3a70bb5077;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: Disable MICBIAS and SYSCLK when stopping WM8962 accessory detection They aren't needed any more. If machines need them for other purposes then further changes will be required. Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index b9c64a826ff6..cf7df9e61ef3 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -3664,6 +3664,9 @@ int wm8962_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack) if (jack) { snd_soc_dapm_force_enable_pin(&codec->dapm, "SYSCLK"); snd_soc_dapm_force_enable_pin(&codec->dapm, "MICBIAS"); + } else { + snd_soc_dapm_disable_pin(&codec->dapm, "SYSCLK"); + snd_soc_dapm_disable_pin(&codec->dapm, "MICBIAS"); } return 0;