Unverified Commit 86facd80 authored by Maciej Strozek's avatar Maciej Strozek Committed by Mark Brown
Browse files

ASoC: SOF: Intel: Fix endpoint index if endpoints are missing



In case of missing endpoints, the sequential numbering will cause wrong
mapping. Instead, assign the original DAI index from codec_info_list.

Fixes: 5226d19d ("ASoC: SOF: Intel: use sof_sdw as default SDW machine driver")
Signed-off-by: default avatarMaciej Strozek <mstrozek@opensource.cirrus.com>
Signed-off-by: default avatarBard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20260402064531.2287261-2-yung-chuan.liao@linux.intel.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e74c38ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1203,7 +1203,7 @@ static struct snd_soc_acpi_adr_device *find_acpi_adr_device(struct device *dev,
						 codec_info_list[i].dais[j].dai_type))
				continue;

			endpoints[ep_index].num = ep_index;
			endpoints[ep_index].num = j;
			if (codec_info_list[i].dais[j].dai_type == SOC_SDW_DAI_TYPE_AMP) {
				/* Assume all amp are aggregated */
				endpoints[ep_index].aggregated = 1;