ASoC: SOF: Intel: hda-dai: set dma_stream_channel_map device
authorBard Liao <yung-chuan.liao@linux.intel.com>
Tue, 2 Apr 2024 15:18:17 +0000 (10:18 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 2 Apr 2024 16:14:47 +0000 (17:14 +0100)
commit17386cb1b48b0d85f69b21ae13d5408d67180e30
tree8be7499554a4f0414c1a2461c9e7363698809894
parent8fa10a243600ca8bd92fdc871100deb308fca5f1
ASoC: SOF: Intel: hda-dai: set dma_stream_channel_map device

sof_ipc4_dma_config_tlv{} is required for ACE2.x. The patch follow the
convention to set the dma_stream_channel_map.mapping device as
"link_id << 8 | pdi_id".
And the mapping in sof_ipc4_alh_configuration_blob{} should be the same
as dma_stream_channel_map.mapping in sof_ipc4_dma_config{}.
The purposes of device id is to map DMA tlv.

Signed-off-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-7-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-dai.c
sound/soc/sof/ipc4-topology.c