From: Mark Brown Date: Tue, 1 Nov 2011 15:59:03 +0000 (+0000) Subject: ASoC: Enable SYSCLK last when enabling WM8962 mic detection X-Git-Tag: MMI-PSA29.97-13-9~16612^2~506 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=db0e55438c39c5afa6b7674f5cef86b200bd89ba;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: Enable SYSCLK last when enabling WM8962 mic detection Ensure everything is set up before we start detecting. Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 74ed8831990e..430bf535d546 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -3661,6 +3661,9 @@ int wm8962_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack) snd_soc_jack_report(wm8962->jack, 0, SND_JACK_MICROPHONE | SND_JACK_BTN_0); + if (jack) + snd_soc_dapm_force_enable_pin(&codec->dapm, "SYSCLK"); + return 0; } EXPORT_SYMBOL_GPL(wm8962_mic_detect);