Skip to content

P20 mux: further improvements - #11192

Open
piotrhoppeintel wants to merge 1 commit into
thesofproject:mainfrom
piotrhoppeintel:p20-modules-post-changes
Open

P20 mux: further improvements#11192
piotrhoppeintel wants to merge 1 commit into
thesofproject:mainfrom
piotrhoppeintel:p20-modules-post-changes

Conversation

@piotrhoppeintel

Copy link
Copy Markdown
Contributor

Switch writable sink pointers to cir_buf_wrap() and read-only source pointers to source_cir_buf_wrap(). Mark lookup source pointers as const to avoid discarding qualifiers during circular buffer wrap handling.

Copilot AI lite review requested due to automatic review settings September 11, 2026 10:32
Use cir_buf_wrap() for writable sink pointers and source_cir_buf_wrap()
for read-only source pointers. Mark lookup source pointers as const to
avoid discarding qualifiers during circular buffer wrap handling.

Signed-off-by: Piotr Hoppe <piotr.hoppe@intel.com>

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 reviewed changes are const-correct and introduce no unresolved blocking issues.

Pull request overview

Improves const-correctness for mux/demux source buffers and circular-buffer wrapping.

Changes:

  • Marks source lookup pointers as const.
  • Uses source_cir_buf_wrap() for read-only sources.
  • Propagates const source handling through S16/S32 paths.
File summaries
File Description
src/audio/mux/mux.h Makes lookup source pointers read-only.
src/audio/mux/mux_generic.c Applies const-safe source wrapping and pointer handling.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@intel-sofci

Copy link
Copy Markdown

PR 11192: test results

Run date: 2026-09-11 11:21 UTC

Tested commit: fb930d228d1ca0ae2d03ad2db50fe37d25b45f39

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

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