mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-22 01:40:08 -05:00
topology: add snd_tplg_create() with flags
Add SND_TPLG_CREATE_VERBOSE and SND_TPLG_CREATE_DAPM_NOSORT flags for the special operations. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
aa1bac2d04
commit
b336aea507
4 changed files with 24 additions and 2 deletions
|
|
@ -268,7 +268,10 @@ struct tplg_elem *tplg_elem_new_route(snd_tplg_t *tplg, int index)
|
|||
return NULL;
|
||||
|
||||
elem->index = index;
|
||||
tplg_elem_insert(elem, &tplg->route_list);
|
||||
if (tplg->dapm_sort)
|
||||
tplg_elem_insert(elem, &tplg->route_list);
|
||||
else
|
||||
list_add_tail(&elem->list, &tplg->route_list);
|
||||
strcpy(elem->id, "line");
|
||||
elem->type = SND_TPLG_TYPE_DAPM_GRAPH;
|
||||
elem->size = sizeof(*line);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue