Skip to content

Commit 12dcdcc

Browse files
ujfalusikv2019i
authored andcommitted
ASoC: SOF: ipc: Clarify the parameter name for ipc_trace_message()
ipc_trace_message() receives the type not the ID. Use the same naming as the ipc_stream_message() function: msg_type to help the reader to follow the code. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 7379cae commit 12dcdcc

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

sound/soc/sof/ipc.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,12 +427,12 @@ EXPORT_SYMBOL(snd_sof_ipc_msgs_rx);
427427
* IPC trace mechanism.
428428
*/
429429

430-
static void ipc_trace_message(struct snd_sof_dev *sdev, u32 msg_id)
430+
static void ipc_trace_message(struct snd_sof_dev *sdev, u32 msg_type)
431431
{
432432
struct sof_ipc_dma_trace_posn posn;
433433
int ret;
434434

435-
switch (msg_id) {
435+
switch (msg_type) {
436436
case SOF_IPC_TRACE_DMA_POSITION:
437437
/* read back full message */
438438
ret = snd_sof_ipc_msg_data(sdev, NULL, &posn, sizeof(posn));
@@ -442,8 +442,7 @@ static void ipc_trace_message(struct snd_sof_dev *sdev, u32 msg_id)
442442
snd_sof_trace_update_pos(sdev, &posn);
443443
break;
444444
default:
445-
dev_err(sdev->dev, "error: unhandled trace message %x\n",
446-
msg_id);
445+
dev_err(sdev->dev, "error: unhandled trace message %x\n", msg_type);
447446
break;
448447
}
449448
}

0 commit comments

Comments
 (0)