]> git.alsa-project.org Git - alsa-utils.git/commit
topology: pre-process-object: Add support for pre-processing Objects
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Mon, 26 Apr 2021 16:34:48 +0000 (09:34 -0700)
committerJaroslav Kysela <perex@perex.cz>
Tue, 25 May 2021 16:26:51 +0000 (18:26 +0200)
commit4d413567b07f8f42a1e87d33464da31924e1d61c
tree2bf847325823543f6299636cba9c13ef104a360d
parente3ad68b185c1305cdf924b620ceb091e1b5bbe31
topology: pre-process-object: Add support for pre-processing Objects

Add support for pre-processing object instances in the input
config. An object's attributes can be set in multiple places
such as, within the object instance, default values in the class
defnition, inherited from a parent object or explicitly set
in a parent object. Before converting the object config into
the relevant section in the existing syntax, all the attribute
values must be consolidated into one place so that it is easy
to verify if all mandatory attributes are set.
Also, the name of the object will be constructed from the
attributes defined in the attributes.constructor[] config
in the class definition and the unique attribute's value
must be set from the value passed in the object instance.

This patch create a temporary config for each object instance
and populates its unique attribute value. The rest of the steps
will be added in the following patches.

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
topology/Makefile.am
topology/pre-process-object.c [new file with mode: 0644]
topology/pre-processor.c
topology/pre-processor.h