Add callback to handle loading of kcontrol and linking it to active widget. In order to link kcontrol to specific modules add additional field to module data, as well as specify control id in kcontrol data.
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -108,6 +108,7 @@ enum avs_tplg_token { · 107 unmodified lines | |||
| 108 | AVS_TKN_MOD_CORE_ID_U8 = 1704, | 108 | AVS_TKN_MOD_CORE_ID_U8 = 1704, |
| 109 | AVS_TKN_MOD_PROC_DOMAIN_U8 = 1705, | 109 | AVS_TKN_MOD_PROC_DOMAIN_U8 = 1705, |
| 110 | AVS_TKN_MOD_MODCFG_EXT_ID_U32 = 1706, | 110 | AVS_TKN_MOD_MODCFG_EXT_ID_U32 = 1706, |
| 111 | AVS_TKN_MOD_KCONTROL_ID_U32 = 1707, | ||
| 111 | 112 | ||
| 112 | /* struct avs_tplg_path_template */ | 113 | /* struct avs_tplg_path_template */ |
| 113 | AVS_TKN_PATH_TMPL_ID_U32 = 1801, | 114 | AVS_TKN_PATH_TMPL_ID_U32 = 1801, |
| @@ -121,6 +122,9 @@ enum avs_tplg_token { · 7 unmodified lines | |||
| 121 | AVS_TKN_PIN_FMT_INDEX_U32 = 2201, | 122 | AVS_TKN_PIN_FMT_INDEX_U32 = 2201, |
| 122 | AVS_TKN_PIN_FMT_IOBS_U32 = 2202, | 123 | AVS_TKN_PIN_FMT_IOBS_U32 = 2202, |
| 123 | AVS_TKN_PIN_FMT_AFMT_ID_U32 = 2203, | 124 | AVS_TKN_PIN_FMT_AFMT_ID_U32 = 2203, |
| 125 | |||
| 126 | /* struct avs_tplg_kcontrol */ | ||
| 127 | AVS_TKN_KCONTROL_ID_U32 = 2301, | ||
| 124 | }; | 128 | }; |
| 125 | 129 | ||
| 126 | #endif | 130 | #endif |