Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions sound/soc/sdw_utils/soc_sdw_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1629,7 +1629,9 @@ const char *asoc_sdw_get_codec_name(struct device *dev,
__func__, component->name, dai_info->codec_name);
return devm_kstrdup(dev, component->name, GFP_KERNEL);
} else {
return devm_kstrdup(dev, dai_info->codec_name, GFP_KERNEL);
dev_dbg(dev, "%s component %s is not registered yet\n",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good but the first sentence in commit message is wrong:

-We set the get the right component name from the registered components and use it in the dai links.
+We get the right component name from the registered components and use it in the dai links.

..? I guess that's the intention?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while we are at commit message: I would mention why this is now an issue, how 42d9985 changed the card probing (device defer is gone, card defer in) I'm not sure if a fixes tag is needed as said commit is still pending for 7.2.

__func__, dai_info->codec_name);
return ERR_PTR(-EPROBE_DEFER);
Comment on lines +1632 to +1634
}
}

Expand Down Expand Up @@ -2021,7 +2023,9 @@ int asoc_sdw_parse_sdw_endpoints(struct snd_soc_card *card,
codec_info->auxs[j].codec_name);
soc_aux->dlc.name = component->name;
} else {
soc_aux->dlc.name = codec_info->auxs[j].codec_name;
dev_dbg(dev, "%s the aux component %s is not registered yet\n",
__func__, codec_info->auxs[j].codec_name);
return -EPROBE_DEFER;
}
soc_aux++;
}
Expand Down Expand Up @@ -2121,6 +2125,8 @@ int asoc_sdw_parse_sdw_endpoints(struct snd_soc_card *card,

codec_name = asoc_sdw_get_codec_name(dev, dai_info,
adr_link, i);
if (IS_ERR(codec_name))
return PTR_ERR(codec_name);
if (!codec_name)
return -ENOMEM;

Expand Down
Loading