All of lore.kernel.org
 help / color / mirror / Atom feed
* RFC: Add support for monotonic clock for 2.6
@ 2007-02-27 14:52 Jaroslav Kysela
  2007-03-07 22:18 ` Takashi Iwai
  0 siblings, 1 reply; 7+ messages in thread
From: Jaroslav Kysela @ 2007-02-27 14:52 UTC (permalink / raw)
  To: ALSA development

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@suse.cz>
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-03-08  7:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-27 14:52 RFC: Add support for monotonic clock for 2.6 Jaroslav Kysela
2007-03-07 22:18 ` Takashi Iwai
2007-03-07 22:33   ` James Courtier-Dutton
2007-03-07 22:48     ` Takashi Iwai
2007-03-07 23:03       ` James Courtier-Dutton
2007-03-08  7:01         ` Jaroslav Kysela
2007-03-08  6:57     ` Jaroslav Kysela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.