Skip to content

Commit 86facd8

Browse files
mstrozekbroonie
authored andcommitted
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: 5226d19 ("ASoC: SOF: Intel: use sof_sdw as default SDW machine driver") Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com> Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://patch.msgid.link/20260402064531.2287261-2-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent e74c38e commit 86facd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/sof/intel/hda.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ static struct snd_soc_acpi_adr_device *find_acpi_adr_device(struct device *dev,
12031203
codec_info_list[i].dais[j].dai_type))
12041204
continue;
12051205

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

0 commit comments

Comments
 (0)