Skip to content

RDKEMW-20784: Support ctrlmain to use thunder plugin for libds methods and events - #259

Open
balav08 wants to merge 44 commits into
developfrom
feature/RDKEMW-20784_1
Open

RDKEMW-20784: Support ctrlmain to use thunder plugin for libds methods and events#259
balav08 wants to merge 44 commits into
developfrom
feature/RDKEMW-20784_1

Conversation

@balav08

@balav08 balav08 commented Jul 3, 2026

Copy link
Copy Markdown

Reason for change: Support ctrlmain to use thunder plugin for libds methods.
Test procedure: refer ticket
Risks: Medium
Priority: P2
version: Patch

@balav08
balav08 requested a review from a team as a code owner July 3, 2026 04:04
Copilot AI lite review requested due to automatic review settings July 3, 2026 04:04

Copilot AI left a comment

Copy link
Copy Markdown

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 updates ControlMgr to use Thunder plugin APIs (instead of direct libds/DSMgr calls) for audio ducking and front panel LED control, and extends the Thunder plugin wrapper utilities to better support these calls.

Changes:

  • Added a new FrontPanel Thunder plugin wrapper to control the power LED.
  • Added DisplaySettings.setAudioDucking wrapper and migrated audio mute/ducking callers to use it.
  • Added a retry-capable call_plugin() overload and updated build files to compile/link the new Thunder sources (including for factory builds).

Reviewed changes

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

Show a summary per file
File Description
src/voice/ctrlm_voice_obj.cpp Minor whitespace-only change in voice session request code.
src/thunder/plugins/ctrlm_thunder_plugin_front_panel.h New FrontPanel wrapper interface for power LED operations.
src/thunder/plugins/ctrlm_thunder_plugin_front_panel.cpp New FrontPanel wrapper implementation (setLED / powerLedOn/Off / setBrightness).
src/thunder/plugins/ctrlm_thunder_plugin_display_settings.h Added set_audio_ducking() API using dsAudio ducking enums.
src/thunder/plugins/ctrlm_thunder_plugin_display_settings.cpp Implemented Thunder call to setAudioDucking and checks response.
src/factory/thunder/ctrlmf_thunder_plugin.h Added retry-capable call_plugin() overload declaration.
src/factory/thunder/ctrlmf_thunder_plugin.cpp Implemented retry-on-timeout logic for Thunder JSON-RPC calls.
src/factory/ctrlmf_audio_control.cpp Migrated mute/attenuation audio ducking to Thunder DisplaySettings plugin.
src/factory/CMakeLists.txt Removed ds link from ctrlm-fta; added Thunder sources and WPEFramework link libs for factory.
src/ctrlm_utils.cpp Migrated DSMgr helper functions (audio ducking + LED) to Thunder plugin wrappers.
src/CMakeLists.txt Added new FrontPanel plugin wrapper source to the main build.

Comment thread src/factory/ctrlmf_audio_control.cpp Outdated
Comment thread src/factory/ctrlmf_audio_control.cpp Outdated
Comment thread src/factory/ctrlmf_audio_control.cpp
Comment thread src/ctrlm_utils.cpp Outdated
Comment thread src/ctrlm_utils.cpp
Comment thread src/ctrlm_utils.cpp
Comment thread src/ctrlm_utils.cpp Outdated
Comment thread src/thunder/plugins/ctrlm_thunder_plugin_front_panel.cpp Outdated
Comment thread src/thunder/plugins/ctrlm_thunder_plugin_front_panel.cpp Outdated
Comment thread src/thunder/plugins/ctrlm_thunder_plugin_front_panel.cpp Outdated
Copilot AI review requested due to automatic review settings July 3, 2026 12:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 11 changed files in this pull request and generated 7 comments.

Comment thread src/thunder/plugins/ctrlm_thunder_plugin_front_panel.h Outdated
Comment thread src/thunder/plugins/ctrlm_thunder_plugin_display_settings.h
Comment thread src/factory/CMakeLists.txt Outdated
Comment thread src/factory/ctrlmf_audio_control.cpp Outdated
Comment thread src/ctrlm_utils.cpp Outdated
Comment thread src/CMakeLists.txt Outdated
Comment thread src/factory/thunder/ctrlmf_thunder_plugin.h Outdated
Copilot AI review requested due to automatic review settings July 3, 2026 12:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread src/factory/CMakeLists.txt
Comment thread src/ctrlm_utils.cpp Outdated
Copilot AI review requested due to automatic review settings July 3, 2026 12:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 4 comments.

Comment thread src/factory/CMakeLists.txt
Comment thread src/ctrlm_utils.cpp Outdated
Comment thread src/factory/thunder/ctrlmf_thunder_plugin.cpp
Comment thread src/factory/thunder/ctrlmf_thunder_plugin.h Outdated
Copilot AI review requested due to automatic review settings July 3, 2026 12:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 6 comments.

Comment thread src/voice/ctrlm_voice_obj.cpp Outdated
Comment thread src/ctrlm_utils.cpp Outdated
Comment thread src/factory/CMakeLists.txt
Comment thread src/factory/CMakeLists.txt Outdated
Comment thread src/CMakeLists.txt Outdated
Comment thread src/thunder/plugins/ctrlm_thunder_plugin_front_panel.h Outdated
Comment thread src/factory/ctrlmf_audio_control.cpp Outdated
Comment thread src/factory/ctrlmf_audio_control.cpp Outdated
Comment thread src/thunder/plugins/ctrlm_thunder_plugin_display_settings.cpp Outdated
Comment thread src/ctrlm_utils.cpp Outdated
Copilot AI review requested due to automatic review settings July 6, 2026 09:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 6 comments.

Comment thread src/thunder/plugins/ctrlm_thunder_plugin_display_settings.cpp Outdated
Comment thread src/ctrlm_utils.cpp Outdated
Comment thread CMakeLists.txt Outdated
Comment thread src/factory/thunder/ctrlmf_thunder_plugin.h Outdated
Comment thread src/CMakeLists.txt Outdated
Comment thread src/factory/CMakeLists.txt Outdated
Copilot AI review requested due to automatic review settings July 6, 2026 09:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 5 comments.

Comment thread src/factory/ctrlmf_audio_control.cpp Outdated
Comment thread src/factory/ctrlmf_audio_control.cpp Outdated
Comment thread src/ctrlm_utils.cpp Outdated
Comment thread src/ctrlm_utils.cpp Outdated
Comment thread CMakeLists.txt Outdated
Copilot AI review requested due to automatic review settings July 6, 2026 09:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 10 comments.

Comment thread src/factory/ctrlmf_audio_control.cpp Outdated
Comment thread src/factory/ctrlmf_audio_control.cpp
Comment thread src/thunder/plugins/ctrlm_thunder_plugin_display_settings.cpp Outdated
Comment thread src/thunder/plugins/ctrlm_thunder_plugin_front_panel.cpp Outdated
Comment thread src/thunder/plugins/ctrlm_thunder_plugin_front_panel.cpp Outdated
Comment thread src/thunder/plugins/ctrlm_thunder_plugin_front_panel.cpp Outdated
Comment thread src/ctrlm_utils.cpp Outdated
Comment thread src/CMakeLists.txt Outdated
Comment thread src/factory/CMakeLists.txt Outdated
Comment thread CMakeLists.txt Outdated
Copilot AI review requested due to automatic review settings July 6, 2026 09:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated 5 comments.

Comment thread src/CMakeLists.txt Outdated
Comment thread src/factory/CMakeLists.txt Outdated
Comment thread src/factory/CMakeLists.txt Outdated
Comment thread src/ctrlm_utils.cpp Outdated
Comment thread src/factory/ctrlmf_audio_control.cpp Outdated
Copilot AI review requested due to automatic review settings July 6, 2026 10:05
Copilot AI review requested due to automatic review settings August 17, 2026 15:33
@klu339
klu339 force-pushed the feature/RDKEMW-20784_1 branch from 4b79f66 to c0a9eb3 Compare August 17, 2026 15:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

7 participants