mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
add HPET support
add a wrapper for the HPET driver
This commit is contained in:
parent
231d55e537
commit
2570bfc7ad
2 changed files with 3 additions and 0 deletions
|
|
@ -578,6 +578,7 @@ enum sndrv_timer_slave_class {
|
||||||
/* global timers (device member) */
|
/* global timers (device member) */
|
||||||
#define SNDRV_TIMER_GLOBAL_SYSTEM 0
|
#define SNDRV_TIMER_GLOBAL_SYSTEM 0
|
||||||
#define SNDRV_TIMER_GLOBAL_RTC 1
|
#define SNDRV_TIMER_GLOBAL_RTC 1
|
||||||
|
#define SNDRV_TIMER_GLOBAL_HPET 2
|
||||||
|
|
||||||
/* info flags */
|
/* info flags */
|
||||||
#define SNDRV_TIMER_FLG_SLAVE (1<<0) /* cannot be controlled */
|
#define SNDRV_TIMER_FLG_SLAVE (1<<0) /* cannot be controlled */
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,8 @@ typedef struct _snd_timer_tread {
|
||||||
#define SND_TIMER_GLOBAL_SYSTEM 0
|
#define SND_TIMER_GLOBAL_SYSTEM 0
|
||||||
/** global timer - RTC */
|
/** global timer - RTC */
|
||||||
#define SND_TIMER_GLOBAL_RTC 1
|
#define SND_TIMER_GLOBAL_RTC 1
|
||||||
|
/** global timer - HPET */
|
||||||
|
#define SND_TIMER_GLOBAL_HPET 2
|
||||||
|
|
||||||
/** timer open mode flag - non-blocking behaviour */
|
/** timer open mode flag - non-blocking behaviour */
|
||||||
#define SND_TIMER_OPEN_NONBLOCK (1<<0)
|
#define SND_TIMER_OPEN_NONBLOCK (1<<0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue