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

Commit 88a819f9 authored by Jinping Wang's avatar Jinping Wang Committed by Amy Zhang
Browse files

cec: switching to arc port one time at least when resume [1/2]



BUG=136978624
Test: manual

Problem:
when Atom stay at ARC inpt before standby, it maybe not switch to
ArcInputService one time, it will lead to no sound

Solution:
switching to arc port one time at least when resume and cec messages
coming

Verify:
test ok using atom

Change-Id: I236ae9c36b12ffc2bed6aa8400bdadc3c0fc01ae
Signed-off-by: default avatarJinping Wang <jinping.wang@amlogic.com>
(cherry picked from commit 17e4dbf4b0cf994eafa76a8ea5a702da368b7b97)
parent a45a6e4a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1238,8 +1238,8 @@ public class HdmiCecLocalDeviceAudioSystem extends HdmiCecLocalDeviceSource {
        }
        // Wake up if the current device if ready to route.
        mService.wakeUp();
        if (getLocalActivePort() == portId) {
            HdmiLogger.debug("Not switching to the same port " + portId);
        if ((getLocalActivePort() == portId) && (portId != Constants.CEC_SWITCH_ARC)) {
            HdmiLogger.debug("Not switching to the same port " + portId + " except for arc");
            return;
        }
        // Switch to HOME if the current active port is not HOME yet