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

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

ASoC: WM8962 accessory detection requires MICBIAS



Force MICBIAS on as well as SYSCLK as the WM8962 accessory detection can't
function without both. No point in making machine drivers manually enable
it.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent db0e5543
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3661,8 +3661,10 @@ 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)
	if (jack) {
		snd_soc_dapm_force_enable_pin(&codec->dapm, "SYSCLK");
		snd_soc_dapm_force_enable_pin(&codec->dapm, "MICBIAS");
	}

	return 0;
}