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

Commit ad542012 authored by Santosh Mardi's avatar Santosh Mardi
Browse files

ASoC: msm: update ignore suspend flags.



Update input and output DAPM widgets with ignore suspend flags
this prevents DAPM in disabling the widgets during suspend scenario.

CRs-Fixed: 651918
Change-Id: I237c68336d7973e13002048e9266d96ca3f8935a
Signed-off-by: default avatarSantosh Mardi <gsantosh@codeaurora.org>
parent 654504d2
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -472,6 +472,21 @@ static int msm_audrx_init(struct snd_soc_pcm_runtime *rtd)
	snd_soc_dapm_new_controls(dapm, msm8x16_dapm_widgets,
				ARRAY_SIZE(msm8x16_dapm_widgets));

	snd_soc_dapm_ignore_suspend(dapm, "Handset Mic");
	snd_soc_dapm_ignore_suspend(dapm, "Headset Mic");
	snd_soc_dapm_ignore_suspend(dapm, "Secondary Mic");
	snd_soc_dapm_ignore_suspend(dapm, "Digital Mic1");
	snd_soc_dapm_ignore_suspend(dapm, "Digital Mic2");

	snd_soc_dapm_ignore_suspend(dapm, "EAR");
	snd_soc_dapm_ignore_suspend(dapm, "HEADPHONE");
	snd_soc_dapm_ignore_suspend(dapm, "SPK_OUT");
	snd_soc_dapm_ignore_suspend(dapm, "AMIC1");
	snd_soc_dapm_ignore_suspend(dapm, "AMIC2");
	snd_soc_dapm_ignore_suspend(dapm, "AMIC3");
	snd_soc_dapm_ignore_suspend(dapm, "DMIC1");
	snd_soc_dapm_ignore_suspend(dapm, "DMIC2");

	snd_soc_dapm_sync(dapm);

	ret = msm8x16_wcd_hs_detect(codec, &mbhc_cfg);