1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __SOUND_ASOUND_H
20 #define __SOUND_ASOUND_H
21 #include <linux/types.h>
22 #include <stdlib.h>
23 #include <time.h>
24 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
25 #define SNDRV_PROTOCOL_VERSION(major,minor,subminor) (((major) << 16) | ((minor) << 8) | (subminor))
26 #define SNDRV_PROTOCOL_MAJOR(version) (((version) >> 16) & 0xffff)
27 #define SNDRV_PROTOCOL_MINOR(version) (((version) >> 8) & 0xff)
28 #define SNDRV_PROTOCOL_MICRO(version) ((version) & 0xff)
29 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
30 #define SNDRV_PROTOCOL_INCOMPATIBLE(kversion,uversion) (SNDRV_PROTOCOL_MAJOR(kversion) != SNDRV_PROTOCOL_MAJOR(uversion) || (SNDRV_PROTOCOL_MAJOR(kversion) == SNDRV_PROTOCOL_MAJOR(uversion) && SNDRV_PROTOCOL_MINOR(kversion) != SNDRV_PROTOCOL_MINOR(uversion)))
31 struct snd_aes_iec958 {
32   unsigned char status[24];
33   unsigned char subcode[147];
34 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
35   unsigned char pad;
36   unsigned char dig_subframe[4];
37 };
38 struct snd_cea_861_aud_if {
39 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
40   unsigned char db1_ct_cc;
41   unsigned char db2_sf_ss;
42   unsigned char db3;
43   unsigned char db4_ca;
44 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
45   unsigned char db5_dminh_lsv;
46 };
47 #define SNDRV_HWDEP_VERSION SNDRV_PROTOCOL_VERSION(1, 0, 1)
48 enum {
49 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
50   SNDRV_HWDEP_IFACE_OPL2 = 0,
51   SNDRV_HWDEP_IFACE_OPL3,
52   SNDRV_HWDEP_IFACE_OPL4,
53   SNDRV_HWDEP_IFACE_SB16CSP,
54 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
55   SNDRV_HWDEP_IFACE_EMU10K1,
56   SNDRV_HWDEP_IFACE_YSS225,
57   SNDRV_HWDEP_IFACE_ICS2115,
58   SNDRV_HWDEP_IFACE_SSCAPE,
59 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
60   SNDRV_HWDEP_IFACE_VX,
61   SNDRV_HWDEP_IFACE_MIXART,
62   SNDRV_HWDEP_IFACE_USX2Y,
63   SNDRV_HWDEP_IFACE_EMUX_WAVETABLE,
64 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
65   SNDRV_HWDEP_IFACE_BLUETOOTH,
66   SNDRV_HWDEP_IFACE_USX2Y_PCM,
67   SNDRV_HWDEP_IFACE_PCXHR,
68   SNDRV_HWDEP_IFACE_SB_RC,
69 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
70   SNDRV_HWDEP_IFACE_HDA,
71   SNDRV_HWDEP_IFACE_USB_STREAM,
72   SNDRV_HWDEP_IFACE_FW_DICE,
73   SNDRV_HWDEP_IFACE_FW_FIREWORKS,
74 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
75   SNDRV_HWDEP_IFACE_FW_BEBOB,
76   SNDRV_HWDEP_IFACE_FW_OXFW,
77   SNDRV_HWDEP_IFACE_FW_DIGI00X,
78   SNDRV_HWDEP_IFACE_FW_TASCAM,
79 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
80   SNDRV_HWDEP_IFACE_AUDIO_BE,
81   SNDRV_HWDEP_IFACE_AUDIO_CODEC,
82   SNDRV_HWDEP_IFACE_LAST = SNDRV_HWDEP_IFACE_AUDIO_CODEC
83 };
84 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
85 struct snd_hwdep_info {
86   unsigned int device;
87   int card;
88   unsigned char id[64];
89 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
90   unsigned char name[80];
91   int iface;
92   unsigned char reserved[64];
93 };
94 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
95 struct snd_hwdep_dsp_status {
96   unsigned int version;
97   unsigned char id[32];
98   unsigned int num_dsps;
99 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
100   unsigned int dsp_loaded;
101   unsigned int chip_ready;
102   unsigned char reserved[16];
103 };
104 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
105 struct snd_hwdep_dsp_image {
106   unsigned int index;
107   unsigned char name[64];
108   unsigned char * image;
109 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
110   size_t length;
111   unsigned long driver_data;
112 };
113 #define SNDRV_HWDEP_IOCTL_PVERSION _IOR('H', 0x00, int)
114 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
115 #define SNDRV_HWDEP_IOCTL_INFO _IOR('H', 0x01, struct snd_hwdep_info)
116 #define SNDRV_HWDEP_IOCTL_DSP_STATUS _IOR('H', 0x02, struct snd_hwdep_dsp_status)
117 #define SNDRV_HWDEP_IOCTL_DSP_LOAD _IOW('H', 0x03, struct snd_hwdep_dsp_image)
118 #define SNDRV_PCM_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 13)
119 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
120 typedef unsigned long snd_pcm_uframes_t;
121 typedef signed long snd_pcm_sframes_t;
122 enum {
123   SNDRV_PCM_CLASS_GENERIC = 0,
124 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
125   SNDRV_PCM_CLASS_MULTI,
126   SNDRV_PCM_CLASS_MODEM,
127   SNDRV_PCM_CLASS_DIGITIZER,
128   SNDRV_PCM_CLASS_LAST = SNDRV_PCM_CLASS_DIGITIZER,
129 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
130 };
131 enum {
132   SNDRV_PCM_SUBCLASS_GENERIC_MIX = 0,
133   SNDRV_PCM_SUBCLASS_MULTI_MIX,
134 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
135   SNDRV_PCM_SUBCLASS_LAST = SNDRV_PCM_SUBCLASS_MULTI_MIX,
136 };
137 enum {
138   SNDRV_PCM_STREAM_PLAYBACK = 0,
139 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
140   SNDRV_PCM_STREAM_CAPTURE,
141   SNDRV_PCM_STREAM_LAST = SNDRV_PCM_STREAM_CAPTURE,
142 };
143 typedef int __bitwise snd_pcm_access_t;
144 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
145 #define SNDRV_PCM_ACCESS_MMAP_INTERLEAVED ((snd_pcm_access_t) 0)
146 #define SNDRV_PCM_ACCESS_MMAP_NONINTERLEAVED ((snd_pcm_access_t) 1)
147 #define SNDRV_PCM_ACCESS_MMAP_COMPLEX ((snd_pcm_access_t) 2)
148 #define SNDRV_PCM_ACCESS_RW_INTERLEAVED ((snd_pcm_access_t) 3)
149 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
150 #define SNDRV_PCM_ACCESS_RW_NONINTERLEAVED ((snd_pcm_access_t) 4)
151 #define SNDRV_PCM_ACCESS_LAST SNDRV_PCM_ACCESS_RW_NONINTERLEAVED
152 typedef int __bitwise snd_pcm_format_t;
153 #define SNDRV_PCM_FORMAT_S8 ((snd_pcm_format_t) 0)
154 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
155 #define SNDRV_PCM_FORMAT_U8 ((snd_pcm_format_t) 1)
156 #define SNDRV_PCM_FORMAT_S16_LE ((snd_pcm_format_t) 2)
157 #define SNDRV_PCM_FORMAT_S16_BE ((snd_pcm_format_t) 3)
158 #define SNDRV_PCM_FORMAT_U16_LE ((snd_pcm_format_t) 4)
159 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
160 #define SNDRV_PCM_FORMAT_U16_BE ((snd_pcm_format_t) 5)
161 #define SNDRV_PCM_FORMAT_S24_LE ((snd_pcm_format_t) 6)
162 #define SNDRV_PCM_FORMAT_S24_BE ((snd_pcm_format_t) 7)
163 #define SNDRV_PCM_FORMAT_U24_LE ((snd_pcm_format_t) 8)
164 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
165 #define SNDRV_PCM_FORMAT_U24_BE ((snd_pcm_format_t) 9)
166 #define SNDRV_PCM_FORMAT_S32_LE ((snd_pcm_format_t) 10)
167 #define SNDRV_PCM_FORMAT_S32_BE ((snd_pcm_format_t) 11)
168 #define SNDRV_PCM_FORMAT_U32_LE ((snd_pcm_format_t) 12)
169 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
170 #define SNDRV_PCM_FORMAT_U32_BE ((snd_pcm_format_t) 13)
171 #define SNDRV_PCM_FORMAT_FLOAT_LE ((snd_pcm_format_t) 14)
172 #define SNDRV_PCM_FORMAT_FLOAT_BE ((snd_pcm_format_t) 15)
173 #define SNDRV_PCM_FORMAT_FLOAT64_LE ((snd_pcm_format_t) 16)
174 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
175 #define SNDRV_PCM_FORMAT_FLOAT64_BE ((snd_pcm_format_t) 17)
176 #define SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE ((snd_pcm_format_t) 18)
177 #define SNDRV_PCM_FORMAT_IEC958_SUBFRAME_BE ((snd_pcm_format_t) 19)
178 #define SNDRV_PCM_FORMAT_MU_LAW ((snd_pcm_format_t) 20)
179 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
180 #define SNDRV_PCM_FORMAT_A_LAW ((snd_pcm_format_t) 21)
181 #define SNDRV_PCM_FORMAT_IMA_ADPCM ((snd_pcm_format_t) 22)
182 #define SNDRV_PCM_FORMAT_MPEG ((snd_pcm_format_t) 23)
183 #define SNDRV_PCM_FORMAT_GSM ((snd_pcm_format_t) 24)
184 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
185 #define SNDRV_PCM_FORMAT_SPECIAL ((snd_pcm_format_t) 31)
186 #define SNDRV_PCM_FORMAT_S24_3LE ((snd_pcm_format_t) 32)
187 #define SNDRV_PCM_FORMAT_S24_3BE ((snd_pcm_format_t) 33)
188 #define SNDRV_PCM_FORMAT_U24_3LE ((snd_pcm_format_t) 34)
189 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
190 #define SNDRV_PCM_FORMAT_U24_3BE ((snd_pcm_format_t) 35)
191 #define SNDRV_PCM_FORMAT_S20_3LE ((snd_pcm_format_t) 36)
192 #define SNDRV_PCM_FORMAT_S20_3BE ((snd_pcm_format_t) 37)
193 #define SNDRV_PCM_FORMAT_U20_3LE ((snd_pcm_format_t) 38)
194 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
195 #define SNDRV_PCM_FORMAT_U20_3BE ((snd_pcm_format_t) 39)
196 #define SNDRV_PCM_FORMAT_S18_3LE ((snd_pcm_format_t) 40)
197 #define SNDRV_PCM_FORMAT_S18_3BE ((snd_pcm_format_t) 41)
198 #define SNDRV_PCM_FORMAT_U18_3LE ((snd_pcm_format_t) 42)
199 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
200 #define SNDRV_PCM_FORMAT_U18_3BE ((snd_pcm_format_t) 43)
201 #define SNDRV_PCM_FORMAT_G723_24 ((snd_pcm_format_t) 44)
202 #define SNDRV_PCM_FORMAT_G723_24_1B ((snd_pcm_format_t) 45)
203 #define SNDRV_PCM_FORMAT_G723_40 ((snd_pcm_format_t) 46)
204 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
205 #define SNDRV_PCM_FORMAT_G723_40_1B ((snd_pcm_format_t) 47)
206 #define SNDRV_PCM_FORMAT_DSD_U8 ((snd_pcm_format_t) 48)
207 #define SNDRV_PCM_FORMAT_DSD_U16_LE ((snd_pcm_format_t) 49)
208 #define SNDRV_PCM_FORMAT_DSD_U32_LE ((snd_pcm_format_t) 50)
209 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
210 #define SNDRV_PCM_FORMAT_DSD_U16_BE ((snd_pcm_format_t) 51)
211 #define SNDRV_PCM_FORMAT_DSD_U32_BE ((snd_pcm_format_t) 52)
212 #define SNDRV_PCM_FORMAT_LAST SNDRV_PCM_FORMAT_DSD_U32_BE
213 #ifdef SNDRV_LITTLE_ENDIAN
214 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
215 #define SNDRV_PCM_FORMAT_S16 SNDRV_PCM_FORMAT_S16_LE
216 #define SNDRV_PCM_FORMAT_U16 SNDRV_PCM_FORMAT_U16_LE
217 #define SNDRV_PCM_FORMAT_S24 SNDRV_PCM_FORMAT_S24_LE
218 #define SNDRV_PCM_FORMAT_U24 SNDRV_PCM_FORMAT_U24_LE
219 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
220 #define SNDRV_PCM_FORMAT_S32 SNDRV_PCM_FORMAT_S32_LE
221 #define SNDRV_PCM_FORMAT_U32 SNDRV_PCM_FORMAT_U32_LE
222 #define SNDRV_PCM_FORMAT_FLOAT SNDRV_PCM_FORMAT_FLOAT_LE
223 #define SNDRV_PCM_FORMAT_FLOAT64 SNDRV_PCM_FORMAT_FLOAT64_LE
224 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
225 #define SNDRV_PCM_FORMAT_IEC958_SUBFRAME SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE
226 #endif
227 #ifdef SNDRV_BIG_ENDIAN
228 #define SNDRV_PCM_FORMAT_S16 SNDRV_PCM_FORMAT_S16_BE
229 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
230 #define SNDRV_PCM_FORMAT_U16 SNDRV_PCM_FORMAT_U16_BE
231 #define SNDRV_PCM_FORMAT_S24 SNDRV_PCM_FORMAT_S24_BE
232 #define SNDRV_PCM_FORMAT_U24 SNDRV_PCM_FORMAT_U24_BE
233 #define SNDRV_PCM_FORMAT_S32 SNDRV_PCM_FORMAT_S32_BE
234 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
235 #define SNDRV_PCM_FORMAT_U32 SNDRV_PCM_FORMAT_U32_BE
236 #define SNDRV_PCM_FORMAT_FLOAT SNDRV_PCM_FORMAT_FLOAT_BE
237 #define SNDRV_PCM_FORMAT_FLOAT64 SNDRV_PCM_FORMAT_FLOAT64_BE
238 #define SNDRV_PCM_FORMAT_IEC958_SUBFRAME SNDRV_PCM_FORMAT_IEC958_SUBFRAME_BE
239 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
240 #endif
241 typedef int __bitwise snd_pcm_subformat_t;
242 #define SNDRV_PCM_SUBFORMAT_STD ((snd_pcm_subformat_t) 0)
243 #define SNDRV_PCM_SUBFORMAT_LAST SNDRV_PCM_SUBFORMAT_STD
244 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
245 #define SNDRV_PCM_INFO_MMAP 0x00000001
246 #define SNDRV_PCM_INFO_MMAP_VALID 0x00000002
247 #define SNDRV_PCM_INFO_DOUBLE 0x00000004
248 #define SNDRV_PCM_INFO_BATCH 0x00000010
249 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
250 #define SNDRV_PCM_INFO_INTERLEAVED 0x00000100
251 #define SNDRV_PCM_INFO_NONINTERLEAVED 0x00000200
252 #define SNDRV_PCM_INFO_COMPLEX 0x00000400
253 #define SNDRV_PCM_INFO_BLOCK_TRANSFER 0x00010000
254 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
255 #define SNDRV_PCM_INFO_OVERRANGE 0x00020000
256 #define SNDRV_PCM_INFO_RESUME 0x00040000
257 #define SNDRV_PCM_INFO_PAUSE 0x00080000
258 #define SNDRV_PCM_INFO_HALF_DUPLEX 0x00100000
259 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
260 #define SNDRV_PCM_INFO_JOINT_DUPLEX 0x00200000
261 #define SNDRV_PCM_INFO_SYNC_START 0x00400000
262 #define SNDRV_PCM_INFO_NO_PERIOD_WAKEUP 0x00800000
263 #define SNDRV_PCM_INFO_HAS_WALL_CLOCK 0x01000000
264 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
265 #define SNDRV_PCM_INFO_HAS_LINK_ATIME 0x01000000
266 #define SNDRV_PCM_INFO_HAS_LINK_ABSOLUTE_ATIME 0x02000000
267 #define SNDRV_PCM_INFO_HAS_LINK_ESTIMATED_ATIME 0x04000000
268 #define SNDRV_PCM_INFO_HAS_LINK_SYNCHRONIZED_ATIME 0x08000000
269 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
270 #define SNDRV_PCM_INFO_DRAIN_TRIGGER 0x40000000
271 #define SNDRV_PCM_INFO_FIFO_IN_FRAMES 0x80000000
272 typedef int __bitwise snd_pcm_state_t;
273 #define SNDRV_PCM_STATE_OPEN ((snd_pcm_state_t) 0)
274 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
275 #define SNDRV_PCM_STATE_SETUP ((snd_pcm_state_t) 1)
276 #define SNDRV_PCM_STATE_PREPARED ((snd_pcm_state_t) 2)
277 #define SNDRV_PCM_STATE_RUNNING ((snd_pcm_state_t) 3)
278 #define SNDRV_PCM_STATE_XRUN ((snd_pcm_state_t) 4)
279 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
280 #define SNDRV_PCM_STATE_DRAINING ((snd_pcm_state_t) 5)
281 #define SNDRV_PCM_STATE_PAUSED ((snd_pcm_state_t) 6)
282 #define SNDRV_PCM_STATE_SUSPENDED ((snd_pcm_state_t) 7)
283 #define SNDRV_PCM_STATE_DISCONNECTED ((snd_pcm_state_t) 8)
284 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
285 #define SNDRV_PCM_STATE_LAST SNDRV_PCM_STATE_DISCONNECTED
286 enum {
287   SNDRV_PCM_MMAP_OFFSET_DATA = 0x00000000,
288   SNDRV_PCM_MMAP_OFFSET_STATUS = 0x80000000,
289 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
290   SNDRV_PCM_MMAP_OFFSET_CONTROL = 0x81000000,
291 };
292 union snd_pcm_sync_id {
293   unsigned char id[16];
294 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
295   unsigned short id16[8];
296   unsigned int id32[4];
297 };
298 struct snd_pcm_info {
299 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
300   unsigned int device;
301   unsigned int subdevice;
302   int stream;
303   int card;
304 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
305   unsigned char id[64];
306   unsigned char name[80];
307   unsigned char subname[32];
308   int dev_class;
309 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
310   int dev_subclass;
311   unsigned int subdevices_count;
312   unsigned int subdevices_avail;
313   union snd_pcm_sync_id sync;
314 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
315   unsigned char reserved[64];
316 };
317 typedef int snd_pcm_hw_param_t;
318 #define SNDRV_PCM_HW_PARAM_ACCESS 0
319 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
320 #define SNDRV_PCM_HW_PARAM_FORMAT 1
321 #define SNDRV_PCM_HW_PARAM_SUBFORMAT 2
322 #define SNDRV_PCM_HW_PARAM_FIRST_MASK SNDRV_PCM_HW_PARAM_ACCESS
323 #define SNDRV_PCM_HW_PARAM_LAST_MASK SNDRV_PCM_HW_PARAM_SUBFORMAT
324 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
325 #define SNDRV_PCM_HW_PARAM_SAMPLE_BITS 8
326 #define SNDRV_PCM_HW_PARAM_FRAME_BITS 9
327 #define SNDRV_PCM_HW_PARAM_CHANNELS 10
328 #define SNDRV_PCM_HW_PARAM_RATE 11
329 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
330 #define SNDRV_PCM_HW_PARAM_PERIOD_TIME 12
331 #define SNDRV_PCM_HW_PARAM_PERIOD_SIZE 13
332 #define SNDRV_PCM_HW_PARAM_PERIOD_BYTES 14
333 #define SNDRV_PCM_HW_PARAM_PERIODS 15
334 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
335 #define SNDRV_PCM_HW_PARAM_BUFFER_TIME 16
336 #define SNDRV_PCM_HW_PARAM_BUFFER_SIZE 17
337 #define SNDRV_PCM_HW_PARAM_BUFFER_BYTES 18
338 #define SNDRV_PCM_HW_PARAM_TICK_TIME 19
339 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
340 #define SNDRV_PCM_HW_PARAM_FIRST_INTERVAL SNDRV_PCM_HW_PARAM_SAMPLE_BITS
341 #define SNDRV_PCM_HW_PARAM_LAST_INTERVAL SNDRV_PCM_HW_PARAM_TICK_TIME
342 #define SNDRV_PCM_HW_PARAMS_NORESAMPLE (1 << 0)
343 #define SNDRV_PCM_HW_PARAMS_EXPORT_BUFFER (1 << 1)
344 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
345 #define SNDRV_PCM_HW_PARAMS_NO_PERIOD_WAKEUP (1 << 2)
346 struct snd_interval {
347   unsigned int min, max;
348   unsigned int openmin : 1, openmax : 1, integer : 1, empty : 1;
349 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
350 };
351 #define SNDRV_MASK_MAX 256
352 struct snd_mask {
353   __u32 bits[(SNDRV_MASK_MAX + 31) / 32];
354 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
355 };
356 struct snd_pcm_hw_params {
357   unsigned int flags;
358   struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK - SNDRV_PCM_HW_PARAM_FIRST_MASK + 1];
359 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
360   struct snd_mask mres[5];
361   struct snd_interval intervals[SNDRV_PCM_HW_PARAM_LAST_INTERVAL - SNDRV_PCM_HW_PARAM_FIRST_INTERVAL + 1];
362   struct snd_interval ires[9];
363   unsigned int rmask;
364 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
365   unsigned int cmask;
366   unsigned int info;
367   unsigned int msbits;
368   unsigned int rate_num;
369 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
370   unsigned int rate_den;
371   snd_pcm_uframes_t fifo_size;
372   unsigned char reserved[64];
373 };
374 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
375 enum {
376   SNDRV_PCM_TSTAMP_NONE = 0,
377   SNDRV_PCM_TSTAMP_ENABLE,
378   SNDRV_PCM_TSTAMP_LAST = SNDRV_PCM_TSTAMP_ENABLE,
379 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
380 };
381 struct snd_pcm_sw_params {
382   int tstamp_mode;
383   unsigned int period_step;
384 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
385   unsigned int sleep_min;
386   snd_pcm_uframes_t avail_min;
387   snd_pcm_uframes_t xfer_align;
388   snd_pcm_uframes_t start_threshold;
389 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
390   snd_pcm_uframes_t stop_threshold;
391   snd_pcm_uframes_t silence_threshold;
392   snd_pcm_uframes_t silence_size;
393   snd_pcm_uframes_t boundary;
394 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
395   unsigned int proto;
396   unsigned int tstamp_type;
397   unsigned char reserved[56];
398 };
399 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
400 struct snd_pcm_channel_info {
401   unsigned int channel;
402   __kernel_off_t offset;
403   unsigned int first;
404 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
405   unsigned int step;
406 };
407 enum {
408   SNDRV_PCM_AUDIO_TSTAMP_TYPE_COMPAT = 0,
409 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
410   SNDRV_PCM_AUDIO_TSTAMP_TYPE_DEFAULT = 1,
411   SNDRV_PCM_AUDIO_TSTAMP_TYPE_LINK = 2,
412   SNDRV_PCM_AUDIO_TSTAMP_TYPE_LINK_ABSOLUTE = 3,
413   SNDRV_PCM_AUDIO_TSTAMP_TYPE_LINK_ESTIMATED = 4,
414 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
415   SNDRV_PCM_AUDIO_TSTAMP_TYPE_LINK_SYNCHRONIZED = 5,
416   SNDRV_PCM_AUDIO_TSTAMP_TYPE_LAST = SNDRV_PCM_AUDIO_TSTAMP_TYPE_LINK_SYNCHRONIZED
417 };
418 struct snd_pcm_status {
419 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
420   snd_pcm_state_t state;
421   struct timespec trigger_tstamp;
422   struct timespec tstamp;
423   snd_pcm_uframes_t appl_ptr;
424 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
425   snd_pcm_uframes_t hw_ptr;
426   snd_pcm_sframes_t delay;
427   snd_pcm_uframes_t avail;
428   snd_pcm_uframes_t avail_max;
429 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
430   snd_pcm_uframes_t overrange;
431   snd_pcm_state_t suspended_state;
432   __u32 audio_tstamp_data;
433   struct timespec audio_tstamp;
434 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
435   struct timespec driver_tstamp;
436   __u32 audio_tstamp_accuracy;
437   unsigned char reserved[52 - 2 * sizeof(struct timespec)];
438 };
439 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
440 struct snd_pcm_mmap_status {
441   snd_pcm_state_t state;
442   int pad1;
443   snd_pcm_uframes_t hw_ptr;
444 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
445   struct timespec tstamp;
446   snd_pcm_state_t suspended_state;
447   struct timespec audio_tstamp;
448 };
449 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
450 struct snd_pcm_mmap_control {
451   snd_pcm_uframes_t appl_ptr;
452   snd_pcm_uframes_t avail_min;
453 };
454 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
455 #define SNDRV_PCM_SYNC_PTR_HWSYNC (1 << 0)
456 #define SNDRV_PCM_SYNC_PTR_APPL (1 << 1)
457 #define SNDRV_PCM_SYNC_PTR_AVAIL_MIN (1 << 2)
458 struct snd_pcm_sync_ptr {
459 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
460   unsigned int flags;
461   union {
462     struct snd_pcm_mmap_status status;
463     unsigned char reserved[64];
464 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
465   } s;
466   union {
467     struct snd_pcm_mmap_control control;
468     unsigned char reserved[64];
469 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
470   } c;
471 };
472 struct snd_xferi {
473   snd_pcm_sframes_t result;
474 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
475   void * buf;
476   snd_pcm_uframes_t frames;
477 };
478 struct snd_xfern {
479 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
480   snd_pcm_sframes_t result;
481   void * * bufs;
482   snd_pcm_uframes_t frames;
483 };
484 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
485 enum {
486   SNDRV_PCM_TSTAMP_TYPE_GETTIMEOFDAY = 0,
487   SNDRV_PCM_TSTAMP_TYPE_MONOTONIC,
488   SNDRV_PCM_TSTAMP_TYPE_MONOTONIC_RAW,
489 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
490   SNDRV_PCM_TSTAMP_TYPE_LAST = SNDRV_PCM_TSTAMP_TYPE_MONOTONIC_RAW,
491 };
492 enum {
493   SNDRV_CHMAP_UNKNOWN = 0,
494 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
495   SNDRV_CHMAP_NA,
496   SNDRV_CHMAP_MONO,
497   SNDRV_CHMAP_FL,
498   SNDRV_CHMAP_FR,
499 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
500   SNDRV_CHMAP_RL,
501   SNDRV_CHMAP_RR,
502   SNDRV_CHMAP_FC,
503   SNDRV_CHMAP_LFE,
504 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
505   SNDRV_CHMAP_SL,
506   SNDRV_CHMAP_SR,
507   SNDRV_CHMAP_RC,
508   SNDRV_CHMAP_FLC,
509 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
510   SNDRV_CHMAP_FRC,
511   SNDRV_CHMAP_RLC,
512   SNDRV_CHMAP_RRC,
513   SNDRV_CHMAP_FLW,
514 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
515   SNDRV_CHMAP_FRW,
516   SNDRV_CHMAP_FLH,
517   SNDRV_CHMAP_FCH,
518   SNDRV_CHMAP_FRH,
519 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
520   SNDRV_CHMAP_TC,
521   SNDRV_CHMAP_TFL,
522   SNDRV_CHMAP_TFR,
523   SNDRV_CHMAP_TFC,
524 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
525   SNDRV_CHMAP_TRL,
526   SNDRV_CHMAP_TRR,
527   SNDRV_CHMAP_TRC,
528   SNDRV_CHMAP_TFLC,
529 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
530   SNDRV_CHMAP_TFRC,
531   SNDRV_CHMAP_TSL,
532   SNDRV_CHMAP_TSR,
533   SNDRV_CHMAP_LLFE,
534 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
535   SNDRV_CHMAP_RLFE,
536   SNDRV_CHMAP_BC,
537   SNDRV_CHMAP_BLC,
538   SNDRV_CHMAP_BRC,
539 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
540   SNDRV_CHMAP_LAST = SNDRV_CHMAP_BRC,
541 };
542 #define SNDRV_CHMAP_POSITION_MASK 0xffff
543 #define SNDRV_CHMAP_PHASE_INVERSE (0x01 << 16)
544 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
545 #define SNDRV_CHMAP_DRIVER_SPEC (0x02 << 16)
546 #define SNDRV_PCM_IOCTL_PVERSION _IOR('A', 0x00, int)
547 #define SNDRV_PCM_IOCTL_INFO _IOR('A', 0x01, struct snd_pcm_info)
548 #define SNDRV_PCM_IOCTL_TSTAMP _IOW('A', 0x02, int)
549 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
550 #define SNDRV_PCM_IOCTL_TTSTAMP _IOW('A', 0x03, int)
551 #define SNDRV_PCM_IOCTL_HW_REFINE _IOWR('A', 0x10, struct snd_pcm_hw_params)
552 #define SNDRV_PCM_IOCTL_HW_PARAMS _IOWR('A', 0x11, struct snd_pcm_hw_params)
553 #define SNDRV_PCM_IOCTL_HW_FREE _IO('A', 0x12)
554 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
555 #define SNDRV_PCM_IOCTL_SW_PARAMS _IOWR('A', 0x13, struct snd_pcm_sw_params)
556 #define SNDRV_PCM_IOCTL_STATUS _IOR('A', 0x20, struct snd_pcm_status)
557 #define SNDRV_PCM_IOCTL_DELAY _IOR('A', 0x21, snd_pcm_sframes_t)
558 #define SNDRV_PCM_IOCTL_HWSYNC _IO('A', 0x22)
559 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
560 #define SNDRV_PCM_IOCTL_SYNC_PTR _IOWR('A', 0x23, struct snd_pcm_sync_ptr)
561 #define SNDRV_PCM_IOCTL_STATUS_EXT _IOWR('A', 0x24, struct snd_pcm_status)
562 #define SNDRV_PCM_IOCTL_CHANNEL_INFO _IOR('A', 0x32, struct snd_pcm_channel_info)
563 #define SNDRV_PCM_IOCTL_PREPARE _IO('A', 0x40)
564 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
565 #define SNDRV_PCM_IOCTL_RESET _IO('A', 0x41)
566 #define SNDRV_PCM_IOCTL_START _IO('A', 0x42)
567 #define SNDRV_PCM_IOCTL_DROP _IO('A', 0x43)
568 #define SNDRV_PCM_IOCTL_DRAIN _IO('A', 0x44)
569 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
570 #define SNDRV_PCM_IOCTL_PAUSE _IOW('A', 0x45, int)
571 #define SNDRV_PCM_IOCTL_REWIND _IOW('A', 0x46, snd_pcm_uframes_t)
572 #define SNDRV_PCM_IOCTL_RESUME _IO('A', 0x47)
573 #define SNDRV_PCM_IOCTL_XRUN _IO('A', 0x48)
574 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
575 #define SNDRV_PCM_IOCTL_FORWARD _IOW('A', 0x49, snd_pcm_uframes_t)
576 #define SNDRV_PCM_IOCTL_WRITEI_FRAMES _IOW('A', 0x50, struct snd_xferi)
577 #define SNDRV_PCM_IOCTL_READI_FRAMES _IOR('A', 0x51, struct snd_xferi)
578 #define SNDRV_PCM_IOCTL_WRITEN_FRAMES _IOW('A', 0x52, struct snd_xfern)
579 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
580 #define SNDRV_PCM_IOCTL_READN_FRAMES _IOR('A', 0x53, struct snd_xfern)
581 #define SNDRV_PCM_IOCTL_LINK _IOW('A', 0x60, int)
582 #define SNDRV_PCM_IOCTL_UNLINK _IO('A', 0x61)
583 #define SNDRV_RAWMIDI_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 0)
584 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
585 enum {
586   SNDRV_RAWMIDI_STREAM_OUTPUT = 0,
587   SNDRV_RAWMIDI_STREAM_INPUT,
588   SNDRV_RAWMIDI_STREAM_LAST = SNDRV_RAWMIDI_STREAM_INPUT,
589 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
590 };
591 #define SNDRV_RAWMIDI_INFO_OUTPUT 0x00000001
592 #define SNDRV_RAWMIDI_INFO_INPUT 0x00000002
593 #define SNDRV_RAWMIDI_INFO_DUPLEX 0x00000004
594 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
595 struct snd_rawmidi_info {
596   unsigned int device;
597   unsigned int subdevice;
598   int stream;
599 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
600   int card;
601   unsigned int flags;
602   unsigned char id[64];
603   unsigned char name[80];
604 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
605   unsigned char subname[32];
606   unsigned int subdevices_count;
607   unsigned int subdevices_avail;
608   unsigned char reserved[64];
609 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
610 };
611 struct snd_rawmidi_params {
612   int stream;
613   size_t buffer_size;
614 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
615   size_t avail_min;
616   unsigned int no_active_sensing : 1;
617   unsigned char reserved[16];
618 };
619 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
620 struct snd_rawmidi_status {
621   int stream;
622   struct timespec tstamp;
623   size_t avail;
624 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
625   size_t xruns;
626   unsigned char reserved[16];
627 };
628 #define SNDRV_RAWMIDI_IOCTL_PVERSION _IOR('W', 0x00, int)
629 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
630 #define SNDRV_RAWMIDI_IOCTL_INFO _IOR('W', 0x01, struct snd_rawmidi_info)
631 #define SNDRV_RAWMIDI_IOCTL_PARAMS _IOWR('W', 0x10, struct snd_rawmidi_params)
632 #define SNDRV_RAWMIDI_IOCTL_STATUS _IOWR('W', 0x20, struct snd_rawmidi_status)
633 #define SNDRV_RAWMIDI_IOCTL_DROP _IOW('W', 0x30, int)
634 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
635 #define SNDRV_RAWMIDI_IOCTL_DRAIN _IOW('W', 0x31, int)
636 #define SNDRV_TIMER_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 6)
637 enum {
638   SNDRV_TIMER_CLASS_NONE = - 1,
639 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
640   SNDRV_TIMER_CLASS_SLAVE = 0,
641   SNDRV_TIMER_CLASS_GLOBAL,
642   SNDRV_TIMER_CLASS_CARD,
643   SNDRV_TIMER_CLASS_PCM,
644 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
645   SNDRV_TIMER_CLASS_LAST = SNDRV_TIMER_CLASS_PCM,
646 };
647 enum {
648   SNDRV_TIMER_SCLASS_NONE = 0,
649 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
650   SNDRV_TIMER_SCLASS_APPLICATION,
651   SNDRV_TIMER_SCLASS_SEQUENCER,
652   SNDRV_TIMER_SCLASS_OSS_SEQUENCER,
653   SNDRV_TIMER_SCLASS_LAST = SNDRV_TIMER_SCLASS_OSS_SEQUENCER,
654 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
655 };
656 #define SNDRV_TIMER_GLOBAL_SYSTEM 0
657 #define SNDRV_TIMER_GLOBAL_RTC 1
658 #define SNDRV_TIMER_GLOBAL_HPET 2
659 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
660 #define SNDRV_TIMER_GLOBAL_HRTIMER 3
661 #define SNDRV_TIMER_FLG_SLAVE (1 << 0)
662 struct snd_timer_id {
663   int dev_class;
664 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
665   int dev_sclass;
666   int card;
667   int device;
668   int subdevice;
669 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
670 };
671 struct snd_timer_ginfo {
672   struct snd_timer_id tid;
673   unsigned int flags;
674 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
675   int card;
676   unsigned char id[64];
677   unsigned char name[80];
678   unsigned long reserved0;
679 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
680   unsigned long resolution;
681   unsigned long resolution_min;
682   unsigned long resolution_max;
683   unsigned int clients;
684 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
685   unsigned char reserved[32];
686 };
687 struct snd_timer_gparams {
688   struct snd_timer_id tid;
689 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
690   unsigned long period_num;
691   unsigned long period_den;
692   unsigned char reserved[32];
693 };
694 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
695 struct snd_timer_gstatus {
696   struct snd_timer_id tid;
697   unsigned long resolution;
698   unsigned long resolution_num;
699 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
700   unsigned long resolution_den;
701   unsigned char reserved[32];
702 };
703 struct snd_timer_select {
704 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
705   struct snd_timer_id id;
706   unsigned char reserved[32];
707 };
708 struct snd_timer_info {
709 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
710   unsigned int flags;
711   int card;
712   unsigned char id[64];
713   unsigned char name[80];
714 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
715   unsigned long reserved0;
716   unsigned long resolution;
717   unsigned char reserved[64];
718 };
719 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
720 #define SNDRV_TIMER_PSFLG_AUTO (1 << 0)
721 #define SNDRV_TIMER_PSFLG_EXCLUSIVE (1 << 1)
722 #define SNDRV_TIMER_PSFLG_EARLY_EVENT (1 << 2)
723 struct snd_timer_params {
724 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
725   unsigned int flags;
726   unsigned int ticks;
727   unsigned int queue_size;
728   unsigned int reserved0;
729 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
730   unsigned int filter;
731   unsigned char reserved[60];
732 };
733 struct snd_timer_status {
734 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
735   struct timespec tstamp;
736   unsigned int resolution;
737   unsigned int lost;
738   unsigned int overrun;
739 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
740   unsigned int queue;
741   unsigned char reserved[64];
742 };
743 #define SNDRV_TIMER_IOCTL_PVERSION _IOR('T', 0x00, int)
744 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
745 #define SNDRV_TIMER_IOCTL_NEXT_DEVICE _IOWR('T', 0x01, struct snd_timer_id)
746 #define SNDRV_TIMER_IOCTL_TREAD _IOW('T', 0x02, int)
747 #define SNDRV_TIMER_IOCTL_GINFO _IOWR('T', 0x03, struct snd_timer_ginfo)
748 #define SNDRV_TIMER_IOCTL_GPARAMS _IOW('T', 0x04, struct snd_timer_gparams)
749 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
750 #define SNDRV_TIMER_IOCTL_GSTATUS _IOWR('T', 0x05, struct snd_timer_gstatus)
751 #define SNDRV_TIMER_IOCTL_SELECT _IOW('T', 0x10, struct snd_timer_select)
752 #define SNDRV_TIMER_IOCTL_INFO _IOR('T', 0x11, struct snd_timer_info)
753 #define SNDRV_TIMER_IOCTL_PARAMS _IOW('T', 0x12, struct snd_timer_params)
754 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
755 #define SNDRV_TIMER_IOCTL_STATUS _IOR('T', 0x14, struct snd_timer_status)
756 #define SNDRV_TIMER_IOCTL_START _IO('T', 0xa0)
757 #define SNDRV_TIMER_IOCTL_STOP _IO('T', 0xa1)
758 #define SNDRV_TIMER_IOCTL_CONTINUE _IO('T', 0xa2)
759 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
760 #define SNDRV_TIMER_IOCTL_PAUSE _IO('T', 0xa3)
761 struct snd_timer_read {
762   unsigned int resolution;
763   unsigned int ticks;
764 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
765 };
766 enum {
767   SNDRV_TIMER_EVENT_RESOLUTION = 0,
768   SNDRV_TIMER_EVENT_TICK,
769 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
770   SNDRV_TIMER_EVENT_START,
771   SNDRV_TIMER_EVENT_STOP,
772   SNDRV_TIMER_EVENT_CONTINUE,
773   SNDRV_TIMER_EVENT_PAUSE,
774 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
775   SNDRV_TIMER_EVENT_EARLY,
776   SNDRV_TIMER_EVENT_SUSPEND,
777   SNDRV_TIMER_EVENT_RESUME,
778   SNDRV_TIMER_EVENT_MSTART = SNDRV_TIMER_EVENT_START + 10,
779 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
780   SNDRV_TIMER_EVENT_MSTOP = SNDRV_TIMER_EVENT_STOP + 10,
781   SNDRV_TIMER_EVENT_MCONTINUE = SNDRV_TIMER_EVENT_CONTINUE + 10,
782   SNDRV_TIMER_EVENT_MPAUSE = SNDRV_TIMER_EVENT_PAUSE + 10,
783   SNDRV_TIMER_EVENT_MSUSPEND = SNDRV_TIMER_EVENT_SUSPEND + 10,
784 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
785   SNDRV_TIMER_EVENT_MRESUME = SNDRV_TIMER_EVENT_RESUME + 10,
786 };
787 struct snd_timer_tread {
788   int event;
789 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
790   struct timespec tstamp;
791   unsigned int val;
792 };
793 #define SNDRV_CTL_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 7)
794 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
795 struct snd_ctl_card_info {
796   int card;
797   int pad;
798   unsigned char id[16];
799 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
800   unsigned char driver[16];
801   unsigned char name[32];
802   unsigned char longname[80];
803   unsigned char reserved_[16];
804 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
805   unsigned char mixername[80];
806   unsigned char components[128];
807 };
808 typedef int __bitwise snd_ctl_elem_type_t;
809 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
810 #define SNDRV_CTL_ELEM_TYPE_NONE ((snd_ctl_elem_type_t) 0)
811 #define SNDRV_CTL_ELEM_TYPE_BOOLEAN ((snd_ctl_elem_type_t) 1)
812 #define SNDRV_CTL_ELEM_TYPE_INTEGER ((snd_ctl_elem_type_t) 2)
813 #define SNDRV_CTL_ELEM_TYPE_ENUMERATED ((snd_ctl_elem_type_t) 3)
814 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
815 #define SNDRV_CTL_ELEM_TYPE_BYTES ((snd_ctl_elem_type_t) 4)
816 #define SNDRV_CTL_ELEM_TYPE_IEC958 ((snd_ctl_elem_type_t) 5)
817 #define SNDRV_CTL_ELEM_TYPE_INTEGER64 ((snd_ctl_elem_type_t) 6)
818 #define SNDRV_CTL_ELEM_TYPE_LAST SNDRV_CTL_ELEM_TYPE_INTEGER64
819 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
820 typedef int __bitwise snd_ctl_elem_iface_t;
821 #define SNDRV_CTL_ELEM_IFACE_CARD ((snd_ctl_elem_iface_t) 0)
822 #define SNDRV_CTL_ELEM_IFACE_HWDEP ((snd_ctl_elem_iface_t) 1)
823 #define SNDRV_CTL_ELEM_IFACE_MIXER ((snd_ctl_elem_iface_t) 2)
824 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
825 #define SNDRV_CTL_ELEM_IFACE_PCM ((snd_ctl_elem_iface_t) 3)
826 #define SNDRV_CTL_ELEM_IFACE_RAWMIDI ((snd_ctl_elem_iface_t) 4)
827 #define SNDRV_CTL_ELEM_IFACE_TIMER ((snd_ctl_elem_iface_t) 5)
828 #define SNDRV_CTL_ELEM_IFACE_SEQUENCER ((snd_ctl_elem_iface_t) 6)
829 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
830 #define SNDRV_CTL_ELEM_IFACE_LAST SNDRV_CTL_ELEM_IFACE_SEQUENCER
831 #define SNDRV_CTL_ELEM_ACCESS_READ (1 << 0)
832 #define SNDRV_CTL_ELEM_ACCESS_WRITE (1 << 1)
833 #define SNDRV_CTL_ELEM_ACCESS_READWRITE (SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_WRITE)
834 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
835 #define SNDRV_CTL_ELEM_ACCESS_VOLATILE (1 << 2)
836 #define SNDRV_CTL_ELEM_ACCESS_TIMESTAMP (1 << 3)
837 #define SNDRV_CTL_ELEM_ACCESS_TLV_READ (1 << 4)
838 #define SNDRV_CTL_ELEM_ACCESS_TLV_WRITE (1 << 5)
839 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
840 #define SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE (SNDRV_CTL_ELEM_ACCESS_TLV_READ | SNDRV_CTL_ELEM_ACCESS_TLV_WRITE)
841 #define SNDRV_CTL_ELEM_ACCESS_TLV_COMMAND (1 << 6)
842 #define SNDRV_CTL_ELEM_ACCESS_INACTIVE (1 << 8)
843 #define SNDRV_CTL_ELEM_ACCESS_LOCK (1 << 9)
844 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
845 #define SNDRV_CTL_ELEM_ACCESS_OWNER (1 << 10)
846 #define SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK (1 << 28)
847 #define SNDRV_CTL_ELEM_ACCESS_USER (1 << 29)
848 #define SNDRV_CTL_POWER_D0 0x0000
849 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
850 #define SNDRV_CTL_POWER_D1 0x0100
851 #define SNDRV_CTL_POWER_D2 0x0200
852 #define SNDRV_CTL_POWER_D3 0x0300
853 #define SNDRV_CTL_POWER_D3hot (SNDRV_CTL_POWER_D3 | 0x0000)
854 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
855 #define SNDRV_CTL_POWER_D3cold (SNDRV_CTL_POWER_D3 | 0x0001)
856 #define SNDRV_CTL_ELEM_ID_NAME_MAXLEN 44
857 struct snd_ctl_elem_id {
858   unsigned int numid;
859 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
860   snd_ctl_elem_iface_t iface;
861   unsigned int device;
862   unsigned int subdevice;
863   unsigned char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
864 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
865   unsigned int index;
866 };
867 struct snd_ctl_elem_list {
868   unsigned int offset;
869 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
870   unsigned int space;
871   unsigned int used;
872   unsigned int count;
873   struct snd_ctl_elem_id * pids;
874 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
875   unsigned char reserved[50];
876 };
877 struct snd_ctl_elem_info {
878   struct snd_ctl_elem_id id;
879 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
880   snd_ctl_elem_type_t type;
881   unsigned int access;
882   unsigned int count;
883   __kernel_pid_t owner;
884 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
885   union {
886     struct {
887       long min;
888       long max;
889 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
890       long step;
891     } integer;
892     struct {
893       long long min;
894 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
895       long long max;
896       long long step;
897     } integer64;
898     struct {
899 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
900       unsigned int items;
901       unsigned int item;
902       char name[64];
903       __u64 names_ptr;
904 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
905       unsigned int names_length;
906     } enumerated;
907     unsigned char reserved[128];
908   } value;
909 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
910   union {
911     unsigned short d[4];
912     unsigned short * d_ptr;
913   } dimen;
914 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
915   unsigned char reserved[64 - 4 * sizeof(unsigned short)];
916 };
917 struct snd_ctl_elem_value {
918   struct snd_ctl_elem_id id;
919 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
920   unsigned int indirect : 1;
921   union {
922     union {
923       long value[128];
924 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
925       long * value_ptr;
926     } integer;
927     union {
928       long long value[64];
929 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
930       long long * value_ptr;
931     } integer64;
932     union {
933       unsigned int item[128];
934 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
935       unsigned int * item_ptr;
936     } enumerated;
937     union {
938       unsigned char data[512];
939 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
940       unsigned char * data_ptr;
941     } bytes;
942     struct snd_aes_iec958 iec958;
943   } value;
944 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
945   struct timespec tstamp;
946   unsigned char reserved[128 - sizeof(struct timespec)];
947 };
948 struct snd_ctl_tlv {
949 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
950   unsigned int numid;
951   unsigned int length;
952   unsigned int tlv[0];
953 };
954 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
955 #define SNDRV_CTL_IOCTL_PVERSION _IOR('U', 0x00, int)
956 #define SNDRV_CTL_IOCTL_CARD_INFO _IOR('U', 0x01, struct snd_ctl_card_info)
957 #define SNDRV_CTL_IOCTL_ELEM_LIST _IOWR('U', 0x10, struct snd_ctl_elem_list)
958 #define SNDRV_CTL_IOCTL_ELEM_INFO _IOWR('U', 0x11, struct snd_ctl_elem_info)
959 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
960 #define SNDRV_CTL_IOCTL_ELEM_READ _IOWR('U', 0x12, struct snd_ctl_elem_value)
961 #define SNDRV_CTL_IOCTL_ELEM_WRITE _IOWR('U', 0x13, struct snd_ctl_elem_value)
962 #define SNDRV_CTL_IOCTL_ELEM_LOCK _IOW('U', 0x14, struct snd_ctl_elem_id)
963 #define SNDRV_CTL_IOCTL_ELEM_UNLOCK _IOW('U', 0x15, struct snd_ctl_elem_id)
964 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
965 #define SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS _IOWR('U', 0x16, int)
966 #define SNDRV_CTL_IOCTL_ELEM_ADD _IOWR('U', 0x17, struct snd_ctl_elem_info)
967 #define SNDRV_CTL_IOCTL_ELEM_REPLACE _IOWR('U', 0x18, struct snd_ctl_elem_info)
968 #define SNDRV_CTL_IOCTL_ELEM_REMOVE _IOWR('U', 0x19, struct snd_ctl_elem_id)
969 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
970 #define SNDRV_CTL_IOCTL_TLV_READ _IOWR('U', 0x1a, struct snd_ctl_tlv)
971 #define SNDRV_CTL_IOCTL_TLV_WRITE _IOWR('U', 0x1b, struct snd_ctl_tlv)
972 #define SNDRV_CTL_IOCTL_TLV_COMMAND _IOWR('U', 0x1c, struct snd_ctl_tlv)
973 #define SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE _IOWR('U', 0x20, int)
974 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
975 #define SNDRV_CTL_IOCTL_HWDEP_INFO _IOR('U', 0x21, struct snd_hwdep_info)
976 #define SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE _IOR('U', 0x30, int)
977 #define SNDRV_CTL_IOCTL_PCM_INFO _IOWR('U', 0x31, struct snd_pcm_info)
978 #define SNDRV_CTL_IOCTL_PCM_PREFER_SUBDEVICE _IOW('U', 0x32, int)
979 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
980 #define SNDRV_CTL_IOCTL_RAWMIDI_NEXT_DEVICE _IOWR('U', 0x40, int)
981 #define SNDRV_CTL_IOCTL_RAWMIDI_INFO _IOWR('U', 0x41, struct snd_rawmidi_info)
982 #define SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE _IOW('U', 0x42, int)
983 #define SNDRV_CTL_IOCTL_POWER _IOWR('U', 0xd0, int)
984 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
985 #define SNDRV_CTL_IOCTL_POWER_STATE _IOR('U', 0xd1, int)
986 enum sndrv_ctl_event_type {
987   SNDRV_CTL_EVENT_ELEM = 0,
988   SNDRV_CTL_EVENT_LAST = SNDRV_CTL_EVENT_ELEM,
989 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
990 };
991 #define SNDRV_CTL_EVENT_MASK_VALUE (1 << 0)
992 #define SNDRV_CTL_EVENT_MASK_INFO (1 << 1)
993 #define SNDRV_CTL_EVENT_MASK_ADD (1 << 2)
994 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
995 #define SNDRV_CTL_EVENT_MASK_TLV (1 << 3)
996 #define SNDRV_CTL_EVENT_MASK_REMOVE (~0U)
997 struct snd_ctl_event {
998   int type;
999 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1000   union {
1001     struct {
1002       unsigned int mask;
1003       struct snd_ctl_elem_id id;
1004 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1005     } elem;
1006     unsigned char data8[60];
1007   } data;
1008 };
1009 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1010 #define SNDRV_CTL_NAME_NONE ""
1011 #define SNDRV_CTL_NAME_PLAYBACK "Playback "
1012 #define SNDRV_CTL_NAME_CAPTURE "Capture "
1013 #define SNDRV_CTL_NAME_IEC958_NONE ""
1014 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1015 #define SNDRV_CTL_NAME_IEC958_SWITCH "Switch"
1016 #define SNDRV_CTL_NAME_IEC958_VOLUME "Volume"
1017 #define SNDRV_CTL_NAME_IEC958_DEFAULT "Default"
1018 #define SNDRV_CTL_NAME_IEC958_MASK "Mask"
1019 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1020 #define SNDRV_CTL_NAME_IEC958_CON_MASK "Con Mask"
1021 #define SNDRV_CTL_NAME_IEC958_PRO_MASK "Pro Mask"
1022 #define SNDRV_CTL_NAME_IEC958_PCM_STREAM "PCM Stream"
1023 #define SNDRV_CTL_NAME_IEC958(expl,direction,what) "IEC958 " expl SNDRV_CTL_NAME_ ##direction SNDRV_CTL_NAME_IEC958_ ##what
1024 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
1025 #endif
1026 
1027