mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
topology: Add support for parsing vendor tuples
Vendor can define several tuple arrays in 'SectionVendorTuples', as well as the reference to a vendor token list object. A later patche will copy vendor tuples in ABI format to the private buffer of its parent data object in the building phase. Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
9b751b38cb
commit
fdb9a6d19f
5 changed files with 283 additions and 1 deletions
|
|
@ -196,6 +196,10 @@ struct tplg_elem* tplg_elem_new_common(snd_tplg_t *tplg,
|
|||
case SND_TPLG_TYPE_TOKEN:
|
||||
list_add_tail(&elem->list, &tplg->token_list);
|
||||
break;
|
||||
case SND_TPLG_TYPE_TUPLE:
|
||||
list_add_tail(&elem->list, &tplg->tuple_list);
|
||||
elem->free = tplg_free_tuples;
|
||||
break;
|
||||
default:
|
||||
free(elem);
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue