From 7c5ec722f0bd7f33055016cd7f66819173ccb410 Mon Sep 17 00:00:00 2001 From: Bing Song Date: Tue, 16 Jun 2020 13:15:29 +0800 Subject: [PATCH] MLK-24365-8 dsp: ignore suspend/resume. ignore suspend/resume when LPA mode. Signed-off-by: Bing Song --- sound/soc/fsl/fsl_dsp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/fsl/fsl_dsp.c b/sound/soc/fsl/fsl_dsp.c index 02e69aeaa5fa..dbf2819bc1e7 100644 --- a/sound/soc/fsl/fsl_dsp.c +++ b/sound/soc/fsl/fsl_dsp.c @@ -1600,6 +1600,9 @@ static int fsl_dsp_suspend(struct device *dev) struct xf_proxy *proxy = &dsp_priv->proxy; int ret = 0; + if (dsp_priv->dsp_is_lpa) + return ret; + if (proxy->is_ready & pm_runtime_active(dev)) { ret = xf_cmd_send_suspend(proxy); if (ret) { @@ -1619,6 +1622,9 @@ static int fsl_dsp_resume(struct device *dev) struct xf_proxy *proxy = &dsp_priv->proxy; int ret = 0; + if (dsp_priv->dsp_is_lpa) + return ret; + ret = pm_runtime_force_resume(dev); if (ret) return ret;