Skip to content
Closed
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
13 changes: 13 additions & 0 deletions sound/soc/soc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1771,6 +1771,19 @@ static void soc_check_tplg_fes(struct snd_soc_card *card)
match:
/* machine matches, so override the rtd data */
for_each_card_prelinks(card, i, dai_link) {
struct snd_soc_dai_link_component *dlc;
struct snd_soc_dai *dai;

/*
* ignore dailinks exposed by other components, with the
* assumption that all cpu_dais are exposed by the same
* component
*/
dlc = asoc_link_to_cpu(dai_link, 0);
dai = snd_soc_find_dai(dlc);

if (dai && dai->component != component)
continue;
Copy link
Author

Choose a reason for hiding this comment

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

@plbossart I modify this to check if it work but it seems not. Could you please help to check if the modification is fine or need original conditional checking as below. Thanks.

if (!dai || dai->component != component) 
    continue;


/* ignore this FE */
if (dai_link->dynamic) {
Expand Down