mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30: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
|
|
@ -432,7 +432,7 @@ static bool is_little_endian(void)
|
|||
return false;
|
||||
}
|
||||
|
||||
snd_tplg_t *snd_tplg_new(void)
|
||||
snd_tplg_t *snd_tplg_create(int flags)
|
||||
{
|
||||
snd_tplg_t *tplg;
|
||||
|
||||
|
|
@ -445,6 +445,9 @@ snd_tplg_t *snd_tplg_new(void)
|
|||
if (!tplg)
|
||||
return NULL;
|
||||
|
||||
tplg->verbose = !!(flags & SND_TPLG_CREATE_VERBOSE);
|
||||
tplg->dapm_sort = (flags & SND_TPLG_CREATE_DAPM_NOSORT) == 0;
|
||||
|
||||
tplg->manifest.size = sizeof(struct snd_soc_tplg_manifest);
|
||||
|
||||
INIT_LIST_HEAD(&tplg->tlv_list);
|
||||
|
|
@ -469,6 +472,11 @@ snd_tplg_t *snd_tplg_new(void)
|
|||
return tplg;
|
||||
}
|
||||
|
||||
snd_tplg_t *snd_tplg_new(void)
|
||||
{
|
||||
return snd_tplg_create(0);
|
||||
}
|
||||
|
||||
void snd_tplg_free(snd_tplg_t *tplg)
|
||||
{
|
||||
free(tplg->bin);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue