ASoC: msm: Add dapm ignore suspend for front end dais

DAPM marks front end dai as dirty during ASoC suspend
which triggers device path teardown. Add ignore suspend
to all front end dais to avoid device path teardown.

CRs-Fixed: 1031932
Change-Id: I1d85578534c58c121ca8e560d67faf9b94e87be9
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
This commit is contained in:
Sudheer Papothi 2016-07-27 02:48:49 +05:30 committed by Gerrit - the friendly Code Review server
parent 956d9b1ab3
commit 23c3ff0a00

View file

@ -63,6 +63,7 @@ static int fe_dai_probe(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);
}
if (dai->driver->capture.stream_name &&
dai->driver->capture.aif_name) {
@ -73,6 +74,7 @@ static int fe_dai_probe(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);
}
return 0;
}