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:
Mengdong Lin 2016-04-07 15:29:43 +08:00 committed by Takashi Iwai
parent 9b751b38cb
commit fdb9a6d19f
5 changed files with 283 additions and 1 deletions

View file

@ -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;