ASoC: Disable MICBIAS and SYSCLK when stopping WM8962 accessory detection
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 1 Nov 2011 16:02:01 +0000 (16:02 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 1 Nov 2011 18:56:55 +0000 (18:56 +0000)
They aren't needed any more. If machines need them for other purposes then
further changes will be required.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8962.c

index b9c64a826ff6301bb3c1f4aa032985323d40a2d3..cf7df9e61ef38ae1bc8ed1afff2ff7c5952f9221 100644 (file)
@@ -3664,6 +3664,9 @@ int wm8962_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack)
        if (jack) {
                snd_soc_dapm_force_enable_pin(&codec->dapm, "SYSCLK");
                snd_soc_dapm_force_enable_pin(&codec->dapm, "MICBIAS");
+       } else {
+               snd_soc_dapm_disable_pin(&codec->dapm, "SYSCLK");
+               snd_soc_dapm_disable_pin(&codec->dapm, "MICBIAS");
        }
 
        return 0;