mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-14 06:59:54 -05:00
topology: Export physical DAIs to the binary for kernel
Export the physical DAI objects to the binary output file for kernel. For physical DAIs defined by the text conf file, find and merge their stream capablities and private data before exporting. Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com> Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
9117715371
commit
6a93f24dac
4 changed files with 71 additions and 0 deletions
|
|
@ -204,6 +204,9 @@ static int write_block(snd_tplg_t *tplg, struct list_head *base,
|
|||
case SND_TPLG_TYPE_DATA:
|
||||
return write_elem_block(tplg, base, size,
|
||||
SND_SOC_TPLG_TYPE_PDATA, "data");
|
||||
case SND_TPLG_TYPE_DAI:
|
||||
return write_elem_block(tplg, base, size,
|
||||
SND_SOC_TPLG_TYPE_DAI, "dai");
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
@ -293,6 +296,14 @@ int tplg_write_data(snd_tplg_t *tplg)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/* write physical dai elems */
|
||||
ret = write_block(tplg, &tplg->dai_list,
|
||||
SND_TPLG_TYPE_DAI);
|
||||
if (ret < 0) {
|
||||
SNDERR("failed to write physical dai elems %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* write be elems */
|
||||
ret = write_block(tplg, &tplg->be_list,
|
||||
SND_TPLG_TYPE_BE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue