blob: 9d187aad4b954195edf4c0923dc398a57b6bcd92 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 _UAPI__SOUND_ASOUND_H
20#define _UAPI__SOUND_ASOUND_H
21#include <linux/types.h>
22#define SNDRV_PROTOCOL_VERSION(major, minor, subminor) (((major)<<16)|((minor)<<8)|(subminor))
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define SNDRV_PROTOCOL_MAJOR(version) (((version)>>16)&0xffff)
25#define SNDRV_PROTOCOL_MINOR(version) (((version)>>8)&0xff)
26#define SNDRV_PROTOCOL_MICRO(version) ((version)&0xff)
27#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)))
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29struct snd_aes_iec958 {
30 unsigned char status[24];
31 unsigned char subcode[147];
32 unsigned char pad;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 unsigned char dig_subframe[4];
35};
36struct snd_cea_861_aud_if {
37 unsigned char db1_ct_cc;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 unsigned char db2_sf_ss;
40 unsigned char db3;
41 unsigned char db4_ca;
42 unsigned char db5_dminh_lsv;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44};
45#define SNDRV_HWDEP_VERSION SNDRV_PROTOCOL_VERSION(1, 0, 1)
46enum {
47 SNDRV_HWDEP_IFACE_OPL2 = 0,
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 SNDRV_HWDEP_IFACE_OPL3,
50 SNDRV_HWDEP_IFACE_OPL4,
51 SNDRV_HWDEP_IFACE_SB16CSP,
52 SNDRV_HWDEP_IFACE_EMU10K1,
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 SNDRV_HWDEP_IFACE_YSS225,
55 SNDRV_HWDEP_IFACE_ICS2115,
56 SNDRV_HWDEP_IFACE_SSCAPE,
57 SNDRV_HWDEP_IFACE_VX,
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 SNDRV_HWDEP_IFACE_MIXART,
60 SNDRV_HWDEP_IFACE_USX2Y,
61 SNDRV_HWDEP_IFACE_EMUX_WAVETABLE,
62 SNDRV_HWDEP_IFACE_BLUETOOTH,
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 SNDRV_HWDEP_IFACE_USX2Y_PCM,
65 SNDRV_HWDEP_IFACE_PCXHR,
66 SNDRV_HWDEP_IFACE_SB_RC,
67 SNDRV_HWDEP_IFACE_HDA,
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 SNDRV_HWDEP_IFACE_USB_STREAM,
Christopher Ferris38062f92014-07-09 15:33:25 -070070 SNDRV_HWDEP_IFACE_FW_DICE,
71 SNDRV_HWDEP_IFACE_LAST = SNDRV_HWDEP_IFACE_FW_DICE
Ben Cheng655a7c02013-10-16 16:09:24 -070072};
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070074struct snd_hwdep_info {
Ben Cheng655a7c02013-10-16 16:09:24 -070075 unsigned int device;
76 int card;
77 unsigned char id[64];
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070079 unsigned char name[80];
Ben Cheng655a7c02013-10-16 16:09:24 -070080 int iface;
81 unsigned char reserved[64];
82};
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070084struct snd_hwdep_dsp_status {
Ben Cheng655a7c02013-10-16 16:09:24 -070085 unsigned int version;
86 unsigned char id[32];
87 unsigned int num_dsps;
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070089 unsigned int dsp_loaded;
Ben Cheng655a7c02013-10-16 16:09:24 -070090 unsigned int chip_ready;
91 unsigned char reserved[16];
92};
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070094struct snd_hwdep_dsp_image {
Ben Cheng655a7c02013-10-16 16:09:24 -070095 unsigned int index;
96 unsigned char name[64];
97 unsigned char __user *image;
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -070099 size_t length;
Ben Cheng655a7c02013-10-16 16:09:24 -0700100 unsigned long driver_data;
101};
102#define SNDRV_HWDEP_IOCTL_PVERSION _IOR ('H', 0x00, int)
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700104#define SNDRV_HWDEP_IOCTL_INFO _IOR ('H', 0x01, struct snd_hwdep_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700105#define SNDRV_HWDEP_IOCTL_DSP_STATUS _IOR('H', 0x02, struct snd_hwdep_dsp_status)
106#define SNDRV_HWDEP_IOCTL_DSP_LOAD _IOW('H', 0x03, struct snd_hwdep_dsp_image)
107#define SNDRV_PCM_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 11)
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700109typedef unsigned long snd_pcm_uframes_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700110typedef signed long snd_pcm_sframes_t;
111enum {
112 SNDRV_PCM_CLASS_GENERIC = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700114 SNDRV_PCM_CLASS_MULTI,
Ben Cheng655a7c02013-10-16 16:09:24 -0700115 SNDRV_PCM_CLASS_MODEM,
116 SNDRV_PCM_CLASS_DIGITIZER,
117 SNDRV_PCM_CLASS_LAST = SNDRV_PCM_CLASS_DIGITIZER,
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700119};
Ben Cheng655a7c02013-10-16 16:09:24 -0700120enum {
121 SNDRV_PCM_SUBCLASS_GENERIC_MIX = 0,
122 SNDRV_PCM_SUBCLASS_MULTI_MIX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700124 SNDRV_PCM_SUBCLASS_LAST = SNDRV_PCM_SUBCLASS_MULTI_MIX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700125};
126enum {
127 SNDRV_PCM_STREAM_PLAYBACK = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700129 SNDRV_PCM_STREAM_CAPTURE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700130 SNDRV_PCM_STREAM_LAST = SNDRV_PCM_STREAM_CAPTURE,
131};
132typedef int __bitwise snd_pcm_access_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700134#define SNDRV_PCM_ACCESS_MMAP_INTERLEAVED ((__force snd_pcm_access_t) 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700135#define SNDRV_PCM_ACCESS_MMAP_NONINTERLEAVED ((__force snd_pcm_access_t) 1)
136#define SNDRV_PCM_ACCESS_MMAP_COMPLEX ((__force snd_pcm_access_t) 2)
137#define SNDRV_PCM_ACCESS_RW_INTERLEAVED ((__force snd_pcm_access_t) 3)
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700139#define SNDRV_PCM_ACCESS_RW_NONINTERLEAVED ((__force snd_pcm_access_t) 4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700140#define SNDRV_PCM_ACCESS_LAST SNDRV_PCM_ACCESS_RW_NONINTERLEAVED
141typedef int __bitwise snd_pcm_format_t;
142#define SNDRV_PCM_FORMAT_S8 ((__force snd_pcm_format_t) 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700144#define SNDRV_PCM_FORMAT_U8 ((__force snd_pcm_format_t) 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700145#define SNDRV_PCM_FORMAT_S16_LE ((__force snd_pcm_format_t) 2)
146#define SNDRV_PCM_FORMAT_S16_BE ((__force snd_pcm_format_t) 3)
147#define SNDRV_PCM_FORMAT_U16_LE ((__force snd_pcm_format_t) 4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700149#define SNDRV_PCM_FORMAT_U16_BE ((__force snd_pcm_format_t) 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700150#define SNDRV_PCM_FORMAT_S24_LE ((__force snd_pcm_format_t) 6)
151#define SNDRV_PCM_FORMAT_S24_BE ((__force snd_pcm_format_t) 7)
152#define SNDRV_PCM_FORMAT_U24_LE ((__force snd_pcm_format_t) 8)
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700154#define SNDRV_PCM_FORMAT_U24_BE ((__force snd_pcm_format_t) 9)
Ben Cheng655a7c02013-10-16 16:09:24 -0700155#define SNDRV_PCM_FORMAT_S32_LE ((__force snd_pcm_format_t) 10)
156#define SNDRV_PCM_FORMAT_S32_BE ((__force snd_pcm_format_t) 11)
157#define SNDRV_PCM_FORMAT_U32_LE ((__force snd_pcm_format_t) 12)
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700159#define SNDRV_PCM_FORMAT_U32_BE ((__force snd_pcm_format_t) 13)
Ben Cheng655a7c02013-10-16 16:09:24 -0700160#define SNDRV_PCM_FORMAT_FLOAT_LE ((__force snd_pcm_format_t) 14)
161#define SNDRV_PCM_FORMAT_FLOAT_BE ((__force snd_pcm_format_t) 15)
162#define SNDRV_PCM_FORMAT_FLOAT64_LE ((__force snd_pcm_format_t) 16)
Ben Cheng655a7c02013-10-16 16:09:24 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700164#define SNDRV_PCM_FORMAT_FLOAT64_BE ((__force snd_pcm_format_t) 17)
Ben Cheng655a7c02013-10-16 16:09:24 -0700165#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE ((__force snd_pcm_format_t) 18)
166#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME_BE ((__force snd_pcm_format_t) 19)
167#define SNDRV_PCM_FORMAT_MU_LAW ((__force snd_pcm_format_t) 20)
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700169#define SNDRV_PCM_FORMAT_A_LAW ((__force snd_pcm_format_t) 21)
Ben Cheng655a7c02013-10-16 16:09:24 -0700170#define SNDRV_PCM_FORMAT_IMA_ADPCM ((__force snd_pcm_format_t) 22)
171#define SNDRV_PCM_FORMAT_MPEG ((__force snd_pcm_format_t) 23)
172#define SNDRV_PCM_FORMAT_GSM ((__force snd_pcm_format_t) 24)
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700174#define SNDRV_PCM_FORMAT_SPECIAL ((__force snd_pcm_format_t) 31)
Ben Cheng655a7c02013-10-16 16:09:24 -0700175#define SNDRV_PCM_FORMAT_S24_3LE ((__force snd_pcm_format_t) 32)
176#define SNDRV_PCM_FORMAT_S24_3BE ((__force snd_pcm_format_t) 33)
177#define SNDRV_PCM_FORMAT_U24_3LE ((__force snd_pcm_format_t) 34)
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700179#define SNDRV_PCM_FORMAT_U24_3BE ((__force snd_pcm_format_t) 35)
Ben Cheng655a7c02013-10-16 16:09:24 -0700180#define SNDRV_PCM_FORMAT_S20_3LE ((__force snd_pcm_format_t) 36)
181#define SNDRV_PCM_FORMAT_S20_3BE ((__force snd_pcm_format_t) 37)
182#define SNDRV_PCM_FORMAT_U20_3LE ((__force snd_pcm_format_t) 38)
Ben Cheng655a7c02013-10-16 16:09:24 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700184#define SNDRV_PCM_FORMAT_U20_3BE ((__force snd_pcm_format_t) 39)
Ben Cheng655a7c02013-10-16 16:09:24 -0700185#define SNDRV_PCM_FORMAT_S18_3LE ((__force snd_pcm_format_t) 40)
186#define SNDRV_PCM_FORMAT_S18_3BE ((__force snd_pcm_format_t) 41)
187#define SNDRV_PCM_FORMAT_U18_3LE ((__force snd_pcm_format_t) 42)
Ben Cheng655a7c02013-10-16 16:09:24 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700189#define SNDRV_PCM_FORMAT_U18_3BE ((__force snd_pcm_format_t) 43)
Ben Cheng655a7c02013-10-16 16:09:24 -0700190#define SNDRV_PCM_FORMAT_G723_24 ((__force snd_pcm_format_t) 44)
191#define SNDRV_PCM_FORMAT_G723_24_1B ((__force snd_pcm_format_t) 45)
192#define SNDRV_PCM_FORMAT_G723_40 ((__force snd_pcm_format_t) 46)
Ben Cheng655a7c02013-10-16 16:09:24 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700194#define SNDRV_PCM_FORMAT_G723_40_1B ((__force snd_pcm_format_t) 47)
Ben Cheng655a7c02013-10-16 16:09:24 -0700195#define SNDRV_PCM_FORMAT_DSD_U8 ((__force snd_pcm_format_t) 48)
196#define SNDRV_PCM_FORMAT_DSD_U16_LE ((__force snd_pcm_format_t) 49)
197#define SNDRV_PCM_FORMAT_LAST SNDRV_PCM_FORMAT_DSD_U16_LE
Ben Cheng655a7c02013-10-16 16:09:24 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700199#ifdef SNDRV_LITTLE_ENDIAN
Ben Cheng655a7c02013-10-16 16:09:24 -0700200#define SNDRV_PCM_FORMAT_S16 SNDRV_PCM_FORMAT_S16_LE
201#define SNDRV_PCM_FORMAT_U16 SNDRV_PCM_FORMAT_U16_LE
202#define SNDRV_PCM_FORMAT_S24 SNDRV_PCM_FORMAT_S24_LE
Ben Cheng655a7c02013-10-16 16:09:24 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700204#define SNDRV_PCM_FORMAT_U24 SNDRV_PCM_FORMAT_U24_LE
Ben Cheng655a7c02013-10-16 16:09:24 -0700205#define SNDRV_PCM_FORMAT_S32 SNDRV_PCM_FORMAT_S32_LE
206#define SNDRV_PCM_FORMAT_U32 SNDRV_PCM_FORMAT_U32_LE
207#define SNDRV_PCM_FORMAT_FLOAT SNDRV_PCM_FORMAT_FLOAT_LE
Ben Cheng655a7c02013-10-16 16:09:24 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700209#define SNDRV_PCM_FORMAT_FLOAT64 SNDRV_PCM_FORMAT_FLOAT64_LE
Ben Cheng655a7c02013-10-16 16:09:24 -0700210#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE
211#endif
212#ifdef SNDRV_BIG_ENDIAN
Ben Cheng655a7c02013-10-16 16:09:24 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700214#define SNDRV_PCM_FORMAT_S16 SNDRV_PCM_FORMAT_S16_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700215#define SNDRV_PCM_FORMAT_U16 SNDRV_PCM_FORMAT_U16_BE
216#define SNDRV_PCM_FORMAT_S24 SNDRV_PCM_FORMAT_S24_BE
217#define SNDRV_PCM_FORMAT_U24 SNDRV_PCM_FORMAT_U24_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700219#define SNDRV_PCM_FORMAT_S32 SNDRV_PCM_FORMAT_S32_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700220#define SNDRV_PCM_FORMAT_U32 SNDRV_PCM_FORMAT_U32_BE
221#define SNDRV_PCM_FORMAT_FLOAT SNDRV_PCM_FORMAT_FLOAT_BE
222#define SNDRV_PCM_FORMAT_FLOAT64 SNDRV_PCM_FORMAT_FLOAT64_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700224#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME SNDRV_PCM_FORMAT_IEC958_SUBFRAME_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700225#endif
226typedef int __bitwise snd_pcm_subformat_t;
227#define SNDRV_PCM_SUBFORMAT_STD ((__force snd_pcm_subformat_t) 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700229#define SNDRV_PCM_SUBFORMAT_LAST SNDRV_PCM_SUBFORMAT_STD
Ben Cheng655a7c02013-10-16 16:09:24 -0700230#define SNDRV_PCM_INFO_MMAP 0x00000001
231#define SNDRV_PCM_INFO_MMAP_VALID 0x00000002
232#define SNDRV_PCM_INFO_DOUBLE 0x00000004
Ben Cheng655a7c02013-10-16 16:09:24 -0700233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700234#define SNDRV_PCM_INFO_BATCH 0x00000010
Ben Cheng655a7c02013-10-16 16:09:24 -0700235#define SNDRV_PCM_INFO_INTERLEAVED 0x00000100
236#define SNDRV_PCM_INFO_NONINTERLEAVED 0x00000200
237#define SNDRV_PCM_INFO_COMPLEX 0x00000400
Ben Cheng655a7c02013-10-16 16:09:24 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700239#define SNDRV_PCM_INFO_BLOCK_TRANSFER 0x00010000
Ben Cheng655a7c02013-10-16 16:09:24 -0700240#define SNDRV_PCM_INFO_OVERRANGE 0x00020000
241#define SNDRV_PCM_INFO_RESUME 0x00040000
242#define SNDRV_PCM_INFO_PAUSE 0x00080000
Ben Cheng655a7c02013-10-16 16:09:24 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700244#define SNDRV_PCM_INFO_HALF_DUPLEX 0x00100000
Ben Cheng655a7c02013-10-16 16:09:24 -0700245#define SNDRV_PCM_INFO_JOINT_DUPLEX 0x00200000
246#define SNDRV_PCM_INFO_SYNC_START 0x00400000
247#define SNDRV_PCM_INFO_NO_PERIOD_WAKEUP 0x00800000
Ben Cheng655a7c02013-10-16 16:09:24 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700249#define SNDRV_PCM_INFO_HAS_WALL_CLOCK 0x01000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700250#define SNDRV_PCM_INFO_FIFO_IN_FRAMES 0x80000000
251typedef int __bitwise snd_pcm_state_t;
252#define SNDRV_PCM_STATE_OPEN ((__force snd_pcm_state_t) 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700254#define SNDRV_PCM_STATE_SETUP ((__force snd_pcm_state_t) 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700255#define SNDRV_PCM_STATE_PREPARED ((__force snd_pcm_state_t) 2)
256#define SNDRV_PCM_STATE_RUNNING ((__force snd_pcm_state_t) 3)
257#define SNDRV_PCM_STATE_XRUN ((__force snd_pcm_state_t) 4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700259#define SNDRV_PCM_STATE_DRAINING ((__force snd_pcm_state_t) 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700260#define SNDRV_PCM_STATE_PAUSED ((__force snd_pcm_state_t) 6)
261#define SNDRV_PCM_STATE_SUSPENDED ((__force snd_pcm_state_t) 7)
262#define SNDRV_PCM_STATE_DISCONNECTED ((__force snd_pcm_state_t) 8)
Ben Cheng655a7c02013-10-16 16:09:24 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700264#define SNDRV_PCM_STATE_LAST SNDRV_PCM_STATE_DISCONNECTED
Ben Cheng655a7c02013-10-16 16:09:24 -0700265enum {
266 SNDRV_PCM_MMAP_OFFSET_DATA = 0x00000000,
267 SNDRV_PCM_MMAP_OFFSET_STATUS = 0x80000000,
Ben Cheng655a7c02013-10-16 16:09:24 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700269 SNDRV_PCM_MMAP_OFFSET_CONTROL = 0x81000000,
Ben Cheng655a7c02013-10-16 16:09:24 -0700270};
271union snd_pcm_sync_id {
272 unsigned char id[16];
Ben Cheng655a7c02013-10-16 16:09:24 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700274 unsigned short id16[8];
Ben Cheng655a7c02013-10-16 16:09:24 -0700275 unsigned int id32[4];
276};
277struct snd_pcm_info {
Ben Cheng655a7c02013-10-16 16:09:24 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700279 unsigned int device;
Ben Cheng655a7c02013-10-16 16:09:24 -0700280 unsigned int subdevice;
281 int stream;
282 int card;
Ben Cheng655a7c02013-10-16 16:09:24 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700284 unsigned char id[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700285 unsigned char name[80];
286 unsigned char subname[32];
287 int dev_class;
Ben Cheng655a7c02013-10-16 16:09:24 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700289 int dev_subclass;
Ben Cheng655a7c02013-10-16 16:09:24 -0700290 unsigned int subdevices_count;
291 unsigned int subdevices_avail;
292 union snd_pcm_sync_id sync;
Ben Cheng655a7c02013-10-16 16:09:24 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700294 unsigned char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700295};
296typedef int snd_pcm_hw_param_t;
297#define SNDRV_PCM_HW_PARAM_ACCESS 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700299#define SNDRV_PCM_HW_PARAM_FORMAT 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700300#define SNDRV_PCM_HW_PARAM_SUBFORMAT 2
301#define SNDRV_PCM_HW_PARAM_FIRST_MASK SNDRV_PCM_HW_PARAM_ACCESS
302#define SNDRV_PCM_HW_PARAM_LAST_MASK SNDRV_PCM_HW_PARAM_SUBFORMAT
Ben Cheng655a7c02013-10-16 16:09:24 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700304#define SNDRV_PCM_HW_PARAM_SAMPLE_BITS 8
Ben Cheng655a7c02013-10-16 16:09:24 -0700305#define SNDRV_PCM_HW_PARAM_FRAME_BITS 9
306#define SNDRV_PCM_HW_PARAM_CHANNELS 10
307#define SNDRV_PCM_HW_PARAM_RATE 11
Ben Cheng655a7c02013-10-16 16:09:24 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700309#define SNDRV_PCM_HW_PARAM_PERIOD_TIME 12
Ben Cheng655a7c02013-10-16 16:09:24 -0700310#define SNDRV_PCM_HW_PARAM_PERIOD_SIZE 13
311#define SNDRV_PCM_HW_PARAM_PERIOD_BYTES 14
312#define SNDRV_PCM_HW_PARAM_PERIODS 15
Ben Cheng655a7c02013-10-16 16:09:24 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700314#define SNDRV_PCM_HW_PARAM_BUFFER_TIME 16
Ben Cheng655a7c02013-10-16 16:09:24 -0700315#define SNDRV_PCM_HW_PARAM_BUFFER_SIZE 17
316#define SNDRV_PCM_HW_PARAM_BUFFER_BYTES 18
317#define SNDRV_PCM_HW_PARAM_TICK_TIME 19
Ben Cheng655a7c02013-10-16 16:09:24 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700319#define SNDRV_PCM_HW_PARAM_FIRST_INTERVAL SNDRV_PCM_HW_PARAM_SAMPLE_BITS
Ben Cheng655a7c02013-10-16 16:09:24 -0700320#define SNDRV_PCM_HW_PARAM_LAST_INTERVAL SNDRV_PCM_HW_PARAM_TICK_TIME
321#define SNDRV_PCM_HW_PARAMS_NORESAMPLE (1<<0)
322#define SNDRV_PCM_HW_PARAMS_EXPORT_BUFFER (1<<1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700324#define SNDRV_PCM_HW_PARAMS_NO_PERIOD_WAKEUP (1<<2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700325struct snd_interval {
326 unsigned int min, max;
327 unsigned int openmin:1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700329 openmax:1,
Ben Cheng655a7c02013-10-16 16:09:24 -0700330 integer:1,
331 empty:1;
332};
Ben Cheng655a7c02013-10-16 16:09:24 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700334#define SNDRV_MASK_MAX 256
Ben Cheng655a7c02013-10-16 16:09:24 -0700335struct snd_mask {
336 __u32 bits[(SNDRV_MASK_MAX+31)/32];
337};
Ben Cheng655a7c02013-10-16 16:09:24 -0700338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700339struct snd_pcm_hw_params {
Ben Cheng655a7c02013-10-16 16:09:24 -0700340 unsigned int flags;
341 struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK -
342 SNDRV_PCM_HW_PARAM_FIRST_MASK + 1];
Ben Cheng655a7c02013-10-16 16:09:24 -0700343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700344 struct snd_mask mres[5];
Ben Cheng655a7c02013-10-16 16:09:24 -0700345 struct snd_interval intervals[SNDRV_PCM_HW_PARAM_LAST_INTERVAL -
346 SNDRV_PCM_HW_PARAM_FIRST_INTERVAL + 1];
347 struct snd_interval ires[9];
Ben Cheng655a7c02013-10-16 16:09:24 -0700348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700349 unsigned int rmask;
Ben Cheng655a7c02013-10-16 16:09:24 -0700350 unsigned int cmask;
351 unsigned int info;
352 unsigned int msbits;
Ben Cheng655a7c02013-10-16 16:09:24 -0700353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700354 unsigned int rate_num;
Ben Cheng655a7c02013-10-16 16:09:24 -0700355 unsigned int rate_den;
356 snd_pcm_uframes_t fifo_size;
357 unsigned char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700359};
Ben Cheng655a7c02013-10-16 16:09:24 -0700360enum {
361 SNDRV_PCM_TSTAMP_NONE = 0,
362 SNDRV_PCM_TSTAMP_ENABLE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700364 SNDRV_PCM_TSTAMP_LAST = SNDRV_PCM_TSTAMP_ENABLE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700365};
366struct snd_pcm_sw_params {
367 int tstamp_mode;
Ben Cheng655a7c02013-10-16 16:09:24 -0700368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700369 unsigned int period_step;
Ben Cheng655a7c02013-10-16 16:09:24 -0700370 unsigned int sleep_min;
371 snd_pcm_uframes_t avail_min;
372 snd_pcm_uframes_t xfer_align;
Ben Cheng655a7c02013-10-16 16:09:24 -0700373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700374 snd_pcm_uframes_t start_threshold;
Ben Cheng655a7c02013-10-16 16:09:24 -0700375 snd_pcm_uframes_t stop_threshold;
376 snd_pcm_uframes_t silence_threshold;
377 snd_pcm_uframes_t silence_size;
Ben Cheng655a7c02013-10-16 16:09:24 -0700378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700379 snd_pcm_uframes_t boundary;
Ben Cheng655a7c02013-10-16 16:09:24 -0700380 unsigned char reserved[64];
381};
382struct snd_pcm_channel_info {
Ben Cheng655a7c02013-10-16 16:09:24 -0700383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700384 unsigned int channel;
Ben Cheng655a7c02013-10-16 16:09:24 -0700385 __kernel_off_t offset;
386 unsigned int first;
387 unsigned int step;
Ben Cheng655a7c02013-10-16 16:09:24 -0700388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700389};
Ben Cheng655a7c02013-10-16 16:09:24 -0700390struct snd_pcm_status {
391 snd_pcm_state_t state;
392 struct timespec trigger_tstamp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700394 struct timespec tstamp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700395 snd_pcm_uframes_t appl_ptr;
396 snd_pcm_uframes_t hw_ptr;
397 snd_pcm_sframes_t delay;
Ben Cheng655a7c02013-10-16 16:09:24 -0700398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700399 snd_pcm_uframes_t avail;
Ben Cheng655a7c02013-10-16 16:09:24 -0700400 snd_pcm_uframes_t avail_max;
401 snd_pcm_uframes_t overrange;
402 snd_pcm_state_t suspended_state;
Ben Cheng655a7c02013-10-16 16:09:24 -0700403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700404 __u32 reserved_alignment;
Ben Cheng655a7c02013-10-16 16:09:24 -0700405 struct timespec audio_tstamp;
406 unsigned char reserved[56-sizeof(struct timespec)];
407};
Ben Cheng655a7c02013-10-16 16:09:24 -0700408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700409struct snd_pcm_mmap_status {
Ben Cheng655a7c02013-10-16 16:09:24 -0700410 snd_pcm_state_t state;
411 int pad1;
412 snd_pcm_uframes_t hw_ptr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700414 struct timespec tstamp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700415 snd_pcm_state_t suspended_state;
416 struct timespec audio_tstamp;
417};
Ben Cheng655a7c02013-10-16 16:09:24 -0700418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700419struct snd_pcm_mmap_control {
Ben Cheng655a7c02013-10-16 16:09:24 -0700420 snd_pcm_uframes_t appl_ptr;
421 snd_pcm_uframes_t avail_min;
422};
Ben Cheng655a7c02013-10-16 16:09:24 -0700423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700424#define SNDRV_PCM_SYNC_PTR_HWSYNC (1<<0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700425#define SNDRV_PCM_SYNC_PTR_APPL (1<<1)
426#define SNDRV_PCM_SYNC_PTR_AVAIL_MIN (1<<2)
427struct snd_pcm_sync_ptr {
Ben Cheng655a7c02013-10-16 16:09:24 -0700428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700429 unsigned int flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700430 union {
431 struct snd_pcm_mmap_status status;
432 unsigned char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700434 } s;
Ben Cheng655a7c02013-10-16 16:09:24 -0700435 union {
436 struct snd_pcm_mmap_control control;
437 unsigned char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700439 } c;
Ben Cheng655a7c02013-10-16 16:09:24 -0700440};
441struct snd_xferi {
442 snd_pcm_sframes_t result;
Ben Cheng655a7c02013-10-16 16:09:24 -0700443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700444 void __user *buf;
Ben Cheng655a7c02013-10-16 16:09:24 -0700445 snd_pcm_uframes_t frames;
446};
447struct snd_xfern {
Ben Cheng655a7c02013-10-16 16:09:24 -0700448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700449 snd_pcm_sframes_t result;
Ben Cheng655a7c02013-10-16 16:09:24 -0700450 void __user * __user *bufs;
451 snd_pcm_uframes_t frames;
452};
Ben Cheng655a7c02013-10-16 16:09:24 -0700453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700454enum {
Ben Cheng655a7c02013-10-16 16:09:24 -0700455 SNDRV_PCM_TSTAMP_TYPE_GETTIMEOFDAY = 0,
456 SNDRV_PCM_TSTAMP_TYPE_MONOTONIC,
457 SNDRV_PCM_TSTAMP_TYPE_LAST = SNDRV_PCM_TSTAMP_TYPE_MONOTONIC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700459};
Ben Cheng655a7c02013-10-16 16:09:24 -0700460enum {
461 SNDRV_CHMAP_UNKNOWN = 0,
462 SNDRV_CHMAP_NA,
Ben Cheng655a7c02013-10-16 16:09:24 -0700463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700464 SNDRV_CHMAP_MONO,
Ben Cheng655a7c02013-10-16 16:09:24 -0700465 SNDRV_CHMAP_FL,
466 SNDRV_CHMAP_FR,
467 SNDRV_CHMAP_RL,
Ben Cheng655a7c02013-10-16 16:09:24 -0700468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700469 SNDRV_CHMAP_RR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700470 SNDRV_CHMAP_FC,
471 SNDRV_CHMAP_LFE,
472 SNDRV_CHMAP_SL,
Ben Cheng655a7c02013-10-16 16:09:24 -0700473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700474 SNDRV_CHMAP_SR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700475 SNDRV_CHMAP_RC,
476 SNDRV_CHMAP_FLC,
477 SNDRV_CHMAP_FRC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700479 SNDRV_CHMAP_RLC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700480 SNDRV_CHMAP_RRC,
481 SNDRV_CHMAP_FLW,
482 SNDRV_CHMAP_FRW,
Ben Cheng655a7c02013-10-16 16:09:24 -0700483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700484 SNDRV_CHMAP_FLH,
Ben Cheng655a7c02013-10-16 16:09:24 -0700485 SNDRV_CHMAP_FCH,
486 SNDRV_CHMAP_FRH,
487 SNDRV_CHMAP_TC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700489 SNDRV_CHMAP_TFL,
Ben Cheng655a7c02013-10-16 16:09:24 -0700490 SNDRV_CHMAP_TFR,
491 SNDRV_CHMAP_TFC,
492 SNDRV_CHMAP_TRL,
Ben Cheng655a7c02013-10-16 16:09:24 -0700493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700494 SNDRV_CHMAP_TRR,
Ben Cheng655a7c02013-10-16 16:09:24 -0700495 SNDRV_CHMAP_TRC,
496 SNDRV_CHMAP_TFLC,
497 SNDRV_CHMAP_TFRC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700499 SNDRV_CHMAP_TSL,
Ben Cheng655a7c02013-10-16 16:09:24 -0700500 SNDRV_CHMAP_TSR,
501 SNDRV_CHMAP_LLFE,
502 SNDRV_CHMAP_RLFE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700504 SNDRV_CHMAP_BC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700505 SNDRV_CHMAP_BLC,
506 SNDRV_CHMAP_BRC,
507 SNDRV_CHMAP_LAST = SNDRV_CHMAP_BRC,
Ben Cheng655a7c02013-10-16 16:09:24 -0700508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700509};
Ben Cheng655a7c02013-10-16 16:09:24 -0700510#define SNDRV_CHMAP_POSITION_MASK 0xffff
511#define SNDRV_CHMAP_PHASE_INVERSE (0x01 << 16)
512#define SNDRV_CHMAP_DRIVER_SPEC (0x02 << 16)
Ben Cheng655a7c02013-10-16 16:09:24 -0700513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700514#define SNDRV_PCM_IOCTL_PVERSION _IOR('A', 0x00, int)
Ben Cheng655a7c02013-10-16 16:09:24 -0700515#define SNDRV_PCM_IOCTL_INFO _IOR('A', 0x01, struct snd_pcm_info)
516#define SNDRV_PCM_IOCTL_TSTAMP _IOW('A', 0x02, int)
517#define SNDRV_PCM_IOCTL_TTSTAMP _IOW('A', 0x03, int)
Ben Cheng655a7c02013-10-16 16:09:24 -0700518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700519#define SNDRV_PCM_IOCTL_HW_REFINE _IOWR('A', 0x10, struct snd_pcm_hw_params)
Ben Cheng655a7c02013-10-16 16:09:24 -0700520#define SNDRV_PCM_IOCTL_HW_PARAMS _IOWR('A', 0x11, struct snd_pcm_hw_params)
521#define SNDRV_PCM_IOCTL_HW_FREE _IO('A', 0x12)
522#define SNDRV_PCM_IOCTL_SW_PARAMS _IOWR('A', 0x13, struct snd_pcm_sw_params)
Ben Cheng655a7c02013-10-16 16:09:24 -0700523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700524#define SNDRV_PCM_IOCTL_STATUS _IOR('A', 0x20, struct snd_pcm_status)
Ben Cheng655a7c02013-10-16 16:09:24 -0700525#define SNDRV_PCM_IOCTL_DELAY _IOR('A', 0x21, snd_pcm_sframes_t)
526#define SNDRV_PCM_IOCTL_HWSYNC _IO('A', 0x22)
527#define SNDRV_PCM_IOCTL_SYNC_PTR _IOWR('A', 0x23, struct snd_pcm_sync_ptr)
Ben Cheng655a7c02013-10-16 16:09:24 -0700528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700529#define SNDRV_PCM_IOCTL_CHANNEL_INFO _IOR('A', 0x32, struct snd_pcm_channel_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700530#define SNDRV_PCM_IOCTL_PREPARE _IO('A', 0x40)
531#define SNDRV_PCM_IOCTL_RESET _IO('A', 0x41)
532#define SNDRV_PCM_IOCTL_START _IO('A', 0x42)
Ben Cheng655a7c02013-10-16 16:09:24 -0700533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700534#define SNDRV_PCM_IOCTL_DROP _IO('A', 0x43)
Ben Cheng655a7c02013-10-16 16:09:24 -0700535#define SNDRV_PCM_IOCTL_DRAIN _IO('A', 0x44)
536#define SNDRV_PCM_IOCTL_PAUSE _IOW('A', 0x45, int)
537#define SNDRV_PCM_IOCTL_REWIND _IOW('A', 0x46, snd_pcm_uframes_t)
Ben Cheng655a7c02013-10-16 16:09:24 -0700538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700539#define SNDRV_PCM_IOCTL_RESUME _IO('A', 0x47)
Ben Cheng655a7c02013-10-16 16:09:24 -0700540#define SNDRV_PCM_IOCTL_XRUN _IO('A', 0x48)
541#define SNDRV_PCM_IOCTL_FORWARD _IOW('A', 0x49, snd_pcm_uframes_t)
542#define SNDRV_PCM_IOCTL_WRITEI_FRAMES _IOW('A', 0x50, struct snd_xferi)
Ben Cheng655a7c02013-10-16 16:09:24 -0700543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700544#define SNDRV_PCM_IOCTL_READI_FRAMES _IOR('A', 0x51, struct snd_xferi)
Ben Cheng655a7c02013-10-16 16:09:24 -0700545#define SNDRV_PCM_IOCTL_WRITEN_FRAMES _IOW('A', 0x52, struct snd_xfern)
546#define SNDRV_PCM_IOCTL_READN_FRAMES _IOR('A', 0x53, struct snd_xfern)
547#define SNDRV_PCM_IOCTL_LINK _IOW('A', 0x60, int)
Ben Cheng655a7c02013-10-16 16:09:24 -0700548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700549#define SNDRV_PCM_IOCTL_UNLINK _IO('A', 0x61)
Ben Cheng655a7c02013-10-16 16:09:24 -0700550#define SNDRV_RAWMIDI_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 0)
551enum {
552 SNDRV_RAWMIDI_STREAM_OUTPUT = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700554 SNDRV_RAWMIDI_STREAM_INPUT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700555 SNDRV_RAWMIDI_STREAM_LAST = SNDRV_RAWMIDI_STREAM_INPUT,
556};
557#define SNDRV_RAWMIDI_INFO_OUTPUT 0x00000001
Ben Cheng655a7c02013-10-16 16:09:24 -0700558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700559#define SNDRV_RAWMIDI_INFO_INPUT 0x00000002
Ben Cheng655a7c02013-10-16 16:09:24 -0700560#define SNDRV_RAWMIDI_INFO_DUPLEX 0x00000004
561struct snd_rawmidi_info {
562 unsigned int device;
Ben Cheng655a7c02013-10-16 16:09:24 -0700563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700564 unsigned int subdevice;
Ben Cheng655a7c02013-10-16 16:09:24 -0700565 int stream;
566 int card;
567 unsigned int flags;
Ben Cheng655a7c02013-10-16 16:09:24 -0700568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700569 unsigned char id[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700570 unsigned char name[80];
571 unsigned char subname[32];
572 unsigned int subdevices_count;
Ben Cheng655a7c02013-10-16 16:09:24 -0700573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700574 unsigned int subdevices_avail;
Ben Cheng655a7c02013-10-16 16:09:24 -0700575 unsigned char reserved[64];
576};
577struct snd_rawmidi_params {
Ben Cheng655a7c02013-10-16 16:09:24 -0700578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700579 int stream;
Ben Cheng655a7c02013-10-16 16:09:24 -0700580 size_t buffer_size;
581 size_t avail_min;
582 unsigned int no_active_sensing: 1;
Ben Cheng655a7c02013-10-16 16:09:24 -0700583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700584 unsigned char reserved[16];
Ben Cheng655a7c02013-10-16 16:09:24 -0700585};
586struct snd_rawmidi_status {
587 int stream;
Ben Cheng655a7c02013-10-16 16:09:24 -0700588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700589 struct timespec tstamp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700590 size_t avail;
591 size_t xruns;
592 unsigned char reserved[16];
Ben Cheng655a7c02013-10-16 16:09:24 -0700593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700594};
Ben Cheng655a7c02013-10-16 16:09:24 -0700595#define SNDRV_RAWMIDI_IOCTL_PVERSION _IOR('W', 0x00, int)
596#define SNDRV_RAWMIDI_IOCTL_INFO _IOR('W', 0x01, struct snd_rawmidi_info)
597#define SNDRV_RAWMIDI_IOCTL_PARAMS _IOWR('W', 0x10, struct snd_rawmidi_params)
Ben Cheng655a7c02013-10-16 16:09:24 -0700598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700599#define SNDRV_RAWMIDI_IOCTL_STATUS _IOWR('W', 0x20, struct snd_rawmidi_status)
Ben Cheng655a7c02013-10-16 16:09:24 -0700600#define SNDRV_RAWMIDI_IOCTL_DROP _IOW('W', 0x30, int)
601#define SNDRV_RAWMIDI_IOCTL_DRAIN _IOW('W', 0x31, int)
602#define SNDRV_TIMER_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 6)
Ben Cheng655a7c02013-10-16 16:09:24 -0700603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700604enum {
Ben Cheng655a7c02013-10-16 16:09:24 -0700605 SNDRV_TIMER_CLASS_NONE = -1,
606 SNDRV_TIMER_CLASS_SLAVE = 0,
607 SNDRV_TIMER_CLASS_GLOBAL,
Ben Cheng655a7c02013-10-16 16:09:24 -0700608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700609 SNDRV_TIMER_CLASS_CARD,
Ben Cheng655a7c02013-10-16 16:09:24 -0700610 SNDRV_TIMER_CLASS_PCM,
611 SNDRV_TIMER_CLASS_LAST = SNDRV_TIMER_CLASS_PCM,
612};
Ben Cheng655a7c02013-10-16 16:09:24 -0700613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700614enum {
Ben Cheng655a7c02013-10-16 16:09:24 -0700615 SNDRV_TIMER_SCLASS_NONE = 0,
616 SNDRV_TIMER_SCLASS_APPLICATION,
617 SNDRV_TIMER_SCLASS_SEQUENCER,
Ben Cheng655a7c02013-10-16 16:09:24 -0700618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700619 SNDRV_TIMER_SCLASS_OSS_SEQUENCER,
Ben Cheng655a7c02013-10-16 16:09:24 -0700620 SNDRV_TIMER_SCLASS_LAST = SNDRV_TIMER_SCLASS_OSS_SEQUENCER,
621};
622#define SNDRV_TIMER_GLOBAL_SYSTEM 0
Ben Cheng655a7c02013-10-16 16:09:24 -0700623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700624#define SNDRV_TIMER_GLOBAL_RTC 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700625#define SNDRV_TIMER_GLOBAL_HPET 2
626#define SNDRV_TIMER_GLOBAL_HRTIMER 3
627#define SNDRV_TIMER_FLG_SLAVE (1<<0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700629struct snd_timer_id {
Ben Cheng655a7c02013-10-16 16:09:24 -0700630 int dev_class;
631 int dev_sclass;
632 int card;
Ben Cheng655a7c02013-10-16 16:09:24 -0700633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700634 int device;
Ben Cheng655a7c02013-10-16 16:09:24 -0700635 int subdevice;
636};
637struct snd_timer_ginfo {
Ben Cheng655a7c02013-10-16 16:09:24 -0700638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700639 struct snd_timer_id tid;
Ben Cheng655a7c02013-10-16 16:09:24 -0700640 unsigned int flags;
641 int card;
642 unsigned char id[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700644 unsigned char name[80];
Ben Cheng655a7c02013-10-16 16:09:24 -0700645 unsigned long reserved0;
646 unsigned long resolution;
647 unsigned long resolution_min;
Ben Cheng655a7c02013-10-16 16:09:24 -0700648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700649 unsigned long resolution_max;
Ben Cheng655a7c02013-10-16 16:09:24 -0700650 unsigned int clients;
651 unsigned char reserved[32];
652};
Ben Cheng655a7c02013-10-16 16:09:24 -0700653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700654struct snd_timer_gparams {
Ben Cheng655a7c02013-10-16 16:09:24 -0700655 struct snd_timer_id tid;
656 unsigned long period_num;
657 unsigned long period_den;
Ben Cheng655a7c02013-10-16 16:09:24 -0700658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700659 unsigned char reserved[32];
Ben Cheng655a7c02013-10-16 16:09:24 -0700660};
661struct snd_timer_gstatus {
662 struct snd_timer_id tid;
Ben Cheng655a7c02013-10-16 16:09:24 -0700663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700664 unsigned long resolution;
Ben Cheng655a7c02013-10-16 16:09:24 -0700665 unsigned long resolution_num;
666 unsigned long resolution_den;
667 unsigned char reserved[32];
Ben Cheng655a7c02013-10-16 16:09:24 -0700668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700669};
Ben Cheng655a7c02013-10-16 16:09:24 -0700670struct snd_timer_select {
671 struct snd_timer_id id;
672 unsigned char reserved[32];
Ben Cheng655a7c02013-10-16 16:09:24 -0700673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700674};
Ben Cheng655a7c02013-10-16 16:09:24 -0700675struct snd_timer_info {
676 unsigned int flags;
677 int card;
Ben Cheng655a7c02013-10-16 16:09:24 -0700678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700679 unsigned char id[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700680 unsigned char name[80];
681 unsigned long reserved0;
682 unsigned long resolution;
Ben Cheng655a7c02013-10-16 16:09:24 -0700683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700684 unsigned char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700685};
686#define SNDRV_TIMER_PSFLG_AUTO (1<<0)
687#define SNDRV_TIMER_PSFLG_EXCLUSIVE (1<<1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700689#define SNDRV_TIMER_PSFLG_EARLY_EVENT (1<<2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700690struct snd_timer_params {
691 unsigned int flags;
692 unsigned int ticks;
Ben Cheng655a7c02013-10-16 16:09:24 -0700693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700694 unsigned int queue_size;
Ben Cheng655a7c02013-10-16 16:09:24 -0700695 unsigned int reserved0;
696 unsigned int filter;
697 unsigned char reserved[60];
Ben Cheng655a7c02013-10-16 16:09:24 -0700698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700699};
Ben Cheng655a7c02013-10-16 16:09:24 -0700700struct snd_timer_status {
701 struct timespec tstamp;
702 unsigned int resolution;
Ben Cheng655a7c02013-10-16 16:09:24 -0700703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700704 unsigned int lost;
Ben Cheng655a7c02013-10-16 16:09:24 -0700705 unsigned int overrun;
706 unsigned int queue;
707 unsigned char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700709};
Ben Cheng655a7c02013-10-16 16:09:24 -0700710#define SNDRV_TIMER_IOCTL_PVERSION _IOR('T', 0x00, int)
711#define SNDRV_TIMER_IOCTL_NEXT_DEVICE _IOWR('T', 0x01, struct snd_timer_id)
712#define SNDRV_TIMER_IOCTL_TREAD _IOW('T', 0x02, int)
Ben Cheng655a7c02013-10-16 16:09:24 -0700713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700714#define SNDRV_TIMER_IOCTL_GINFO _IOWR('T', 0x03, struct snd_timer_ginfo)
Ben Cheng655a7c02013-10-16 16:09:24 -0700715#define SNDRV_TIMER_IOCTL_GPARAMS _IOW('T', 0x04, struct snd_timer_gparams)
716#define SNDRV_TIMER_IOCTL_GSTATUS _IOWR('T', 0x05, struct snd_timer_gstatus)
717#define SNDRV_TIMER_IOCTL_SELECT _IOW('T', 0x10, struct snd_timer_select)
Ben Cheng655a7c02013-10-16 16:09:24 -0700718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700719#define SNDRV_TIMER_IOCTL_INFO _IOR('T', 0x11, struct snd_timer_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700720#define SNDRV_TIMER_IOCTL_PARAMS _IOW('T', 0x12, struct snd_timer_params)
721#define SNDRV_TIMER_IOCTL_STATUS _IOR('T', 0x14, struct snd_timer_status)
722#define SNDRV_TIMER_IOCTL_START _IO('T', 0xa0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700724#define SNDRV_TIMER_IOCTL_STOP _IO('T', 0xa1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700725#define SNDRV_TIMER_IOCTL_CONTINUE _IO('T', 0xa2)
726#define SNDRV_TIMER_IOCTL_PAUSE _IO('T', 0xa3)
727struct snd_timer_read {
Ben Cheng655a7c02013-10-16 16:09:24 -0700728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700729 unsigned int resolution;
Ben Cheng655a7c02013-10-16 16:09:24 -0700730 unsigned int ticks;
731};
732enum {
Ben Cheng655a7c02013-10-16 16:09:24 -0700733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700734 SNDRV_TIMER_EVENT_RESOLUTION = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700735 SNDRV_TIMER_EVENT_TICK,
736 SNDRV_TIMER_EVENT_START,
737 SNDRV_TIMER_EVENT_STOP,
Ben Cheng655a7c02013-10-16 16:09:24 -0700738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700739 SNDRV_TIMER_EVENT_CONTINUE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700740 SNDRV_TIMER_EVENT_PAUSE,
741 SNDRV_TIMER_EVENT_EARLY,
742 SNDRV_TIMER_EVENT_SUSPEND,
Ben Cheng655a7c02013-10-16 16:09:24 -0700743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700744 SNDRV_TIMER_EVENT_RESUME,
Ben Cheng655a7c02013-10-16 16:09:24 -0700745 SNDRV_TIMER_EVENT_MSTART = SNDRV_TIMER_EVENT_START + 10,
746 SNDRV_TIMER_EVENT_MSTOP = SNDRV_TIMER_EVENT_STOP + 10,
747 SNDRV_TIMER_EVENT_MCONTINUE = SNDRV_TIMER_EVENT_CONTINUE + 10,
Ben Cheng655a7c02013-10-16 16:09:24 -0700748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700749 SNDRV_TIMER_EVENT_MPAUSE = SNDRV_TIMER_EVENT_PAUSE + 10,
Ben Cheng655a7c02013-10-16 16:09:24 -0700750 SNDRV_TIMER_EVENT_MSUSPEND = SNDRV_TIMER_EVENT_SUSPEND + 10,
751 SNDRV_TIMER_EVENT_MRESUME = SNDRV_TIMER_EVENT_RESUME + 10,
752};
Ben Cheng655a7c02013-10-16 16:09:24 -0700753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700754struct snd_timer_tread {
Ben Cheng655a7c02013-10-16 16:09:24 -0700755 int event;
756 struct timespec tstamp;
757 unsigned int val;
Ben Cheng655a7c02013-10-16 16:09:24 -0700758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700759};
Ben Cheng655a7c02013-10-16 16:09:24 -0700760#define SNDRV_CTL_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 7)
761struct snd_ctl_card_info {
762 int card;
Ben Cheng655a7c02013-10-16 16:09:24 -0700763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700764 int pad;
Ben Cheng655a7c02013-10-16 16:09:24 -0700765 unsigned char id[16];
766 unsigned char driver[16];
767 unsigned char name[32];
Ben Cheng655a7c02013-10-16 16:09:24 -0700768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700769 unsigned char longname[80];
Ben Cheng655a7c02013-10-16 16:09:24 -0700770 unsigned char reserved_[16];
771 unsigned char mixername[80];
772 unsigned char components[128];
Ben Cheng655a7c02013-10-16 16:09:24 -0700773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700774};
Ben Cheng655a7c02013-10-16 16:09:24 -0700775typedef int __bitwise snd_ctl_elem_type_t;
776#define SNDRV_CTL_ELEM_TYPE_NONE ((__force snd_ctl_elem_type_t) 0)
777#define SNDRV_CTL_ELEM_TYPE_BOOLEAN ((__force snd_ctl_elem_type_t) 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700779#define SNDRV_CTL_ELEM_TYPE_INTEGER ((__force snd_ctl_elem_type_t) 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700780#define SNDRV_CTL_ELEM_TYPE_ENUMERATED ((__force snd_ctl_elem_type_t) 3)
781#define SNDRV_CTL_ELEM_TYPE_BYTES ((__force snd_ctl_elem_type_t) 4)
782#define SNDRV_CTL_ELEM_TYPE_IEC958 ((__force snd_ctl_elem_type_t) 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700783/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700784#define SNDRV_CTL_ELEM_TYPE_INTEGER64 ((__force snd_ctl_elem_type_t) 6)
Ben Cheng655a7c02013-10-16 16:09:24 -0700785#define SNDRV_CTL_ELEM_TYPE_LAST SNDRV_CTL_ELEM_TYPE_INTEGER64
786typedef int __bitwise snd_ctl_elem_iface_t;
787#define SNDRV_CTL_ELEM_IFACE_CARD ((__force snd_ctl_elem_iface_t) 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700789#define SNDRV_CTL_ELEM_IFACE_HWDEP ((__force snd_ctl_elem_iface_t) 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700790#define SNDRV_CTL_ELEM_IFACE_MIXER ((__force snd_ctl_elem_iface_t) 2)
791#define SNDRV_CTL_ELEM_IFACE_PCM ((__force snd_ctl_elem_iface_t) 3)
792#define SNDRV_CTL_ELEM_IFACE_RAWMIDI ((__force snd_ctl_elem_iface_t) 4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700793/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700794#define SNDRV_CTL_ELEM_IFACE_TIMER ((__force snd_ctl_elem_iface_t) 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700795#define SNDRV_CTL_ELEM_IFACE_SEQUENCER ((__force snd_ctl_elem_iface_t) 6)
796#define SNDRV_CTL_ELEM_IFACE_LAST SNDRV_CTL_ELEM_IFACE_SEQUENCER
797#define SNDRV_CTL_ELEM_ACCESS_READ (1<<0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700798/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700799#define SNDRV_CTL_ELEM_ACCESS_WRITE (1<<1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700800#define SNDRV_CTL_ELEM_ACCESS_READWRITE (SNDRV_CTL_ELEM_ACCESS_READ|SNDRV_CTL_ELEM_ACCESS_WRITE)
801#define SNDRV_CTL_ELEM_ACCESS_VOLATILE (1<<2)
802#define SNDRV_CTL_ELEM_ACCESS_TIMESTAMP (1<<3)
Ben Cheng655a7c02013-10-16 16:09:24 -0700803/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700804#define SNDRV_CTL_ELEM_ACCESS_TLV_READ (1<<4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700805#define SNDRV_CTL_ELEM_ACCESS_TLV_WRITE (1<<5)
806#define SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE (SNDRV_CTL_ELEM_ACCESS_TLV_READ|SNDRV_CTL_ELEM_ACCESS_TLV_WRITE)
807#define SNDRV_CTL_ELEM_ACCESS_TLV_COMMAND (1<<6)
Ben Cheng655a7c02013-10-16 16:09:24 -0700808/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700809#define SNDRV_CTL_ELEM_ACCESS_INACTIVE (1<<8)
Ben Cheng655a7c02013-10-16 16:09:24 -0700810#define SNDRV_CTL_ELEM_ACCESS_LOCK (1<<9)
811#define SNDRV_CTL_ELEM_ACCESS_OWNER (1<<10)
812#define SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK (1<<28)
Ben Cheng655a7c02013-10-16 16:09:24 -0700813/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700814#define SNDRV_CTL_ELEM_ACCESS_USER (1<<29)
Ben Cheng655a7c02013-10-16 16:09:24 -0700815#define SNDRV_CTL_POWER_D0 0x0000
816#define SNDRV_CTL_POWER_D1 0x0100
817#define SNDRV_CTL_POWER_D2 0x0200
Ben Cheng655a7c02013-10-16 16:09:24 -0700818/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris38062f92014-07-09 15:33:25 -0700819#define SNDRV_CTL_POWER_D3 0x0300
Ben Cheng655a7c02013-10-16 16:09:24 -0700820#define SNDRV_CTL_POWER_D3hot (SNDRV_CTL_POWER_D3|0x0000)
821#define SNDRV_CTL_POWER_D3cold (SNDRV_CTL_POWER_D3|0x0001)
Christopher Ferris38062f92014-07-09 15:33:25 -0700822#define SNDRV_CTL_ELEM_ID_NAME_MAXLEN 44
823/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700824struct snd_ctl_elem_id {
Ben Cheng655a7c02013-10-16 16:09:24 -0700825 unsigned int numid;
826 snd_ctl_elem_iface_t iface;
827 unsigned int device;
Christopher Ferris38062f92014-07-09 15:33:25 -0700828/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700829 unsigned int subdevice;
Ben Cheng655a7c02013-10-16 16:09:24 -0700830 unsigned char name[44];
831 unsigned int index;
832};
Christopher Ferris38062f92014-07-09 15:33:25 -0700833/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700834struct snd_ctl_elem_list {
Ben Cheng655a7c02013-10-16 16:09:24 -0700835 unsigned int offset;
836 unsigned int space;
837 unsigned int used;
Christopher Ferris38062f92014-07-09 15:33:25 -0700838/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700839 unsigned int count;
Ben Cheng655a7c02013-10-16 16:09:24 -0700840 struct snd_ctl_elem_id __user *pids;
841 unsigned char reserved[50];
842};
Christopher Ferris38062f92014-07-09 15:33:25 -0700843/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700844struct snd_ctl_elem_info {
Ben Cheng655a7c02013-10-16 16:09:24 -0700845 struct snd_ctl_elem_id id;
846 snd_ctl_elem_type_t type;
847 unsigned int access;
Christopher Ferris38062f92014-07-09 15:33:25 -0700848/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700849 unsigned int count;
Ben Cheng655a7c02013-10-16 16:09:24 -0700850 __kernel_pid_t owner;
851 union {
852 struct {
Christopher Ferris38062f92014-07-09 15:33:25 -0700853/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700854 long min;
Ben Cheng655a7c02013-10-16 16:09:24 -0700855 long max;
856 long step;
857 } integer;
Christopher Ferris38062f92014-07-09 15:33:25 -0700858/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700859 struct {
Ben Cheng655a7c02013-10-16 16:09:24 -0700860 long long min;
861 long long max;
862 long long step;
Christopher Ferris38062f92014-07-09 15:33:25 -0700863/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700864 } integer64;
Ben Cheng655a7c02013-10-16 16:09:24 -0700865 struct {
866 unsigned int items;
867 unsigned int item;
Christopher Ferris38062f92014-07-09 15:33:25 -0700868/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700869 char name[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700870 __u64 names_ptr;
871 unsigned int names_length;
872 } enumerated;
Christopher Ferris38062f92014-07-09 15:33:25 -0700873/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700874 unsigned char reserved[128];
Ben Cheng655a7c02013-10-16 16:09:24 -0700875 } value;
876 union {
877 unsigned short d[4];
Christopher Ferris38062f92014-07-09 15:33:25 -0700878/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700879 unsigned short *d_ptr;
Ben Cheng655a7c02013-10-16 16:09:24 -0700880 } dimen;
881 unsigned char reserved[64-4*sizeof(unsigned short)];
882};
Christopher Ferris38062f92014-07-09 15:33:25 -0700883/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700884struct snd_ctl_elem_value {
Ben Cheng655a7c02013-10-16 16:09:24 -0700885 struct snd_ctl_elem_id id;
886 unsigned int indirect: 1;
887 union {
Christopher Ferris38062f92014-07-09 15:33:25 -0700888/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700889 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700890 long value[128];
891 long *value_ptr;
892 } integer;
Christopher Ferris38062f92014-07-09 15:33:25 -0700893/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700894 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700895 long long value[64];
896 long long *value_ptr;
897 } integer64;
Christopher Ferris38062f92014-07-09 15:33:25 -0700898/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700899 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700900 unsigned int item[128];
901 unsigned int *item_ptr;
902 } enumerated;
Christopher Ferris38062f92014-07-09 15:33:25 -0700903/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700904 union {
Ben Cheng655a7c02013-10-16 16:09:24 -0700905 unsigned char data[512];
906 unsigned char *data_ptr;
907 } bytes;
Christopher Ferris38062f92014-07-09 15:33:25 -0700908/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700909 struct snd_aes_iec958 iec958;
Ben Cheng655a7c02013-10-16 16:09:24 -0700910 } value;
911 struct timespec tstamp;
912 unsigned char reserved[128-sizeof(struct timespec)];
Christopher Ferris38062f92014-07-09 15:33:25 -0700913/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700914};
Ben Cheng655a7c02013-10-16 16:09:24 -0700915struct snd_ctl_tlv {
916 unsigned int numid;
917 unsigned int length;
Christopher Ferris38062f92014-07-09 15:33:25 -0700918/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700919 unsigned int tlv[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700920};
921#define SNDRV_CTL_IOCTL_PVERSION _IOR('U', 0x00, int)
922#define SNDRV_CTL_IOCTL_CARD_INFO _IOR('U', 0x01, struct snd_ctl_card_info)
Christopher Ferris38062f92014-07-09 15:33:25 -0700923/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700924#define SNDRV_CTL_IOCTL_ELEM_LIST _IOWR('U', 0x10, struct snd_ctl_elem_list)
Ben Cheng655a7c02013-10-16 16:09:24 -0700925#define SNDRV_CTL_IOCTL_ELEM_INFO _IOWR('U', 0x11, struct snd_ctl_elem_info)
926#define SNDRV_CTL_IOCTL_ELEM_READ _IOWR('U', 0x12, struct snd_ctl_elem_value)
927#define SNDRV_CTL_IOCTL_ELEM_WRITE _IOWR('U', 0x13, struct snd_ctl_elem_value)
Christopher Ferris38062f92014-07-09 15:33:25 -0700928/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700929#define SNDRV_CTL_IOCTL_ELEM_LOCK _IOW('U', 0x14, struct snd_ctl_elem_id)
Ben Cheng655a7c02013-10-16 16:09:24 -0700930#define SNDRV_CTL_IOCTL_ELEM_UNLOCK _IOW('U', 0x15, struct snd_ctl_elem_id)
931#define SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS _IOWR('U', 0x16, int)
932#define SNDRV_CTL_IOCTL_ELEM_ADD _IOWR('U', 0x17, struct snd_ctl_elem_info)
Christopher Ferris38062f92014-07-09 15:33:25 -0700933/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700934#define SNDRV_CTL_IOCTL_ELEM_REPLACE _IOWR('U', 0x18, struct snd_ctl_elem_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700935#define SNDRV_CTL_IOCTL_ELEM_REMOVE _IOWR('U', 0x19, struct snd_ctl_elem_id)
936#define SNDRV_CTL_IOCTL_TLV_READ _IOWR('U', 0x1a, struct snd_ctl_tlv)
937#define SNDRV_CTL_IOCTL_TLV_WRITE _IOWR('U', 0x1b, struct snd_ctl_tlv)
Christopher Ferris38062f92014-07-09 15:33:25 -0700938/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700939#define SNDRV_CTL_IOCTL_TLV_COMMAND _IOWR('U', 0x1c, struct snd_ctl_tlv)
Ben Cheng655a7c02013-10-16 16:09:24 -0700940#define SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE _IOWR('U', 0x20, int)
941#define SNDRV_CTL_IOCTL_HWDEP_INFO _IOR('U', 0x21, struct snd_hwdep_info)
942#define SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE _IOR('U', 0x30, int)
Christopher Ferris38062f92014-07-09 15:33:25 -0700943/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700944#define SNDRV_CTL_IOCTL_PCM_INFO _IOWR('U', 0x31, struct snd_pcm_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700945#define SNDRV_CTL_IOCTL_PCM_PREFER_SUBDEVICE _IOW('U', 0x32, int)
946#define SNDRV_CTL_IOCTL_RAWMIDI_NEXT_DEVICE _IOWR('U', 0x40, int)
947#define SNDRV_CTL_IOCTL_RAWMIDI_INFO _IOWR('U', 0x41, struct snd_rawmidi_info)
Christopher Ferris38062f92014-07-09 15:33:25 -0700948/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700949#define SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE _IOW('U', 0x42, int)
Ben Cheng655a7c02013-10-16 16:09:24 -0700950#define SNDRV_CTL_IOCTL_POWER _IOWR('U', 0xd0, int)
951#define SNDRV_CTL_IOCTL_POWER_STATE _IOR('U', 0xd1, int)
952enum sndrv_ctl_event_type {
Christopher Ferris38062f92014-07-09 15:33:25 -0700953/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700954 SNDRV_CTL_EVENT_ELEM = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -0700955 SNDRV_CTL_EVENT_LAST = SNDRV_CTL_EVENT_ELEM,
956};
957#define SNDRV_CTL_EVENT_MASK_VALUE (1<<0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700958/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700959#define SNDRV_CTL_EVENT_MASK_INFO (1<<1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700960#define SNDRV_CTL_EVENT_MASK_ADD (1<<2)
961#define SNDRV_CTL_EVENT_MASK_TLV (1<<3)
962#define SNDRV_CTL_EVENT_MASK_REMOVE (~0U)
Christopher Ferris38062f92014-07-09 15:33:25 -0700963/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700964struct snd_ctl_event {
Ben Cheng655a7c02013-10-16 16:09:24 -0700965 int type;
966 union {
967 struct {
Christopher Ferris38062f92014-07-09 15:33:25 -0700968/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700969 unsigned int mask;
Ben Cheng655a7c02013-10-16 16:09:24 -0700970 struct snd_ctl_elem_id id;
971 } elem;
972 unsigned char data8[60];
Christopher Ferris38062f92014-07-09 15:33:25 -0700973/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700974 } data;
Ben Cheng655a7c02013-10-16 16:09:24 -0700975};
976#define SNDRV_CTL_NAME_NONE ""
977#define SNDRV_CTL_NAME_PLAYBACK "Playback "
Christopher Ferris38062f92014-07-09 15:33:25 -0700978/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700979#define SNDRV_CTL_NAME_CAPTURE "Capture "
Ben Cheng655a7c02013-10-16 16:09:24 -0700980#define SNDRV_CTL_NAME_IEC958_NONE ""
981#define SNDRV_CTL_NAME_IEC958_SWITCH "Switch"
982#define SNDRV_CTL_NAME_IEC958_VOLUME "Volume"
Christopher Ferris38062f92014-07-09 15:33:25 -0700983/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700984#define SNDRV_CTL_NAME_IEC958_DEFAULT "Default"
Ben Cheng655a7c02013-10-16 16:09:24 -0700985#define SNDRV_CTL_NAME_IEC958_MASK "Mask"
986#define SNDRV_CTL_NAME_IEC958_CON_MASK "Con Mask"
987#define SNDRV_CTL_NAME_IEC958_PRO_MASK "Pro Mask"
Christopher Ferris38062f92014-07-09 15:33:25 -0700988/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700989#define SNDRV_CTL_NAME_IEC958_PCM_STREAM "PCM Stream"
Ben Cheng655a7c02013-10-16 16:09:24 -0700990#define SNDRV_CTL_NAME_IEC958(expl,direction,what) "IEC958 " expl SNDRV_CTL_NAME_##direction SNDRV_CTL_NAME_IEC958_##what
Ben Cheng655a7c02013-10-16 16:09:24 -0700991#endif