Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 753fe4ea authored by Paul Colta's avatar Paul Colta
Browse files

HDMI: More reliable DSM setting disabling

Wait for ArcTerminationActionFromAvr to finish before giving up the LA 5
during Dynamic Soundbar mode disabling process.

Add callback inside ArcTerminationActionFromAvr.

Transfer the callback in HdmiCecLocalDeviceAudioSystem#handleRequestArcTermination so it doesn't get lost.

Callback is not transfered in the following situation, in HdmiCecLocalDeviceAudioSystem#initArcOnFromAvr ARC termination is interrupted by ARC initialization from AVR. This scenario would occur if user toggles DSM off then on before ARC termination process is completed, then the local device audio system tries establishing ARC connection when logical address allocation finished. In this case, DSM would be enabled and the callback from ARC termination action that retriggers logical address allocation wouldn't be necessary.

Bug: 260322563
Test: make && atest com.android.server.hdmi.HdmiControlServiceTest
Change-Id: Ib0a8b3a7da79da8cf3f9724a685a55c80760a755
parent 4ae8fc3e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment