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

Commit 347a6044 authored by Yuncheol Heo's avatar Yuncheol Heo
Browse files

Fix the initial values of HDMI HAL options.

- We define the default value of OPTION_CEC_ENABLE as enabled, but OEM's
  default was disabled.
- Fix the initial value of OPTION_CEC_SERVICE_CONTROL as enabled.

Change-Id: If4a69fd2a87739b9f6f7b9a5a5a2a5cdd514d48f
parent 119160a6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -205,8 +205,12 @@ public final class HdmiControlService extends SystemService {
        mCecController = HdmiCecController.create(this);

        if (mCecController != null) {
            // TODO: Remove this as soon as OEM's HAL implementation is corrected.
            mCecController.setOption(HdmiTvClient.OPTION_CEC_ENABLE,
                    HdmiTvClient.ENABLED);

            mCecController.setOption(HdmiTvClient.OPTION_CEC_SERVICE_CONTROL,
                    HdmiTvClient.DISABLED);
                    HdmiTvClient.ENABLED);
            initializeLocalDevices(mLocalDevices);
        } else {
            Slog.i(TAG, "Device does not support HDMI-CEC.");