diff options
author | Ranjani Sridharan <ranjani.sridharan@linux.intel.com> | 2021-04-26 11:33:12 -0700 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2021-05-25 18:26:51 +0200 |
commit | 48fef7a811e5e95a405a80ed9c256b489f605bc2 (patch) | |
tree | e211da57f2039c4a8f65eea78294481e623d9cb1 /topology/pre-processor.h | |
parent | 571d1fe8718b4b08273d452ccca22415207b2879 (diff) | |
download | alsa-utils-48fef7a811e5e95a405a80ed9c256b489f605bc2.tar.gz |
topology: pre-process-obejct: add helper function to get the section config
Add a helper function to retrieve the config node
pointing to the section name for a given object.
For ex: for the object, Object.Widget.pga.1{},
the function returns the config with id, "SectionWidget"
in the output config.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'topology/pre-processor.h')
-rw-r--r-- | topology/pre-processor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/topology/pre-processor.h b/topology/pre-processor.h index 5599ca2..8934e2f 100644 --- a/topology/pre-processor.h +++ b/topology/pre-processor.h @@ -61,6 +61,7 @@ snd_config_t *tplg_object_get_instance_config(struct tplg_pre_processor *tplg_pp snd_config_t *class_type); const char *tplg_object_get_name(struct tplg_pre_processor *tplg_pp, snd_config_t *object); +snd_config_t *tplg_object_get_section(struct tplg_pre_processor *tplg_pp, snd_config_t *class); /* class helpers */ snd_config_t *tplg_class_lookup(struct tplg_pre_processor *tplg_pp, snd_config_t *cfg); |