]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Defined symbols exposing the hrtimer to applications.
authorPedro Lopez-Cabanillas <pedro.lopez.cabanillas@gmail.com>
Sat, 7 Nov 2009 23:01:06 +0000 (00:01 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 8 Nov 2009 08:21:56 +0000 (09:21 +0100)
Signed-off-by: Pedro Lopez-Cabanillas <pedro.lopez.cabanillas@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/asound.h
include/timer.h

index 62d1e5731b9d0df91c55a7cf9007d25a2ad1c8c9..fa889381851053490c911da5465f2bd0652c3895 100644 (file)
@@ -593,6 +593,7 @@ enum sndrv_timer_slave_class {
 #define SNDRV_TIMER_GLOBAL_SYSTEM      0
 #define SNDRV_TIMER_GLOBAL_RTC         1
 #define SNDRV_TIMER_GLOBAL_HPET                2
+#define SNDRV_TIMER_GLOBAL_HRTIMER     3
 
 /* info flags */
 #define SNDRV_TIMER_FLG_SLAVE          (1<<0)  /* cannot be controlled */
index 4d06e31f1f01148cbdfd0db86bac7fd8e4b74b03..2803f532732959938bec475e71658d487fd9eb33 100644 (file)
@@ -115,6 +115,8 @@ typedef struct _snd_timer_tread {
 #define SND_TIMER_GLOBAL_RTC   1
 /** global timer - HPET */
 #define SND_TIMER_GLOBAL_HPET  2
+/** global timer - HRTIMER */
+#define SND_TIMER_GLOBAL_HRTIMER 3
 
 /** timer open mode flag - non-blocking behaviour */
 #define SND_TIMER_OPEN_NONBLOCK                (1<<0)