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

Commit 6730f24e authored by Vidyakumar Athota's avatar Vidyakumar Athota
Browse files

ASoC: msm8998: enable ignore suspend flag for ANC



Ignore suspend flag is enabled for Active Noise Cancellation(ANC)
widgets to avoid mute if playback is going on during suspend.

Change-Id: I180fe5c1bc3f05d61b4fd7fb5eb453e0faac4b8e
Signed-off-by: default avatarVidyakumar Athota <vathota@codeaurora.org>
parent 82a01276
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3382,12 +3382,12 @@ static int msm_audrx_init(struct snd_soc_pcm_runtime *rtd)
	snd_soc_dapm_ignore_suspend(dapm, "HPHR");
	snd_soc_dapm_ignore_suspend(dapm, "AIF4 VI");
	snd_soc_dapm_ignore_suspend(dapm, "VIINPUT");
	snd_soc_dapm_ignore_suspend(dapm, "ANC HPHL");
	snd_soc_dapm_ignore_suspend(dapm, "ANC HPHR");

	if (!strcmp(dev_name(codec_dai->dev), "tasha_codec")) {
		snd_soc_dapm_ignore_suspend(dapm, "LINEOUT3");
		snd_soc_dapm_ignore_suspend(dapm, "LINEOUT4");
		snd_soc_dapm_ignore_suspend(dapm, "ANC HPHL");
		snd_soc_dapm_ignore_suspend(dapm, "ANC HPHR");
		snd_soc_dapm_ignore_suspend(dapm, "ANC LINEOUT1");
		snd_soc_dapm_ignore_suspend(dapm, "ANC LINEOUT2");
	}