blob: 1419fe8b011c0bd04fff7e8d57db7064e739d3e2 [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>
Tao Baod7db5942015-01-28 10:07:51 -080022#define SNDRV_PROTOCOL_VERSION(major,minor,subminor) (((major) << 16) | ((minor) << 8) | (subminor))
Ben Cheng655a7c02013-10-16 16:09:24 -070023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024#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)))
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29struct snd_aes_iec958 {
Tao Baod7db5942015-01-28 10:07:51 -080030 unsigned char status[24];
31 unsigned char subcode[147];
32 unsigned char pad;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 unsigned char dig_subframe[4];
Ben Cheng655a7c02013-10-16 16:09:24 -070035};
36struct snd_cea_861_aud_if {
Tao Baod7db5942015-01-28 10:07:51 -080037 unsigned char db1_ct_cc;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 unsigned char db2_sf_ss;
40 unsigned char db3;
41 unsigned char db4_ca;
42 unsigned char db5_dminh_lsv;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44};
45#define SNDRV_HWDEP_VERSION SNDRV_PROTOCOL_VERSION(1, 0, 1)
46enum {
Tao Baod7db5942015-01-28 10:07:51 -080047 SNDRV_HWDEP_IFACE_OPL2 = 0,
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 SNDRV_HWDEP_IFACE_OPL3,
50 SNDRV_HWDEP_IFACE_OPL4,
51 SNDRV_HWDEP_IFACE_SB16CSP,
52 SNDRV_HWDEP_IFACE_EMU10K1,
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 SNDRV_HWDEP_IFACE_YSS225,
55 SNDRV_HWDEP_IFACE_ICS2115,
56 SNDRV_HWDEP_IFACE_SSCAPE,
57 SNDRV_HWDEP_IFACE_VX,
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 SNDRV_HWDEP_IFACE_MIXART,
60 SNDRV_HWDEP_IFACE_USX2Y,
61 SNDRV_HWDEP_IFACE_EMUX_WAVETABLE,
62 SNDRV_HWDEP_IFACE_BLUETOOTH,
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 SNDRV_HWDEP_IFACE_USX2Y_PCM,
65 SNDRV_HWDEP_IFACE_PCXHR,
66 SNDRV_HWDEP_IFACE_SB_RC,
67 SNDRV_HWDEP_IFACE_HDA,
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 SNDRV_HWDEP_IFACE_USB_STREAM,
70 SNDRV_HWDEP_IFACE_FW_DICE,
71 SNDRV_HWDEP_IFACE_FW_FIREWORKS,
72 SNDRV_HWDEP_IFACE_FW_BEBOB,
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 SNDRV_HWDEP_IFACE_LAST = SNDRV_HWDEP_IFACE_FW_BEBOB
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070075};
Christopher Ferris38062f92014-07-09 15:33:25 -070076struct snd_hwdep_info {
Tao Baod7db5942015-01-28 10:07:51 -080077 unsigned int device;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 int card;
80 unsigned char id[64];
81 unsigned char name[80];
82 int iface;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 unsigned char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -070085};
Christopher Ferris38062f92014-07-09 15:33:25 -070086struct snd_hwdep_dsp_status {
Tao Baod7db5942015-01-28 10:07:51 -080087 unsigned int version;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 unsigned char id[32];
90 unsigned int num_dsps;
91 unsigned int dsp_loaded;
92 unsigned int chip_ready;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 unsigned char reserved[16];
Ben Cheng655a7c02013-10-16 16:09:24 -070095};
Christopher Ferris38062f92014-07-09 15:33:25 -070096struct snd_hwdep_dsp_image {
Tao Baod7db5942015-01-28 10:07:51 -080097 unsigned int index;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 unsigned char name[64];
100 unsigned char __user * image;
101 size_t length;
102 unsigned long driver_data;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700104};
Tao Baod7db5942015-01-28 10:07:51 -0800105#define SNDRV_HWDEP_IOCTL_PVERSION _IOR('H', 0x00, int)
106#define SNDRV_HWDEP_IOCTL_INFO _IOR('H', 0x01, struct snd_hwdep_info)
Ben Cheng655a7c02013-10-16 16:09:24 -0700107#define SNDRV_HWDEP_IOCTL_DSP_STATUS _IOR('H', 0x02, struct snd_hwdep_dsp_status)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700109#define SNDRV_HWDEP_IOCTL_DSP_LOAD _IOW('H', 0x03, struct snd_hwdep_dsp_image)
Christopher Ferris82d75042015-01-26 10:57:07 -0800110#define SNDRV_PCM_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 12)
Christopher Ferris38062f92014-07-09 15:33:25 -0700111typedef unsigned long snd_pcm_uframes_t;
Ben Cheng655a7c02013-10-16 16:09:24 -0700112typedef signed long snd_pcm_sframes_t;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700114enum {
Tao Baod7db5942015-01-28 10:07:51 -0800115 SNDRV_PCM_CLASS_GENERIC = 0,
116 SNDRV_PCM_CLASS_MULTI,
117 SNDRV_PCM_CLASS_MODEM,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 SNDRV_PCM_CLASS_DIGITIZER,
120 SNDRV_PCM_CLASS_LAST = SNDRV_PCM_CLASS_DIGITIZER,
Christopher Ferris38062f92014-07-09 15:33:25 -0700121};
Ben Cheng655a7c02013-10-16 16:09:24 -0700122enum {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 SNDRV_PCM_SUBCLASS_GENERIC_MIX = 0,
125 SNDRV_PCM_SUBCLASS_MULTI_MIX,
126 SNDRV_PCM_SUBCLASS_LAST = SNDRV_PCM_SUBCLASS_MULTI_MIX,
Ben Cheng655a7c02013-10-16 16:09:24 -0700127};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700129enum {
Tao Baod7db5942015-01-28 10:07:51 -0800130 SNDRV_PCM_STREAM_PLAYBACK = 0,
131 SNDRV_PCM_STREAM_CAPTURE,
132 SNDRV_PCM_STREAM_LAST = SNDRV_PCM_STREAM_CAPTURE,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700134};
135typedef int __bitwise snd_pcm_access_t;
Christopher Ferris38062f92014-07-09 15:33:25 -0700136#define SNDRV_PCM_ACCESS_MMAP_INTERLEAVED ((__force snd_pcm_access_t) 0)
Ben Cheng655a7c02013-10-16 16:09:24 -0700137#define SNDRV_PCM_ACCESS_MMAP_NONINTERLEAVED ((__force snd_pcm_access_t) 1)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700139#define SNDRV_PCM_ACCESS_MMAP_COMPLEX ((__force snd_pcm_access_t) 2)
140#define SNDRV_PCM_ACCESS_RW_INTERLEAVED ((__force snd_pcm_access_t) 3)
Christopher Ferris38062f92014-07-09 15:33:25 -0700141#define SNDRV_PCM_ACCESS_RW_NONINTERLEAVED ((__force snd_pcm_access_t) 4)
Ben Cheng655a7c02013-10-16 16:09:24 -0700142#define SNDRV_PCM_ACCESS_LAST SNDRV_PCM_ACCESS_RW_NONINTERLEAVED
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700144typedef int __bitwise snd_pcm_format_t;
145#define SNDRV_PCM_FORMAT_S8 ((__force snd_pcm_format_t) 0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700146#define SNDRV_PCM_FORMAT_U8 ((__force snd_pcm_format_t) 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700147#define SNDRV_PCM_FORMAT_S16_LE ((__force snd_pcm_format_t) 2)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700149#define SNDRV_PCM_FORMAT_S16_BE ((__force snd_pcm_format_t) 3)
150#define SNDRV_PCM_FORMAT_U16_LE ((__force snd_pcm_format_t) 4)
Christopher Ferris38062f92014-07-09 15:33:25 -0700151#define SNDRV_PCM_FORMAT_U16_BE ((__force snd_pcm_format_t) 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700152#define SNDRV_PCM_FORMAT_S24_LE ((__force snd_pcm_format_t) 6)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700154#define SNDRV_PCM_FORMAT_S24_BE ((__force snd_pcm_format_t) 7)
155#define SNDRV_PCM_FORMAT_U24_LE ((__force snd_pcm_format_t) 8)
Christopher Ferris38062f92014-07-09 15:33:25 -0700156#define SNDRV_PCM_FORMAT_U24_BE ((__force snd_pcm_format_t) 9)
Ben Cheng655a7c02013-10-16 16:09:24 -0700157#define SNDRV_PCM_FORMAT_S32_LE ((__force snd_pcm_format_t) 10)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700159#define SNDRV_PCM_FORMAT_S32_BE ((__force snd_pcm_format_t) 11)
160#define SNDRV_PCM_FORMAT_U32_LE ((__force snd_pcm_format_t) 12)
Christopher Ferris38062f92014-07-09 15:33:25 -0700161#define SNDRV_PCM_FORMAT_U32_BE ((__force snd_pcm_format_t) 13)
Ben Cheng655a7c02013-10-16 16:09:24 -0700162#define SNDRV_PCM_FORMAT_FLOAT_LE ((__force snd_pcm_format_t) 14)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700164#define SNDRV_PCM_FORMAT_FLOAT_BE ((__force snd_pcm_format_t) 15)
165#define SNDRV_PCM_FORMAT_FLOAT64_LE ((__force snd_pcm_format_t) 16)
Christopher Ferris38062f92014-07-09 15:33:25 -0700166#define SNDRV_PCM_FORMAT_FLOAT64_BE ((__force snd_pcm_format_t) 17)
Ben Cheng655a7c02013-10-16 16:09:24 -0700167#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE ((__force snd_pcm_format_t) 18)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700169#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME_BE ((__force snd_pcm_format_t) 19)
170#define SNDRV_PCM_FORMAT_MU_LAW ((__force snd_pcm_format_t) 20)
Christopher Ferris38062f92014-07-09 15:33:25 -0700171#define SNDRV_PCM_FORMAT_A_LAW ((__force snd_pcm_format_t) 21)
Ben Cheng655a7c02013-10-16 16:09:24 -0700172#define SNDRV_PCM_FORMAT_IMA_ADPCM ((__force snd_pcm_format_t) 22)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700174#define SNDRV_PCM_FORMAT_MPEG ((__force snd_pcm_format_t) 23)
175#define SNDRV_PCM_FORMAT_GSM ((__force snd_pcm_format_t) 24)
Christopher Ferris38062f92014-07-09 15:33:25 -0700176#define SNDRV_PCM_FORMAT_SPECIAL ((__force snd_pcm_format_t) 31)
Ben Cheng655a7c02013-10-16 16:09:24 -0700177#define SNDRV_PCM_FORMAT_S24_3LE ((__force snd_pcm_format_t) 32)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700179#define SNDRV_PCM_FORMAT_S24_3BE ((__force snd_pcm_format_t) 33)
180#define SNDRV_PCM_FORMAT_U24_3LE ((__force snd_pcm_format_t) 34)
Christopher Ferris38062f92014-07-09 15:33:25 -0700181#define SNDRV_PCM_FORMAT_U24_3BE ((__force snd_pcm_format_t) 35)
Ben Cheng655a7c02013-10-16 16:09:24 -0700182#define SNDRV_PCM_FORMAT_S20_3LE ((__force snd_pcm_format_t) 36)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700184#define SNDRV_PCM_FORMAT_S20_3BE ((__force snd_pcm_format_t) 37)
185#define SNDRV_PCM_FORMAT_U20_3LE ((__force snd_pcm_format_t) 38)
Christopher Ferris38062f92014-07-09 15:33:25 -0700186#define SNDRV_PCM_FORMAT_U20_3BE ((__force snd_pcm_format_t) 39)
Ben Cheng655a7c02013-10-16 16:09:24 -0700187#define SNDRV_PCM_FORMAT_S18_3LE ((__force snd_pcm_format_t) 40)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700189#define SNDRV_PCM_FORMAT_S18_3BE ((__force snd_pcm_format_t) 41)
190#define SNDRV_PCM_FORMAT_U18_3LE ((__force snd_pcm_format_t) 42)
Christopher Ferris38062f92014-07-09 15:33:25 -0700191#define SNDRV_PCM_FORMAT_U18_3BE ((__force snd_pcm_format_t) 43)
Ben Cheng655a7c02013-10-16 16:09:24 -0700192#define SNDRV_PCM_FORMAT_G723_24 ((__force snd_pcm_format_t) 44)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700194#define SNDRV_PCM_FORMAT_G723_24_1B ((__force snd_pcm_format_t) 45)
195#define SNDRV_PCM_FORMAT_G723_40 ((__force snd_pcm_format_t) 46)
Christopher Ferris38062f92014-07-09 15:33:25 -0700196#define SNDRV_PCM_FORMAT_G723_40_1B ((__force snd_pcm_format_t) 47)
Ben Cheng655a7c02013-10-16 16:09:24 -0700197#define SNDRV_PCM_FORMAT_DSD_U8 ((__force snd_pcm_format_t) 48)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700199#define SNDRV_PCM_FORMAT_DSD_U16_LE ((__force snd_pcm_format_t) 49)
Christopher Ferris82d75042015-01-26 10:57:07 -0800200#define SNDRV_PCM_FORMAT_DSD_U32_LE ((__force snd_pcm_format_t) 50)
201#define SNDRV_PCM_FORMAT_DSD_U16_BE ((__force snd_pcm_format_t) 51)
202#define SNDRV_PCM_FORMAT_DSD_U32_BE ((__force snd_pcm_format_t) 52)
203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204#define SNDRV_PCM_FORMAT_LAST SNDRV_PCM_FORMAT_DSD_U32_BE
Christopher Ferris38062f92014-07-09 15:33:25 -0700205#ifdef SNDRV_LITTLE_ENDIAN
Ben Cheng655a7c02013-10-16 16:09:24 -0700206#define SNDRV_PCM_FORMAT_S16 SNDRV_PCM_FORMAT_S16_LE
207#define SNDRV_PCM_FORMAT_U16 SNDRV_PCM_FORMAT_U16_LE
Christopher Ferris82d75042015-01-26 10:57:07 -0800208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700209#define SNDRV_PCM_FORMAT_S24 SNDRV_PCM_FORMAT_S24_LE
Christopher Ferris38062f92014-07-09 15:33:25 -0700210#define SNDRV_PCM_FORMAT_U24 SNDRV_PCM_FORMAT_U24_LE
Ben Cheng655a7c02013-10-16 16:09:24 -0700211#define SNDRV_PCM_FORMAT_S32 SNDRV_PCM_FORMAT_S32_LE
212#define SNDRV_PCM_FORMAT_U32 SNDRV_PCM_FORMAT_U32_LE
Christopher Ferris82d75042015-01-26 10:57:07 -0800213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700214#define SNDRV_PCM_FORMAT_FLOAT SNDRV_PCM_FORMAT_FLOAT_LE
Christopher Ferris38062f92014-07-09 15:33:25 -0700215#define SNDRV_PCM_FORMAT_FLOAT64 SNDRV_PCM_FORMAT_FLOAT64_LE
Ben Cheng655a7c02013-10-16 16:09:24 -0700216#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME SNDRV_PCM_FORMAT_IEC958_SUBFRAME_LE
217#endif
Christopher Ferris82d75042015-01-26 10:57:07 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700219#ifdef SNDRV_BIG_ENDIAN
Christopher Ferris38062f92014-07-09 15:33:25 -0700220#define SNDRV_PCM_FORMAT_S16 SNDRV_PCM_FORMAT_S16_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700221#define SNDRV_PCM_FORMAT_U16 SNDRV_PCM_FORMAT_U16_BE
222#define SNDRV_PCM_FORMAT_S24 SNDRV_PCM_FORMAT_S24_BE
Christopher Ferris82d75042015-01-26 10:57:07 -0800223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700224#define SNDRV_PCM_FORMAT_U24 SNDRV_PCM_FORMAT_U24_BE
Christopher Ferris38062f92014-07-09 15:33:25 -0700225#define SNDRV_PCM_FORMAT_S32 SNDRV_PCM_FORMAT_S32_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700226#define SNDRV_PCM_FORMAT_U32 SNDRV_PCM_FORMAT_U32_BE
227#define SNDRV_PCM_FORMAT_FLOAT SNDRV_PCM_FORMAT_FLOAT_BE
Christopher Ferris82d75042015-01-26 10:57:07 -0800228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700229#define SNDRV_PCM_FORMAT_FLOAT64 SNDRV_PCM_FORMAT_FLOAT64_BE
Christopher Ferris38062f92014-07-09 15:33:25 -0700230#define SNDRV_PCM_FORMAT_IEC958_SUBFRAME SNDRV_PCM_FORMAT_IEC958_SUBFRAME_BE
Ben Cheng655a7c02013-10-16 16:09:24 -0700231#endif
232typedef int __bitwise snd_pcm_subformat_t;
Christopher Ferris82d75042015-01-26 10:57:07 -0800233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700234#define SNDRV_PCM_SUBFORMAT_STD ((__force snd_pcm_subformat_t) 0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700235#define SNDRV_PCM_SUBFORMAT_LAST SNDRV_PCM_SUBFORMAT_STD
Ben Cheng655a7c02013-10-16 16:09:24 -0700236#define SNDRV_PCM_INFO_MMAP 0x00000001
237#define SNDRV_PCM_INFO_MMAP_VALID 0x00000002
Christopher Ferris82d75042015-01-26 10:57:07 -0800238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700239#define SNDRV_PCM_INFO_DOUBLE 0x00000004
Christopher Ferris38062f92014-07-09 15:33:25 -0700240#define SNDRV_PCM_INFO_BATCH 0x00000010
Ben Cheng655a7c02013-10-16 16:09:24 -0700241#define SNDRV_PCM_INFO_INTERLEAVED 0x00000100
242#define SNDRV_PCM_INFO_NONINTERLEAVED 0x00000200
Christopher Ferris82d75042015-01-26 10:57:07 -0800243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700244#define SNDRV_PCM_INFO_COMPLEX 0x00000400
Christopher Ferris38062f92014-07-09 15:33:25 -0700245#define SNDRV_PCM_INFO_BLOCK_TRANSFER 0x00010000
Ben Cheng655a7c02013-10-16 16:09:24 -0700246#define SNDRV_PCM_INFO_OVERRANGE 0x00020000
247#define SNDRV_PCM_INFO_RESUME 0x00040000
Christopher Ferris82d75042015-01-26 10:57:07 -0800248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700249#define SNDRV_PCM_INFO_PAUSE 0x00080000
Christopher Ferris38062f92014-07-09 15:33:25 -0700250#define SNDRV_PCM_INFO_HALF_DUPLEX 0x00100000
Ben Cheng655a7c02013-10-16 16:09:24 -0700251#define SNDRV_PCM_INFO_JOINT_DUPLEX 0x00200000
252#define SNDRV_PCM_INFO_SYNC_START 0x00400000
Christopher Ferris82d75042015-01-26 10:57:07 -0800253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700254#define SNDRV_PCM_INFO_NO_PERIOD_WAKEUP 0x00800000
Christopher Ferris38062f92014-07-09 15:33:25 -0700255#define SNDRV_PCM_INFO_HAS_WALL_CLOCK 0x01000000
Ben Cheng655a7c02013-10-16 16:09:24 -0700256#define SNDRV_PCM_INFO_FIFO_IN_FRAMES 0x80000000
257typedef int __bitwise snd_pcm_state_t;
Christopher Ferris82d75042015-01-26 10:57:07 -0800258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700259#define SNDRV_PCM_STATE_OPEN ((__force snd_pcm_state_t) 0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700260#define SNDRV_PCM_STATE_SETUP ((__force snd_pcm_state_t) 1)
Ben Cheng655a7c02013-10-16 16:09:24 -0700261#define SNDRV_PCM_STATE_PREPARED ((__force snd_pcm_state_t) 2)
262#define SNDRV_PCM_STATE_RUNNING ((__force snd_pcm_state_t) 3)
Christopher Ferris82d75042015-01-26 10:57:07 -0800263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700264#define SNDRV_PCM_STATE_XRUN ((__force snd_pcm_state_t) 4)
Christopher Ferris38062f92014-07-09 15:33:25 -0700265#define SNDRV_PCM_STATE_DRAINING ((__force snd_pcm_state_t) 5)
Ben Cheng655a7c02013-10-16 16:09:24 -0700266#define SNDRV_PCM_STATE_PAUSED ((__force snd_pcm_state_t) 6)
267#define SNDRV_PCM_STATE_SUSPENDED ((__force snd_pcm_state_t) 7)
Christopher Ferris82d75042015-01-26 10:57:07 -0800268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700269#define SNDRV_PCM_STATE_DISCONNECTED ((__force snd_pcm_state_t) 8)
Christopher Ferris38062f92014-07-09 15:33:25 -0700270#define SNDRV_PCM_STATE_LAST SNDRV_PCM_STATE_DISCONNECTED
Ben Cheng655a7c02013-10-16 16:09:24 -0700271enum {
Tao Baod7db5942015-01-28 10:07:51 -0800272 SNDRV_PCM_MMAP_OFFSET_DATA = 0x00000000,
Christopher Ferris82d75042015-01-26 10:57:07 -0800273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800274 SNDRV_PCM_MMAP_OFFSET_STATUS = 0x80000000,
275 SNDRV_PCM_MMAP_OFFSET_CONTROL = 0x81000000,
Ben Cheng655a7c02013-10-16 16:09:24 -0700276};
277union snd_pcm_sync_id {
Christopher Ferris82d75042015-01-26 10:57:07 -0800278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800279 unsigned char id[16];
280 unsigned short id16[8];
281 unsigned int id32[4];
Ben Cheng655a7c02013-10-16 16:09:24 -0700282};
Christopher Ferris82d75042015-01-26 10:57:07 -0800283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700284struct snd_pcm_info {
Tao Baod7db5942015-01-28 10:07:51 -0800285 unsigned int device;
286 unsigned int subdevice;
287 int stream;
Christopher Ferris82d75042015-01-26 10:57:07 -0800288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800289 int card;
290 unsigned char id[64];
291 unsigned char name[80];
292 unsigned char subname[32];
Christopher Ferris82d75042015-01-26 10:57:07 -0800293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800294 int dev_class;
295 int dev_subclass;
296 unsigned int subdevices_count;
297 unsigned int subdevices_avail;
Christopher Ferris82d75042015-01-26 10:57:07 -0800298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800299 union snd_pcm_sync_id sync;
300 unsigned char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700301};
302typedef int snd_pcm_hw_param_t;
Christopher Ferris82d75042015-01-26 10:57:07 -0800303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700304#define SNDRV_PCM_HW_PARAM_ACCESS 0
Christopher Ferris38062f92014-07-09 15:33:25 -0700305#define SNDRV_PCM_HW_PARAM_FORMAT 1
Ben Cheng655a7c02013-10-16 16:09:24 -0700306#define SNDRV_PCM_HW_PARAM_SUBFORMAT 2
307#define SNDRV_PCM_HW_PARAM_FIRST_MASK SNDRV_PCM_HW_PARAM_ACCESS
Christopher Ferris82d75042015-01-26 10:57:07 -0800308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700309#define SNDRV_PCM_HW_PARAM_LAST_MASK SNDRV_PCM_HW_PARAM_SUBFORMAT
Christopher Ferris38062f92014-07-09 15:33:25 -0700310#define SNDRV_PCM_HW_PARAM_SAMPLE_BITS 8
Ben Cheng655a7c02013-10-16 16:09:24 -0700311#define SNDRV_PCM_HW_PARAM_FRAME_BITS 9
312#define SNDRV_PCM_HW_PARAM_CHANNELS 10
Christopher Ferris82d75042015-01-26 10:57:07 -0800313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700314#define SNDRV_PCM_HW_PARAM_RATE 11
Christopher Ferris38062f92014-07-09 15:33:25 -0700315#define SNDRV_PCM_HW_PARAM_PERIOD_TIME 12
Ben Cheng655a7c02013-10-16 16:09:24 -0700316#define SNDRV_PCM_HW_PARAM_PERIOD_SIZE 13
317#define SNDRV_PCM_HW_PARAM_PERIOD_BYTES 14
Christopher Ferris82d75042015-01-26 10:57:07 -0800318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700319#define SNDRV_PCM_HW_PARAM_PERIODS 15
Christopher Ferris38062f92014-07-09 15:33:25 -0700320#define SNDRV_PCM_HW_PARAM_BUFFER_TIME 16
Ben Cheng655a7c02013-10-16 16:09:24 -0700321#define SNDRV_PCM_HW_PARAM_BUFFER_SIZE 17
322#define SNDRV_PCM_HW_PARAM_BUFFER_BYTES 18
Christopher Ferris82d75042015-01-26 10:57:07 -0800323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700324#define SNDRV_PCM_HW_PARAM_TICK_TIME 19
Christopher Ferris38062f92014-07-09 15:33:25 -0700325#define SNDRV_PCM_HW_PARAM_FIRST_INTERVAL SNDRV_PCM_HW_PARAM_SAMPLE_BITS
Ben Cheng655a7c02013-10-16 16:09:24 -0700326#define SNDRV_PCM_HW_PARAM_LAST_INTERVAL SNDRV_PCM_HW_PARAM_TICK_TIME
Tao Baod7db5942015-01-28 10:07:51 -0800327#define SNDRV_PCM_HW_PARAMS_NORESAMPLE (1 << 0)
Christopher Ferris82d75042015-01-26 10:57:07 -0800328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800329#define SNDRV_PCM_HW_PARAMS_EXPORT_BUFFER (1 << 1)
330#define SNDRV_PCM_HW_PARAMS_NO_PERIOD_WAKEUP (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700331struct snd_interval {
Tao Baod7db5942015-01-28 10:07:51 -0800332 unsigned int min, max;
Christopher Ferris82d75042015-01-26 10:57:07 -0800333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800334 unsigned int openmin : 1, openmax : 1, integer : 1, empty : 1;
Ben Cheng655a7c02013-10-16 16:09:24 -0700335};
Christopher Ferris38062f92014-07-09 15:33:25 -0700336#define SNDRV_MASK_MAX 256
Ben Cheng655a7c02013-10-16 16:09:24 -0700337struct snd_mask {
Christopher Ferris82d75042015-01-26 10:57:07 -0800338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800339 __u32 bits[(SNDRV_MASK_MAX + 31) / 32];
Ben Cheng655a7c02013-10-16 16:09:24 -0700340};
Christopher Ferris38062f92014-07-09 15:33:25 -0700341struct snd_pcm_hw_params {
Tao Baod7db5942015-01-28 10:07:51 -0800342 unsigned int flags;
Christopher Ferris82d75042015-01-26 10:57:07 -0800343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800344 struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK - SNDRV_PCM_HW_PARAM_FIRST_MASK + 1];
345 struct snd_mask mres[5];
346 struct snd_interval intervals[SNDRV_PCM_HW_PARAM_LAST_INTERVAL - SNDRV_PCM_HW_PARAM_FIRST_INTERVAL + 1];
347 struct snd_interval ires[9];
Christopher Ferris82d75042015-01-26 10:57:07 -0800348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800349 unsigned int rmask;
350 unsigned int cmask;
351 unsigned int info;
352 unsigned int msbits;
Christopher Ferris82d75042015-01-26 10:57:07 -0800353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800354 unsigned int rate_num;
355 unsigned int rate_den;
356 snd_pcm_uframes_t fifo_size;
357 unsigned char reserved[64];
Christopher Ferris82d75042015-01-26 10:57:07 -0800358/* 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 {
Tao Baod7db5942015-01-28 10:07:51 -0800361 SNDRV_PCM_TSTAMP_NONE = 0,
362 SNDRV_PCM_TSTAMP_ENABLE,
Christopher Ferris82d75042015-01-26 10:57:07 -0800363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800364 SNDRV_PCM_TSTAMP_LAST = SNDRV_PCM_TSTAMP_ENABLE,
Ben Cheng655a7c02013-10-16 16:09:24 -0700365};
366struct snd_pcm_sw_params {
Tao Baod7db5942015-01-28 10:07:51 -0800367 int tstamp_mode;
Christopher Ferris82d75042015-01-26 10:57:07 -0800368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800369 unsigned int period_step;
370 unsigned int sleep_min;
371 snd_pcm_uframes_t avail_min;
372 snd_pcm_uframes_t xfer_align;
Christopher Ferris82d75042015-01-26 10:57:07 -0800373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800374 snd_pcm_uframes_t start_threshold;
375 snd_pcm_uframes_t stop_threshold;
376 snd_pcm_uframes_t silence_threshold;
377 snd_pcm_uframes_t silence_size;
Christopher Ferris82d75042015-01-26 10:57:07 -0800378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800379 snd_pcm_uframes_t boundary;
380 unsigned int proto;
381 unsigned int tstamp_type;
382 unsigned char reserved[56];
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700384};
385struct snd_pcm_channel_info {
Tao Baod7db5942015-01-28 10:07:51 -0800386 unsigned int channel;
387 __kernel_off_t offset;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800389 unsigned int first;
390 unsigned int step;
Christopher Ferris38062f92014-07-09 15:33:25 -0700391};
Christopher Ferris82d75042015-01-26 10:57:07 -0800392struct snd_pcm_status {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800394 snd_pcm_state_t state;
395 struct timespec trigger_tstamp;
396 struct timespec tstamp;
397 snd_pcm_uframes_t appl_ptr;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800399 snd_pcm_uframes_t hw_ptr;
400 snd_pcm_sframes_t delay;
401 snd_pcm_uframes_t avail;
402 snd_pcm_uframes_t avail_max;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800404 snd_pcm_uframes_t overrange;
405 snd_pcm_state_t suspended_state;
406 __u32 reserved_alignment;
407 struct timespec audio_tstamp;
408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
409 unsigned char reserved[56 - sizeof(struct timespec)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700410};
Christopher Ferris38062f92014-07-09 15:33:25 -0700411struct snd_pcm_mmap_status {
Tao Baod7db5942015-01-28 10:07:51 -0800412 snd_pcm_state_t state;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700413/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800414 int pad1;
415 snd_pcm_uframes_t hw_ptr;
416 struct timespec tstamp;
417 snd_pcm_state_t suspended_state;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700418/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800419 struct timespec audio_tstamp;
Ben Cheng655a7c02013-10-16 16:09:24 -0700420};
Christopher Ferris38062f92014-07-09 15:33:25 -0700421struct snd_pcm_mmap_control {
Tao Baod7db5942015-01-28 10:07:51 -0800422 snd_pcm_uframes_t appl_ptr;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700423/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800424 snd_pcm_uframes_t avail_min;
Ben Cheng655a7c02013-10-16 16:09:24 -0700425};
Tao Baod7db5942015-01-28 10:07:51 -0800426#define SNDRV_PCM_SYNC_PTR_HWSYNC (1 << 0)
427#define SNDRV_PCM_SYNC_PTR_APPL (1 << 1)
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700428/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800429#define SNDRV_PCM_SYNC_PTR_AVAIL_MIN (1 << 2)
Ben Cheng655a7c02013-10-16 16:09:24 -0700430struct snd_pcm_sync_ptr {
Tao Baod7db5942015-01-28 10:07:51 -0800431 unsigned int flags;
432 union {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700433/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800434 struct snd_pcm_mmap_status status;
435 unsigned char reserved[64];
436 } s;
437 union {
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700438/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800439 struct snd_pcm_mmap_control control;
440 unsigned char reserved[64];
441 } c;
Christopher Ferris82d75042015-01-26 10:57:07 -0800442};
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700443/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800444struct snd_xferi {
445 snd_pcm_sframes_t result;
446 void __user * buf;
447 snd_pcm_uframes_t frames;
448/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700449};
450struct snd_xfern {
Tao Baod7db5942015-01-28 10:07:51 -0800451 snd_pcm_sframes_t result;
452 void __user * __user * bufs;
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700453/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800454 snd_pcm_uframes_t frames;
Ben Cheng655a7c02013-10-16 16:09:24 -0700455};
Christopher Ferris38062f92014-07-09 15:33:25 -0700456enum {
Tao Baod7db5942015-01-28 10:07:51 -0800457 SNDRV_PCM_TSTAMP_TYPE_GETTIMEOFDAY = 0,
Christopher Ferrisba8d4f42014-09-03 19:56:49 -0700458/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800459 SNDRV_PCM_TSTAMP_TYPE_MONOTONIC,
460 SNDRV_PCM_TSTAMP_TYPE_MONOTONIC_RAW,
461 SNDRV_PCM_TSTAMP_TYPE_LAST = SNDRV_PCM_TSTAMP_TYPE_MONOTONIC_RAW,
Christopher Ferris38062f92014-07-09 15:33:25 -0700462};
Tao Baod7db5942015-01-28 10:07:51 -0800463/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700464enum {
Tao Baod7db5942015-01-28 10:07:51 -0800465 SNDRV_CHMAP_UNKNOWN = 0,
466 SNDRV_CHMAP_NA,
467 SNDRV_CHMAP_MONO,
Christopher Ferris82d75042015-01-26 10:57:07 -0800468/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800469 SNDRV_CHMAP_FL,
470 SNDRV_CHMAP_FR,
471 SNDRV_CHMAP_RL,
472 SNDRV_CHMAP_RR,
Christopher Ferris82d75042015-01-26 10:57:07 -0800473/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800474 SNDRV_CHMAP_FC,
475 SNDRV_CHMAP_LFE,
476 SNDRV_CHMAP_SL,
477 SNDRV_CHMAP_SR,
Christopher Ferris82d75042015-01-26 10:57:07 -0800478/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800479 SNDRV_CHMAP_RC,
480 SNDRV_CHMAP_FLC,
481 SNDRV_CHMAP_FRC,
482 SNDRV_CHMAP_RLC,
Christopher Ferris82d75042015-01-26 10:57:07 -0800483/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800484 SNDRV_CHMAP_RRC,
485 SNDRV_CHMAP_FLW,
486 SNDRV_CHMAP_FRW,
487 SNDRV_CHMAP_FLH,
Christopher Ferris82d75042015-01-26 10:57:07 -0800488/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800489 SNDRV_CHMAP_FCH,
490 SNDRV_CHMAP_FRH,
491 SNDRV_CHMAP_TC,
492 SNDRV_CHMAP_TFL,
Christopher Ferris82d75042015-01-26 10:57:07 -0800493/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800494 SNDRV_CHMAP_TFR,
495 SNDRV_CHMAP_TFC,
496 SNDRV_CHMAP_TRL,
497 SNDRV_CHMAP_TRR,
Christopher Ferris82d75042015-01-26 10:57:07 -0800498/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800499 SNDRV_CHMAP_TRC,
500 SNDRV_CHMAP_TFLC,
501 SNDRV_CHMAP_TFRC,
502 SNDRV_CHMAP_TSL,
Christopher Ferris82d75042015-01-26 10:57:07 -0800503/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800504 SNDRV_CHMAP_TSR,
505 SNDRV_CHMAP_LLFE,
506 SNDRV_CHMAP_RLFE,
507 SNDRV_CHMAP_BC,
Christopher Ferris82d75042015-01-26 10:57:07 -0800508/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800509 SNDRV_CHMAP_BLC,
510 SNDRV_CHMAP_BRC,
511 SNDRV_CHMAP_LAST = SNDRV_CHMAP_BRC,
Christopher Ferris38062f92014-07-09 15:33:25 -0700512};
Tao Baod7db5942015-01-28 10:07:51 -0800513/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700514#define SNDRV_CHMAP_POSITION_MASK 0xffff
515#define SNDRV_CHMAP_PHASE_INVERSE (0x01 << 16)
516#define SNDRV_CHMAP_DRIVER_SPEC (0x02 << 16)
Christopher Ferris38062f92014-07-09 15:33:25 -0700517#define SNDRV_PCM_IOCTL_PVERSION _IOR('A', 0x00, int)
Tao Baod7db5942015-01-28 10:07:51 -0800518/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700519#define SNDRV_PCM_IOCTL_INFO _IOR('A', 0x01, struct snd_pcm_info)
520#define SNDRV_PCM_IOCTL_TSTAMP _IOW('A', 0x02, int)
521#define SNDRV_PCM_IOCTL_TTSTAMP _IOW('A', 0x03, int)
Christopher Ferris38062f92014-07-09 15:33:25 -0700522#define SNDRV_PCM_IOCTL_HW_REFINE _IOWR('A', 0x10, struct snd_pcm_hw_params)
Tao Baod7db5942015-01-28 10:07:51 -0800523/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700524#define SNDRV_PCM_IOCTL_HW_PARAMS _IOWR('A', 0x11, struct snd_pcm_hw_params)
525#define SNDRV_PCM_IOCTL_HW_FREE _IO('A', 0x12)
526#define SNDRV_PCM_IOCTL_SW_PARAMS _IOWR('A', 0x13, struct snd_pcm_sw_params)
Christopher Ferris38062f92014-07-09 15:33:25 -0700527#define SNDRV_PCM_IOCTL_STATUS _IOR('A', 0x20, struct snd_pcm_status)
Tao Baod7db5942015-01-28 10:07:51 -0800528/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700529#define SNDRV_PCM_IOCTL_DELAY _IOR('A', 0x21, snd_pcm_sframes_t)
530#define SNDRV_PCM_IOCTL_HWSYNC _IO('A', 0x22)
531#define SNDRV_PCM_IOCTL_SYNC_PTR _IOWR('A', 0x23, struct snd_pcm_sync_ptr)
Christopher Ferris38062f92014-07-09 15:33:25 -0700532#define SNDRV_PCM_IOCTL_CHANNEL_INFO _IOR('A', 0x32, struct snd_pcm_channel_info)
Tao Baod7db5942015-01-28 10:07:51 -0800533/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700534#define SNDRV_PCM_IOCTL_PREPARE _IO('A', 0x40)
535#define SNDRV_PCM_IOCTL_RESET _IO('A', 0x41)
536#define SNDRV_PCM_IOCTL_START _IO('A', 0x42)
Christopher Ferris38062f92014-07-09 15:33:25 -0700537#define SNDRV_PCM_IOCTL_DROP _IO('A', 0x43)
Tao Baod7db5942015-01-28 10:07:51 -0800538/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700539#define SNDRV_PCM_IOCTL_DRAIN _IO('A', 0x44)
540#define SNDRV_PCM_IOCTL_PAUSE _IOW('A', 0x45, int)
541#define SNDRV_PCM_IOCTL_REWIND _IOW('A', 0x46, snd_pcm_uframes_t)
Christopher Ferris38062f92014-07-09 15:33:25 -0700542#define SNDRV_PCM_IOCTL_RESUME _IO('A', 0x47)
Tao Baod7db5942015-01-28 10:07:51 -0800543/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700544#define SNDRV_PCM_IOCTL_XRUN _IO('A', 0x48)
545#define SNDRV_PCM_IOCTL_FORWARD _IOW('A', 0x49, snd_pcm_uframes_t)
546#define SNDRV_PCM_IOCTL_WRITEI_FRAMES _IOW('A', 0x50, struct snd_xferi)
Christopher Ferris38062f92014-07-09 15:33:25 -0700547#define SNDRV_PCM_IOCTL_READI_FRAMES _IOR('A', 0x51, struct snd_xferi)
Tao Baod7db5942015-01-28 10:07:51 -0800548/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700549#define SNDRV_PCM_IOCTL_WRITEN_FRAMES _IOW('A', 0x52, struct snd_xfern)
550#define SNDRV_PCM_IOCTL_READN_FRAMES _IOR('A', 0x53, struct snd_xfern)
551#define SNDRV_PCM_IOCTL_LINK _IOW('A', 0x60, int)
Christopher Ferris38062f92014-07-09 15:33:25 -0700552#define SNDRV_PCM_IOCTL_UNLINK _IO('A', 0x61)
Tao Baod7db5942015-01-28 10:07:51 -0800553/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700554#define SNDRV_RAWMIDI_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 0)
555enum {
Tao Baod7db5942015-01-28 10:07:51 -0800556 SNDRV_RAWMIDI_STREAM_OUTPUT = 0,
557 SNDRV_RAWMIDI_STREAM_INPUT,
Christopher Ferris82d75042015-01-26 10:57:07 -0800558/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800559 SNDRV_RAWMIDI_STREAM_LAST = SNDRV_RAWMIDI_STREAM_INPUT,
Ben Cheng655a7c02013-10-16 16:09:24 -0700560};
561#define SNDRV_RAWMIDI_INFO_OUTPUT 0x00000001
Christopher Ferris38062f92014-07-09 15:33:25 -0700562#define SNDRV_RAWMIDI_INFO_INPUT 0x00000002
Tao Baod7db5942015-01-28 10:07:51 -0800563/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700564#define SNDRV_RAWMIDI_INFO_DUPLEX 0x00000004
565struct snd_rawmidi_info {
Tao Baod7db5942015-01-28 10:07:51 -0800566 unsigned int device;
567 unsigned int subdevice;
Christopher Ferris82d75042015-01-26 10:57:07 -0800568/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800569 int stream;
570 int card;
571 unsigned int flags;
572 unsigned char id[64];
Christopher Ferris82d75042015-01-26 10:57:07 -0800573/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800574 unsigned char name[80];
575 unsigned char subname[32];
576 unsigned int subdevices_count;
577 unsigned int subdevices_avail;
Christopher Ferris82d75042015-01-26 10:57:07 -0800578/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800579 unsigned char reserved[64];
Ben Cheng655a7c02013-10-16 16:09:24 -0700580};
581struct snd_rawmidi_params {
Tao Baod7db5942015-01-28 10:07:51 -0800582 int stream;
Christopher Ferris82d75042015-01-26 10:57:07 -0800583/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800584 size_t buffer_size;
585 size_t avail_min;
586 unsigned int no_active_sensing : 1;
587 unsigned char reserved[16];
Christopher Ferris82d75042015-01-26 10:57:07 -0800588/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700589};
590struct snd_rawmidi_status {
Tao Baod7db5942015-01-28 10:07:51 -0800591 int stream;
592 struct timespec tstamp;
Christopher Ferris82d75042015-01-26 10:57:07 -0800593/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800594 size_t avail;
595 size_t xruns;
596 unsigned char reserved[16];
Christopher Ferris38062f92014-07-09 15:33:25 -0700597};
Tao Baod7db5942015-01-28 10:07:51 -0800598/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700599#define SNDRV_RAWMIDI_IOCTL_PVERSION _IOR('W', 0x00, int)
600#define SNDRV_RAWMIDI_IOCTL_INFO _IOR('W', 0x01, struct snd_rawmidi_info)
601#define SNDRV_RAWMIDI_IOCTL_PARAMS _IOWR('W', 0x10, struct snd_rawmidi_params)
Christopher Ferris38062f92014-07-09 15:33:25 -0700602#define SNDRV_RAWMIDI_IOCTL_STATUS _IOWR('W', 0x20, struct snd_rawmidi_status)
Tao Baod7db5942015-01-28 10:07:51 -0800603/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700604#define SNDRV_RAWMIDI_IOCTL_DROP _IOW('W', 0x30, int)
605#define SNDRV_RAWMIDI_IOCTL_DRAIN _IOW('W', 0x31, int)
606#define SNDRV_TIMER_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 6)
Christopher Ferris38062f92014-07-09 15:33:25 -0700607enum {
Christopher Ferris82d75042015-01-26 10:57:07 -0800608/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800609 SNDRV_TIMER_CLASS_NONE = - 1,
610 SNDRV_TIMER_CLASS_SLAVE = 0,
611 SNDRV_TIMER_CLASS_GLOBAL,
612 SNDRV_TIMER_CLASS_CARD,
613/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
614 SNDRV_TIMER_CLASS_PCM,
615 SNDRV_TIMER_CLASS_LAST = SNDRV_TIMER_CLASS_PCM,
Ben Cheng655a7c02013-10-16 16:09:24 -0700616};
Christopher Ferris38062f92014-07-09 15:33:25 -0700617enum {
Christopher Ferris82d75042015-01-26 10:57:07 -0800618/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800619 SNDRV_TIMER_SCLASS_NONE = 0,
620 SNDRV_TIMER_SCLASS_APPLICATION,
621 SNDRV_TIMER_SCLASS_SEQUENCER,
622 SNDRV_TIMER_SCLASS_OSS_SEQUENCER,
623/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
624 SNDRV_TIMER_SCLASS_LAST = SNDRV_TIMER_SCLASS_OSS_SEQUENCER,
Ben Cheng655a7c02013-10-16 16:09:24 -0700625};
626#define SNDRV_TIMER_GLOBAL_SYSTEM 0
Christopher Ferris38062f92014-07-09 15:33:25 -0700627#define SNDRV_TIMER_GLOBAL_RTC 1
Tao Baod7db5942015-01-28 10:07:51 -0800628/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700629#define SNDRV_TIMER_GLOBAL_HPET 2
630#define SNDRV_TIMER_GLOBAL_HRTIMER 3
Tao Baod7db5942015-01-28 10:07:51 -0800631#define SNDRV_TIMER_FLG_SLAVE (1 << 0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700632struct snd_timer_id {
Christopher Ferris82d75042015-01-26 10:57:07 -0800633/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800634 int dev_class;
635 int dev_sclass;
636 int card;
637 int device;
638/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
639 int subdevice;
Ben Cheng655a7c02013-10-16 16:09:24 -0700640};
641struct snd_timer_ginfo {
Tao Baod7db5942015-01-28 10:07:51 -0800642 struct snd_timer_id tid;
Christopher Ferris82d75042015-01-26 10:57:07 -0800643/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800644 unsigned int flags;
645 int card;
646 unsigned char id[64];
647 unsigned char name[80];
Christopher Ferris82d75042015-01-26 10:57:07 -0800648/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800649 unsigned long reserved0;
650 unsigned long resolution;
651 unsigned long resolution_min;
652 unsigned long resolution_max;
Christopher Ferris82d75042015-01-26 10:57:07 -0800653/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800654 unsigned int clients;
655 unsigned char reserved[32];
Ben Cheng655a7c02013-10-16 16:09:24 -0700656};
Christopher Ferris38062f92014-07-09 15:33:25 -0700657struct snd_timer_gparams {
Christopher Ferris82d75042015-01-26 10:57:07 -0800658/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800659 struct snd_timer_id tid;
660 unsigned long period_num;
661 unsigned long period_den;
662 unsigned char reserved[32];
663/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700664};
665struct snd_timer_gstatus {
Tao Baod7db5942015-01-28 10:07:51 -0800666 struct snd_timer_id tid;
667 unsigned long resolution;
Christopher Ferris82d75042015-01-26 10:57:07 -0800668/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800669 unsigned long resolution_num;
670 unsigned long resolution_den;
671 unsigned char reserved[32];
Christopher Ferris38062f92014-07-09 15:33:25 -0700672};
Tao Baod7db5942015-01-28 10:07:51 -0800673/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700674struct snd_timer_select {
Tao Baod7db5942015-01-28 10:07:51 -0800675 struct snd_timer_id id;
676 unsigned char reserved[32];
Christopher Ferris38062f92014-07-09 15:33:25 -0700677};
Tao Baod7db5942015-01-28 10:07:51 -0800678/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700679struct snd_timer_info {
Tao Baod7db5942015-01-28 10:07:51 -0800680 unsigned int flags;
681 int card;
682 unsigned char id[64];
Christopher Ferris82d75042015-01-26 10:57:07 -0800683/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800684 unsigned char name[80];
685 unsigned long reserved0;
686 unsigned long resolution;
687 unsigned char reserved[64];
Christopher Ferris82d75042015-01-26 10:57:07 -0800688/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700689};
Tao Baod7db5942015-01-28 10:07:51 -0800690#define SNDRV_TIMER_PSFLG_AUTO (1 << 0)
691#define SNDRV_TIMER_PSFLG_EXCLUSIVE (1 << 1)
692#define SNDRV_TIMER_PSFLG_EARLY_EVENT (1 << 2)
Christopher Ferris82d75042015-01-26 10:57:07 -0800693/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700694struct snd_timer_params {
Tao Baod7db5942015-01-28 10:07:51 -0800695 unsigned int flags;
696 unsigned int ticks;
697 unsigned int queue_size;
Christopher Ferris82d75042015-01-26 10:57:07 -0800698/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800699 unsigned int reserved0;
700 unsigned int filter;
701 unsigned char reserved[60];
Christopher Ferris38062f92014-07-09 15:33:25 -0700702};
Tao Baod7db5942015-01-28 10:07:51 -0800703/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700704struct snd_timer_status {
Tao Baod7db5942015-01-28 10:07:51 -0800705 struct timespec tstamp;
706 unsigned int resolution;
707 unsigned int lost;
Christopher Ferris82d75042015-01-26 10:57:07 -0800708/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800709 unsigned int overrun;
710 unsigned int queue;
711 unsigned char reserved[64];
Christopher Ferris38062f92014-07-09 15:33:25 -0700712};
Tao Baod7db5942015-01-28 10:07:51 -0800713/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700714#define SNDRV_TIMER_IOCTL_PVERSION _IOR('T', 0x00, int)
715#define SNDRV_TIMER_IOCTL_NEXT_DEVICE _IOWR('T', 0x01, struct snd_timer_id)
716#define SNDRV_TIMER_IOCTL_TREAD _IOW('T', 0x02, int)
Christopher Ferris38062f92014-07-09 15:33:25 -0700717#define SNDRV_TIMER_IOCTL_GINFO _IOWR('T', 0x03, struct snd_timer_ginfo)
Tao Baod7db5942015-01-28 10:07:51 -0800718/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700719#define SNDRV_TIMER_IOCTL_GPARAMS _IOW('T', 0x04, struct snd_timer_gparams)
720#define SNDRV_TIMER_IOCTL_GSTATUS _IOWR('T', 0x05, struct snd_timer_gstatus)
721#define SNDRV_TIMER_IOCTL_SELECT _IOW('T', 0x10, struct snd_timer_select)
Christopher Ferris38062f92014-07-09 15:33:25 -0700722#define SNDRV_TIMER_IOCTL_INFO _IOR('T', 0x11, struct snd_timer_info)
Tao Baod7db5942015-01-28 10:07:51 -0800723/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700724#define SNDRV_TIMER_IOCTL_PARAMS _IOW('T', 0x12, struct snd_timer_params)
725#define SNDRV_TIMER_IOCTL_STATUS _IOR('T', 0x14, struct snd_timer_status)
726#define SNDRV_TIMER_IOCTL_START _IO('T', 0xa0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700727#define SNDRV_TIMER_IOCTL_STOP _IO('T', 0xa1)
Tao Baod7db5942015-01-28 10:07:51 -0800728/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700729#define SNDRV_TIMER_IOCTL_CONTINUE _IO('T', 0xa2)
730#define SNDRV_TIMER_IOCTL_PAUSE _IO('T', 0xa3)
731struct snd_timer_read {
Tao Baod7db5942015-01-28 10:07:51 -0800732 unsigned int resolution;
Christopher Ferris82d75042015-01-26 10:57:07 -0800733/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800734 unsigned int ticks;
Ben Cheng655a7c02013-10-16 16:09:24 -0700735};
736enum {
Tao Baod7db5942015-01-28 10:07:51 -0800737 SNDRV_TIMER_EVENT_RESOLUTION = 0,
Christopher Ferris82d75042015-01-26 10:57:07 -0800738/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800739 SNDRV_TIMER_EVENT_TICK,
740 SNDRV_TIMER_EVENT_START,
741 SNDRV_TIMER_EVENT_STOP,
742 SNDRV_TIMER_EVENT_CONTINUE,
Christopher Ferris82d75042015-01-26 10:57:07 -0800743/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800744 SNDRV_TIMER_EVENT_PAUSE,
745 SNDRV_TIMER_EVENT_EARLY,
746 SNDRV_TIMER_EVENT_SUSPEND,
747 SNDRV_TIMER_EVENT_RESUME,
Christopher Ferris82d75042015-01-26 10:57:07 -0800748/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800749 SNDRV_TIMER_EVENT_MSTART = SNDRV_TIMER_EVENT_START + 10,
750 SNDRV_TIMER_EVENT_MSTOP = SNDRV_TIMER_EVENT_STOP + 10,
751 SNDRV_TIMER_EVENT_MCONTINUE = SNDRV_TIMER_EVENT_CONTINUE + 10,
752 SNDRV_TIMER_EVENT_MPAUSE = SNDRV_TIMER_EVENT_PAUSE + 10,
Christopher Ferris82d75042015-01-26 10:57:07 -0800753/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800754 SNDRV_TIMER_EVENT_MSUSPEND = SNDRV_TIMER_EVENT_SUSPEND + 10,
755 SNDRV_TIMER_EVENT_MRESUME = SNDRV_TIMER_EVENT_RESUME + 10,
Ben Cheng655a7c02013-10-16 16:09:24 -0700756};
Christopher Ferris38062f92014-07-09 15:33:25 -0700757struct snd_timer_tread {
Christopher Ferris82d75042015-01-26 10:57:07 -0800758/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800759 int event;
760 struct timespec tstamp;
761 unsigned int val;
Christopher Ferris38062f92014-07-09 15:33:25 -0700762};
Tao Baod7db5942015-01-28 10:07:51 -0800763/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700764#define SNDRV_CTL_VERSION SNDRV_PROTOCOL_VERSION(2, 0, 7)
765struct snd_ctl_card_info {
Tao Baod7db5942015-01-28 10:07:51 -0800766 int card;
767 int pad;
Christopher Ferris82d75042015-01-26 10:57:07 -0800768/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800769 unsigned char id[16];
770 unsigned char driver[16];
771 unsigned char name[32];
772 unsigned char longname[80];
Christopher Ferris82d75042015-01-26 10:57:07 -0800773/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800774 unsigned char reserved_[16];
775 unsigned char mixername[80];
776 unsigned char components[128];
Christopher Ferris38062f92014-07-09 15:33:25 -0700777};
Tao Baod7db5942015-01-28 10:07:51 -0800778/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700779typedef int __bitwise snd_ctl_elem_type_t;
780#define SNDRV_CTL_ELEM_TYPE_NONE ((__force snd_ctl_elem_type_t) 0)
781#define SNDRV_CTL_ELEM_TYPE_BOOLEAN ((__force snd_ctl_elem_type_t) 1)
Christopher Ferris38062f92014-07-09 15:33:25 -0700782#define SNDRV_CTL_ELEM_TYPE_INTEGER ((__force snd_ctl_elem_type_t) 2)
Tao Baod7db5942015-01-28 10:07:51 -0800783/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700784#define SNDRV_CTL_ELEM_TYPE_ENUMERATED ((__force snd_ctl_elem_type_t) 3)
785#define SNDRV_CTL_ELEM_TYPE_BYTES ((__force snd_ctl_elem_type_t) 4)
786#define SNDRV_CTL_ELEM_TYPE_IEC958 ((__force snd_ctl_elem_type_t) 5)
Christopher Ferris38062f92014-07-09 15:33:25 -0700787#define SNDRV_CTL_ELEM_TYPE_INTEGER64 ((__force snd_ctl_elem_type_t) 6)
Tao Baod7db5942015-01-28 10:07:51 -0800788/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700789#define SNDRV_CTL_ELEM_TYPE_LAST SNDRV_CTL_ELEM_TYPE_INTEGER64
790typedef int __bitwise snd_ctl_elem_iface_t;
791#define SNDRV_CTL_ELEM_IFACE_CARD ((__force snd_ctl_elem_iface_t) 0)
Christopher Ferris38062f92014-07-09 15:33:25 -0700792#define SNDRV_CTL_ELEM_IFACE_HWDEP ((__force snd_ctl_elem_iface_t) 1)
Tao Baod7db5942015-01-28 10:07:51 -0800793/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700794#define SNDRV_CTL_ELEM_IFACE_MIXER ((__force snd_ctl_elem_iface_t) 2)
795#define SNDRV_CTL_ELEM_IFACE_PCM ((__force snd_ctl_elem_iface_t) 3)
796#define SNDRV_CTL_ELEM_IFACE_RAWMIDI ((__force snd_ctl_elem_iface_t) 4)
Christopher Ferris38062f92014-07-09 15:33:25 -0700797#define SNDRV_CTL_ELEM_IFACE_TIMER ((__force snd_ctl_elem_iface_t) 5)
Tao Baod7db5942015-01-28 10:07:51 -0800798/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700799#define SNDRV_CTL_ELEM_IFACE_SEQUENCER ((__force snd_ctl_elem_iface_t) 6)
800#define SNDRV_CTL_ELEM_IFACE_LAST SNDRV_CTL_ELEM_IFACE_SEQUENCER
Tao Baod7db5942015-01-28 10:07:51 -0800801#define SNDRV_CTL_ELEM_ACCESS_READ (1 << 0)
802#define SNDRV_CTL_ELEM_ACCESS_WRITE (1 << 1)
Christopher Ferris82d75042015-01-26 10:57:07 -0800803/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800804#define SNDRV_CTL_ELEM_ACCESS_READWRITE (SNDRV_CTL_ELEM_ACCESS_READ | SNDRV_CTL_ELEM_ACCESS_WRITE)
805#define SNDRV_CTL_ELEM_ACCESS_VOLATILE (1 << 2)
806#define SNDRV_CTL_ELEM_ACCESS_TIMESTAMP (1 << 3)
807#define SNDRV_CTL_ELEM_ACCESS_TLV_READ (1 << 4)
Christopher Ferris82d75042015-01-26 10:57:07 -0800808/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800809#define SNDRV_CTL_ELEM_ACCESS_TLV_WRITE (1 << 5)
810#define SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE (SNDRV_CTL_ELEM_ACCESS_TLV_READ | SNDRV_CTL_ELEM_ACCESS_TLV_WRITE)
811#define SNDRV_CTL_ELEM_ACCESS_TLV_COMMAND (1 << 6)
812#define SNDRV_CTL_ELEM_ACCESS_INACTIVE (1 << 8)
Christopher Ferris82d75042015-01-26 10:57:07 -0800813/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800814#define SNDRV_CTL_ELEM_ACCESS_LOCK (1 << 9)
815#define SNDRV_CTL_ELEM_ACCESS_OWNER (1 << 10)
816#define SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK (1 << 28)
817#define SNDRV_CTL_ELEM_ACCESS_USER (1 << 29)
Christopher Ferris82d75042015-01-26 10:57:07 -0800818/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700819#define SNDRV_CTL_POWER_D0 0x0000
820#define SNDRV_CTL_POWER_D1 0x0100
821#define SNDRV_CTL_POWER_D2 0x0200
Christopher Ferris38062f92014-07-09 15:33:25 -0700822#define SNDRV_CTL_POWER_D3 0x0300
Tao Baod7db5942015-01-28 10:07:51 -0800823/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
824#define SNDRV_CTL_POWER_D3hot (SNDRV_CTL_POWER_D3 | 0x0000)
825#define SNDRV_CTL_POWER_D3cold (SNDRV_CTL_POWER_D3 | 0x0001)
Christopher Ferris38062f92014-07-09 15:33:25 -0700826#define SNDRV_CTL_ELEM_ID_NAME_MAXLEN 44
Ben Cheng655a7c02013-10-16 16:09:24 -0700827struct snd_ctl_elem_id {
Christopher Ferris82d75042015-01-26 10:57:07 -0800828/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800829 unsigned int numid;
830 snd_ctl_elem_iface_t iface;
831 unsigned int device;
832 unsigned int subdevice;
833/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
834 unsigned char name[44];
835 unsigned int index;
Ben Cheng655a7c02013-10-16 16:09:24 -0700836};
837struct snd_ctl_elem_list {
Christopher Ferris82d75042015-01-26 10:57:07 -0800838/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800839 unsigned int offset;
840 unsigned int space;
841 unsigned int used;
842 unsigned int count;
843/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
844 struct snd_ctl_elem_id __user * pids;
845 unsigned char reserved[50];
Ben Cheng655a7c02013-10-16 16:09:24 -0700846};
847struct snd_ctl_elem_info {
Christopher Ferris82d75042015-01-26 10:57:07 -0800848/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800849 struct snd_ctl_elem_id id;
850 snd_ctl_elem_type_t type;
851 unsigned int access;
852 unsigned int count;
Christopher Ferris82d75042015-01-26 10:57:07 -0800853/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800854 __kernel_pid_t owner;
855 union {
856 struct {
857 long min;
Christopher Ferris82d75042015-01-26 10:57:07 -0800858/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800859 long max;
860 long step;
861 } integer;
862 struct {
Christopher Ferris82d75042015-01-26 10:57:07 -0800863/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800864 long long min;
865 long long max;
866 long long step;
867 } integer64;
Christopher Ferris82d75042015-01-26 10:57:07 -0800868/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800869 struct {
870 unsigned int items;
871 unsigned int item;
872 char name[64];
Christopher Ferris82d75042015-01-26 10:57:07 -0800873/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800874 __u64 names_ptr;
875 unsigned int names_length;
876 } enumerated;
877 unsigned char reserved[128];
Christopher Ferris82d75042015-01-26 10:57:07 -0800878/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800879 } value;
880 union {
881 unsigned short d[4];
882 unsigned short * d_ptr;
883/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
884 } dimen;
885 unsigned char reserved[64 - 4 * sizeof(unsigned short)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700886};
887struct snd_ctl_elem_value {
Christopher Ferris82d75042015-01-26 10:57:07 -0800888/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800889 struct snd_ctl_elem_id id;
890 unsigned int indirect : 1;
891 union {
892 union {
Christopher Ferris82d75042015-01-26 10:57:07 -0800893/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800894 long value[128];
895 long * value_ptr;
896 } integer;
897 union {
Christopher Ferris82d75042015-01-26 10:57:07 -0800898/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800899 long long value[64];
900 long long * value_ptr;
901 } integer64;
902 union {
Christopher Ferris82d75042015-01-26 10:57:07 -0800903/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800904 unsigned int item[128];
905 unsigned int * item_ptr;
906 } enumerated;
907 union {
Christopher Ferris82d75042015-01-26 10:57:07 -0800908/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800909 unsigned char data[512];
910 unsigned char * data_ptr;
911 } bytes;
912 struct snd_aes_iec958 iec958;
Christopher Ferris82d75042015-01-26 10:57:07 -0800913/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800914 } value;
915 struct timespec tstamp;
916 unsigned char reserved[128 - sizeof(struct timespec)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700917};
Christopher Ferris82d75042015-01-26 10:57:07 -0800918/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800919struct snd_ctl_tlv {
920 unsigned int numid;
921 unsigned int length;
922 unsigned int tlv[0];
923/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700924};
925#define SNDRV_CTL_IOCTL_PVERSION _IOR('U', 0x00, int)
926#define SNDRV_CTL_IOCTL_CARD_INFO _IOR('U', 0x01, struct snd_ctl_card_info)
927#define SNDRV_CTL_IOCTL_ELEM_LIST _IOWR('U', 0x10, struct snd_ctl_elem_list)
Tao Baod7db5942015-01-28 10:07:51 -0800928/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700929#define SNDRV_CTL_IOCTL_ELEM_INFO _IOWR('U', 0x11, struct snd_ctl_elem_info)
930#define SNDRV_CTL_IOCTL_ELEM_READ _IOWR('U', 0x12, struct snd_ctl_elem_value)
931#define SNDRV_CTL_IOCTL_ELEM_WRITE _IOWR('U', 0x13, struct snd_ctl_elem_value)
932#define SNDRV_CTL_IOCTL_ELEM_LOCK _IOW('U', 0x14, struct snd_ctl_elem_id)
Tao Baod7db5942015-01-28 10:07:51 -0800933/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700934#define SNDRV_CTL_IOCTL_ELEM_UNLOCK _IOW('U', 0x15, struct snd_ctl_elem_id)
935#define SNDRV_CTL_IOCTL_SUBSCRIBE_EVENTS _IOWR('U', 0x16, int)
936#define SNDRV_CTL_IOCTL_ELEM_ADD _IOWR('U', 0x17, struct snd_ctl_elem_info)
937#define SNDRV_CTL_IOCTL_ELEM_REPLACE _IOWR('U', 0x18, struct snd_ctl_elem_info)
Tao Baod7db5942015-01-28 10:07:51 -0800938/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700939#define SNDRV_CTL_IOCTL_ELEM_REMOVE _IOWR('U', 0x19, struct snd_ctl_elem_id)
940#define SNDRV_CTL_IOCTL_TLV_READ _IOWR('U', 0x1a, struct snd_ctl_tlv)
941#define SNDRV_CTL_IOCTL_TLV_WRITE _IOWR('U', 0x1b, struct snd_ctl_tlv)
942#define SNDRV_CTL_IOCTL_TLV_COMMAND _IOWR('U', 0x1c, struct snd_ctl_tlv)
Tao Baod7db5942015-01-28 10:07:51 -0800943/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700944#define SNDRV_CTL_IOCTL_HWDEP_NEXT_DEVICE _IOWR('U', 0x20, int)
945#define SNDRV_CTL_IOCTL_HWDEP_INFO _IOR('U', 0x21, struct snd_hwdep_info)
946#define SNDRV_CTL_IOCTL_PCM_NEXT_DEVICE _IOR('U', 0x30, int)
947#define SNDRV_CTL_IOCTL_PCM_INFO _IOWR('U', 0x31, struct snd_pcm_info)
Tao Baod7db5942015-01-28 10:07:51 -0800948/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700949#define SNDRV_CTL_IOCTL_PCM_PREFER_SUBDEVICE _IOW('U', 0x32, int)
950#define SNDRV_CTL_IOCTL_RAWMIDI_NEXT_DEVICE _IOWR('U', 0x40, int)
951#define SNDRV_CTL_IOCTL_RAWMIDI_INFO _IOWR('U', 0x41, struct snd_rawmidi_info)
952#define SNDRV_CTL_IOCTL_RAWMIDI_PREFER_SUBDEVICE _IOW('U', 0x42, int)
Tao Baod7db5942015-01-28 10:07:51 -0800953/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700954#define SNDRV_CTL_IOCTL_POWER _IOWR('U', 0xd0, int)
955#define SNDRV_CTL_IOCTL_POWER_STATE _IOR('U', 0xd1, int)
956enum sndrv_ctl_event_type {
Tao Baod7db5942015-01-28 10:07:51 -0800957 SNDRV_CTL_EVENT_ELEM = 0,
Christopher Ferris82d75042015-01-26 10:57:07 -0800958/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800959 SNDRV_CTL_EVENT_LAST = SNDRV_CTL_EVENT_ELEM,
Ben Cheng655a7c02013-10-16 16:09:24 -0700960};
Tao Baod7db5942015-01-28 10:07:51 -0800961#define SNDRV_CTL_EVENT_MASK_VALUE (1 << 0)
962#define SNDRV_CTL_EVENT_MASK_INFO (1 << 1)
Christopher Ferris82d75042015-01-26 10:57:07 -0800963/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800964#define SNDRV_CTL_EVENT_MASK_ADD (1 << 2)
965#define SNDRV_CTL_EVENT_MASK_TLV (1 << 3)
Ben Cheng655a7c02013-10-16 16:09:24 -0700966#define SNDRV_CTL_EVENT_MASK_REMOVE (~0U)
967struct snd_ctl_event {
Christopher Ferris82d75042015-01-26 10:57:07 -0800968/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800969 int type;
970 union {
971 struct {
972 unsigned int mask;
Christopher Ferris82d75042015-01-26 10:57:07 -0800973/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800974 struct snd_ctl_elem_id id;
975 } elem;
976 unsigned char data8[60];
977 } data;
978/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700979};
980#define SNDRV_CTL_NAME_NONE ""
981#define SNDRV_CTL_NAME_PLAYBACK "Playback "
982#define SNDRV_CTL_NAME_CAPTURE "Capture "
Tao Baod7db5942015-01-28 10:07:51 -0800983/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700984#define SNDRV_CTL_NAME_IEC958_NONE ""
985#define SNDRV_CTL_NAME_IEC958_SWITCH "Switch"
986#define SNDRV_CTL_NAME_IEC958_VOLUME "Volume"
987#define SNDRV_CTL_NAME_IEC958_DEFAULT "Default"
Tao Baod7db5942015-01-28 10:07:51 -0800988/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -0700989#define SNDRV_CTL_NAME_IEC958_MASK "Mask"
990#define SNDRV_CTL_NAME_IEC958_CON_MASK "Con Mask"
991#define SNDRV_CTL_NAME_IEC958_PRO_MASK "Pro Mask"
992#define SNDRV_CTL_NAME_IEC958_PCM_STREAM "PCM Stream"
Tao Baod7db5942015-01-28 10:07:51 -0800993/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
994#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 -0700995#endif