projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9fd804
)
ASoC: intel: sof_sdw: Fixup typo in device link checking
author
Charles Keepax
<ckeepax@opensource.cirrus.com>
Wed, 14 Jun 2023 14:21:16 +0000
(15:21 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 19 Jun 2023 11:58:22 +0000
(12:58 +0100)
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>
sound/soc/intel/boards/sof_sdw.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/boards/sof_sdw.c
b/sound/soc/intel/boards/sof_sdw.c
index
6faf4a4
..
144f082
100644
(file)
--- a/
sound/soc/intel/boards/sof_sdw.c
+++ b/
sound/soc/intel/boards/sof_sdw.c
@@
-1347,7
+1347,7
@@
static int sof_card_dai_links_create(struct device *dev,
if ((SDW_PART_ID(adr_link->adr_d[i].adr) !=
SDW_PART_ID(adr_link->adr_d[j].adr)) ||
(SDW_MFG_ID(adr_link->adr_d[i].adr) !=
- SDW_MFG_ID(adr_link->adr_d[
i
].adr))) {
+ SDW_MFG_ID(adr_link->adr_d[
j
].adr))) {
append_codec_type = true;
goto out;
}