Skip to content

Commit 1f1ef7e

Browse files
charleskeepaxbroonie
authored andcommitted
ASoC: intel: sof_sdw: Fixup typo in device link checking
The loop checking for multiple different devices on a single sdw link contains a typo accidentally using i twice instead of j. Correct to the correct index variable. Fixes: dc5a3e6 ("ASoC: Intel: sof_sdw: append codec type to dai link name") Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20230614142116.1059677-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent f9fd804 commit 1f1ef7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/intel/boards/sof_sdw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ static int sof_card_dai_links_create(struct device *dev,
13471347
if ((SDW_PART_ID(adr_link->adr_d[i].adr) !=
13481348
SDW_PART_ID(adr_link->adr_d[j].adr)) ||
13491349
(SDW_MFG_ID(adr_link->adr_d[i].adr) !=
1350-
SDW_MFG_ID(adr_link->adr_d[i].adr))) {
1350+
SDW_MFG_ID(adr_link->adr_d[j].adr))) {
13511351
append_codec_type = true;
13521352
goto out;
13531353
}

0 commit comments

Comments
 (0)