Skip to content

Commit a5766cd

Browse files
Amadeusz Sławińskibroonie
authored andcommitted
ASoC: Intel: avs: UAPI: Add tokens for initial config feature
Allow for defining initial config which will be send after module initialization to configure initial module state. This is only useful for modules which need to be configured on init. Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Link: https://lore.kernel.org/r/20240208102400.2497791-2-amadeuszx.slawinski@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 565abf5 commit a5766cd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

include/uapi/sound/intel/avs/tokens.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ enum avs_tplg_token {
1919
AVS_TKN_MANIFEST_NUM_MODCFGS_EXT_U32 = 6,
2020
AVS_TKN_MANIFEST_NUM_PPLCFGS_U32 = 7,
2121
AVS_TKN_MANIFEST_NUM_BINDINGS_U32 = 8,
22+
AVS_TKN_MANIFEST_NUM_CONDPATH_TMPLS_U32 = 9,
23+
AVS_TKN_MANIFEST_NUM_INIT_CONFIGS_U32 = 10,
2224

2325
/* struct avs_tplg_library */
2426
AVS_TKN_LIBRARY_ID_U32 = 101,
@@ -109,6 +111,8 @@ enum avs_tplg_token {
109111
AVS_TKN_MOD_PROC_DOMAIN_U8 = 1705,
110112
AVS_TKN_MOD_MODCFG_EXT_ID_U32 = 1706,
111113
AVS_TKN_MOD_KCONTROL_ID_U32 = 1707,
114+
AVS_TKN_MOD_INIT_CONFIG_NUM_IDS_U32 = 1708,
115+
AVS_TKN_MOD_INIT_CONFIG_ID_U32 = 1709,
112116

113117
/* struct avs_tplg_path_template */
114118
AVS_TKN_PATH_TMPL_ID_U32 = 1801,
@@ -125,6 +129,11 @@ enum avs_tplg_token {
125129

126130
/* struct avs_tplg_kcontrol */
127131
AVS_TKN_KCONTROL_ID_U32 = 2301,
132+
133+
/* struct avs_tplg_init_config */
134+
AVS_TKN_INIT_CONFIG_ID_U32 = 2401,
135+
AVS_TKN_INIT_CONFIG_PARAM_U8 = 2402,
136+
AVS_TKN_INIT_CONFIG_LENGTH_U32 = 2403,
128137
};
129138

130139
#endif

0 commit comments

Comments
 (0)