Skip to content

Commit 767a616

Browse files
committed
zephyr: wrapper: modify platform_dai_wallclock() for user-space
Don't use sof_cycle_get_64() if SOF built for user-space LL. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
1 parent a000ee2 commit 767a616

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

zephyr/wrapper.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,11 @@ void platform_dai_timestamp(struct comp_dev *dai,
265265
/* get current wallclock for componnent */
266266
void platform_dai_wallclock(struct comp_dev *dai, uint64_t *wallclock)
267267
{
268+
#ifndef CONFIG_SOF_USERSPACE_LL
268269
*wallclock = sof_cycle_get_64();
270+
#else
271+
*wallclock = k_uptime_get();
272+
#endif
269273
}
270274

271275
/*

0 commit comments

Comments
 (0)