Skip to content

Commit 6651821

Browse files
committed
ASoC: SOF: ipc3-dtrace: Print out the new host_offset value on change
Printing out the host_offset can help tracking the progress and can provide insights of anything suspicious going on with the dtrace. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 3cdfe36 commit 6651821

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sound/soc/sof/ipc3-dtrace.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,10 @@ static bool sof_dtrace_set_host_offset(struct snd_sof_dev *sdev, u32 new_offset)
233233
/* This is a bit paranoid and unlikely that it is needed */
234234
u32 ret = cmpxchg(&sdev->host_offset, host_offset, new_offset);
235235

236-
if (ret == host_offset)
236+
if (ret == host_offset) {
237+
dev_dbg(sdev->dev, "trace: new host_offset: %#x\n", new_offset);
237238
return true;
239+
}
238240
}
239241

240242
return false;

0 commit comments

Comments
 (0)