aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/codecs/wm8962.c
diff options
context:
space:
mode:
authorMark Brown2011-11-01 15:59:03 +0000
committerMark Brown2011-11-01 18:56:26 +0000
commitdb0e55438c39c5afa6b7674f5cef86b200bd89ba (patch)
tree76a8639575a3e51d5022f98beafaff8c9bda082b /sound/soc/codecs/wm8962.c
parent2a761cde31fddfe5e22f29bc5e241d597204e095 (diff)
ASoC: Enable SYSCLK last when enabling WM8962 mic detection
Ensure everything is set up before we start detecting. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8962.c')
-rw-r--r--sound/soc/codecs/wm8962.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c
index 74ed8831990e..430bf535d546 100644
--- a/sound/soc/codecs/wm8962.c
+++ b/sound/soc/codecs/wm8962.c
@@ -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);