Skip to content

Commit

Permalink
ASoC: SOF: ipc: change reply for pm_ipc
Browse files Browse the repository at this point in the history
Use generic reply for sof_ipc_pm_ctx.

Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
  • Loading branch information
tlauda authored and lgirdwood committed Nov 22, 2018
1 parent b846ee5 commit 4a3aa5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/sof/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand All @@ -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)
Expand Down

0 comments on commit 4a3aa5f

Please sign in to comment.