From: Mark Brown Date: Tue, 8 Jul 2014 14:51:49 +0000 (+0200) Subject: ALSA: Provide a CLOCK_MONOTONIC_RAW timestamp type X-Git-Tag: omap-for-v3.17/fixes-against-rc2~144^2~13^2~13^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ac8a52d4541adc284a4f3e8a1f6847236de1d8a;p=pandora-kernel.git 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 Signed-off-by: Mark Brown Acked-by: Jaroslav Kysela Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed