Skip to content

ASoC: sdw_utils: avoid the SDCA companion function not supported failure#5723

Open
oortcomet wants to merge 1 commit intothesofproject:topic/sof-devfrom
oortcomet:rz-rt721-rt1320
Open

ASoC: sdw_utils: avoid the SDCA companion function not supported failure#5723
oortcomet wants to merge 1 commit intothesofproject:topic/sof-devfrom
oortcomet:rz-rt721-rt1320

Conversation

@oortcomet
Copy link
Copy Markdown

Since the SDCA companion function is not fully supported, it is temporarily treated as a general amp type.

Copilot AI review requested due to automatic review settings April 7, 2026 06:49
@sofci
Copy link
Copy Markdown
Collaborator

sofci commented Apr 7, 2026

Can one of the admins verify this patch?

reply test this please to run this test once

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the SoundWire ASoC SDW utils helper logic to treat the SDCA “CompanionAmp” function type as a generic AMP DAI type, avoiding endpoint-skipping/failures when this SDCA function is present but not fully supported.

Changes:

  • Map SDCA_FUNCTION_TYPE_COMPANION_AMP to SOC_SDW_DAI_TYPE_AMP in asoc_sdw_get_dai_type().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

switch (type) {
case SDCA_FUNCTION_TYPE_SMART_AMP:
case SDCA_FUNCTION_TYPE_SIMPLE_AMP:
case SDCA_FUNCTION_TYPE_COMPANION_AMP:
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.

I would reword the commit message to be more positive:
Treat the companion amp as generic AMP until full support for companion amp is added.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yeah, agree but the code looks all good to me.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

OK. Will update the commit message.

Treat the companion amp as generic AMP until full support for companion
amp is added.

Signed-off-by: Derek Fang <derek.fang@realtek.com>
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