Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/linuxbsd_headers/alsa/sound/asoc.h
9918 views
1
/*
2
* uapi/sound/asoc.h -- ALSA SoC Firmware Controls and DAPM
3
*
4
* Copyright (C) 2012 Texas Instruments Inc.
5
* Copyright (C) 2015 Intel Corporation.
6
*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License version 2 as
9
* published by the Free Software Foundation.
10
*
11
* Simple file API to load FW that includes mixers, coefficients, DAPM graphs,
12
* algorithms, equalisers, DAIs, widgets etc.
13
*/
14
15
#ifndef __LINUX_UAPI_SND_ASOC_H
16
#define __LINUX_UAPI_SND_ASOC_H
17
18
/*
19
* Maximum number of channels topology kcontrol can represent.
20
*/
21
#define SND_SOC_TPLG_MAX_CHAN 8
22
23
/*
24
* Maximum number of PCM formats capability
25
*/
26
#define SND_SOC_TPLG_MAX_FORMATS 16
27
28
/*
29
* Maximum number of PCM stream configs
30
*/
31
#define SND_SOC_TPLG_STREAM_CONFIG_MAX 8
32
33
/*
34
* Maximum number of physical link's hardware configs
35
*/
36
#define SND_SOC_TPLG_HW_CONFIG_MAX 8
37
38
/* individual kcontrol info types - can be mixed with other types */
39
#define SND_SOC_TPLG_CTL_VOLSW 1
40
#define SND_SOC_TPLG_CTL_VOLSW_SX 2
41
#define SND_SOC_TPLG_CTL_VOLSW_XR_SX 3
42
#define SND_SOC_TPLG_CTL_ENUM 4
43
#define SND_SOC_TPLG_CTL_BYTES 5
44
#define SND_SOC_TPLG_CTL_ENUM_VALUE 6
45
#define SND_SOC_TPLG_CTL_RANGE 7
46
#define SND_SOC_TPLG_CTL_STROBE 8
47
48
49
/* individual widget kcontrol info types - can be mixed with other types */
50
#define SND_SOC_TPLG_DAPM_CTL_VOLSW 64
51
#define SND_SOC_TPLG_DAPM_CTL_ENUM_DOUBLE 65
52
#define SND_SOC_TPLG_DAPM_CTL_ENUM_VIRT 66
53
#define SND_SOC_TPLG_DAPM_CTL_ENUM_VALUE 67
54
#define SND_SOC_TPLG_DAPM_CTL_PIN 68
55
56
/* DAPM widget types - add new items to the end */
57
#define SND_SOC_TPLG_DAPM_INPUT 0
58
#define SND_SOC_TPLG_DAPM_OUTPUT 1
59
#define SND_SOC_TPLG_DAPM_MUX 2
60
#define SND_SOC_TPLG_DAPM_MIXER 3
61
#define SND_SOC_TPLG_DAPM_PGA 4
62
#define SND_SOC_TPLG_DAPM_OUT_DRV 5
63
#define SND_SOC_TPLG_DAPM_ADC 6
64
#define SND_SOC_TPLG_DAPM_DAC 7
65
#define SND_SOC_TPLG_DAPM_SWITCH 8
66
#define SND_SOC_TPLG_DAPM_PRE 9
67
#define SND_SOC_TPLG_DAPM_POST 10
68
#define SND_SOC_TPLG_DAPM_AIF_IN 11
69
#define SND_SOC_TPLG_DAPM_AIF_OUT 12
70
#define SND_SOC_TPLG_DAPM_DAI_IN 13
71
#define SND_SOC_TPLG_DAPM_DAI_OUT 14
72
#define SND_SOC_TPLG_DAPM_DAI_LINK 15
73
#define SND_SOC_TPLG_DAPM_LAST SND_SOC_TPLG_DAPM_DAI_LINK
74
75
/* Header magic number and string sizes */
76
#define SND_SOC_TPLG_MAGIC 0x41536F43 /* ASoC */
77
78
/* string sizes */
79
#define SND_SOC_TPLG_NUM_TEXTS 16
80
81
/* ABI version */
82
#define SND_SOC_TPLG_ABI_VERSION 0x5 /* current version */
83
#define SND_SOC_TPLG_ABI_VERSION_MIN 0x4 /* oldest version supported */
84
85
/* Max size of TLV data */
86
#define SND_SOC_TPLG_TLV_SIZE 32
87
88
/*
89
* File and Block header data types.
90
* Add new generic and vendor types to end of list.
91
* Generic types are handled by the core whilst vendors types are passed
92
* to the component drivers for handling.
93
*/
94
#define SND_SOC_TPLG_TYPE_MIXER 1
95
#define SND_SOC_TPLG_TYPE_BYTES 2
96
#define SND_SOC_TPLG_TYPE_ENUM 3
97
#define SND_SOC_TPLG_TYPE_DAPM_GRAPH 4
98
#define SND_SOC_TPLG_TYPE_DAPM_WIDGET 5
99
#define SND_SOC_TPLG_TYPE_DAI_LINK 6
100
#define SND_SOC_TPLG_TYPE_PCM 7
101
#define SND_SOC_TPLG_TYPE_MANIFEST 8
102
#define SND_SOC_TPLG_TYPE_CODEC_LINK 9
103
#define SND_SOC_TPLG_TYPE_BACKEND_LINK 10
104
#define SND_SOC_TPLG_TYPE_PDATA 11
105
#define SND_SOC_TPLG_TYPE_DAI 12
106
#define SND_SOC_TPLG_TYPE_MAX SND_SOC_TPLG_TYPE_DAI
107
108
/* vendor block IDs - please add new vendor types to end */
109
#define SND_SOC_TPLG_TYPE_VENDOR_FW 1000
110
#define SND_SOC_TPLG_TYPE_VENDOR_CONFIG 1001
111
#define SND_SOC_TPLG_TYPE_VENDOR_COEFF 1002
112
#define SND_SOC_TPLG_TYPEVENDOR_CODEC 1003
113
114
#define SND_SOC_TPLG_STREAM_PLAYBACK 0
115
#define SND_SOC_TPLG_STREAM_CAPTURE 1
116
117
/* vendor tuple types */
118
#define SND_SOC_TPLG_TUPLE_TYPE_UUID 0
119
#define SND_SOC_TPLG_TUPLE_TYPE_STRING 1
120
#define SND_SOC_TPLG_TUPLE_TYPE_BOOL 2
121
#define SND_SOC_TPLG_TUPLE_TYPE_BYTE 3
122
#define SND_SOC_TPLG_TUPLE_TYPE_WORD 4
123
#define SND_SOC_TPLG_TUPLE_TYPE_SHORT 5
124
125
/* DAI flags */
126
#define SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_RATES (1 << 0)
127
#define SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_CHANNELS (1 << 1)
128
#define SND_SOC_TPLG_DAI_FLGBIT_SYMMETRIC_SAMPLEBITS (1 << 2)
129
130
/* DAI physical PCM data formats.
131
* Add new formats to the end of the list.
132
*/
133
#define SND_SOC_DAI_FORMAT_I2S 1 /* I2S mode */
134
#define SND_SOC_DAI_FORMAT_RIGHT_J 2 /* Right Justified mode */
135
#define SND_SOC_DAI_FORMAT_LEFT_J 3 /* Left Justified mode */
136
#define SND_SOC_DAI_FORMAT_DSP_A 4 /* L data MSB after FRM LRC */
137
#define SND_SOC_DAI_FORMAT_DSP_B 5 /* L data MSB during FRM LRC */
138
#define SND_SOC_DAI_FORMAT_AC97 6 /* AC97 */
139
#define SND_SOC_DAI_FORMAT_PDM 7 /* Pulse density modulation */
140
141
/* left and right justified also known as MSB and LSB respectively */
142
#define SND_SOC_DAI_FORMAT_MSB SND_SOC_DAI_FORMAT_LEFT_J
143
#define SND_SOC_DAI_FORMAT_LSB SND_SOC_DAI_FORMAT_RIGHT_J
144
145
/* DAI link flags */
146
#define SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_RATES (1 << 0)
147
#define SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_CHANNELS (1 << 1)
148
#define SND_SOC_TPLG_LNK_FLGBIT_SYMMETRIC_SAMPLEBITS (1 << 2)
149
#define SND_SOC_TPLG_LNK_FLGBIT_VOICE_WAKEUP (1 << 3)
150
151
/*
152
* Block Header.
153
* This header precedes all object and object arrays below.
154
*/
155
struct snd_soc_tplg_hdr {
156
__le32 magic; /* magic number */
157
__le32 abi; /* ABI version */
158
__le32 version; /* optional vendor specific version details */
159
__le32 type; /* SND_SOC_TPLG_TYPE_ */
160
__le32 size; /* size of this structure */
161
__le32 vendor_type; /* optional vendor specific type info */
162
__le32 payload_size; /* data bytes, excluding this header */
163
__le32 index; /* identifier for block */
164
__le32 count; /* number of elements in block */
165
} __attribute__((packed));
166
167
/* vendor tuple for uuid */
168
struct snd_soc_tplg_vendor_uuid_elem {
169
__le32 token;
170
char uuid[16];
171
} __attribute__((packed));
172
173
/* vendor tuple for a bool/byte/short/word value */
174
struct snd_soc_tplg_vendor_value_elem {
175
__le32 token;
176
__le32 value;
177
} __attribute__((packed));
178
179
/* vendor tuple for string */
180
struct snd_soc_tplg_vendor_string_elem {
181
__le32 token;
182
char string[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
183
} __attribute__((packed));
184
185
struct snd_soc_tplg_vendor_array {
186
__le32 size; /* size in bytes of the array, including all elements */
187
__le32 type; /* SND_SOC_TPLG_TUPLE_TYPE_ */
188
__le32 num_elems; /* number of elements in array */
189
union {
190
struct snd_soc_tplg_vendor_uuid_elem uuid[0];
191
struct snd_soc_tplg_vendor_value_elem value[0];
192
struct snd_soc_tplg_vendor_string_elem string[0];
193
};
194
} __attribute__((packed));
195
196
/*
197
* Private data.
198
* All topology objects may have private data that can be used by the driver or
199
* firmware. Core will ignore this data.
200
*/
201
struct snd_soc_tplg_private {
202
__le32 size; /* in bytes of private data */
203
union {
204
char data[0];
205
struct snd_soc_tplg_vendor_array array[0];
206
};
207
} __attribute__((packed));
208
209
/*
210
* Kcontrol TLV data.
211
*/
212
struct snd_soc_tplg_tlv_dbscale {
213
__le32 min;
214
__le32 step;
215
__le32 mute;
216
} __attribute__((packed));
217
218
struct snd_soc_tplg_ctl_tlv {
219
__le32 size; /* in bytes of this structure */
220
__le32 type; /* SNDRV_CTL_TLVT_*, type of TLV */
221
union {
222
__le32 data[SND_SOC_TPLG_TLV_SIZE];
223
struct snd_soc_tplg_tlv_dbscale scale;
224
};
225
} __attribute__((packed));
226
227
/*
228
* Kcontrol channel data
229
*/
230
struct snd_soc_tplg_channel {
231
__le32 size; /* in bytes of this structure */
232
__le32 reg;
233
__le32 shift;
234
__le32 id; /* ID maps to Left, Right, LFE etc */
235
} __attribute__((packed));
236
237
/*
238
* Genericl Operations IDs, for binding Kcontrol or Bytes ext ops
239
* Kcontrol ops need get/put/info.
240
* Bytes ext ops need get/put.
241
*/
242
struct snd_soc_tplg_io_ops {
243
__le32 get;
244
__le32 put;
245
__le32 info;
246
} __attribute__((packed));
247
248
/*
249
* kcontrol header
250
*/
251
struct snd_soc_tplg_ctl_hdr {
252
__le32 size; /* in bytes of this structure */
253
__le32 type;
254
char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
255
__le32 access;
256
struct snd_soc_tplg_io_ops ops;
257
struct snd_soc_tplg_ctl_tlv tlv;
258
} __attribute__((packed));
259
260
/*
261
* Stream Capabilities
262
*/
263
struct snd_soc_tplg_stream_caps {
264
__le32 size; /* in bytes of this structure */
265
char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
266
__le64 formats; /* supported formats SNDRV_PCM_FMTBIT_* */
267
__le32 rates; /* supported rates SNDRV_PCM_RATE_* */
268
__le32 rate_min; /* min rate */
269
__le32 rate_max; /* max rate */
270
__le32 channels_min; /* min channels */
271
__le32 channels_max; /* max channels */
272
__le32 periods_min; /* min number of periods */
273
__le32 periods_max; /* max number of periods */
274
__le32 period_size_min; /* min period size bytes */
275
__le32 period_size_max; /* max period size bytes */
276
__le32 buffer_size_min; /* min buffer size bytes */
277
__le32 buffer_size_max; /* max buffer size bytes */
278
__le32 sig_bits; /* number of bits of content */
279
} __attribute__((packed));
280
281
/*
282
* FE or BE Stream configuration supported by SW/FW
283
*/
284
struct snd_soc_tplg_stream {
285
__le32 size; /* in bytes of this structure */
286
char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; /* Name of the stream */
287
__le64 format; /* SNDRV_PCM_FMTBIT_* */
288
__le32 rate; /* SNDRV_PCM_RATE_* */
289
__le32 period_bytes; /* size of period in bytes */
290
__le32 buffer_bytes; /* size of buffer in bytes */
291
__le32 channels; /* channels */
292
} __attribute__((packed));
293
294
295
/*
296
* Describes a physical link's runtime supported hardware config,
297
* i.e. hardware audio formats.
298
*/
299
struct snd_soc_tplg_hw_config {
300
__le32 size; /* in bytes of this structure */
301
__le32 id; /* unique ID - - used to match */
302
__le32 fmt; /* SND_SOC_DAI_FORMAT_ format value */
303
__u8 clock_gated; /* 1 if clock can be gated to save power */
304
__u8 invert_bclk; /* 1 for inverted BCLK, 0 for normal */
305
__u8 invert_fsync; /* 1 for inverted frame clock, 0 for normal */
306
__u8 bclk_master; /* 1 for master of BCLK, 0 for slave */
307
__u8 fsync_master; /* 1 for master of FSYNC, 0 for slave */
308
__u8 mclk_direction; /* 0 for input, 1 for output */
309
__le16 reserved; /* for 32bit alignment */
310
__le32 mclk_rate; /* MCLK or SYSCLK freqency in Hz */
311
__le32 bclk_rate; /* BCLK freqency in Hz */
312
__le32 fsync_rate; /* frame clock in Hz */
313
__le32 tdm_slots; /* number of TDM slots in use */
314
__le32 tdm_slot_width; /* width in bits for each slot */
315
__le32 tx_slots; /* bit mask for active Tx slots */
316
__le32 rx_slots; /* bit mask for active Rx slots */
317
__le32 tx_channels; /* number of Tx channels */
318
__le32 tx_chanmap[SND_SOC_TPLG_MAX_CHAN]; /* array of slot number */
319
__le32 rx_channels; /* number of Rx channels */
320
__le32 rx_chanmap[SND_SOC_TPLG_MAX_CHAN]; /* array of slot number */
321
} __attribute__((packed));
322
323
/*
324
* Manifest. List totals for each payload type. Not used in parsing, but will
325
* be passed to the component driver before any other objects in order for any
326
* global component resource allocations.
327
*
328
* File block representation for manifest :-
329
* +-----------------------------------+----+
330
* | struct snd_soc_tplg_hdr | 1 |
331
* +-----------------------------------+----+
332
* | struct snd_soc_tplg_manifest | 1 |
333
* +-----------------------------------+----+
334
*/
335
struct snd_soc_tplg_manifest {
336
__le32 size; /* in bytes of this structure */
337
__le32 control_elems; /* number of control elements */
338
__le32 widget_elems; /* number of widget elements */
339
__le32 graph_elems; /* number of graph elements */
340
__le32 pcm_elems; /* number of PCM elements */
341
__le32 dai_link_elems; /* number of DAI link elements */
342
__le32 dai_elems; /* number of physical DAI elements */
343
__le32 reserved[20]; /* reserved for new ABI element types */
344
struct snd_soc_tplg_private priv;
345
} __attribute__((packed));
346
347
/*
348
* Mixer kcontrol.
349
*
350
* File block representation for mixer kcontrol :-
351
* +-----------------------------------+----+
352
* | struct snd_soc_tplg_hdr | 1 |
353
* +-----------------------------------+----+
354
* | struct snd_soc_tplg_mixer_control | N |
355
* +-----------------------------------+----+
356
*/
357
struct snd_soc_tplg_mixer_control {
358
struct snd_soc_tplg_ctl_hdr hdr;
359
__le32 size; /* in bytes of this structure */
360
__le32 min;
361
__le32 max;
362
__le32 platform_max;
363
__le32 invert;
364
__le32 num_channels;
365
struct snd_soc_tplg_channel channel[SND_SOC_TPLG_MAX_CHAN];
366
struct snd_soc_tplg_private priv;
367
} __attribute__((packed));
368
369
/*
370
* Enumerated kcontrol
371
*
372
* File block representation for enum kcontrol :-
373
* +-----------------------------------+----+
374
* | struct snd_soc_tplg_hdr | 1 |
375
* +-----------------------------------+----+
376
* | struct snd_soc_tplg_enum_control | N |
377
* +-----------------------------------+----+
378
*/
379
struct snd_soc_tplg_enum_control {
380
struct snd_soc_tplg_ctl_hdr hdr;
381
__le32 size; /* in bytes of this structure */
382
__le32 num_channels;
383
struct snd_soc_tplg_channel channel[SND_SOC_TPLG_MAX_CHAN];
384
__le32 items;
385
__le32 mask;
386
__le32 count;
387
char texts[SND_SOC_TPLG_NUM_TEXTS][SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
388
__le32 values[SND_SOC_TPLG_NUM_TEXTS * SNDRV_CTL_ELEM_ID_NAME_MAXLEN / 4];
389
struct snd_soc_tplg_private priv;
390
} __attribute__((packed));
391
392
/*
393
* Bytes kcontrol
394
*
395
* File block representation for bytes kcontrol :-
396
* +-----------------------------------+----+
397
* | struct snd_soc_tplg_hdr | 1 |
398
* +-----------------------------------+----+
399
* | struct snd_soc_tplg_bytes_control | N |
400
* +-----------------------------------+----+
401
*/
402
struct snd_soc_tplg_bytes_control {
403
struct snd_soc_tplg_ctl_hdr hdr;
404
__le32 size; /* in bytes of this structure */
405
__le32 max;
406
__le32 mask;
407
__le32 base;
408
__le32 num_regs;
409
struct snd_soc_tplg_io_ops ext_ops;
410
struct snd_soc_tplg_private priv;
411
} __attribute__((packed));
412
413
/*
414
* DAPM Graph Element
415
*
416
* File block representation for DAPM graph elements :-
417
* +-------------------------------------+----+
418
* | struct snd_soc_tplg_hdr | 1 |
419
* +-------------------------------------+----+
420
* | struct snd_soc_tplg_dapm_graph_elem | N |
421
* +-------------------------------------+----+
422
*/
423
struct snd_soc_tplg_dapm_graph_elem {
424
char sink[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
425
char control[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
426
char source[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
427
} __attribute__((packed));
428
429
/*
430
* DAPM Widget.
431
*
432
* File block representation for DAPM widget :-
433
* +-------------------------------------+-----+
434
* | struct snd_soc_tplg_hdr | 1 |
435
* +-------------------------------------+-----+
436
* | struct snd_soc_tplg_dapm_widget | N |
437
* +-------------------------------------+-----+
438
* | struct snd_soc_tplg_enum_control | 0|1 |
439
* | struct snd_soc_tplg_mixer_control | 0|N |
440
* +-------------------------------------+-----+
441
*
442
* Optional enum or mixer control can be appended to the end of each widget
443
* in the block.
444
*/
445
struct snd_soc_tplg_dapm_widget {
446
__le32 size; /* in bytes of this structure */
447
__le32 id; /* SND_SOC_DAPM_CTL */
448
char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
449
char sname[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
450
451
__le32 reg; /* negative reg = no direct dapm */
452
__le32 shift; /* bits to shift */
453
__le32 mask; /* non-shifted mask */
454
__le32 subseq; /* sort within widget type */
455
__le32 invert; /* invert the power bit */
456
__le32 ignore_suspend; /* kept enabled over suspend */
457
__le16 event_flags;
458
__le16 event_type;
459
__le32 num_kcontrols;
460
struct snd_soc_tplg_private priv;
461
/*
462
* kcontrols that relate to this widget
463
* follow here after widget private data
464
*/
465
} __attribute__((packed));
466
467
468
/*
469
* Describes SW/FW specific features of PCM (FE DAI & DAI link).
470
*
471
* File block representation for PCM :-
472
* +-----------------------------------+-----+
473
* | struct snd_soc_tplg_hdr | 1 |
474
* +-----------------------------------+-----+
475
* | struct snd_soc_tplg_pcm | N |
476
* +-----------------------------------+-----+
477
*/
478
struct snd_soc_tplg_pcm {
479
__le32 size; /* in bytes of this structure */
480
char pcm_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
481
char dai_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
482
__le32 pcm_id; /* unique ID - used to match with DAI link */
483
__le32 dai_id; /* unique ID - used to match */
484
__le32 playback; /* supports playback mode */
485
__le32 capture; /* supports capture mode */
486
__le32 compress; /* 1 = compressed; 0 = PCM */
487
struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX]; /* for DAI link */
488
__le32 num_streams; /* number of streams */
489
struct snd_soc_tplg_stream_caps caps[2]; /* playback and capture for DAI */
490
__le32 flag_mask; /* bitmask of flags to configure */
491
__le32 flags; /* SND_SOC_TPLG_LNK_FLGBIT_* flag value */
492
struct snd_soc_tplg_private priv;
493
} __attribute__((packed));
494
495
496
/*
497
* Describes the physical link runtime supported configs or params
498
*
499
* File block representation for physical link config :-
500
* +-----------------------------------+-----+
501
* | struct snd_soc_tplg_hdr | 1 |
502
* +-----------------------------------+-----+
503
* | struct snd_soc_tplg_link_config | N |
504
* +-----------------------------------+-----+
505
*/
506
struct snd_soc_tplg_link_config {
507
__le32 size; /* in bytes of this structure */
508
__le32 id; /* unique ID - used to match */
509
char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; /* name - used to match */
510
char stream_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; /* stream name - used to match */
511
struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX]; /* supported configs playback and captrure */
512
__le32 num_streams; /* number of streams */
513
struct snd_soc_tplg_hw_config hw_config[SND_SOC_TPLG_HW_CONFIG_MAX]; /* hw configs */
514
__le32 num_hw_configs; /* number of hw configs */
515
__le32 default_hw_config_id; /* default hw config ID for init */
516
__le32 flag_mask; /* bitmask of flags to configure */
517
__le32 flags; /* SND_SOC_TPLG_LNK_FLGBIT_* flag value */
518
struct snd_soc_tplg_private priv;
519
} __attribute__((packed));
520
521
/*
522
* Describes SW/FW specific features of physical DAI.
523
* It can be used to configure backend DAIs for DPCM.
524
*
525
* File block representation for physical DAI :-
526
* +-----------------------------------+-----+
527
* | struct snd_soc_tplg_hdr | 1 |
528
* +-----------------------------------+-----+
529
* | struct snd_soc_tplg_dai | N |
530
* +-----------------------------------+-----+
531
*/
532
struct snd_soc_tplg_dai {
533
__le32 size; /* in bytes of this structure */
534
char dai_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; /* name - used to match */
535
__le32 dai_id; /* unique ID - used to match */
536
__le32 playback; /* supports playback mode */
537
__le32 capture; /* supports capture mode */
538
struct snd_soc_tplg_stream_caps caps[2]; /* playback and capture for DAI */
539
__le32 flag_mask; /* bitmask of flags to configure */
540
__le32 flags; /* SND_SOC_TPLG_DAI_FLGBIT_* */
541
struct snd_soc_tplg_private priv;
542
} __attribute__((packed));
543
#endif
544
545