Skip to content

Commit bb6a3c2

Browse files
macchianbroonie
authored andcommitted
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>
1 parent 754b3da commit bb6a3c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sound/soc/sof/intel/hda.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,12 @@ static bool is_endpoint_present(struct sdw_slave *sdw_device,
11381138
{
11391139
int i;
11401140

1141+
/* If SDCA is not present, assume the endpoint is present */
1142+
if (!sdw_device->sdca_data.interface_revision) {
1143+
dev_warn(&sdw_device->dev, "SDCA properties not found in BIOS\n");
1144+
return true;
1145+
}
1146+
11411147
for (i = 0; i < sdw_device->sdca_data.num_functions; i++) {
11421148
if (dai_type == dai_info->dais[i].dai_type)
11431149
return true;

0 commit comments

Comments
 (0)