From 0eae1a30ae7f75781d960b80f7df0dfc84cf87b2 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Tue, 29 Nov 2011 14:36:17 +0000 Subject: [PATCH] --- yaml --- r: 283822 b: refs/heads/master c: 4cdf5e49ce8ff79038ee5388cc5f97097238bb29 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/sound/soc/codecs/wm8994.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 7028f801d746..c07497bcf56b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 38fd54ee38624a52c28d65fadfd452c9c49fb152 +refs/heads/master: 4cdf5e49ce8ff79038ee5388cc5f97097238bb29 diff --git a/trunk/sound/soc/codecs/wm8994.c b/trunk/sound/soc/codecs/wm8994.c index 5ea0c3c15254..0a16de743dd8 100644 --- a/trunk/sound/soc/codecs/wm8994.c +++ b/trunk/sound/soc/codecs/wm8994.c @@ -3016,6 +3016,8 @@ int wm8958_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack, cb_data = codec; } + snd_soc_dapm_force_enable_pin(&codec->dapm, "CLK_SYS"); + wm8994->micdet[0].jack = jack; wm8994->jack_cb = cb; wm8994->jack_cb_data = cb_data; @@ -3025,6 +3027,7 @@ int wm8958_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack, } else { snd_soc_update_bits(codec, WM8958_MIC_DETECT_1, WM8958_MICD_ENA, 0); + snd_soc_dapm_disable_pin(&codec->dapm, "CLK_SYS"); } return 0;