Skip to content

Conversation

@pstroffolino
Copy link
Contributor

Reverts #856

Preparing for reintroduction

Copilot AI review requested due to automatic review settings January 14, 2026 18:39
@pstroffolino pstroffolino requested a review from a team as a code owner January 14, 2026 18:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request re-introduces unified support for AC4 (audio codec) track selection by reverting a previous revert. The change refactors the SetAC4Tracks method from a pure virtual function requiring platform-specific implementations to a virtual function with a default implementation in the base SocInterface class.

Changes:

  • Moved SetAC4Tracks implementation from platform-specific classes to the base SocInterface class
  • Changed SetAC4Tracks from pure virtual (= 0) to virtual with default implementation
  • Added platform-specific override in DefaultSocInterface with conditional compilation for macOS/Ubuntu

Reviewed changes

Copilot reviewed 1 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
middleware/vendor/SocInterface.h Changed SetAC4Tracks from pure virtual to virtual with implementation
middleware/vendor/SocInterface.cpp Added default SetAC4Tracks implementation with null checks and logging
middleware/vendor/default/DefaultSocInterface.h Declared SetAC4Tracks override (without override keyword)
middleware/vendor/default/DefaultSocInterface.cpp Implemented platform-specific version with conditional compilation
middleware/vendor/realtek/RealtekSocInterface.h Removed platform-specific SetAC4Tracks override
middleware/vendor/realtek/RealtekSocInterface.cpp Removed Realtek-specific implementation
middleware/vendor/amlogic/AmlogicSocInterface.h Removed platform-specific SetAC4Tracks override
middleware/vendor/amlogic/AmlogicSocInterface.cpp Removed Amlogic-specific implementation
middleware/vendor/brcm/BrcmSocInterface.h Removed inline no-op implementation
middleware/test/utests/fakes/FakeSocInterface.cpp Removed fake override (now uses base implementation)

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