mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
topology: Define a function to build a single physical DAI link
Code refactoring. Rename the function to build all physical links from tplg_build_link_config() to tplg_build_links(). And define a new function build_link() to build a single physical DAI link element. The function build_link() will be extended to handle more properties of a physical DAI link (e.g. backend or codec-codec link). Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
18652f4629
commit
53f7711769
3 changed files with 25 additions and 8 deletions
|
|
@ -271,11 +271,11 @@ static int tplg_build_integ(snd_tplg_t *tplg)
|
|||
if (err < 0)
|
||||
return err;
|
||||
|
||||
err = tplg_build_link_cfg(tplg, SND_TPLG_TYPE_BE);
|
||||
err = tplg_build_links(tplg, SND_TPLG_TYPE_BE);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
err = tplg_build_link_cfg(tplg, SND_TPLG_TYPE_CC);
|
||||
err = tplg_build_links(tplg, SND_TPLG_TYPE_CC);
|
||||
if (err < 0)
|
||||
return err;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue