Skip to content

module: mixer: rework module to use sink/source api - #11222

Open
softwarecki wants to merge 1 commit into
thesofproject:mainfrom
softwarecki:p20-mixer
Open

softwarecki wants to merge 1 commit into
thesofproject:mainfrom
softwarecki:p20-mixer

Conversation

@softwarecki

Copy link
Copy Markdown
Collaborator

Rework the mixer module to only use the sink/source api to prepare sof for the full transition to pipeline 2.0.

Rework the mixer module to only use the sink/source api to prepare sof for
the full transition to pipeline 2.0.

Signed-off-by: Adrian Warecki <adrian.warecki@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.

Copilot review overview

🟡 Changes recommended

Use the sink accessor for the sink alignment calculation instead of passing a sink handle to source_get_channels().

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Reworks the mixer module to use sink/source APIs for the Pipeline 2.0 transition.

Changes:

  • Migrates processing to circular-buffer descriptors.
  • Updates generic and HiFi mixer implementations.
  • Adapts mixer interfaces and unit tests.
File Summary
test/​cmocka/​src/​audio/​mixer/​mixer_test.c Updates mixer tests for circular-buffer descriptors.
src/​audio/​mixer/​mixer.h Defines the new mixer callback interface.
src/​audio/​mixer/​mixer.c Migrates mixer lifecycle and processing logic; moderate issue (3 votes) with passing a sink handle to source_get_channels().
src/​audio/​mixer/​mixer_hifi3.c Updates optimized HiFi mixing implementations.
src/​audio/​mixer/​mixer_generic.c Updates generic mixing implementations.

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

Comment thread src/audio/mixer/mixer.c

static void mixer_set_sink_frame_alignment(struct sof_sink *snk)
{
const uint32_t byte_align = mixer_get_byte_align(source_get_channels(snk));
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