mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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:
parent
1a78e2262a
commit
ddca68611f
2 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue