summaryrefslogtreecommitdiff
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorBing Song <bing.song@nxp.com>2020-06-16 13:15:29 +0800
committerBing Song <bing.song@nxp.com>2020-07-10 16:48:11 +0800
commit7c5ec722f0bd7f33055016cd7f66819173ccb410 (patch)
tree0d9070df7ac024e0c3e720fac264e6337ca801c3 /sound/soc/fsl
parent9ebecb7a7bc6200993e7aa720d5ac45526a179af (diff)
MLK-24365-8 dsp: ignore suspend/resume.
ignore suspend/resume when LPA mode. Signed-off-by: Bing Song <bing.song@nxp.com>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/fsl_dsp.c6
1 files changed, 6 insertions, 0 deletions
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;