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