Skip to content

Commit 6f97fca

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 9600623 commit 6f97fca

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sound/soc/sof/ipc3-dtrace.c

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

235-
if (ret == host_offset)
235+
if (ret == host_offset) {
236+
dev_dbg(sdev->dev, "trace: new host_offset: %#x\n", new_offset);
236237
return true;
238+
}
237239
}
238240

239241
return false;

0 commit comments

Comments
 (0)