mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 23:14:31 +08:00
ASoC: SOF: Intel: set the DMA TLV device as dai_index
We've already defined the value for dai_index, let's use it instead of open-coding the same thing. No functionality change. Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://msgid.link/r/20240402151828.175002-9-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
58f32cb701
commit
219271481e
@ -533,7 +533,7 @@ int sdw_hda_dai_hw_params(struct snd_pcm_substream *substream,
|
||||
ipc4_copier = widget_to_copier(w);
|
||||
dma_config_tlv = &ipc4_copier->dma_config_tlv[cpu_dai_id];
|
||||
dma_config = &dma_config_tlv->dma_config;
|
||||
dma_config->dma_stream_channel_map.mapping[0].device = link_id << 8 | cpu_dai->id;
|
||||
dma_config->dma_stream_channel_map.mapping[0].device = data.dai_index;
|
||||
dma_config->dma_stream_channel_map.mapping[0].channel_mask = ch_mask;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user