mirror of
https://gitee.com/openharmony/third_party_alsa-lib
synced 2024-11-23 07:30:32 +00:00
add HPET support
add a wrapper for the HPET driver
This commit is contained in:
parent
231d55e537
commit
2570bfc7ad
@ -578,6 +578,7 @@ enum sndrv_timer_slave_class {
|
||||
/* global timers (device member) */
|
||||
#define SNDRV_TIMER_GLOBAL_SYSTEM 0
|
||||
#define SNDRV_TIMER_GLOBAL_RTC 1
|
||||
#define SNDRV_TIMER_GLOBAL_HPET 2
|
||||
|
||||
/* info flags */
|
||||
#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
|
||||
/** global timer - RTC */
|
||||
#define SND_TIMER_GLOBAL_RTC 1
|
||||
/** global timer - HPET */
|
||||
#define SND_TIMER_GLOBAL_HPET 2
|
||||
|
||||
/** timer open mode flag - non-blocking behaviour */
|
||||
#define SND_TIMER_OPEN_NONBLOCK (1<<0)
|
||||
|
Loading…
Reference in New Issue
Block a user