ASoC: intel: sof_sdw: Make create_sdw_dailink allocate link components
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 15 Sep 2023 07:56:10 +0000 (15:56 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 15 Sep 2023 12:27:26 +0000 (13:27 +0100)
commitf6c0273ba936c80632f5edfb5659e49b8bf6b6a9
treeef46194b9707df16ca00936be5829dee659cee5c
parentb359760d95eecaabd081c1c2cd58e0a15fe5a68c
ASoC: intel: sof_sdw: Make create_sdw_dailink allocate link components

Now only the SoundWire part of the code uses the global cpus array,
remove it and have create_sdw_dailink allocate its own link components.
This removes a lot of state being passed around in the driver, which
simplifies things a fair bit.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20230915075611.1619548-4-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c