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

Commit 6e92d58b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "HDMI: Solve deep sleep issue on Low Energy Mode" into main

parents ae7b3381 a3fa9ae3
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -771,6 +771,14 @@ public class HdmiControlService extends SystemService {
            Slog.i(TAG, "Device does not support eARC.");
        }
        mHdmiCecNetwork = new HdmiCecNetwork(this, mCecController, mMhlController);
        if (isTvDevice() && getWasCecDisabledOnStandbyByLowEnergyMode()) {
            Slog.w(TAG, "Re-enable CEC on boot-up since it was disabled due to low energy "
                    + " mode.");
            getHdmiCecConfig().setIntValue(HdmiControlManager.CEC_SETTING_NAME_HDMI_CEC_ENABLED,
                    HDMI_CEC_CONTROL_ENABLED);
            setWasCecDisabledOnStandbyByLowEnergyMode(false);
            setCecEnabled(HDMI_CEC_CONTROL_ENABLED);
        }
        if (isCecControlEnabled()) {
            initializeCec(INITIATED_BY_BOOT_UP);
        } else {