ASoC: Intel: sof_sdw: add dai info
authorBard Liao <yung-chuan.liao@linux.intel.com>
Fri, 2 Jun 2023 20:21:59 +0000 (15:21 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 5 Jun 2023 13:00:09 +0000 (14:00 +0100)
commit07140abbbf9e3dc412a34ed4a60c4b0d58fbe192
treec5069717d4273a3487b19017550f1e5197c67d7e
parentba032909bb2d15fd3014c829fdc7a2a74a8b88ad
ASoC: Intel: sof_sdw: add dai info

The existing code create a dailink for a codec. However, we may need
multi dailinks for a codec. This commit adds a new struct in
sof_sdw_codec_info{} to store the dai info of a codec.
The initial assumption if that we will create at most 3 dailink types
for a codec, since this is the max known with upcoming SDCA devices. We
may need to increase this number as new SDCA 'functions' become available.

One strong assumption is that all dailinks exposed are independent, as per
SDCA directions.

This commit just moves some items into the new sof_sdw_dai_info struct.
There is no function changed. Multi dais supported will be added in the
follow up commits.

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20230602202225.249209-3-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