From: Mark Brown Date: Tue, 1 Nov 2011 16:00:15 +0000 (+0000) Subject: ASoC: WM8962 accessory detection requires MICBIAS X-Git-Tag: MMI-PSA29.97-13-9~16612^2~505 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a5ef9884088de4ed87ee9490923f277e805b38b2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: WM8962 accessory detection requires MICBIAS Force MICBIAS on as well as SYSCLK as the WM8962 accessory detection can't function without both. No point in making machine drivers manually enable it. Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 430bf535d546..b9c64a826ff6 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -3661,8 +3661,10 @@ 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) + if (jack) { snd_soc_dapm_force_enable_pin(&codec->dapm, "SYSCLK"); + snd_soc_dapm_force_enable_pin(&codec->dapm, "MICBIAS"); + } return 0; }