[alsa-devel] [PATCH - alsa-lib 1/1] Defined symbols exposing the hrtimer to applications.

Takashi Iwai tiwai at suse.de
Sun Nov 8 09:22:30 CET 2009


At Sun,  8 Nov 2009 00:01:06 +0100,
Pedro Lopez-Cabanillas wrote:
> 
> Signed-off-by: Pedro Lopez-Cabanillas <pedro.lopez.cabanillas at gmail.com>

Applied now.  Thanks.


Takashi

> ---
>  include/sound/asound.h |    1 +
>  include/timer.h        |    2 ++
>  2 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/include/sound/asound.h b/include/sound/asound.h
> index 62d1e57..fa88938 100644
> --- a/include/sound/asound.h
> +++ b/include/sound/asound.h
> @@ -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 */
> diff --git a/include/timer.h b/include/timer.h
> index 4d06e31..2803f53 100644
> --- a/include/timer.h
> +++ b/include/timer.h
> @@ -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)
> -- 
> 1.6.4.2
> 


More information about the Alsa-devel mailing list