xref: /openbmc/linux/include/uapi/sound/intel/avs/tokens.h (revision 99a15348)
1*99a15348SCezary Rojewski /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*99a15348SCezary Rojewski /*
3*99a15348SCezary Rojewski  * Copyright(c) 2021 Intel Corporation. All rights reserved.
4*99a15348SCezary Rojewski  *
5*99a15348SCezary Rojewski  * Authors: Cezary Rojewski <cezary.rojewski@intel.com>
6*99a15348SCezary Rojewski  *          Amadeusz Slawinski <amadeuszx.slawinski@linux.intel.com>
7*99a15348SCezary Rojewski  */
8*99a15348SCezary Rojewski 
9*99a15348SCezary Rojewski #ifndef __UAPI_SOUND_INTEL_AVS_TOKENS_H
10*99a15348SCezary Rojewski #define __UAPI_SOUND_INTEL_AVS_TOKENS_H
11*99a15348SCezary Rojewski 
12*99a15348SCezary Rojewski enum avs_tplg_token {
13*99a15348SCezary Rojewski 	/* struct avs_tplg */
14*99a15348SCezary Rojewski 	AVS_TKN_MANIFEST_NAME_STRING			= 1,
15*99a15348SCezary Rojewski 	AVS_TKN_MANIFEST_VERSION_U32			= 2,
16*99a15348SCezary Rojewski 	AVS_TKN_MANIFEST_NUM_LIBRARIES_U32		= 3,
17*99a15348SCezary Rojewski 	AVS_TKN_MANIFEST_NUM_AFMTS_U32			= 4,
18*99a15348SCezary Rojewski 	AVS_TKN_MANIFEST_NUM_MODCFGS_BASE_U32		= 5,
19*99a15348SCezary Rojewski 	AVS_TKN_MANIFEST_NUM_MODCFGS_EXT_U32		= 6,
20*99a15348SCezary Rojewski 	AVS_TKN_MANIFEST_NUM_PPLCFGS_U32		= 7,
21*99a15348SCezary Rojewski 	AVS_TKN_MANIFEST_NUM_BINDINGS_U32		= 8,
22*99a15348SCezary Rojewski 
23*99a15348SCezary Rojewski 	/* struct avs_tplg_library */
24*99a15348SCezary Rojewski 	AVS_TKN_LIBRARY_ID_U32				= 101,
25*99a15348SCezary Rojewski 	AVS_TKN_LIBRARY_NAME_STRING			= 102,
26*99a15348SCezary Rojewski 
27*99a15348SCezary Rojewski 	/* struct avs_audio_format */
28*99a15348SCezary Rojewski 	AVS_TKN_AFMT_ID_U32				= 201,
29*99a15348SCezary Rojewski 	AVS_TKN_AFMT_SAMPLE_RATE_U32			= 202,
30*99a15348SCezary Rojewski 	AVS_TKN_AFMT_BIT_DEPTH_U32			= 203,
31*99a15348SCezary Rojewski 	AVS_TKN_AFMT_CHANNEL_MAP_U32			= 204,
32*99a15348SCezary Rojewski 	AVS_TKN_AFMT_CHANNEL_CFG_U32			= 205,
33*99a15348SCezary Rojewski 	AVS_TKN_AFMT_INTERLEAVING_U32			= 206,
34*99a15348SCezary Rojewski 	AVS_TKN_AFMT_NUM_CHANNELS_U32			= 207,
35*99a15348SCezary Rojewski 	AVS_TKN_AFMT_VALID_BIT_DEPTH_U32		= 208,
36*99a15348SCezary Rojewski 	AVS_TKN_AFMT_SAMPLE_TYPE_U32			= 209,
37*99a15348SCezary Rojewski 
38*99a15348SCezary Rojewski 	/* struct avs_tplg_modcfg_base */
39*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_BASE_ID_U32			= 301,
40*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_BASE_CPC_U32			= 302,
41*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_BASE_IBS_U32			= 303,
42*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_BASE_OBS_U32			= 304,
43*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_BASE_PAGES_U32			= 305,
44*99a15348SCezary Rojewski 
45*99a15348SCezary Rojewski 	/* struct avs_tplg_modcfg_ext */
46*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_EXT_ID_U32			= 401,
47*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_EXT_TYPE_UUID			= 402,
48*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_CPR_OUT_AFMT_ID_U32		= 403,
49*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_CPR_FEATURE_MASK_U32		= 404,
50*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_CPR_DMA_TYPE_U32			= 405,
51*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_CPR_DMABUFF_SIZE_U32		= 406,
52*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_CPR_VINDEX_U8			= 407,
53*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_CPR_BLOB_FMT_ID_U32		= 408,
54*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_MICSEL_OUT_AFMT_ID_U32		= 409,
55*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_INTELWOV_CPC_LP_MODE_U32		= 410,
56*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_SRC_OUT_FREQ_U32			= 411,
57*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_MUX_REF_AFMT_ID_U32		= 412,
58*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_MUX_OUT_AFMT_ID_U32		= 413,
59*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_AEC_REF_AFMT_ID_U32		= 414,
60*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_AEC_OUT_AFMT_ID_U32		= 415,
61*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_AEC_CPC_LP_MODE_U32		= 416,
62*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_ASRC_OUT_FREQ_U32		= 417,
63*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_ASRC_MODE_U8			= 418,
64*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_ASRC_DISABLE_JITTER_U8		= 419,
65*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_UPDOWN_MIX_OUT_CHAN_CFG_U32	= 420,
66*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_SELECT_U32	= 421,
67*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_0_S32		= 422,
68*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_1_S32		= 423,
69*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_2_S32		= 424,
70*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_3_S32		= 425,
71*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_4_S32		= 426,
72*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_5_S32		= 427,
73*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_6_S32		= 428,
74*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_UPDOWN_MIX_COEFF_7_S32		= 429,
75*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_UPDOWN_MIX_CHAN_MAP_U32		= 430,
76*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_EXT_NUM_INPUT_PINS_U16		= 431,
77*99a15348SCezary Rojewski 	AVS_TKN_MODCFG_EXT_NUM_OUTPUT_PINS_U16		= 432,
78*99a15348SCezary Rojewski 
79*99a15348SCezary Rojewski 	/* struct avs_tplg_pplcfg */
80*99a15348SCezary Rojewski 	AVS_TKN_PPLCFG_ID_U32				= 1401,
81*99a15348SCezary Rojewski 	AVS_TKN_PPLCFG_REQ_SIZE_U16			= 1402,
82*99a15348SCezary Rojewski 	AVS_TKN_PPLCFG_PRIORITY_U8			= 1403,
83*99a15348SCezary Rojewski 	AVS_TKN_PPLCFG_LOW_POWER_BOOL			= 1404,
84*99a15348SCezary Rojewski 	AVS_TKN_PPLCFG_ATTRIBUTES_U16			= 1405,
85*99a15348SCezary Rojewski 	AVS_TKN_PPLCFG_TRIGGER_U32			= 1406,
86*99a15348SCezary Rojewski 
87*99a15348SCezary Rojewski 	/* struct avs_tplg_binding */
88*99a15348SCezary Rojewski 	AVS_TKN_BINDING_ID_U32				= 1501,
89*99a15348SCezary Rojewski 	AVS_TKN_BINDING_TARGET_TPLG_NAME_STRING		= 1502,
90*99a15348SCezary Rojewski 	AVS_TKN_BINDING_TARGET_PATH_TMPL_ID_U32		= 1503,
91*99a15348SCezary Rojewski 	AVS_TKN_BINDING_TARGET_PPL_ID_U32		= 1504,
92*99a15348SCezary Rojewski 	AVS_TKN_BINDING_TARGET_MOD_ID_U32		= 1505,
93*99a15348SCezary Rojewski 	AVS_TKN_BINDING_TARGET_MOD_PIN_U8		= 1506,
94*99a15348SCezary Rojewski 	AVS_TKN_BINDING_MOD_ID_U32			= 1507,
95*99a15348SCezary Rojewski 	AVS_TKN_BINDING_MOD_PIN_U8			= 1508,
96*99a15348SCezary Rojewski 	AVS_TKN_BINDING_IS_SINK_U8			= 1509,
97*99a15348SCezary Rojewski 
98*99a15348SCezary Rojewski 	/* struct avs_tplg_pipeline */
99*99a15348SCezary Rojewski 	AVS_TKN_PPL_ID_U32				= 1601,
100*99a15348SCezary Rojewski 	AVS_TKN_PPL_PPLCFG_ID_U32			= 1602,
101*99a15348SCezary Rojewski 	AVS_TKN_PPL_NUM_BINDING_IDS_U32			= 1603,
102*99a15348SCezary Rojewski 	AVS_TKN_PPL_BINDING_ID_U32			= 1604,
103*99a15348SCezary Rojewski 
104*99a15348SCezary Rojewski 	/* struct avs_tplg_module */
105*99a15348SCezary Rojewski 	AVS_TKN_MOD_ID_U32				= 1701,
106*99a15348SCezary Rojewski 	AVS_TKN_MOD_MODCFG_BASE_ID_U32			= 1702,
107*99a15348SCezary Rojewski 	AVS_TKN_MOD_IN_AFMT_ID_U32			= 1703,
108*99a15348SCezary Rojewski 	AVS_TKN_MOD_CORE_ID_U8				= 1704,
109*99a15348SCezary Rojewski 	AVS_TKN_MOD_PROC_DOMAIN_U8			= 1705,
110*99a15348SCezary Rojewski 	AVS_TKN_MOD_MODCFG_EXT_ID_U32			= 1706,
111*99a15348SCezary Rojewski 
112*99a15348SCezary Rojewski 	/* struct avs_tplg_path_template */
113*99a15348SCezary Rojewski 	AVS_TKN_PATH_TMPL_ID_U32			= 1801,
114*99a15348SCezary Rojewski 
115*99a15348SCezary Rojewski 	/* struct avs_tplg_path */
116*99a15348SCezary Rojewski 	AVS_TKN_PATH_ID_U32				= 1901,
117*99a15348SCezary Rojewski 	AVS_TKN_PATH_FE_FMT_ID_U32			= 1902,
118*99a15348SCezary Rojewski 	AVS_TKN_PATH_BE_FMT_ID_U32			= 1903,
119*99a15348SCezary Rojewski 
120*99a15348SCezary Rojewski 	/* struct avs_tplg_pin_format */
121*99a15348SCezary Rojewski 	AVS_TKN_PIN_FMT_INDEX_U32			= 2201,
122*99a15348SCezary Rojewski 	AVS_TKN_PIN_FMT_IOBS_U32			= 2202,
123*99a15348SCezary Rojewski 	AVS_TKN_PIN_FMT_AFMT_ID_U32			= 2203,
124*99a15348SCezary Rojewski };
125*99a15348SCezary Rojewski 
126*99a15348SCezary Rojewski #endif
127