ASoC: Intel: sof_sdw: Delay update of the codec_conf array
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 26 Apr 2024 15:21:21 +0000 (10:21 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 29 Apr 2024 15:10:05 +0000 (00:10 +0900)
commit628cc5d0c4bd6a3f70c793968f8e2546afc8c3a3
treef7c23dd801728e0c5c6212ee734ecf4710adae49
parent0bab4cfd7c1560095e29919e2ebe01783b9096dc
ASoC: Intel: sof_sdw: Delay update of the codec_conf array

Move the population of the codec_conf array from endpoint parsing
time to link creation time. This is slightly cleaner as the
population is done whilst the DAI links are also being populated,
putting all population together. However, primarily this facilitates
allowing additional non-SoundWire devices to be easily added into
the array in future feature additions.

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