mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
topology: Add support for vendor tokens
Vendor can define a token list in SectionVendorTokens. Each token element is a pair of string ID and integer value. And both the ID and value are vendor-specific. Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
768a006089
commit
9b751b38cb
5 changed files with 79 additions and 0 deletions
|
|
@ -193,6 +193,9 @@ struct tplg_elem* tplg_elem_new_common(snd_tplg_t *tplg,
|
|||
list_add_tail(&elem->list, &tplg->cc_list);
|
||||
obj_size = sizeof(struct snd_soc_tplg_link_config);
|
||||
break;
|
||||
case SND_TPLG_TYPE_TOKEN:
|
||||
list_add_tail(&elem->list, &tplg->token_list);
|
||||
break;
|
||||
default:
|
||||
free(elem);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue