Skip to content

Commit 07ccf0d

Browse files
committed
ASoC: SOF: trace: 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 06b19bd commit 07ccf0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sound/soc/sof/trace.c

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

244-
if (ret == host_offset)
244+
if (ret == host_offset) {
245+
dev_dbg(sdev->dev, "trace: new host_offset: %#x\n", new_offset);
245246
return true;
247+
}
246248
}
247249

248250
return false;

0 commit comments

Comments
 (0)