Skip to content

A series of potential bug fixes for DAX module - #11320

Merged
lgirdwood merged 4 commits into
thesofproject:mainfrom
checkupup:main_dax_fixes
Oct 21, 2026
Merged

lgirdwood merged 4 commits into
thesofproject:mainfrom
checkupup:main_dax_fixes

Conversation

@checkupup

Copy link
Copy Markdown
Contributor

A series of tiny fixes for DAX module:

  1. aadb750ea — dax: fix IPC3 configuration issues
    Recognizes the tuning-parameter blob configuration ID, rejects unsupported configuration IDs, and handles IPC3 zero-size SET_VALUE controls and volume-format conversion.

  2. b4b05d6ef — dax: isolate DAX parameter logging buffer
    Replaces a shared static formatting buffer with per-instance storage to prevent concurrent calls from overwriting one another’s output.

  3. 915233ae8 — dax: avoid DAX manager initialization race
    Initializes the instance manager from static data, removing the unguarded runtime initialization check and its obsolete initializer.

  4. a7015c3f7 — dax: remove invalid null-check
    Removes the dead null check in sof_dax_process().

Jun Lai added 4 commits October 19, 2026 18:10
Remove dead null-check in sof_dax_process().

Signed-off-by: Jun Lai <junlai@dolby.com>
Initialize the instance manager from static data instead of using an
unguarded runtime check. Remove the obsolete initializer and its call.

Signed-off-by: Jun Lai <junlai@dolby.com>
Replace the shared static parameter-formatting buffer with per-instance
storage. Pass that storage through get_params_str() to avoid concurrent
calls overwriting each other across module instances.

Signed-off-by: Jun Lai <junlai@dolby.com>
Recognize tuning-parameter blob configuration ID and reject
unsupported configuration IDs.

For IPC3, process zero-size SET_VALUE controls convert the
volume format.

Signed-off-by: Jun Lai <junlai@dolby.com>
@sofci

sofci commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

reply test this please to run this test once

@checkupup checkupup changed the title Main dax fixes A series of potential bug fixes for DAX module Oct 21, 2026
@checkupup
checkupup marked this pull request as ready for review October 21, 2026 14:58

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

The focused changes match the surrounding contracts, with no blocking issues identified in static review.

No open issues 🎉

What changed in this PR

This PR improves DAX configuration handling and removes shared-state initialization and logging hazards.

Changes:

  • Handles IPC3 controls, converts volume values, and rejects unsupported configuration identifiers.
  • Moves parameter logging storage into each DAX instance.
  • Statically initializes the instance manager and checks adapter data before dereferencing it.
File Description
src/​audio/​module_adapter/​module/​dolby/​dax.h Adds per-instance logging storage and removes the obsolete initializer declaration.
src/​audio/​module_adapter/​module/​dolby/​dax.c Updates configuration handling, logging, and null-check ordering.
src/​audio/​module_adapter/​module/​dolby/​dax_instance_manager.c Replaces runtime initialization with static initialization.

Review effort: Balanced

@lgirdwood

Copy link
Copy Markdown
Member

DAX module not tested by pending CIs.

@lgirdwood
lgirdwood merged commit ab1d551 into thesofproject:main Oct 21, 2026
41 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