Skip to content

ASoC: Intel: sof-function-topology-lib: Provide option to skip function topology loading - #5998

Open
bardliao wants to merge 2 commits into
thesofproject:topic/sof-devfrom
bardliao:mask_function_topology
Open

bardliao wants to merge 2 commits into
thesofproject:topic/sof-devfrom
bardliao:mask_function_topology

Conversation

@bardliao

Copy link
Copy Markdown
Collaborator

A function topology provides a standard pipeline. Although feature topologies allow appending widgets, they do not support modifying or inserting widgets into the middle of the pipeline. To achieve this, users must deploy a customized topology.

Add support to bypass loading function topologies so that custom topologies can be loaded directly through the 'feature_topologies' module parameter.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

A zero mask aborts loading before custom feature topologies can load, preventing the intended custom-only configuration.

1 open issue
What changed in this PR

This PR adds configurable function-topology selection to Intel SOF, aiming to let custom topologies supplied through feature_topologies replace standard pipelines.

Changes:

  • Adds a read-only function_tplg_mask module parameter, defaulting to all devices.
  • Applies the mask to SoundWire and I2S topology discovery with best-effort loading.
  • Returns an error when an explicit mask yields no function topologies.
File Description
sound/​soc/​intel/​common/​sof-function-topology-lib.c Adds mask-based function-topology selection and empty-selection checks.

Review effort: Balanced

Comment thread sound/soc/intel/common/sof-function-topology-lib.c Outdated
…on topology loading

Allow users to skip loading specific function topologies when the BE
links are problematic or not required.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
While we can load feature topologies to add features to the generial
function topology, we can not change the modules in the function
topology. This commit allow selecting function topology variants
through the feature_variant module parameter to use the variant
function topology instead of the generic function topology.
Fall back to the generic topology when a configured variant is
unavailable.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Copilot AI balanced review requested due to automatic review settings October 23, 2026 09:13
@bardliao
bardliao force-pushed the mask_function_topology branch from 5878b6d to 01cbec4 Compare October 23, 2026 09:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Explicit-mask behavior, monolithic fallback, and variant selection need maintainer validation across SoundWire and I2S configurations.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

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.

2 participants