]> git.alsa-project.org Git - alsa-utils.git/commit
topology: pre-process-object: add support for updating automatic attributes
authorChao Song <chao.song@linux.intel.com>
Wed, 2 Jun 2021 05:20:49 +0000 (13:20 +0800)
committerJaroslav Kysela <perex@perex.cz>
Mon, 23 Aug 2021 14:49:56 +0000 (16:49 +0200)
commit88c6dd6cf41ffe10a99ed19482fca82323de9c54
tree409a4653bc5915df7cdbf69bdd8134a3ca0c6b05
parent5471a0b285d5918a62219fa454bca127de356507
topology: pre-process-object: add support for updating automatic attributes

Classes definitions in Topology2.0 can have attributes
qualified with the "automatic" constraint. Values for
these attributes will be calculated by the compiler.
This patch provides a generic method for defining automatic
attributes computation logic for different classes.

To update automatic attributes for a class, add an item
in object_build_map with auto_attr_updater defined, and then
add updating logic in the custom auto_attr_updater function.

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