mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
topology: Fix pcm ID & name parsing
The name and ID of SectionPCM should be set to pcm_name and pcm_id, for a front-end DAI link in the kernel, not for the front-end DAI of the 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
0935e32d40
commit
5d23c406d1
2 changed files with 4 additions and 4 deletions
|
|
@ -337,7 +337,7 @@ int tplg_parse_pcm(snd_tplg_t *tplg,
|
|||
|
||||
pcm = elem->pcm;
|
||||
pcm->size = elem->size;
|
||||
elem_copy_text(pcm->dai_name, elem->id, SNDRV_CTL_ELEM_ID_NAME_MAXLEN);
|
||||
elem_copy_text(pcm->pcm_name, elem->id, SNDRV_CTL_ELEM_ID_NAME_MAXLEN);
|
||||
|
||||
tplg_dbg(" PCM: %s\n", elem->id);
|
||||
|
||||
|
|
@ -366,8 +366,8 @@ int tplg_parse_pcm(snd_tplg_t *tplg,
|
|||
if (snd_config_get_string(n, &val) < 0)
|
||||
return -EINVAL;
|
||||
|
||||
pcm->dai_id = atoi(val);
|
||||
tplg_dbg("\t%s: %d\n", id, pcm->dai_id);
|
||||
pcm->pcm_id = atoi(val);
|
||||
tplg_dbg("\t%s: %d\n", id, pcm->pcm_id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue