RFC: Add support for monotonic clock for 2.6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

	in 2.6 kernels, we can use ktime_get_ts() function to get 
monotonic time which can be used for PCM timestamps. I would propose to 
reuse the SNDRV_PCM_IOCTL_TSTAMP ioctl to enable using of monotonic clock.
The "enable" (int) argument might mean:

0: standard clock - getnstimeofday()
1: standard clock - getnstimeofday() - for "compatibility"
2: monotonic clock - ktime_get_ts()

						Jaroslav

-----
Jaroslav Kysela <perex@xxxxxxx>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux