Update of /cvsroot/alsa/alsa-kernel/include
In directory sc8-pr-cvs1:/tmp/cvs-serv12010/include

Modified Files:
        asound.h timer.h 
Log Message:
Added snd_timer_pause(). Implemented more event notifications for timer.
Cleanups.


Index: asound.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/include/asound.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- asound.h    28 Feb 2003 16:59:55 -0000      1.20
+++ asound.h    1 Mar 2003 14:50:36 -0000       1.21
@@ -612,6 +612,7 @@
        SNDRV_TIMER_IOCTL_START = _IO('T', 0x20),
        SNDRV_TIMER_IOCTL_STOP = _IO('T', 0x21),
        SNDRV_TIMER_IOCTL_CONTINUE = _IO('T', 0x22),
+       SNDRV_TIMER_IOCTL_PAUSE = _IO('T', 0x23),
 };
 
 struct sndrv_timer_read {
@@ -624,7 +625,8 @@
        SNDRV_TIMER_EVENT_TICK,                 /* val = ticks */
        SNDRV_TIMER_EVENT_START,                /* val = resolution in ns */
        SNDRV_TIMER_EVENT_STOP,                 /* val = 0 */
-       SNDRV_TIMER_EVENT_CONTINUE              /* val = resolution in ns */
+       SNDRV_TIMER_EVENT_CONTINUE,             /* val = resolution in ns */
+       SNDRV_TIMER_EVENT_PAUSE,                /* val = 0 */
 };
 
 struct sndrv_timer_tread {

Index: timer.h
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/include/timer.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- timer.h     28 Feb 2003 16:59:56 -0000      1.9
+++ timer.h     1 Mar 2003 14:50:36 -0000       1.10
@@ -60,6 +60,7 @@
 #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);
 
 struct _snd_timer_hardware {
        /* -- must be filled with low-level driver */
@@ -103,6 +104,7 @@
        void *private_data;
        void (*private_free) (snd_timer_instance_t *ti);
        snd_timer_callback_t callback;
+       snd_timer_ccallback_t ccallback;
        void *callback_data;
        unsigned long ticks;            /* auto-load ticks when expired */
        unsigned long cticks;           /* current ticks */
@@ -131,13 +133,11 @@
 
 extern snd_timer_instance_t *snd_timer_open(char *owner, snd_timer_id_t *tid, 
unsigned int slave_id);
 extern int snd_timer_close(snd_timer_instance_t * timeri);
-extern int snd_timer_set_owner(snd_timer_instance_t * timeri, pid_t pid, gid_t gid);
-extern int snd_timer_reset_owner(snd_timer_instance_t * timeri);
-extern int snd_timer_set_resolution(snd_timer_instance_t * timeri, unsigned long 
resolution);
 extern unsigned long snd_timer_resolution(snd_timer_instance_t * timeri);
 extern int snd_timer_start(snd_timer_instance_t * timeri, unsigned int ticks);
 extern int snd_timer_stop(snd_timer_instance_t * timeri);
 extern int snd_timer_continue(snd_timer_instance_t * timeri);
+extern int snd_timer_pause(snd_timer_instance_t * timeri);
 
 extern void snd_timer_interrupt(snd_timer_t * timer, unsigned long ticks_left);
 



-------------------------------------------------------
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

Reply via email to