blob: e46c4b5ec99b05ed08bfe92fe8a9601edb2bd053 [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>
Christopher Ferrisaf09c702020-06-01 20:29:29 -070022#include <sound/asound.h>
Christopher Ferris05d08e92016-02-04 13:16:38 -080023#define SND_SOC_TPLG_MAX_CHAN 8
Christopher Ferris05d08e92016-02-04 13:16:38 -080024#define SND_SOC_TPLG_MAX_FORMATS 16
25#define SND_SOC_TPLG_STREAM_CONFIG_MAX 8
Christopher Ferris48af7cb2017-02-21 12:35:09 -080026#define SND_SOC_TPLG_HW_CONFIG_MAX 8
Christopher Ferris48af7cb2017-02-21 12:35:09 -080027#define SND_SOC_TPLG_CTL_VOLSW 1
Christopher Ferris6a9755d2017-01-13 14:09:31 -080028#define SND_SOC_TPLG_CTL_VOLSW_SX 2
Christopher Ferris05d08e92016-02-04 13:16:38 -080029#define SND_SOC_TPLG_CTL_VOLSW_XR_SX 3
30#define SND_SOC_TPLG_CTL_ENUM 4
Christopher Ferris48af7cb2017-02-21 12:35:09 -080031#define SND_SOC_TPLG_CTL_BYTES 5
Christopher Ferris6a9755d2017-01-13 14:09:31 -080032#define SND_SOC_TPLG_CTL_ENUM_VALUE 6
Christopher Ferris05d08e92016-02-04 13:16:38 -080033#define SND_SOC_TPLG_CTL_RANGE 7
34#define SND_SOC_TPLG_CTL_STROBE 8
Christopher Ferris48af7cb2017-02-21 12:35:09 -080035#define SND_SOC_TPLG_DAPM_CTL_VOLSW 64
Christopher Ferris6a9755d2017-01-13 14:09:31 -080036#define SND_SOC_TPLG_DAPM_CTL_ENUM_DOUBLE 65
Christopher Ferris05d08e92016-02-04 13:16:38 -080037#define SND_SOC_TPLG_DAPM_CTL_ENUM_VIRT 66
38#define SND_SOC_TPLG_DAPM_CTL_ENUM_VALUE 67
Christopher Ferris48af7cb2017-02-21 12:35:09 -080039#define SND_SOC_TPLG_DAPM_CTL_PIN 68
Christopher Ferris6a9755d2017-01-13 14:09:31 -080040#define SND_SOC_TPLG_DAPM_INPUT 0
Christopher Ferris05d08e92016-02-04 13:16:38 -080041#define SND_SOC_TPLG_DAPM_OUTPUT 1
42#define SND_SOC_TPLG_DAPM_MUX 2
Christopher Ferris48af7cb2017-02-21 12:35:09 -080043#define SND_SOC_TPLG_DAPM_MIXER 3
Christopher Ferris6a9755d2017-01-13 14:09:31 -080044#define SND_SOC_TPLG_DAPM_PGA 4
Christopher Ferris05d08e92016-02-04 13:16:38 -080045#define SND_SOC_TPLG_DAPM_OUT_DRV 5
46#define SND_SOC_TPLG_DAPM_ADC 6
Christopher Ferris48af7cb2017-02-21 12:35:09 -080047#define SND_SOC_TPLG_DAPM_DAC 7
Christopher Ferris6a9755d2017-01-13 14:09:31 -080048#define SND_SOC_TPLG_DAPM_SWITCH 8
Christopher Ferris05d08e92016-02-04 13:16:38 -080049#define SND_SOC_TPLG_DAPM_PRE 9
50#define SND_SOC_TPLG_DAPM_POST 10
Christopher Ferris48af7cb2017-02-21 12:35:09 -080051#define SND_SOC_TPLG_DAPM_AIF_IN 11
Christopher Ferris6a9755d2017-01-13 14:09:31 -080052#define SND_SOC_TPLG_DAPM_AIF_OUT 12
Christopher Ferris05d08e92016-02-04 13:16:38 -080053#define SND_SOC_TPLG_DAPM_DAI_IN 13
54#define SND_SOC_TPLG_DAPM_DAI_OUT 14
Christopher Ferris48af7cb2017-02-21 12:35:09 -080055#define SND_SOC_TPLG_DAPM_DAI_LINK 15
Christopher Ferris1308ad32017-11-14 17:32:13 -080056#define SND_SOC_TPLG_DAPM_BUFFER 16
57#define SND_SOC_TPLG_DAPM_SCHEDULER 17
58#define SND_SOC_TPLG_DAPM_EFFECT 18
59#define SND_SOC_TPLG_DAPM_SIGGEN 19
60#define SND_SOC_TPLG_DAPM_SRC 20
61#define SND_SOC_TPLG_DAPM_ASRC 21
62#define SND_SOC_TPLG_DAPM_ENCODER 22
63#define SND_SOC_TPLG_DAPM_DECODER 23
64#define SND_SOC_TPLG_DAPM_LAST SND_SOC_TPLG_DAPM_DECODER
Christopher Ferris05d08e92016-02-04 13:16:38 -080065#define SND_SOC_TPLG_MAGIC 0x41536F43
66#define SND_SOC_TPLG_NUM_TEXTS 16
Christopher Ferris48af7cb2017-02-21 12:35:09 -080067#define SND_SOC_TPLG_ABI_VERSION 0x5
68#define SND_SOC_TPLG_ABI_VERSION_MIN 0x4
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 Ferris6a9755d2017-01-13 14:09:31 -080073#define SND_SOC_TPLG_TYPE_DAPM_GRAPH 4
Christopher Ferris05d08e92016-02-04 13:16:38 -080074#define SND_SOC_TPLG_TYPE_DAPM_WIDGET 5
75#define SND_SOC_TPLG_TYPE_DAI_LINK 6
76#define SND_SOC_TPLG_TYPE_PCM 7
Christopher Ferris6a9755d2017-01-13 14:09:31 -080077#define SND_SOC_TPLG_TYPE_MANIFEST 8
Christopher Ferris05d08e92016-02-04 13:16:38 -080078#define SND_SOC_TPLG_TYPE_CODEC_LINK 9
79#define SND_SOC_TPLG_TYPE_BACKEND_LINK 10
80#define SND_SOC_TPLG_TYPE_PDATA 11
Christopher Ferris48af7cb2017-02-21 12:35:09 -080081#define SND_SOC_TPLG_TYPE_DAI 12
82#define SND_SOC_TPLG_TYPE_MAX SND_SOC_TPLG_TYPE_DAI
Christopher Ferris05d08e92016-02-04 13:16:38 -080083#define SND_SOC_TPLG_TYPE_VENDOR_FW 1000
84#define SND_SOC_TPLG_TYPE_VENDOR_CONFIG 1001
85#define SND_SOC_TPLG_TYPE_VENDOR_COEFF 1002
86#define SND_SOC_TPLG_TYPEVENDOR_CODEC 1003
Christopher Ferris05d08e92016-02-04 13:16:38 -080087#define SND_SOC_TPLG_STREAM_PLAYBACK 0
88#define SND_SOC_TPLG_STREAM_CAPTURE 1
Christopher Ferris106b3a82016-08-24 12:15:38 -070089#define SND_SOC_TPLG_TUPLE_TYPE_UUID 0
90#define SND_SOC_TPLG_TUPLE_TYPE_STRING 1
Christopher Ferris106b3a82016-08-24 12:15:38 -070091#define SND_SOC_TPLG_TUPLE_TYPE_BOOL 2
92#define SND_SOC_TPLG_TUPLE_TYPE_BYTE 3
93#define SND_SOC_TPLG_TUPLE_TYPE_WORD 4
94#define SND_SOC_TPLG_TUPLE_TYPE_SHORT 5
Christopher Ferris6a9755d2017-01-13 14:09:31 -080095#define SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_RATES (1 << 0)
96#define SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_CHANNELS (1 << 1)
Christopher Ferris6a9755d2017-01-13 14:09:31 -080097#define SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_SAMPLEBITS (1 << 2)
Christopher Ferris9ce28842018-10-25 12:11:39 -070098#define SND_SOC_TPLG_DAI_CLK_GATE_UNDEFINED 0
99#define SND_SOC_TPLG_DAI_CLK_GATE_GATED 1
100#define SND_SOC_TPLG_DAI_CLK_GATE_CONT 2
101#define SND_SOC_TPLG_MCLK_CO 0
102#define SND_SOC_TPLG_MCLK_CI 1
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800103#define SND_SOC_DAI_FORMAT_I2S 1
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800104#define SND_SOC_DAI_FORMAT_RIGHT_J 2
105#define SND_SOC_DAI_FORMAT_LEFT_J 3
106#define SND_SOC_DAI_FORMAT_DSP_A 4
107#define SND_SOC_DAI_FORMAT_DSP_B 5
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800108#define SND_SOC_DAI_FORMAT_AC97 6
109#define SND_SOC_DAI_FORMAT_PDM 7
110#define SND_SOC_DAI_FORMAT_MSB SND_SOC_DAI_FORMAT_LEFT_J
111#define SND_SOC_DAI_FORMAT_LSB SND_SOC_DAI_FORMAT_RIGHT_J
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800112#define SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_RATES (1 << 0)
113#define SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_CHANNELS (1 << 1)
114#define SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_SAMPLEBITS (1 << 2)
115#define SND_SOC_TPLG_LNK_FLGBIT_VOICE_WAKEUP (1 << 3)
Christopher Ferris9ce28842018-10-25 12:11:39 -0700116#define SND_SOC_TPLG_BCLK_CM 0
117#define SND_SOC_TPLG_BCLK_CS 1
118#define SND_SOC_TPLG_FSYNC_CM 0
119#define SND_SOC_TPLG_FSYNC_CS 1
Christopher Ferris05d08e92016-02-04 13:16:38 -0800120struct snd_soc_tplg_hdr {
121 __le32 magic;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800122 __le32 abi;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800123 __le32 version;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800124 __le32 type;
125 __le32 size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800126 __le32 vendor_type;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800127 __le32 payload_size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800128 __le32 index;
129 __le32 count;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700130} __attribute__((packed));
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800131struct snd_soc_tplg_vendor_uuid_elem {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700132 __le32 token;
133 char uuid[16];
134} __attribute__((packed));
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800135struct snd_soc_tplg_vendor_value_elem {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700136 __le32 token;
137 __le32 value;
138} __attribute__((packed));
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800139struct snd_soc_tplg_vendor_string_elem {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700140 __le32 token;
141 char string[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
142} __attribute__((packed));
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800143struct snd_soc_tplg_vendor_array {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700144 __le32 size;
145 __le32 type;
146 __le32 num_elems;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800147 union {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700148 struct snd_soc_tplg_vendor_uuid_elem uuid[0];
149 struct snd_soc_tplg_vendor_value_elem value[0];
150 struct snd_soc_tplg_vendor_string_elem string[0];
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800151 };
Christopher Ferris05d08e92016-02-04 13:16:38 -0800152} __attribute__((packed));
153struct snd_soc_tplg_private {
154 __le32 size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800155 union {
Christopher Ferris106b3a82016-08-24 12:15:38 -0700156 char data[0];
157 struct snd_soc_tplg_vendor_array array[0];
158 };
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800159} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800160struct snd_soc_tplg_tlv_dbscale {
161 __le32 min;
162 __le32 step;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800163 __le32 mute;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800164} __attribute__((packed));
165struct snd_soc_tplg_ctl_tlv {
166 __le32 size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800167 __le32 type;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800168 union {
169 __le32 data[SND_SOC_TPLG_TLV_SIZE];
170 struct snd_soc_tplg_tlv_dbscale scale;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800171 };
Christopher Ferris05d08e92016-02-04 13:16:38 -0800172} __attribute__((packed));
173struct snd_soc_tplg_channel {
174 __le32 size;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800175 __le32 reg;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800176 __le32 shift;
177 __le32 id;
178} __attribute__((packed));
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 Ferris6a9755d2017-01-13 14:09:31 -0800183} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800184struct snd_soc_tplg_ctl_hdr {
185 __le32 size;
186 __le32 type;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800187 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800188 __le32 access;
189 struct snd_soc_tplg_io_ops ops;
190 struct snd_soc_tplg_ctl_tlv tlv;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800191} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800192struct snd_soc_tplg_stream_caps {
193 __le32 size;
194 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800195 __le64 formats;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800196 __le32 rates;
197 __le32 rate_min;
198 __le32 rate_max;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800199 __le32 channels_min;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800200 __le32 channels_max;
201 __le32 periods_min;
202 __le32 periods_max;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800203 __le32 period_size_min;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800204 __le32 period_size_max;
205 __le32 buffer_size_min;
206 __le32 buffer_size_max;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800207 __le32 sig_bits;
208} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800209struct snd_soc_tplg_stream {
210 __le32 size;
211 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800212 __le64 format;
213 __le32 rate;
214 __le32 period_bytes;
215 __le32 buffer_bytes;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800216 __le32 channels;
217} __attribute__((packed));
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800218struct snd_soc_tplg_hw_config {
219 __le32 size;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800220 __le32 id;
221 __le32 fmt;
222 __u8 clock_gated;
223 __u8 invert_bclk;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800224 __u8 invert_fsync;
225 __u8 bclk_master;
226 __u8 fsync_master;
227 __u8 mclk_direction;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800228 __le16 reserved;
229 __le32 mclk_rate;
230 __le32 bclk_rate;
231 __le32 fsync_rate;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800232 __le32 tdm_slots;
233 __le32 tdm_slot_width;
234 __le32 tx_slots;
235 __le32 rx_slots;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800236 __le32 tx_channels;
237 __le32 tx_chanmap[SND_SOC_TPLG_MAX_CHAN];
238 __le32 rx_channels;
239 __le32 rx_chanmap[SND_SOC_TPLG_MAX_CHAN];
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800240} __attribute__((packed));
241struct snd_soc_tplg_manifest {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800242 __le32 size;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800243 __le32 control_elems;
244 __le32 widget_elems;
245 __le32 graph_elems;
Christopher Ferris106b3a82016-08-24 12:15:38 -0700246 __le32 pcm_elems;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800247 __le32 dai_link_elems;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800248 __le32 dai_elems;
249 __le32 reserved[20];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800250 struct snd_soc_tplg_private priv;
251} __attribute__((packed));
252struct snd_soc_tplg_mixer_control {
Christopher Ferris05d08e92016-02-04 13:16:38 -0800253 struct snd_soc_tplg_ctl_hdr hdr;
254 __le32 size;
255 __le32 min;
256 __le32 max;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800257 __le32 platform_max;
258 __le32 invert;
259 __le32 num_channels;
260 struct snd_soc_tplg_channel channel[SND_SOC_TPLG_MAX_CHAN];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800261 struct snd_soc_tplg_private priv;
262} __attribute__((packed));
263struct snd_soc_tplg_enum_control {
264 struct snd_soc_tplg_ctl_hdr hdr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800265 __le32 size;
266 __le32 num_channels;
267 struct snd_soc_tplg_channel channel[SND_SOC_TPLG_MAX_CHAN];
268 __le32 items;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800269 __le32 mask;
270 __le32 count;
271 char texts[SND_SOC_TPLG_NUM_TEXTS][SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
272 __le32 values[SND_SOC_TPLG_NUM_TEXTS * SNDRV_CTL_ELEM_ID_NAME_MAXLEN / 4];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800273 struct snd_soc_tplg_private priv;
274} __attribute__((packed));
275struct snd_soc_tplg_bytes_control {
276 struct snd_soc_tplg_ctl_hdr hdr;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800277 __le32 size;
278 __le32 max;
279 __le32 mask;
280 __le32 base;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800281 __le32 num_regs;
282 struct snd_soc_tplg_io_ops ext_ops;
283 struct snd_soc_tplg_private priv;
284} __attribute__((packed));
Christopher Ferris05d08e92016-02-04 13:16:38 -0800285struct snd_soc_tplg_dapm_graph_elem {
286 char sink[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
287 char control[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
288 char source[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800289} __attribute__((packed));
290struct snd_soc_tplg_dapm_widget {
291 __le32 size;
292 __le32 id;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800293 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
294 char sname[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
295 __le32 reg;
296 __le32 shift;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800297 __le32 mask;
298 __le32 subseq;
299 __le32 invert;
300 __le32 ignore_suspend;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800301 __le16 event_flags;
302 __le16 event_type;
303 __le32 num_kcontrols;
304 struct snd_soc_tplg_private priv;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800305} __attribute__((packed));
306struct snd_soc_tplg_pcm {
307 __le32 size;
308 char pcm_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
Christopher Ferris05d08e92016-02-04 13:16:38 -0800309 char dai_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
310 __le32 pcm_id;
311 __le32 dai_id;
312 __le32 playback;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800313 __le32 capture;
314 __le32 compress;
315 struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX];
316 __le32 num_streams;
Christopher Ferris05d08e92016-02-04 13:16:38 -0800317 struct snd_soc_tplg_stream_caps caps[2];
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800318 __le32 flag_mask;
319 __le32 flags;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800320 struct snd_soc_tplg_private priv;
321} __attribute__((packed));
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800322struct snd_soc_tplg_link_config {
323 __le32 size;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800324 __le32 id;
325 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
326 char stream_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
327 struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX];
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800328 __le32 num_streams;
329 struct snd_soc_tplg_hw_config hw_config[SND_SOC_TPLG_HW_CONFIG_MAX];
330 __le32 num_hw_configs;
331 __le32 default_hw_config_id;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800332 __le32 flag_mask;
333 __le32 flags;
334 struct snd_soc_tplg_private priv;
335} __attribute__((packed));
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800336struct snd_soc_tplg_dai {
337 __le32 size;
338 char dai_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
339 __le32 dai_id;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800340 __le32 playback;
341 __le32 capture;
342 struct snd_soc_tplg_stream_caps caps[2];
343 __le32 flag_mask;
Christopher Ferris48af7cb2017-02-21 12:35:09 -0800344 __le32 flags;
345 struct snd_soc_tplg_private priv;
346} __attribute__((packed));
Christopher Ferris9ce28842018-10-25 12:11:39 -0700347struct snd_soc_tplg_manifest_v4 {
348 __le32 size;
349 __le32 control_elems;
350 __le32 widget_elems;
351 __le32 graph_elems;
352 __le32 pcm_elems;
353 __le32 dai_link_elems;
354 struct snd_soc_tplg_private priv;
355} __packed;
356struct snd_soc_tplg_stream_caps_v4 {
357 __le32 size;
358 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
359 __le64 formats;
360 __le32 rates;
361 __le32 rate_min;
362 __le32 rate_max;
363 __le32 channels_min;
364 __le32 channels_max;
365 __le32 periods_min;
366 __le32 periods_max;
367 __le32 period_size_min;
368 __le32 period_size_max;
369 __le32 buffer_size_min;
370 __le32 buffer_size_max;
371} __packed;
372struct snd_soc_tplg_pcm_v4 {
373 __le32 size;
374 char pcm_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
375 char dai_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
376 __le32 pcm_id;
377 __le32 dai_id;
378 __le32 playback;
379 __le32 capture;
380 __le32 compress;
381 struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX];
382 __le32 num_streams;
383 struct snd_soc_tplg_stream_caps_v4 caps[2];
384} __packed;
385struct snd_soc_tplg_link_config_v4 {
386 __le32 size;
387 __le32 id;
388 struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX];
389 __le32 num_streams;
390} __packed;
Christopher Ferris6a9755d2017-01-13 14:09:31 -0800391#endif