]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: Provide a CLOCK_MONOTONIC_RAW timestamp type
authorMark Brown <broonie@linaro.org>
Tue, 8 Jul 2014 14:51:49 +0000 (16:51 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Jul 2014 14:58:13 +0000 (16:58 +0200)
commit47bc503a6dc72bd54b8bad0586f192e7c10c250f
treee8f02e842c72fc9f9549cffa90198c12e07004e9
parent2c7e108d974eef2f14f5cbfffb71fd91df2bfe59
ALSA: 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.

[dropped tstamp_type assignment code, as it's no longer needed -- tiwai]

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