From 4a3aa5f384a054194b0e564231cec97da609b9cb Mon Sep 17 00:00:00 2001 From: Tomasz Lauda Date: Thu, 22 Nov 2018 09:56:44 +0100 Subject: [PATCH] ASoC: SOF: ipc: change reply for pm_ipc Use generic reply for sof_ipc_pm_ctx. Signed-off-by: Tomasz Lauda --- sound/soc/sof/pm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/sof/pm.c b/sound/soc/sof/pm.c index a235b6ccf484..81b7050394ca 100644 --- a/sound/soc/sof/pm.c +++ b/sound/soc/sof/pm.c @@ -187,6 +187,7 @@ static int sof_restore_pipelines(struct snd_sof_dev *sdev) static int sof_send_pm_ipc(struct snd_sof_dev *sdev, int cmd) { struct sof_ipc_pm_ctx pm_ctx; + struct sof_ipc_reply reply; memset(&pm_ctx, 0, sizeof(pm_ctx)); @@ -196,7 +197,7 @@ static int sof_send_pm_ipc(struct snd_sof_dev *sdev, int cmd) /* send ctx save ipc to dsp */ return sof_ipc_tx_message(sdev->ipc, pm_ctx.hdr.cmd, &pm_ctx, - sizeof(pm_ctx), &pm_ctx, sizeof(pm_ctx)); + sizeof(pm_ctx), &reply, sizeof(reply)); } static void sof_suspend_streams(struct snd_sof_dev *sdev)