/[openvortex]/alsa/alsa-kernel/core/ioctl32/timer32.c
ViewVC logotype

Diff of /alsa/alsa-kernel/core/ioctl32/timer32.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by vizard, Tue Apr 15 21:53:10 2003 UTC revision 1.2 by vizard, Mon Aug 11 00:06:38 2003 UTC
# Line 21  Line 21 
21  #include <sound/driver.h>  #include <sound/driver.h>
22  #include <linux/time.h>  #include <linux/time.h>
23  #include <linux/fs.h>  #include <linux/fs.h>
24    #include <linux/compat.h>
25  #include <sound/core.h>  #include <sound/core.h>
26  #include <sound/timer.h>  #include <sound/timer.h>
27  #include <asm/uaccess.h>  #include <asm/uaccess.h>
# Line 31  struct sndrv_timer_info32 { Line 32  struct sndrv_timer_info32 {
32          s32 card;          s32 card;
33          unsigned char id[64];          unsigned char id[64];
34          unsigned char name[80];          unsigned char name[80];
35          u32 ticks;          u32 reserved0;
36          u32 resolution;          u32 resolution;
37          unsigned char reserved[64];          unsigned char reserved[64];
38  };  };
# Line 42  struct sndrv_timer_info32 { Line 43  struct sndrv_timer_info32 {
43          COPY(card);\          COPY(card);\
44          memcpy(dst->id, src->id, sizeof(src->id));\          memcpy(dst->id, src->id, sizeof(src->id));\
45          memcpy(dst->name, src->name, sizeof(src->name));\          memcpy(dst->name, src->name, sizeof(src->name));\
         COPY(ticks);\  
46          COPY(resolution);\          COPY(resolution);\
47  }  }
48    
 struct timeval32 {  
         s32 tv_sec;  
         s32 tv_usec;  
 };  
   
49  struct sndrv_timer_status32 {  struct sndrv_timer_status32 {
50          struct timeval32 tstamp;          struct compat_timespec tstamp;
51          u32 resolution;          u32 resolution;
52          u32 lost;          u32 lost;
53          u32 overrun;          u32 overrun;
# Line 63  struct sndrv_timer_status32 { Line 58  struct sndrv_timer_status32 {
58  #define CVT_sndrv_timer_status()\  #define CVT_sndrv_timer_status()\
59  {\  {\
60          COPY(tstamp.tv_sec);\          COPY(tstamp.tv_sec);\
61          COPY(tstamp.tv_usec);\          COPY(tstamp.tv_nsec);\
62          COPY(resolution);\          COPY(resolution);\
63          COPY(lost);\          COPY(lost);\
64          COPY(overrun);\          COPY(overrun);\

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26