]> git.alsa-project.org Git - alsa-utils.git/commit
topology: pre-process-object: expand variables before validating attributes
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Wed, 26 Jan 2022 23:36:24 +0000 (15:36 -0800)
committerJaroslav Kysela <perex@perex.cz>
Thu, 27 Jan 2022 17:32:06 +0000 (18:32 +0100)
commitc47188f25894b10ea9f9abc870ffe9c40d91c85a
treec1b51970c8027441887cc364154abdc2c065de05
parent1f1cbab23530784dac1a47d7b04750e3ca4cf806
topology: pre-process-object: expand variables before validating attributes

With the introduction of variables in the topology files, validation of
attributes values must be done after they are expanded to their defined
values. Also, since valid values for attributes in the class definition
can also be variables, they need to be expanded as well. So, first expand
the attribute values and then check them against expanded valid values.

Fixes: https://github.com/alsa-project/alsa-utils/pull/138
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
topology/pre-process-object.c