summaryrefslogtreecommitdiff
path: root/sound/soc/intel/boards/sof_pcm512x.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.cirrus.com>2024-03-26 11:04:00 -0500
committerMark Brown <broonie@kernel.org>2024-03-26 16:13:24 +0000
commit634ffef9cbc41b9db2b45974969dda06219ffce1 (patch)
treef177b24e896ebde81e68a74f7ce6fd224c80b36b /sound/soc/intel/boards/sof_pcm512x.c
parent961e694749fb8ddb8591512216e2fa6b4e3f42e2 (diff)
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>
Diffstat (limited to 'sound/soc/intel/boards/sof_pcm512x.c')
0 files changed, 0 insertions, 0 deletions