Skip to content

Commit

Permalink
ASoC: Enable SYSCLK last when enabling WM8962 mic detection
Browse files Browse the repository at this point in the history
Ensure everything is set up before we start detecting.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Nov 1, 2011
1 parent 2a761cd commit db0e554
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sound/soc/codecs/wm8962.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit db0e554

Please sign in to comment.