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

Commit db0e5543 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Enable SYSCLK last when enabling WM8962 mic detection



Ensure everything is set up before we start detecting.

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