Skip to content

Commit

Permalink
ASoC: topology: set component dai_index to ipc dai config dai_index
Browse files Browse the repository at this point in the history
The ipc dai config dai_index is from topology. However, 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.

Signed-off-by: Bard Liao <[email protected]>
  • Loading branch information
bardliao authored and kv2019i committed Apr 21, 2020
1 parent 8b516f8 commit 2fa2fe7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sound/soc/sof/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -2693,6 +2693,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,
Expand Down

0 comments on commit 2fa2fe7

Please sign in to comment.