blob: 9c749ada09a04feda8f317b1b691f6c30d3ab5f5 [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
Christopher Ferris48af7cb2017-02-21 12:35:09 -080027#define SND_SOC_TPLG_HW_CONFIG_MAX 8
Christopher Ferris05d08e92016-02-04 13:16:38 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080029#define SND_SOC_TPLG_CTL_VOLSW 1
Christopher Ferris6a9755d2017-01-13 14:09:31 -080030#define SND_SOC_TPLG_CTL_VOLSW_SX 2
Christopher Ferris05d08e92016-02-04 13:16:38 -080031#define SND_SOC_TPLG_CTL_VOLSW_XR_SX 3
32#define SND_SOC_TPLG_CTL_ENUM 4
Christopher Ferris05d08e92016-02-04 13:16:38 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080034#define SND_SOC_TPLG_CTL_BYTES 5
Christopher Ferris6a9755d2017-01-13 14:09:31 -080035#define SND_SOC_TPLG_CTL_ENUM_VALUE 6
Christopher Ferris05d08e92016-02-04 13:16:38 -080036#define SND_SOC_TPLG_CTL_RANGE 7
37#define SND_SOC_TPLG_CTL_STROBE 8
Christopher Ferris05d08e92016-02-04 13:16:38 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080039#define SND_SOC_TPLG_DAPM_CTL_VOLSW 64
Christopher Ferris6a9755d2017-01-13 14:09:31 -080040#define SND_SOC_TPLG_DAPM_CTL_ENUM_DOUBLE 65
Christopher Ferris05d08e92016-02-04 13:16:38 -080041#define SND_SOC_TPLG_DAPM_CTL_ENUM_VIRT 66
42#define SND_SOC_TPLG_DAPM_CTL_ENUM_VALUE 67
Christopher Ferris05d08e92016-02-04 13:16:38 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080044#define SND_SOC_TPLG_DAPM_CTL_PIN 68
Christopher Ferris6a9755d2017-01-13 14:09:31 -080045#define SND_SOC_TPLG_DAPM_INPUT 0
Christopher Ferris05d08e92016-02-04 13:16:38 -080046#define SND_SOC_TPLG_DAPM_OUTPUT 1
47#define SND_SOC_TPLG_DAPM_MUX 2
Christopher Ferris05d08e92016-02-04 13:16:38 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080049#define SND_SOC_TPLG_DAPM_MIXER 3
Christopher Ferris6a9755d2017-01-13 14:09:31 -080050#define SND_SOC_TPLG_DAPM_PGA 4
Christopher Ferris05d08e92016-02-04 13:16:38 -080051#define SND_SOC_TPLG_DAPM_OUT_DRV 5
52#define SND_SOC_TPLG_DAPM_ADC 6
Christopher Ferris05d08e92016-02-04 13:16:38 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080054#define SND_SOC_TPLG_DAPM_DAC 7
Christopher Ferris6a9755d2017-01-13 14:09:31 -080055#define SND_SOC_TPLG_DAPM_SWITCH 8
Christopher Ferris05d08e92016-02-04 13:16:38 -080056#define SND_SOC_TPLG_DAPM_PRE 9
57#define SND_SOC_TPLG_DAPM_POST 10
Christopher Ferris05d08e92016-02-04 13:16:38 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080059#define SND_SOC_TPLG_DAPM_AIF_IN 11
Christopher Ferris6a9755d2017-01-13 14:09:31 -080060#define SND_SOC_TPLG_DAPM_AIF_OUT 12
Christopher Ferris05d08e92016-02-04 13:16:38 -080061#define SND_SOC_TPLG_DAPM_DAI_IN 13
62#define SND_SOC_TPLG_DAPM_DAI_OUT 14
Christopher Ferris05d08e92016-02-04 13:16:38 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080064#define SND_SOC_TPLG_DAPM_DAI_LINK 15
Christopher Ferris6a9755d2017-01-13 14:09:31 -080065#define SND_SOC_TPLG_DAPM_LAST SND_SOC_TPLG_DAPM_DAI_LINK
Christopher Ferris05d08e92016-02-04 13:16:38 -080066#define SND_SOC_TPLG_MAGIC 0x41536F43
67#define SND_SOC_TPLG_NUM_TEXTS 16
Christopher Ferris05d08e92016-02-04 13:16:38 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -080069#define SND_SOC_TPLG_ABI_VERSION 0x5
70#define SND_SOC_TPLG_ABI_VERSION_MIN 0x4
Christopher Ferris6a9755d2017-01-13 14:09:31 -080071#define SND_SOC_TPLG_TLV_SIZE 32
Christopher Ferris05d08e92016-02-04 13:16:38 -080072#define SND_SOC_TPLG_TYPE_MIXER 1
Christopher Ferris48af7cb2017-02-21 12:35:09 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080074#define SND_SOC_TPLG_TYPE_BYTES 2
75#define SND_SOC_TPLG_TYPE_ENUM 3
Christopher Ferris6a9755d2017-01-13 14:09:31 -080076#define SND_SOC_TPLG_TYPE_DAPM_GRAPH 4
Christopher Ferris05d08e92016-02-04 13:16:38 -080077#define SND_SOC_TPLG_TYPE_DAPM_WIDGET 5
Christopher Ferris48af7cb2017-02-21 12:35:09 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080079#define SND_SOC_TPLG_TYPE_DAI_LINK 6
80#define SND_SOC_TPLG_TYPE_PCM 7
Christopher Ferris6a9755d2017-01-13 14:09:31 -080081#define SND_SOC_TPLG_TYPE_MANIFEST 8
Christopher Ferris05d08e92016-02-04 13:16:38 -080082#define SND_SOC_TPLG_TYPE_CODEC_LINK 9
Christopher Ferris48af7cb2017-02-21 12:35:09 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080084#define SND_SOC_TPLG_TYPE_BACKEND_LINK 10
85#define SND_SOC_TPLG_TYPE_PDATA 11
Christopher Ferris48af7cb2017-02-21 12:35:09 -080086#define SND_SOC_TPLG_TYPE_DAI 12
87#define SND_SOC_TPLG_TYPE_MAX SND_SOC_TPLG_TYPE_DAI
Christopher Ferris05d08e92016-02-04 13:16:38 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89#define SND_SOC_TPLG_TYPE_VENDOR_FW 1000
90#define SND_SOC_TPLG_TYPE_VENDOR_CONFIG 1001
91#define SND_SOC_TPLG_TYPE_VENDOR_COEFF 1002
92#define SND_SOC_TPLG_TYPEVENDOR_CODEC 1003
Christopher Ferris48af7cb2017-02-21 12:35:09 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -080094#define SND_SOC_TPLG_STREAM_PLAYBACK 0
95#define SND_SOC_TPLG_STREAM_CAPTURE 1
Christopher Ferris106b3a82016-08-24 12:15:38 -070096#define SND_SOC_TPLG_TUPLE_TYPE_UUID 0
97#define SND_SOC_TPLG_TUPLE_TYPE_STRING 1
Christopher Ferris48af7cb2017-02-21 12:35:09 -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_BOOL 2
100#define SND_SOC_TPLG_TUPLE_TYPE_BYTE 3
101#define SND_SOC_TPLG_TUPLE_TYPE_WORD 4
102#define SND_SOC_TPLG_TUPLE_TYPE_SHORT 5
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800103/* 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_RATES (1 << 0)
105#define SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_CHANNELS (1 << 1)
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800106#define SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_SAMPLEBITS (1 << 2)
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800107#define SND_SOC_DAI_FORMAT_I2S 1
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define SND_SOC_DAI_FORMAT_RIGHT_J 2
110#define SND_SOC_DAI_FORMAT_LEFT_J 3
111#define SND_SOC_DAI_FORMAT_DSP_A 4
112#define SND_SOC_DAI_FORMAT_DSP_B 5
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114#define SND_SOC_DAI_FORMAT_AC97 6
115#define SND_SOC_DAI_FORMAT_PDM 7
116#define SND_SOC_DAI_FORMAT_MSB SND_SOC_DAI_FORMAT_LEFT_J
117#define SND_SOC_DAI_FORMAT_LSB SND_SOC_DAI_FORMAT_RIGHT_J
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119#define SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_RATES (1 << 0)
120#define SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_CHANNELS (1 << 1)
121#define SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_SAMPLEBITS (1 << 2)
122#define SND_SOC_TPLG_LNK_FLGBIT_VOICE_WAKEUP (1 << 3)
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800124struct snd_soc_tplg_hdr {
125 __le32 magic;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800126 __le32 abi;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800127 __le32 version;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800129 __le32 type;
130 __le32 size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800131 __le32 vendor_type;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800132 __le32 payload_size;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800134 __le32 index;
135 __le32 count;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700136} __attribute__((packed));
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800137struct snd_soc_tplg_vendor_uuid_elem {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700139 __le32 token;
140 char uuid[16];
141} __attribute__((packed));
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800142struct snd_soc_tplg_vendor_value_elem {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700144 __le32 token;
145 __le32 value;
146} __attribute__((packed));
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800147struct snd_soc_tplg_vendor_string_elem {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700149 __le32 token;
150 char string[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
151} __attribute__((packed));
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800152struct snd_soc_tplg_vendor_array {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700154 __le32 size;
155 __le32 type;
156 __le32 num_elems;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800157 union {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700159 struct snd_soc_tplg_vendor_uuid_elem uuid[0];
160 struct snd_soc_tplg_vendor_value_elem value[0];
161 struct snd_soc_tplg_vendor_string_elem string[0];
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800162 };
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800164} __attribute__((packed));
165struct snd_soc_tplg_private {
166 __le32 size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800167 union {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris106b3a82016-08-24 12:15:38 -0700169 char data[0];
170 struct snd_soc_tplg_vendor_array array[0];
171 };
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800172} __attribute__((packed));
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800174struct snd_soc_tplg_tlv_dbscale {
175 __le32 min;
176 __le32 step;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800177 __le32 mute;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800179} __attribute__((packed));
180struct snd_soc_tplg_ctl_tlv {
181 __le32 size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800182 __le32 type;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800184 union {
185 __le32 data[SND_SOC_TPLG_TLV_SIZE];
186 struct snd_soc_tplg_tlv_dbscale scale;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800187 };
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800189} __attribute__((packed));
190struct snd_soc_tplg_channel {
191 __le32 size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800192 __le32 reg;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800193/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800194 __le32 shift;
195 __le32 id;
196} __attribute__((packed));
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800197struct snd_soc_tplg_io_ops {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800198/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800199 __le32 get;
200 __le32 put;
201 __le32 info;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800202} __attribute__((packed));
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800203/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800204struct snd_soc_tplg_ctl_hdr {
205 __le32 size;
206 __le32 type;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800207 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800208/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800209 __le32 access;
210 struct snd_soc_tplg_io_ops ops;
211 struct snd_soc_tplg_ctl_tlv tlv;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800212} __attribute__((packed));
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800213/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800214struct snd_soc_tplg_stream_caps {
215 __le32 size;
216 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800217 __le64 formats;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800218/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800219 __le32 rates;
220 __le32 rate_min;
221 __le32 rate_max;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800222 __le32 channels_min;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800223/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800224 __le32 channels_max;
225 __le32 periods_min;
226 __le32 periods_max;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800227 __le32 period_size_min;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800228/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800229 __le32 period_size_max;
230 __le32 buffer_size_min;
231 __le32 buffer_size_max;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800232 __le32 sig_bits;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800233/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800234} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800235struct snd_soc_tplg_stream {
236 __le32 size;
237 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800238/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800239 __le64 format;
240 __le32 rate;
241 __le32 period_bytes;
242 __le32 buffer_bytes;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800243/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800244 __le32 channels;
245} __attribute__((packed));
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800246struct snd_soc_tplg_hw_config {
247 __le32 size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800248/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800249 __le32 id;
250 __le32 fmt;
251 __u8 clock_gated;
252 __u8 invert_bclk;
253/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254 __u8 invert_fsync;
255 __u8 bclk_master;
256 __u8 fsync_master;
257 __u8 mclk_direction;
258/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259 __le16 reserved;
260 __le32 mclk_rate;
261 __le32 bclk_rate;
262 __le32 fsync_rate;
263/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264 __le32 tdm_slots;
265 __le32 tdm_slot_width;
266 __le32 tx_slots;
267 __le32 rx_slots;
268/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269 __le32 tx_channels;
270 __le32 tx_chanmap[SND_SOC_TPLG_MAX_CHAN];
271 __le32 rx_channels;
272 __le32 rx_chanmap[SND_SOC_TPLG_MAX_CHAN];
273/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
274} __attribute__((packed));
275struct snd_soc_tplg_manifest {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800276 __le32 size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800277 __le32 control_elems;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800278/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800279 __le32 widget_elems;
280 __le32 graph_elems;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700281 __le32 pcm_elems;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800282 __le32 dai_link_elems;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700283/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800284 __le32 dai_elems;
285 __le32 reserved[20];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800286 struct snd_soc_tplg_private priv;
287} __attribute__((packed));
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800288/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800289struct snd_soc_tplg_mixer_control {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800290 struct snd_soc_tplg_ctl_hdr hdr;
291 __le32 size;
292 __le32 min;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800293/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800294 __le32 max;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800295 __le32 platform_max;
296 __le32 invert;
297 __le32 num_channels;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800298/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800299 struct snd_soc_tplg_channel channel[SND_SOC_TPLG_MAX_CHAN];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800300 struct snd_soc_tplg_private priv;
301} __attribute__((packed));
302struct snd_soc_tplg_enum_control {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800303/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800304 struct snd_soc_tplg_ctl_hdr hdr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800305 __le32 size;
306 __le32 num_channels;
307 struct snd_soc_tplg_channel channel[SND_SOC_TPLG_MAX_CHAN];
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800308/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800309 __le32 items;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800310 __le32 mask;
311 __le32 count;
312 char texts[SND_SOC_TPLG_NUM_TEXTS][SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800313/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800314 __le32 values[SND_SOC_TPLG_NUM_TEXTS * SNDRV_CTL_ELEM_ID_NAME_MAXLEN / 4];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800315 struct snd_soc_tplg_private priv;
316} __attribute__((packed));
317struct snd_soc_tplg_bytes_control {
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800318/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800319 struct snd_soc_tplg_ctl_hdr hdr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800320 __le32 size;
321 __le32 max;
322 __le32 mask;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800323/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800324 __le32 base;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800325 __le32 num_regs;
326 struct snd_soc_tplg_io_ops ext_ops;
327 struct snd_soc_tplg_private priv;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800328/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800329} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800330struct snd_soc_tplg_dapm_graph_elem {
331 char sink[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
332 char control[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800333/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800334 char source[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800335} __attribute__((packed));
336struct snd_soc_tplg_dapm_widget {
337 __le32 size;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800338/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800339 __le32 id;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800340 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
341 char sname[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
342 __le32 reg;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800343/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800344 __le32 shift;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800345 __le32 mask;
346 __le32 subseq;
347 __le32 invert;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800348/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800349 __le32 ignore_suspend;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800350 __le16 event_flags;
351 __le16 event_type;
352 __le32 num_kcontrols;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800353/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800354 struct snd_soc_tplg_private priv;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800355} __attribute__((packed));
356struct snd_soc_tplg_pcm {
357 __le32 size;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800358/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800359 char pcm_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800360 char dai_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
361 __le32 pcm_id;
362 __le32 dai_id;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800363/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800364 __le32 playback;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800365 __le32 capture;
366 __le32 compress;
367 struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX];
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800368/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Christopher Ferris05d08e92016-02-04 13:16:38 -0800369 __le32 num_streams;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800370 struct snd_soc_tplg_stream_caps caps[2];
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800371 __le32 flag_mask;
372 __le32 flags;
373/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
374 struct snd_soc_tplg_private priv;
375} __attribute__((packed));
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800376struct snd_soc_tplg_link_config {
377 __le32 size;
378/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
379 __le32 id;
380 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
381 char stream_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
382 struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX];
383/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
384 __le32 num_streams;
385 struct snd_soc_tplg_hw_config hw_config[SND_SOC_TPLG_HW_CONFIG_MAX];
386 __le32 num_hw_configs;
387 __le32 default_hw_config_id;
388/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
389 __le32 flag_mask;
390 __le32 flags;
391 struct snd_soc_tplg_private priv;
392} __attribute__((packed));
393/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
394struct snd_soc_tplg_dai {
395 __le32 size;
396 char dai_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
397 __le32 dai_id;
398/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
399 __le32 playback;
400 __le32 capture;
401 struct snd_soc_tplg_stream_caps caps[2];
402 __le32 flag_mask;
403/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
404 __le32 flags;
405 struct snd_soc_tplg_private priv;
406} __attribute__((packed));
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800407#endif
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800408/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */