Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00ae3b86 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Disable MICBIAS and SYSCLK when stopping WM8962 accessory detection



They aren't needed any more. If machines need them for other purposes then
further changes will be required.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent a5ef9884
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;