Message ID | 20201016012237.16530-6-hui.wang@canonical.com |
---|---|
State | New |
Headers | show |
Series | alsa: add Dell tgl soundwire machines support | expand |
diff --git a/sound/soc/sof/topology.c b/sound/soc/sof/topology.c index 35f1050a643d..e344bd1121db 100644 --- a/sound/soc/sof/topology.c +++ b/sound/soc/sof/topology.c @@ -2652,6 +2652,14 @@ static int sof_set_dai_config(struct snd_sof_dev *sdev, u32 size, struct sof_ipc_reply reply; int ret; + /* + * the same dai config will be applied to all DAIs in + * the same dai link. We have to ensure that the ipc + * dai config's dai_index match to the component's + * dai_index. + */ + config->dai_index = dai->comp_dai.dai_index; + /* send message to DSP */ ret = sof_ipc_tx_message(sdev->ipc, config->hdr.cmd, config, size,