Charles Keepax 634ffef9cb
ASoC: intel: sof_sdw: Set channel map directly from endpoints
The current code evenly distributes the CODEC DAIs across the CPU
DAIs in the DAI link, but this is just an assumption about how the
devices are connected to the host. All the information about which
CODEC is connected to which CPU DAI is contained in the endpoints
datastructures and those structures are already parsed to work out
which CODECs to include in the DAI link. Simply fill in the mapping
from CPUs -> CODECs as we parse through the endpoints structures,
this will ensure that mapping matches the physical layout.

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://msgid.link/r/20240326160429.13560-6-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-03-26 16:13:24 +00:00
..
2023-10-23 19:38:22 +01:00
2024-03-11 16:18:47 +01:00
2024-03-13 18:22:15 +00:00
2024-03-13 18:22:15 +00:00
2023-10-09 13:13:59 +01:00
2024-01-22 21:08:17 +00:00
2024-01-08 08:18:02 +01:00