Commit b84fff5a authored by Mengdong Lin's avatar Mengdong Lin Committed by Mark Brown

ASoC: topology: Set the link ID when creating a FE DAI link

Topology will set the link's generic id when creating a FE link.
Device drivers can check the id for link specific initialization.
Signed-off-by: default avatarMengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e42839b0
...@@ -423,7 +423,7 @@ struct snd_soc_tplg_pcm { ...@@ -423,7 +423,7 @@ struct snd_soc_tplg_pcm {
__le32 size; /* in bytes of this structure */ __le32 size; /* in bytes of this structure */
char pcm_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; char pcm_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
char dai_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; char dai_name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
__le32 pcm_id; /* unique ID - used to match */ __le32 pcm_id; /* unique ID - used to match with DAI link */
__le32 dai_id; /* unique ID - used to match */ __le32 dai_id; /* unique ID - used to match */
__le32 playback; /* supports playback mode */ __le32 playback; /* supports playback mode */
__le32 capture; /* supports capture mode */ __le32 capture; /* supports capture mode */
......
...@@ -1598,6 +1598,7 @@ static int soc_tplg_link_create(struct soc_tplg *tplg, ...@@ -1598,6 +1598,7 @@ static int soc_tplg_link_create(struct soc_tplg *tplg,
link->name = pcm->pcm_name; link->name = pcm->pcm_name;
link->stream_name = pcm->pcm_name; link->stream_name = pcm->pcm_name;
link->id = pcm->pcm_id;
/* pass control to component driver for optional further init */ /* pass control to component driver for optional further init */
ret = soc_tplg_dai_link_load(tplg, link); ret = soc_tplg_dai_link_load(tplg, link);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment