Skip to content

Commit

Permalink
ASoC: Move WM8350 microphone detection bias managment out of driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mark Brown committed Mar 22, 2010
1 parent 5b9e87c commit 2f14430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/soc/codecs/wm8350.c
Original file line number Diff line number Diff line change
Expand Up @@ -1475,8 +1475,6 @@ int wm8350_mic_jack_detect(struct snd_soc_codec *codec,
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);
Expand Down
2 changes: 2 additions & 0 deletions sound/soc/imx/wm1133-ev1.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ static int wm1133_ev1_init(struct snd_soc_codec *codec)
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;
}

Expand Down

0 comments on commit 2f14430

Please sign in to comment.