Update of /cvsroot/alsa/alsa-kernel/include
In directory sc8-pr-cvs1:/tmp/cvs-serv15955/include
Modified Files:
asound.h timer.h
Log Message:
Improved timer event notification for slave timer instances,
added SND_TIMER_EVENT_M* definitions.
Index: asound.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/include/asound.h,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- asound.h 1 Mar 2003 14:50:36 -0000 1.21
+++ asound.h 1 Mar 2003 18:56:35 -0000 1.22
@@ -627,6 +627,11 @@
SNDRV_TIMER_EVENT_STOP, /* val = 0 */
SNDRV_TIMER_EVENT_CONTINUE, /* val = resolution in ns */
SNDRV_TIMER_EVENT_PAUSE, /* val = 0 */
+ /* master timer events for slave timer instances */
+ SNDRV_TIMER_EVENT_MSTART = SNDRV_TIMER_EVENT_START + 100,
+ SNDRV_TIMER_EVENT_MSTOP = SNDRV_TIMER_EVENT_START + 101,
+ SNDRV_TIMER_EVENT_MCONTINUE = SNDRV_TIMER_EVENT_START + 102,
+ SNDRV_TIMER_EVENT_MPAUSE = SNDRV_TIMER_EVENT_START + 103,
};
struct sndrv_timer_tread {
Index: timer.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/include/timer.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- timer.h 1 Mar 2003 14:50:36 -0000 1.10
+++ timer.h 1 Mar 2003 18:56:35 -0000 1.11
@@ -3,7 +3,8 @@
/*
* Timer abstract layer
- * Copyright (c) by Jaroslav Kysela <[EMAIL PROTECTED]>
+ * Copyright (c) by Jaroslav Kysela <[EMAIL PROTECTED]>,
+ * Abramo Bagnara <[EMAIL PROTECTED]>
*
*
* This program is free software; you can redistribute it and/or modify
@@ -60,7 +61,8 @@
#define SNDRV_TIMER_FLG_RESCHED 0x00000002 /* need reschedule */
typedef void (*snd_timer_callback_t) (snd_timer_instance_t * timeri, unsigned long
ticks, unsigned long resolution);
-typedef void (*snd_timer_ccallback_t) (snd_timer_instance_t * timeri, enum
sndrv_timer_event event, unsigned long resolution);
+typedef void (*snd_timer_ccallback_t) (snd_timer_instance_t * timeri, enum
sndrv_timer_event event,
+ struct timespec * tstamp, unsigned long
resolution);
struct _snd_timer_hardware {
/* -- must be filled with low-level driver */
@@ -126,6 +128,7 @@
*/
extern int snd_timer_new(snd_card_t *card, char *id, snd_timer_id_t *tid, snd_timer_t
** rtimer);
+extern void snd_timer_notify(snd_timer_t *timer, enum sndrv_timer_event event, struct
timespec *tstamp);
extern int snd_timer_global_new(char *id, int device, snd_timer_t **rtimer);
extern int snd_timer_global_free(snd_timer_t *timer);
extern int snd_timer_global_register(snd_timer_t *timer);
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog