ASoC: WM8962 accessory detection requires MICBIAS
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 1 Nov 2011 16:00:15 +0000 (16:00 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 1 Nov 2011 18:56:33 +0000 (18:56 +0000)
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 <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8962.c

index 430bf535d546bf017571056f7cc9fec353eeee90..b9c64a826ff6301bb3c1f4aa032985323d40a2d3 100644 (file)
@@ -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;
 }