Skip to content

Commit 1e1eb46

Browse files
mstrozekbardliao
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>
1 parent 8ff4995 commit 1e1eb46

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)