[alsa-devel] [PATCH] ALSA: Provide a CLOCK_MONOTONIC_RAW timestamp type

Mark Brown broonie at kernel.org
Tue Jul 8 18:00:36 CEST 2014


On Tue, Jul 08, 2014 at 05:00:26PM +0200, Takashi Iwai wrote:
> Mark Brown wrote:

> > due to that. A raw monotonic time which does not include any adjustments
> > is available in the kernel from getrawmonotonic() so provide userspace with
> > a new timestamp type SNDRV_PCM_TSTAMP_TYPE_MONOTONIC_RAW which provides
> > timestamps based on this as an option.

> This looks good to me.  Or, thinking of the original use case, should
> we just replace ktime_get_ts() with getrawmonotonic()?  The MONOTONIC
> mode is really to be monotonic.

I'm totally OK with that as well if people don't mind that, I just added
a new clock as the most conservative option.  I can easily respin the
patch for this if you prefer?

> While we're at it: there's been long-standing request from V4L guys
> for improving the timestamps to sync with video streams.  I suggested
> to add a new mode that can be set by the driver.  Worth to consider
> it, too?

Does the wall clock stuff address that?  I've no objection to adding a
further type if the existing ones (and this one aren't sufficient).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20140708/045a1150/attachment-0001.sig>


More information about the Alsa-devel mailing list