]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: wm8994: Disable JACKDET when disabling detecton
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 3 Mar 2012 18:46:36 +0000 (18:46 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 4 Mar 2012 01:57:48 +0000 (01:57 +0000)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8994.c

index 17baacbcf2f59ec495aefab80da212d7f8440538..6166a5783410c57d68d5200ccebcd61576be53c0 100644 (file)
@@ -3376,6 +3376,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);
+               wm1811_jackdet_set_mode(codec, WM1811_JACKDET_MODE_NONE);
                snd_soc_dapm_disable_pin(&codec->dapm, "CLK_SYS");
                snd_soc_dapm_sync(&codec->dapm);
        }