Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: dc5a3e60a4b5 ("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>

authored by

Charles Keepax and committed by
Mark Brown
1f1ef7e5 f9fd804a

+1 -1
+1 -1
sound/soc/intel/boards/sof_sdw.c
··· 1347 1347 if ((SDW_PART_ID(adr_link->adr_d[i].adr) != 1348 1348 SDW_PART_ID(adr_link->adr_d[j].adr)) || 1349 1349 (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))) { 1351 1351 append_codec_type = true; 1352 1352 goto out; 1353 1353 }