From 9a0c0dc9649415f340d450d785b7abe058e3d415 Mon Sep 17 00:00:00 2001 From: Mac Chiang Date: Wed, 14 Jan 2026 14:30:52 +0800 Subject: [PATCH] ASoC: SOF: Intel: hda: add SDCA property check If the codec SDCA is not present in Disco table, do not skip the endpoints in codec dai list when creating DAI links. Singed-off-by: Mac Chiang --- sound/soc/sof/intel/hda.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c index 762100f7547ff9..c1e47d24d2e3ea 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, ensure codec DAI endpoints in the list are not skipped */ + 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;