mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
topology: An element can refer to multipe data sections in text conf file
Previously in text conf file, an element can only refer to one data section (SectionData). Now it can also refer to a list of data sections. Thus users can split groups of firmware parameters to multiple data sections, and put them all in the reference list. Finally, data of these data sections will be merged, in the same order as they are in the reference list, as the element's private data for kernel. We still support the original syntax of reference to a single data section. The doc is updated for the syntax extension. Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com> Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
fce5b6dcd1
commit
bb03d929e8
5 changed files with 131 additions and 46 deletions
|
|
@ -229,6 +229,7 @@ int tplg_build_routes(snd_tplg_t *tplg);
|
|||
int tplg_build_pcm_dai(snd_tplg_t *tplg, unsigned int type);
|
||||
|
||||
int tplg_copy_data(struct tplg_elem *elem, struct tplg_elem *ref);
|
||||
int tplg_parse_data_refs(snd_config_t *cfg, struct tplg_elem *elem);
|
||||
|
||||
int tplg_ref_add(struct tplg_elem *elem, int type, const char* id);
|
||||
int tplg_ref_add_elem(struct tplg_elem *elem, struct tplg_elem *elem_ref);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue