Allow machines to control exactly when the bias is turned on and off.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
wm8350_set_bits(wm8350, WM8350_POWER_MGMT_4, WM8350_TOCLK_ENA);
wm8350_set_bits(wm8350, WM8350_POWER_MGMT_1, WM8350_MIC_DET_ENA);
- snd_soc_dapm_force_enable_pin(codec, "Mic Bias");
-
return 0;
}
EXPORT_SYMBOL_GPL(wm8350_mic_jack_detect);
wm8350_mic_jack_detect(codec, &mic_jack, SND_JACK_MICROPHONE,
SND_JACK_BTN_0);
+ snd_soc_dapm_force_enable_pin(codec, "Mic Bias");
+
return 0;
}