Unverified Commit bb6a3c2d authored by Mac Chiang's avatar Mac Chiang Committed by Mark Brown
Browse files

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: default avatarMac Chiang <mac.chiang@intel.com>
Reviewed-by: default avatarLiam Girdwood <liam.r.girdwood@intel.com>
Signed-off-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20260203095923.3741674-1-yung-chuan.liao@linux.intel.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 754b3dad
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;