Skip to content

Commit

Permalink
ASoC: SOF: ipc3: Log the tx message before sending it
Browse files Browse the repository at this point in the history
It makes more sense to log the message before it is sent to the DSP.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
  • Loading branch information
ujfalusi authored and plbossart committed Sep 23, 2022
1 parent 3153253 commit 4db2a2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/sof/ipc3.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ static int ipc3_tx_msg_unlocked(struct snd_sof_ipc *ipc,
struct snd_sof_dev *sdev = ipc->sdev;
int ret;

ipc3_log_header(sdev->dev, "ipc tx", hdr->cmd);

ret = sof_ipc_send_msg(sdev, msg_data, msg_bytes, reply_bytes);

if (ret) {
Expand All @@ -338,8 +340,6 @@ static int ipc3_tx_msg_unlocked(struct snd_sof_ipc *ipc,
return ret;
}

ipc3_log_header(sdev->dev, "ipc tx", hdr->cmd);

/* now wait for completion */
return ipc3_wait_tx_done(ipc, reply_data);
}
Expand Down

0 comments on commit 4db2a2e

Please sign in to comment.