21 |
#include <sound/driver.h> |
#include <sound/driver.h> |
22 |
#include <linux/time.h> |
#include <linux/time.h> |
23 |
#include <linux/slab.h> |
#include <linux/slab.h> |
24 |
|
#include <linux/compat.h> |
25 |
#include <sound/core.h> |
#include <sound/core.h> |
26 |
#include <sound/pcm.h> |
#include <sound/pcm.h> |
27 |
#include "ioctl32.h" |
#include "ioctl32.h" |
137 |
COPY(step);\ |
COPY(step);\ |
138 |
} |
} |
139 |
|
|
|
struct timeval32 { |
|
|
s32 tv_sec; |
|
|
s32 tv_usec; |
|
|
} __attribute__((packed)); |
|
|
|
|
140 |
struct sndrv_pcm_status32 { |
struct sndrv_pcm_status32 { |
141 |
s32 state; |
s32 state; |
142 |
struct timeval32 trigger_tstamp; |
struct compat_timespec trigger_tstamp; |
143 |
struct timeval32 tstamp; |
struct compat_timespec tstamp; |
144 |
u32 appl_ptr; |
u32 appl_ptr; |
145 |
u32 hw_ptr; |
u32 hw_ptr; |
146 |
s32 delay; |
s32 delay; |
155 |
{\ |
{\ |
156 |
COPY(state);\ |
COPY(state);\ |
157 |
COPY(trigger_tstamp.tv_sec);\ |
COPY(trigger_tstamp.tv_sec);\ |
158 |
COPY(trigger_tstamp.tv_usec);\ |
COPY(trigger_tstamp.tv_nsec);\ |
159 |
COPY(tstamp.tv_sec);\ |
COPY(tstamp.tv_sec);\ |
160 |
COPY(tstamp.tv_usec);\ |
COPY(tstamp.tv_nsec);\ |
161 |
COPY(appl_ptr);\ |
COPY(appl_ptr);\ |
162 |
COPY(hw_ptr);\ |
COPY(hw_ptr);\ |
163 |
COPY(delay);\ |
COPY(delay);\ |