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

Commit f8bb07c6 authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

HDMI: Temporary qcom HDMI fixes

Since we still don't have a user-controllable Setting to enable HDMI,
enable it by default.
Also, for devices with trouble matching the HDMI clocks in the receivers,
add the possibility of letting the controller choose the resolution
on its own with the build-time TARGET_QCOM_HDMI_RESOLUTION_AUTO flag

Change-Id: I3ca0639e9f644872a3585f04f2cf8180d8451f2c
parent 48891756
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -30,6 +30,10 @@ endif

LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES -DQCOM_HDMI_OUT

ifeq ($(TARGET_QCOM_HDMI_RESOLUTION_AUTO),true)
	LOCAL_CFLAGS += -DFORCE_AUTO_RESOLUTION
endif

LOCAL_SHARED_LIBRARIES := \
	libcutils \
	libutils \
+3 −0
Original line number Diff line number Diff line
@@ -514,6 +514,9 @@ void HDMIDaemon::setResolution(int ID)
    struct fb_var_screeninfo info;
    if (!openFramebuffer())
        return;
#ifdef FORCE_AUTO_RESOLUTION
    ID = 0;
#endif
    //If its a valid mode and its a new ID - update var_screeninfo
    if ((isValidMode(ID)) && mCurrentID != ID) {
        const struct disp_mode_timing_type *mode = &supported_video_mode_lut[0];
+2 −0
Original line number Diff line number Diff line
@@ -133,6 +133,8 @@ class HDMIService extends IHDMIService.Stub {
                  "HDMI_USEROPTION");
        if (hdmiUserOption != null && hdmiUserOption.equals("HDMI_ON"))
            mHDMIUserOption = true;
        else
            setHDMIOutput(true);
    }

    BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver() {