mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
topology: Tuple type can have an extenstion
After the type specific string ("uuid", "string", "byte", "short" and
"word"), users may append a string, like "uuidxxx". The topology parser
will check the first few characters to get the tuple type.
This can allow users to put multiple tuples of the same type into one
vendor tuple section (SectionVendorTuples), e.g. parameters of multiple
firmware modules.
Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
a3683a2ba0
commit
962d006c28
2 changed files with 29 additions and 6 deletions
|
|
@ -302,6 +302,29 @@ extern "C" {
|
|||
* }
|
||||
* }
|
||||
* </pre>
|
||||
* To define multiple vendor tuples of same type, please append some
|
||||
* characters after the type string ("string", "uuid", "bool", "byte", "short"
|
||||
* or "word"), to avoid ID duplication in the SectionVendorTuples.<br>
|
||||
* The parser will check the first few characters in ID to get the tuple type.
|
||||
* Here is an example:
|
||||
* <pre>
|
||||
* SectionVendorTuples."id of the vendor tuples" {
|
||||
* ...
|
||||
* tuples."word.module0" {
|
||||
* VENDOR_TOKEN_PARAM_ID1 "0x00112233"
|
||||
* VENDOR_TOKEN_PARAM_ID2 "0x44556677"
|
||||
* ...
|
||||
* }
|
||||
*
|
||||
* tuples."word.module2" {
|
||||
* VENDOR_TOKEN_PARAM_ID1 "0x11223344"
|
||||
* VENDOR_TOKEN_PARAM_ID2 "0x55667788"
|
||||
* ...
|
||||
* }
|
||||
* ...
|
||||
* }
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
* <h5>Mixer Controls</h5>
|
||||
* A mixer control is defined as a new section that can include channel mapping,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue