]> git.alsa-project.org Git - alsa-utils.git/commit
topology: pre-process-class: add function to look up token_ref for an attribute in...
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Fri, 23 Apr 2021 20:41:45 +0000 (13:41 -0700)
committerJaroslav Kysela <perex@perex.cz>
Tue, 25 May 2021 16:26:51 +0000 (18:26 +0200)
commit963578af1e1ab617850a0848adf182521c8e3b94
treeb58fb458cdd7922fd4711cdc5ea6e2234b404443
parentd8e9466e594dd62779bbc19eb2a379c79413f0d9
topology: pre-process-class: add function to look up token_ref for an attribute in class

Some attributes may have the token_ref set which is
used to look up the token value for the tuple data
that is appended to the object's private data.

For example, in the buffer widget object:
DefineAttribute."size" {
# Token reference and type
token_ref "sof_tkn_buffer.word"
}

The token_ref must include the reference to the vendor
token object name followed by the type of the tuple.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
topology/pre-process-class.c
topology/pre-processor.h