mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
topology: decode: Add DAI name printing
DAI name is a part of topology binary. Not printing makes data loss while converting from binary to standard ALSA configuration file. Signed-off-by: Piotr Maziarz <piotrx.maziarz@linux.intel.com> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com> Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
d93b346299
commit
6b0fb2bc7e
1 changed files with 3 additions and 1 deletions
|
|
@ -781,7 +781,9 @@ int tplg_save_fe_dai(snd_tplg_t *tplg ATTRIBUTE_UNUSED,
|
||||||
struct snd_soc_tplg_pcm *pcm = elem->pcm;
|
struct snd_soc_tplg_pcm *pcm = elem->pcm;
|
||||||
int err = 0;
|
int err = 0;
|
||||||
|
|
||||||
if (pcm->dai_id > 0)
|
if (strlen(pcm->dai_name))
|
||||||
|
err = tplg_save_printf(dst, pfx, "dai.'%s'.id %u\n", pcm->dai_name, pcm->dai_id);
|
||||||
|
else if (pcm->dai_id > 0)
|
||||||
err = tplg_save_printf(dst, pfx, "dai.0.id %u\n", pcm->dai_id);
|
err = tplg_save_printf(dst, pfx, "dai.0.id %u\n", pcm->dai_id);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue