Skip to content

fixup! ASoC: soc_sdw_utils: skip the endpoint that doesn't present#5368

Merged
ujfalusi merged 1 commit intothesofproject:topic/sof-devfrom
bardliao:fixup-skip-endpoint
Mar 27, 2025
Merged

fixup! ASoC: soc_sdw_utils: skip the endpoint that doesn't present#5368
ujfalusi merged 1 commit intothesofproject:topic/sof-devfrom
bardliao:fixup-skip-endpoint

Conversation

@bardliao
Copy link
Copy Markdown
Collaborator

The existing solution test the dai_info->quirk first and skip the endpoints that is not present according to the quirk. However, if the mc_quirk is not set and dai_info->quirk_exclude is set, then the endpoint will be skip. But we will only set the mc_quirk when the BIOS doesn't provide the right information. We don't want to skip the endpoint just because the mc_quirk is not set.

if (dai_info->quirk &&
!(dai_info->quirk_exclude ^ !!(dai_info->quirk & ctx->mc_quirk)))
continue;

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.

extra line

@bardliao bardliao force-pushed the fixup-skip-endpoint branch 3 times, most recently from 4b80a6c to 1bfc649 Compare March 21, 2025 08:35
ujfalusi
ujfalusi previously approved these changes Mar 21, 2025
The existing solution test the dai_info->quirk first and skip the
endpoints that is not present according to the quirk.
However, if the mc_quirk is not set and dai_info->quirk_exclude is set,
then the endpoint will be skip. But we will only set the mc_quirk when
the BIOS doesn't provide the right information. We don't want to skip
the endpoint just because the mc_quirk is not set.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Copy link
Copy Markdown
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

@bardliao it might be good to update the commit message and inline comments with the feedback as I think that's the main blocker today.

@bardliao
Copy link
Copy Markdown
Collaborator Author

@bardliao it might be good to update the commit message and inline comments with the feedback as I think that's the main blocker today.

I discussed with @ranj063 this morning, and I think she is good now.

@ujfalusi ujfalusi merged commit f6593e8 into thesofproject:topic/sof-dev Mar 27, 2025
10 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants