]> git.alsa-project.org Git - alsa-utils.git/commit
topology:pre-process-object: merge object config with parent object config
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Tue, 15 Jun 2021 23:38:32 +0000 (16:38 -0700)
committerJaroslav Kysela <perex@perex.cz>
Mon, 23 Aug 2021 14:49:56 +0000 (16:49 +0200)
commita1c2275090f509e1c9f26073a7fb0939e981c1ab
tree2fbc4c8e3e454c23b47e3f33e02dad88800fe24b
parent814dc3b19e007b506f173ef673c3d95bc76e2261
topology:pre-process-object: merge object config with parent object config

An object can be declared within a class definition as follows:

Class.Pipeline.volume-playback {
Object.Widget.pga.0 {
ramp_step_ms 250
}
}

While instantiating the volume-pipeline class, the pga object
could be modified as follows:

Object.Pipeline.volume-playback.0 {
Object.Widget.pga.0 {
format "s24le"
}
}

When building the pga.0 object in the class definition, merge
the attributes declared in the volume-playback.0 object to create
a new config as follows to make sure that all attributes are
set for the pga object.

Object.Widget.pga.0 {
ramp_step_ms 250
                format "s24le"
        }

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