Skip to content

RDKEMW-19283: Fix AUTO mode runtime state not updating when persist=false#255

Merged
apatel859 merged 6 commits into
developfrom
feature/RDKEMW-19283-map-dsSetStereoAuto-properly
Jun 3, 2026
Merged

RDKEMW-19283: Fix AUTO mode runtime state not updating when persist=false#255
apatel859 merged 6 commits into
developfrom
feature/RDKEMW-19283-map-dsSetStereoAuto-properly

Conversation

@arun-madhavan-013
Copy link
Copy Markdown
Contributor

Move runtime AUTO state update outside persistence conditional block. Ensures immediate readback when setSoundMode(AUTO, persist=false).

…alse

Move runtime AUTO state update outside persistence conditional block.
Ensures immediate readback when setSoundMode(AUTO, persist=false).
Copilot AI review requested due to automatic review settings May 29, 2026 13:36
@arun-madhavan-013 arun-madhavan-013 requested a review from a team as a code owner May 29, 2026 13:36
Copy link
Copy Markdown
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

Fixes a bug where setStereoAuto(AUTO, persist=false) would not update the in-process runtime AUTO flags (_srv_Audio*Auto), causing getStereoAuto()/getStereoMode() to return stale values until restart. The handler is refactored so the per-port runtime state is always updated, while HostPersistence writes remain conditional on param->toPersist.

Changes:

  • Refactor _dsSetStereoAuto to resolve the runtime state pointer per port via a switch, update it unconditionally, and gate persistence on toPersist.
  • Move HAL dsSetStereoAuto invocation for HDMI_ARC/SPDIF ahead of the runtime/persistence update, returning early (with an attempted rollback) on HAL failure.
  • Add null/invalid-handle guards and propagate the result back via a result variable rather than hard-coding IARM_RESULT_SUCCESS.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rpc/srv/dsAudio.c Outdated
Comment thread rpc/srv/dsAudio.c
Comment thread rpc/srv/dsAudio.c
@arun-madhavan-013 arun-madhavan-013 requested a review from Copilot June 1, 2026 19:38
Copy link
Copy Markdown
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

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

Comment thread rpc/srv/dsAudio.c Outdated
case dsAUDIOPORT_TYPE_SPEAKER:
device::HostPersistence::getInstance().persistHostProperty("SPEAKER0.AudioMode.AUTO", param->autoMode ? "TRUE" : "FALSE");
break;
default:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Resolved in new commit.

RDKEMW-16730 : Evaluation on finding invalid markers in entservices r…
apatel859
apatel859 previously approved these changes Jun 3, 2026
Copilot AI review requested due to automatic review settings June 3, 2026 13:56
Copy link
Copy Markdown
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

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

Comment thread rpc/srv/dsAudio.c
Comment thread rpc/srv/dsAudio.c Outdated
Copy link
Copy Markdown
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

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

@apatel859 apatel859 merged commit a3a13c8 into develop Jun 3, 2026
10 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 3, 2026
@arun-madhavan-013 arun-madhavan-013 deleted the feature/RDKEMW-19283-map-dsSetStereoAuto-properly branch June 3, 2026 18:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants