Skip to content

module: rtnr: rework module to use only sink/source api#11021

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

module: rtnr: rework module to use only sink/source api#11021
softwarecki wants to merge 1 commit into
thesofproject:mainfrom
softwarecki:p20-rtnr

Conversation

@softwarecki

Copy link
Copy Markdown
Collaborator

Rework the RTNR module to only use the sink/source API to prepare SOF for the full transition to pipeline 2.0.

Rework the RTNR 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.

Pull request overview

This PR reworks the RTNR processing module to use the newer sink/source API end-to-end, aligning it with the pipeline 2.0 transition plan. The change replaces direct audio_stream manipulation (and manual position tracking) with explicit source acquisition / sink reservation and corresponding release/commit operations.

Changes:

  • Migrated RTNR processing and preparation paths from audio_stream buffers to sof_source/sof_sink APIs.
  • Replaced the old stream “copy helpers” with per-cycle source/sink buffer acquisition helpers suitable for the sink/source API.
  • Simplified the stub RTNR implementation to a direct circular-buffer passthrough using cir_buf_copy().

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/include/sof/audio/rtnr/rtnr.h Removes obsolete prototypes for the old audio_stream copy helpers.
src/audio/rtnr/rtnr.c Switches module prepare/process code to sink/source APIs; adds buffer acquisition helpers and updates IPC4 format handling.
src/audio/rtnr/rtnr_stub.c Replaces stub’s audio_stream-based copying with direct circular-buffer passthrough.

Comment thread src/audio/rtnr/rtnr.c
Comment thread src/audio/rtnr/rtnr.c
@lgirdwood

Copy link
Copy Markdown
Member

@softwarecki we are good to merge once copilot questions resolved.

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.

5 participants