Skip to content

Conversation

@bardliao
Copy link
Collaborator

When asoc_sdw_count_sdw_endpoints() count the num_ends, it doesn't skip the unpresented endpoints. But, asoc_sdw_parse_sdw_endpoints() will skip the unpresented endpoints either by quirk or the SDCA function doesn't show up the endpoint. The endpoint number mismatches between count and parse and the machine driver will show up a warning about it.

Fixes: 26ee34d ("ASoC: sdw_utils: Add codec_conf for every DAI")

*/
if (dai_info->quirk &&
!(dai_info->quirk_exclude ^ !!(dai_info->quirk & ctx->mc_quirk)))
!(dai_info->quirk_exclude ^ !!(dai_info->quirk & ctx->mc_quirk))) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@bardliao can you also add the Link to the bug?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

Copy link

@vijendarmukunda vijendarmukunda left a comment

Choose a reason for hiding this comment

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

LGTM.

When asoc_sdw_count_sdw_endpoints() count the num_ends, it doesn't skip
the unpresented endpoints. But, asoc_sdw_parse_sdw_endpoints() will skip
the unpresented endpoints either by quirk or the SDCA function doesn't
show up the endpoint. The endpoint number mismatches between count and
parse and the machine driver will show up a warning about it.

Fixes: 26ee34d ("ASoC: sdw_utils: Add codec_conf for every DAI")
Closes: thesofproject#5620
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
@charleskeepax
Copy link

Yeah all looks good to me, feel free to add my reviewed-by.

@bardliao bardliao merged commit 65fd664 into thesofproject:topic/sof-dev Dec 12, 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.

5 participants