]> git.alsa-project.org Git - alsa-utils.git/commit
topology: pre-process-class: add funcion to get the name of the unique attribute...
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Fri, 23 Apr 2021 20:32:26 +0000 (13:32 -0700)
committerJaroslav Kysela <perex@perex.cz>
Tue, 25 May 2021 16:26:51 +0000 (18:26 +0200)
commit0b0c16d4a7899c09126c5f12836a3c90ecebc099
tree36c9684dd69db7eeca8d846fd10057c3da53c346
parent7bf31094e299b3ef4e897c18e891e6546ee2e0c6
topology: pre-process-class: add funcion to get the name of the unique attribute in a class

Every class must have a unique attribute that will be used
to instantiate the object. The value provided for this
attribute must be unique within the same alsaconf node for
objects of the same class. Add a helper function to get the
name of the attribute that must have a unique value in the
object instance.

For example, when instantiating 2 buffer widgets within a pipeline,
they must be given unique instance attribute values as:
Object.Widget.buffer.0{} and Object.Widget.buffer.1{}.

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