blob: 90bafa96117366e7278c1089fbb23425791f3433 [file] [log] [blame]
Christopher Ferris05d08e92016-02-04 13:16:38 -08001/****************************************************************************
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 __LINUX_UAPI_SND_ASOC_H
20#define __LINUX_UAPI_SND_ASOC_H
21#include <linux/types.h>
22#include <sound/asound.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080024#define SND_SOC_TPLG_MAX_CHAN 8
Christopher Ferris05d08e92016-02-04 13:16:38 -080025#define SND_SOC_TPLG_MAX_FORMATS 16
26#define SND_SOC_TPLG_STREAM_CONFIG_MAX 8
27#define SND_SOC_TPLG_CTL_VOLSW 1
Christopher Ferris05d08e92016-02-04 13:16:38 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080029#define SND_SOC_TPLG_CTL_VOLSW_SX 2
Christopher Ferris05d08e92016-02-04 13:16:38 -080030#define SND_SOC_TPLG_CTL_VOLSW_XR_SX 3
31#define SND_SOC_TPLG_CTL_ENUM 4
32#define SND_SOC_TPLG_CTL_BYTES 5
Christopher Ferris05d08e92016-02-04 13:16:38 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080034#define SND_SOC_TPLG_CTL_ENUM_VALUE 6
Christopher Ferris05d08e92016-02-04 13:16:38 -080035#define SND_SOC_TPLG_CTL_RANGE 7
36#define SND_SOC_TPLG_CTL_STROBE 8
37#define SND_SOC_TPLG_DAPM_CTL_VOLSW 64
Christopher Ferris05d08e92016-02-04 13:16:38 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080039#define SND_SOC_TPLG_DAPM_CTL_ENUM_DOUBLE 65
Christopher Ferris05d08e92016-02-04 13:16:38 -080040#define SND_SOC_TPLG_DAPM_CTL_ENUM_VIRT 66
41#define SND_SOC_TPLG_DAPM_CTL_ENUM_VALUE 67
42#define SND_SOC_TPLG_DAPM_CTL_PIN 68
Christopher Ferris05d08e92016-02-04 13:16:38 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080044#define SND_SOC_TPLG_DAPM_INPUT 0
Christopher Ferris05d08e92016-02-04 13:16:38 -080045#define SND_SOC_TPLG_DAPM_OUTPUT 1
46#define SND_SOC_TPLG_DAPM_MUX 2
47#define SND_SOC_TPLG_DAPM_MIXER 3
Christopher Ferris05d08e92016-02-04 13:16:38 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080049#define SND_SOC_TPLG_DAPM_PGA 4
Christopher Ferris05d08e92016-02-04 13:16:38 -080050#define SND_SOC_TPLG_DAPM_OUT_DRV 5
51#define SND_SOC_TPLG_DAPM_ADC 6
52#define SND_SOC_TPLG_DAPM_DAC 7
Christopher Ferris05d08e92016-02-04 13:16:38 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080054#define SND_SOC_TPLG_DAPM_SWITCH 8
Christopher Ferris05d08e92016-02-04 13:16:38 -080055#define SND_SOC_TPLG_DAPM_PRE 9
56#define SND_SOC_TPLG_DAPM_POST 10
57#define SND_SOC_TPLG_DAPM_AIF_IN 11
Christopher Ferris05d08e92016-02-04 13:16:38 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080059#define SND_SOC_TPLG_DAPM_AIF_OUT 12
Christopher Ferris05d08e92016-02-04 13:16:38 -080060#define SND_SOC_TPLG_DAPM_DAI_IN 13
61#define SND_SOC_TPLG_DAPM_DAI_OUT 14
62#define SND_SOC_TPLG_DAPM_DAI_LINK 15
Christopher Ferris05d08e92016-02-04 13:16:38 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080064#define SND_SOC_TPLG_DAPM_LAST SND_SOC_TPLG_DAPM_DAI_LINK
Christopher Ferris05d08e92016-02-04 13:16:38 -080065#define SND_SOC_TPLG_MAGIC 0x41536F43
66#define SND_SOC_TPLG_NUM_TEXTS 16
Christopher Ferris6a9755d2017-01-13 14:09:31 -080067#define SND_SOC_TPLG_ABI_VERSION 0x5
Christopher Ferris05d08e92016-02-04 13:16:38 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080069#define SND_SOC_TPLG_TLV_SIZE 32
Christopher Ferris05d08e92016-02-04 13:16:38 -080070#define SND_SOC_TPLG_TYPE_MIXER 1
71#define SND_SOC_TPLG_TYPE_BYTES 2
72#define SND_SOC_TPLG_TYPE_ENUM 3
Christopher Ferris05d08e92016-02-04 13:16:38 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080074#define SND_SOC_TPLG_TYPE_DAPM_GRAPH 4
Christopher Ferris05d08e92016-02-04 13:16:38 -080075#define SND_SOC_TPLG_TYPE_DAPM_WIDGET 5
76#define SND_SOC_TPLG_TYPE_DAI_LINK 6
77#define SND_SOC_TPLG_TYPE_PCM 7
Christopher Ferris05d08e92016-02-04 13:16:38 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080079#define SND_SOC_TPLG_TYPE_MANIFEST 8
Christopher Ferris05d08e92016-02-04 13:16:38 -080080#define SND_SOC_TPLG_TYPE_CODEC_LINK 9
81#define SND_SOC_TPLG_TYPE_BACKEND_LINK 10
82#define SND_SOC_TPLG_TYPE_PDATA 11
Christopher Ferris05d08e92016-02-04 13:16:38 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -080084#define SND_SOC_TPLG_TYPE_BE_DAI 12
85#define SND_SOC_TPLG_TYPE_MAX SND_SOC_TPLG_TYPE_BE_DAI
Christopher Ferris05d08e92016-02-04 13:16:38 -080086#define SND_SOC_TPLG_TYPE_VENDOR_FW 1000
87#define SND_SOC_TPLG_TYPE_VENDOR_CONFIG 1001
Christopher Ferris6a9755d2017-01-13 14:09:31 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080089#define SND_SOC_TPLG_TYPE_VENDOR_COEFF 1002
90#define SND_SOC_TPLG_TYPEVENDOR_CODEC 1003
Christopher Ferris05d08e92016-02-04 13:16:38 -080091#define SND_SOC_TPLG_STREAM_PLAYBACK 0
92#define SND_SOC_TPLG_STREAM_CAPTURE 1
Christopher Ferris6a9755d2017-01-13 14:09:31 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070094#define SND_SOC_TPLG_TUPLE_TYPE_UUID 0
95#define SND_SOC_TPLG_TUPLE_TYPE_STRING 1
Christopher Ferris106b3a82016-08-24 12:15:38 -070096#define SND_SOC_TPLG_TUPLE_TYPE_BOOL 2
97#define SND_SOC_TPLG_TUPLE_TYPE_BYTE 3
Christopher Ferris6a9755d2017-01-13 14:09:31 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -070099#define SND_SOC_TPLG_TUPLE_TYPE_WORD 4
100#define SND_SOC_TPLG_TUPLE_TYPE_SHORT 5
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800101#define SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_RATES (1 << 0)
102#define SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_CHANNELS (1 << 1)
Christopher Ferris106b3a82016-08-24 12:15:38 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800104#define SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_SAMPLEBITS (1 << 2)
Christopher Ferris05d08e92016-02-04 13:16:38 -0800105struct snd_soc_tplg_hdr {
106 __le32 magic;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800107 __le32 abi;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800109 __le32 version;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800110 __le32 type;
111 __le32 size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800112 __le32 vendor_type;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800114 __le32 payload_size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800115 __le32 index;
116 __le32 count;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700117} __attribute__((packed));
Christopher Ferris106b3a82016-08-24 12:15:38 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800119struct snd_soc_tplg_vendor_uuid_elem {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700120 __le32 token;
121 char uuid[16];
122} __attribute__((packed));
Christopher Ferris106b3a82016-08-24 12:15:38 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800124struct snd_soc_tplg_vendor_value_elem {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700125 __le32 token;
126 __le32 value;
127} __attribute__((packed));
Christopher Ferris106b3a82016-08-24 12:15:38 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800129struct snd_soc_tplg_vendor_string_elem {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700130 __le32 token;
131 char string[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
132} __attribute__((packed));
Christopher Ferris106b3a82016-08-24 12:15:38 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800134struct snd_soc_tplg_vendor_array {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700135 __le32 size;
136 __le32 type;
137 __le32 num_elems;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800139 union {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700140 struct snd_soc_tplg_vendor_uuid_elem uuid[0];
141 struct snd_soc_tplg_vendor_value_elem value[0];
142 struct snd_soc_tplg_vendor_string_elem string[0];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800144 };
Christopher Ferris05d08e92016-02-04 13:16:38 -0800145} __attribute__((packed));
146struct snd_soc_tplg_private {
147 __le32 size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800149 union {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700150 char data[0];
151 struct snd_soc_tplg_vendor_array array[0];
152 };
Christopher Ferris106b3a82016-08-24 12:15:38 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800154} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800155struct snd_soc_tplg_tlv_dbscale {
156 __le32 min;
157 __le32 step;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800159 __le32 mute;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800160} __attribute__((packed));
161struct snd_soc_tplg_ctl_tlv {
162 __le32 size;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800164 __le32 type;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800165 union {
166 __le32 data[SND_SOC_TPLG_TLV_SIZE];
167 struct snd_soc_tplg_tlv_dbscale scale;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800169 };
Christopher Ferris05d08e92016-02-04 13:16:38 -0800170} __attribute__((packed));
171struct snd_soc_tplg_channel {
172 __le32 size;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800174 __le32 reg;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800175 __le32 shift;
176 __le32 id;
177} __attribute__((packed));
Christopher Ferris106b3a82016-08-24 12:15:38 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800179struct snd_soc_tplg_io_ops {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800180 __le32 get;
181 __le32 put;
182 __le32 info;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800184} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800185struct snd_soc_tplg_ctl_hdr {
186 __le32 size;
187 __le32 type;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800189 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800190 __le32 access;
191 struct snd_soc_tplg_io_ops ops;
192 struct snd_soc_tplg_ctl_tlv tlv;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800194} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800195struct snd_soc_tplg_stream_caps {
196 __le32 size;
197 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800199 __le64 formats;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800200 __le32 rates;
201 __le32 rate_min;
202 __le32 rate_max;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800204 __le32 channels_min;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800205 __le32 channels_max;
206 __le32 periods_min;
207 __le32 periods_max;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800209 __le32 period_size_min;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800210 __le32 period_size_max;
211 __le32 buffer_size_min;
212 __le32 buffer_size_max;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800214 __le32 sig_bits;
215} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800216struct snd_soc_tplg_stream {
217 __le32 size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800219 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800220 __le64 format;
221 __le32 rate;
222 __le32 period_bytes;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800224 __le32 buffer_bytes;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800225 __le32 channels;
226} __attribute__((packed));
227struct snd_soc_tplg_manifest {
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800229 __le32 size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800230 __le32 control_elems;
231 __le32 widget_elems;
232 __le32 graph_elems;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700234 __le32 pcm_elems;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800235 __le32 dai_link_elems;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800236 __le32 be_dai_elems;
237 __le32 reserved[20];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800239 struct snd_soc_tplg_private priv;
240} __attribute__((packed));
241struct snd_soc_tplg_mixer_control {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800242 struct snd_soc_tplg_ctl_hdr hdr;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800244 __le32 size;
245 __le32 min;
246 __le32 max;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800247 __le32 platform_max;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800249 __le32 invert;
250 __le32 num_channels;
251 struct snd_soc_tplg_channel channel[SND_SOC_TPLG_MAX_CHAN];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800252 struct snd_soc_tplg_private priv;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800254} __attribute__((packed));
255struct snd_soc_tplg_enum_control {
256 struct snd_soc_tplg_ctl_hdr hdr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800257 __le32 size;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800259 __le32 num_channels;
260 struct snd_soc_tplg_channel channel[SND_SOC_TPLG_MAX_CHAN];
261 __le32 items;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800262 __le32 mask;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800264 __le32 count;
265 char texts[SND_SOC_TPLG_NUM_TEXTS][SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
266 __le32 values[SND_SOC_TPLG_NUM_TEXTS * SNDRV_CTL_ELEM_ID_NAME_MAXLEN / 4];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800267 struct snd_soc_tplg_private priv;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800269} __attribute__((packed));
270struct snd_soc_tplg_bytes_control {
271 struct snd_soc_tplg_ctl_hdr hdr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800272 __le32 size;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800274 __le32 max;
275 __le32 mask;
276 __le32 base;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800277 __le32 num_regs;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800279 struct snd_soc_tplg_io_ops ext_ops;
280 struct snd_soc_tplg_private priv;
281} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800282struct snd_soc_tplg_dapm_graph_elem {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800284 char sink[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
285 char control[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
286 char source[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800287} __attribute__((packed));
Christopher Ferris106b3a82016-08-24 12:15:38 -0700288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800289struct snd_soc_tplg_dapm_widget {
290 __le32 size;
291 __le32 id;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800292 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800294 char sname[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
295 __le32 reg;
296 __le32 shift;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800297 __le32 mask;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800299 __le32 subseq;
300 __le32 invert;
301 __le32 ignore_suspend;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800302 __le16 event_flags;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800304 __le16 event_type;
305 __le32 num_kcontrols;
306 struct snd_soc_tplg_private priv;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800307} __attribute__((packed));
Christopher Ferris106b3a82016-08-24 12:15:38 -0700308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800309struct snd_soc_tplg_pcm {
310 __le32 size;
311 char pcm_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800312 char dai_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800314 __le32 pcm_id;
315 __le32 dai_id;
316 __le32 playback;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800317 __le32 capture;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800319 __le32 compress;
320 struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX];
321 __le32 num_streams;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800322 struct snd_soc_tplg_stream_caps caps[2];
Christopher Ferris106b3a82016-08-24 12:15:38 -0700323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800324} __attribute__((packed));
325struct snd_soc_tplg_link_config {
326 __le32 size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800327 __le32 id;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800329 struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX];
330 __le32 num_streams;
331} __attribute__((packed));
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800332struct snd_soc_tplg_be_dai {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800334 __le32 size;
335 char dai_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
336 __le32 dai_id;
337 __le32 playback;
338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
339 __le32 capture;
340 struct snd_soc_tplg_stream_caps caps[2];
341 __le32 flag_mask;
342 __le32 flags;
343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
344 struct snd_soc_tplg_private priv;
345} __attribute__((packed));
346#endif