pcm: Provide a CLOCK_MONOTONIC_RAW timestamp type
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 <4421c302a8f2019ff02452a16ddbdd37770f814c@linaro.org>
Signed-off-by: Mark Brown <b51b9a92386687a9ac927cebfa0f978adeb8cea5@linaro.org>
Signed-off-by: Takashi Iwai <4596b3305151c7ee743192a95d394341e3d3b644@suse.de>

zedongchen/alsa-lib,tiwai/alsa-lib,lgirdwood/alsa-lib,zedongchen/alsa-lib,mengdonglin/alsa-lib,mengdonglin/alsa-lib,tiwai/alsa-lib,Distrotech/alsa-lib,Distrotech/alsa-lib,zedongchen/alsa-lib,mengdonglin/alsa-lib,lgirdwood/alsa-lib,takaswie/alsa-lib,Distrotech/alsa-lib,alsa-project/alsa-lib,mengdonglin/alsa-lib,lgirdwood/alsa-lib,mengdonglin/alsa-lib,tiwai/alsa-lib,takaswie/alsa-lib,alsa-project/alsa-lib,Distrotech/alsa-lib,lgirdwood/alsa-lib,takaswie/alsa-lib,zedongchen/alsa-lib,tiwai/alsa-lib,Distrotech/alsa-lib,takaswie/alsa-lib,lgirdwood/alsa-lib,alsa-project/alsa-lib,takaswie/alsa-lib,alsa-project/alsa-lib,zedongchen/alsa-lib