topology: Allow a data section to contain multiple tuples objects

It's easy to use a vendor tuples object to define a C structure instance as
vendor specific parameter for kernel drivers. And sometimes the kernel drivers
may want a group of structures. So this patch will allow user to define multiple
vendor tuples objects in a data section, to avoid defining multiple data
sections and each data section only has 1 vendor tuples object.

There is no ABI change in this patch.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Fuwei Tang <fuweix.tang@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Mengdong Lin 2017-04-27 14:46:00 +08:00 committed by Takashi Iwai
parent 1cb217ead9
commit 0b8b6bb7d8
2 changed files with 74 additions and 18 deletions

View file

@ -214,6 +214,20 @@ extern "C" {
* The keyword tuples is to define vendor specific tuples. Please refer to
* section Vendor Tokens and Vendor tuples.
*
* It's easy to use a vendor tuples object to define a C structure instance.
* And a data section can include multiple vendor tuples objects:
*
* <pre>
* SectionData."data element name" {
* index "1" #Index number
* tuples [
* "id of the 1st vendor tuples section"
* "id of the 2nd vendor tuples section"
* ...
* ]
* };
* </pre>
*
* <h5>How to define an element with private data</h5>
* An element can refer to a single data section or multiple data
* sections.