asoc: add ignore_suspend for all BEs, BE_OUT and BE_IN

During suspend on new kernel, FE/BE path would tear down and
pinctrl for related component would be deactived. On kona, FM
is connected to TERT MI2S and during suepend, pinctrl for TERT
MI2S would be sleep state and FM has no sound.
Add ignore_suspend for all BEs, BE_OUT and BE_IN to avoid tearing
FE/BE path during device suspend.

Change-Id: I8868f35d6c418987ffe287d64a3f5ae3d1abf1c1
Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:
Meng Wang 2019-05-21 09:31:44 +08:00
commit ddca68611f
2 changed files with 4 additions and 0 deletions

View file

@ -727,6 +727,7 @@ static int msm_dai_q6_dai_add_route(struct snd_soc_dai *dai)
dev_dbg(dai->dev, "%s: src %s sink %s\n",
__func__, intercon.source, intercon.sink);
snd_soc_dapm_add_routes(dapm, &intercon, 1);
snd_soc_dapm_ignore_suspend(dapm, intercon.sink);
}
if (dai->driver->capture.stream_name &&
dai->driver->capture.aif_name) {
@ -737,6 +738,7 @@ static int msm_dai_q6_dai_add_route(struct snd_soc_dai *dai)
dev_dbg(dai->dev, "%s: src %s sink %s\n",
__func__, intercon.source, intercon.sink);
snd_soc_dapm_add_routes(dapm, &intercon, 1);
snd_soc_dapm_ignore_suspend(dapm, intercon.source);
}
return 0;
}

View file

@ -24774,6 +24774,8 @@ static int msm_routing_probe(struct snd_soc_component *component)
{
snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
ARRAY_SIZE(msm_qdsp6_widgets));
snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
snd_soc_dapm_add_routes(&component->dapm, intercon,
ARRAY_SIZE(intercon));