ASoC: Intel: sof_sdw: Add callbacks to register sidecar devices
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 26 Apr 2024 15:21:22 +0000 (10:21 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 29 Apr 2024 15:10:06 +0000 (00:10 +0900)
commitda5244180281a18c4c7859674fec308514aaf629
tree060238e8a7fabeb9e13ee287a73e8d32ffb6726f
parent628cc5d0c4bd6a3f70c793968f8e2546afc8c3a3
ASoC: Intel: sof_sdw: Add callbacks to register sidecar devices

Add support for systems that have additional non-SoundWire devices
(sidecars) connected to one of the SoundWire devices in the
system. This is done through the addition of two callbacks, one used
at endpoint parsing time that will return the number of devices and
DAI links to be added, and another called later as the DAI links are
created that will populate those devices into the appropriate arrays.

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://lore.kernel.org/r/20240426152123.36284-12-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c
sound/soc/intel/boards/sof_sdw_common.h