aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMac Chiang <mac.chiang@intel.com>2026-02-03 17:59:23 +0800
committerMark Brown <broonie@kernel.org>2026-02-03 13:47:38 +0000
commitbb6a3c2db281c7d5aaa79b2a6fa00bcd10c0bb8f (patch)
treef85ef0763da8f55d78d4291c08130a8106efec30
parent754b3dade5ddbfd849e6ca9864cef45ce34cd7f6 (diff)
ASoC: SOF: Intel: hda: add SDCA property check
If SDCA property is not present in the DisCo table, assume it is present. This allows DAI links to be created from codec_info_list instead of being skipped. Signed-off-by: Mac Chiang <mac.chiang@intel.com> Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://patch.msgid.link/20260203095923.3741674-1-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/sof/intel/hda.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c
index 762100f7547f..9189fc4e6dfa 100644
--- a/sound/soc/sof/intel/hda.c
+++ b/sound/soc/sof/intel/hda.c
@@ -1138,6 +1138,12 @@ static bool is_endpoint_present(struct sdw_slave *sdw_device,
{
int i;
+ /* If SDCA is not present, assume the endpoint is present */
+ if (!sdw_device->sdca_data.interface_revision) {
+ dev_warn(&sdw_device->dev, "SDCA properties not found in BIOS\n");
+ return true;
+ }
+
for (i = 0; i < sdw_device->sdca_data.num_functions; i++) {
if (dai_type == dai_info->dais[i].dai_type)
return true;