mirror of https://github.com/thesofproject/sof.git
timer: use 64 bit timestamps
Use 64bit timestamps now that 64 bit timers are implemented. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
parent
90880bd287
commit
4d5924cfc9
|
@ -172,7 +172,7 @@ void platform_host_timestamp(struct comp_dev *host,
|
|||
/* get host postion */
|
||||
err = comp_position(host, posn);
|
||||
if (err == 0)
|
||||
posn->flags |= SOF_TIME_HOST_VALID;
|
||||
posn->flags |= SOF_TIME_HOST_VALID | SOF_TIME_HOST_64;
|
||||
}
|
||||
|
||||
/* get timestamp for DAI stream DMA position */
|
||||
|
@ -187,15 +187,15 @@ void platform_dai_timestamp(struct comp_dev *dai,
|
|||
posn->flags |= SOF_TIME_DAI_VALID;
|
||||
|
||||
/* get SSP wallclock - DAI sets this to stream start value */
|
||||
posn->wallclock = shim_read(SHIM_EXT_TIMER_STAT) - posn->wallclock;
|
||||
posn->flags |= SOF_TIME_WALL_VALID;
|
||||
posn->wallclock = platform_timer_get(platform_timer) - posn->wallclock;
|
||||
posn->flags |= SOF_TIME_WALL_VALID | SOF_TIME_WALL_64;
|
||||
}
|
||||
|
||||
/* get current wallclock for componnent */
|
||||
void platform_dai_wallclock(struct comp_dev *dai, uint64_t *wallclock)
|
||||
{
|
||||
/* only 1 wallclock on BYT */
|
||||
*wallclock = shim_read(SHIM_EXT_TIMER_STAT);
|
||||
*wallclock = platform_timer_get(platform_timer);
|
||||
}
|
||||
|
||||
static int platform_timer_register(struct timer *timer,
|
||||
|
|
Loading…
Reference in New Issue