Skip to content

audio: module_adapter: reject disconnected modules as ready - #11447

Merged
lgirdwood merged 1 commit into
thesofproject:mainfrom
abonislawski:module_adapter_reject_disconnected
Nov 12, 2026
Merged

lgirdwood merged 1 commit into
thesofproject:mainfrom
abonislawski:module_adapter_reject_disconnected

Conversation

@abonislawski

Copy link
Copy Markdown
Member

Prevent modules without source or sink buffers
from being reported as ready to process.

Prevent modules without source or sink buffers
from being reported as ready to process.

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
Copilot AI balanced review requested due to automatic review settings November 12, 2026 09:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the change that prevents fully disconnected modules from being considered ready to process.

No open issues 🎉

What changed in this PR

Updates the module adapter’s generic readiness check so fully disconnected modules are not reported as ready to process.

Changes:

  • Returns false when both source and sink counts are zero.
  • Preserves existing buffer-availability checks for connected modules.
File Description
src/​include/​sof/​audio/​module_adapter/​module/​generic.h Adds an early readiness rejection for modules with no sources or sinks.

Review effort: Balanced

@intel-sofci

Copy link
Copy Markdown

PR 11447: test results

Run date: 2026-11-12 19:36 UTC

Tested commit: af333a0596d005c8b3c6977a98c3ef86d0bc2095

mtl pass rate lnl pass rate ptl pass rate wcl pass rate nvl pass rate

@lgirdwood
lgirdwood merged commit 1df7dfb into thesofproject:main Nov 12, 2026
45 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