Commit 7c7eba24 authored by Keyon Jie's avatar Keyon Jie Committed by Mark Brown

ASoC: SOF: PM: rename sof_send_pm_ipc to sof_send_pm_ctx_ipc

The helper sof_send_pm_ipc() is only suitable for context save/restore
IPCs' sending, so rename it to sof_send_pm_ctx_ipc here.
Signed-off-by: default avatarKeyon Jie <yang.jie@linux.intel.com>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191025224122.7718-13-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 92f4beb7
...@@ -197,7 +197,7 @@ static int sof_restore_pipelines(struct snd_sof_dev *sdev) ...@@ -197,7 +197,7 @@ static int sof_restore_pipelines(struct snd_sof_dev *sdev)
return ret; return ret;
} }
static int sof_send_pm_ipc(struct snd_sof_dev *sdev, int cmd) static int sof_send_pm_ctx_ipc(struct snd_sof_dev *sdev, int cmd)
{ {
struct sof_ipc_pm_ctx pm_ctx; struct sof_ipc_pm_ctx pm_ctx;
struct sof_ipc_reply reply; struct sof_ipc_reply reply;
...@@ -320,7 +320,7 @@ static int sof_resume(struct device *dev, bool runtime_resume) ...@@ -320,7 +320,7 @@ static int sof_resume(struct device *dev, bool runtime_resume)
} }
/* notify DSP of system resume */ /* notify DSP of system resume */
ret = sof_send_pm_ipc(sdev, SOF_IPC_PM_CTX_RESTORE); ret = sof_send_pm_ctx_ipc(sdev, SOF_IPC_PM_CTX_RESTORE);
if (ret < 0) if (ret < 0)
dev_err(sdev->dev, dev_err(sdev->dev,
"error: ctx_restore ipc error during resume %d\n", "error: ctx_restore ipc error during resume %d\n",
...@@ -361,7 +361,7 @@ static int sof_suspend(struct device *dev, bool runtime_suspend) ...@@ -361,7 +361,7 @@ static int sof_suspend(struct device *dev, bool runtime_suspend)
sof_cache_debugfs(sdev); sof_cache_debugfs(sdev);
#endif #endif
/* notify DSP of upcoming power down */ /* notify DSP of upcoming power down */
ret = sof_send_pm_ipc(sdev, SOF_IPC_PM_CTX_SAVE); ret = sof_send_pm_ctx_ipc(sdev, SOF_IPC_PM_CTX_SAVE);
if (ret == -EBUSY || ret == -EAGAIN) { if (ret == -EBUSY || ret == -EAGAIN) {
/* /*
* runtime PM has logic to handle -EBUSY/-EAGAIN so * runtime PM has logic to handle -EBUSY/-EAGAIN so
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment