]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: Provide a CLOCK_MONOTONIC_RAW timestamp type
authorMark Brown <broonie@linaro.org>
Tue, 8 Jul 2014 14:52:32 +0000 (16:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 14 Jul 2014 15:35:07 +0000 (17:35 +0200)
commit85e4704151677b8fcc5ccfc396071828e9ec1b8e
treefc0a25f8270fa93315f99c7bda25d18b132222f9
parent035f196bcdc1e9903ed52ad1859dc23d3aa74e72
pcm: Provide a CLOCK_MONOTONIC_RAW timestamp type

For applications which need to synchronise with external timebases such
as broadcast TV applications the kernel monotonic time is not optimal as
it includes adjustments from NTP and so may still include discontinuities
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.

Reported-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/asound.h