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> |
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 |
}; |
}; |
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; |
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);\ |