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

Commit d341ff59 authored by toastcfh's avatar toastcfh
Browse files

QCOM: HDMI: add cflags for qcom hdmi out.

set string com.qc.hdmi_out=true to enable java hdmi service. set false by default

set TARGET_QCOM_HDMI_OUT true in BoardConfig to enable qcom hdmi bits

Change-Id: I9286bd01085657251d83b4649d0ef86433947765
parent e068ad5d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@
#  limitations under the License
#

ifeq ($(TARGET_HAVE_HDMI_OUT),true)
ifeq ($(TARGET_QCOM_HDMI_OUT),true)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

+3 −0
Original line number Diff line number Diff line
@@ -28,6 +28,9 @@ public class SystemProperties
    public static final int PROP_NAME_MAX = 31;
    public static final int PROP_VALUE_MAX = 91;

    //QCOM HDMI
    public static final boolean QCOM_HDMI_OUT = native_get_boolean("com.qc.hdmi_out", false);

    private static native String native_get(String key);
    private static native String native_get(String key, String def);
    private static native int native_get_int(String key, int def);
+4 −0
Original line number Diff line number Diff line
@@ -132,10 +132,12 @@ public:
    virtual bool authenticateSurfaceTexture(
            const sp<ISurfaceTexture>& surface) const = 0;

#ifdef QCOM_HDMI_OUT
    //HDMI SPecific functions
    virtual void enableHDMIOutput(int enable) = 0;
    virtual void setActionSafeWidthRatio(float asWidthRatio) = 0;
    virtual void setActionSafeHeightRatio(float asHeightRatio) = 0;
#endif

};

@@ -157,9 +159,11 @@ public:
        TURN_ELECTRON_BEAM_OFF,
        TURN_ELECTRON_BEAM_ON,
        AUTHENTICATE_SURFACE,
#ifdef QCOM_HDMI_OUT
        ENABLE_HDMI_OUTPUT,
        SET_ACTIONSAFE_WIDTH_RATIO,
        SET_ACTIONSAFE_HEIGHT_RATIO
#endif
    };

    virtual status_t    onTransact( uint32_t code,
+2 −0
Original line number Diff line number Diff line
@@ -135,10 +135,12 @@ public:
    status_t linkToComposerDeath(const sp<IBinder::DeathRecipient>& recipient,
            void* cookie = NULL, uint32_t flags = 0);

#ifdef QCOM_HDMI_OUT
    //HDMI SPecific functions
    static void enableHDMIOutput(int enable);
    static void setActionSafeWidthRatio(float asWidthRatio);
    static void setActionSafeHeightRatio(float asHeightRatio);
#endif

    status_t    hide(SurfaceID id);
    status_t    show(SurfaceID id, int32_t layer = -1);
+2 −0
Original line number Diff line number Diff line
@@ -54,6 +54,7 @@ public:

    framebuffer_device_t const * getDevice() const { return fbDev; } 

#ifdef QCOM_HDMI_OUT
    void orientationChanged(int orientation) {
        if (fbDev->orientationChanged)
            fbDev->orientationChanged(fbDev, orientation);
@@ -66,6 +67,7 @@ public:
        if (fbDev->setActionSafeHeightRatio)
            fbDev->setActionSafeHeightRatio(fbDev, asHeightRatio);
    }
#endif

    bool isUpdateOnDemand() const { return mUpdateOnDemand; }
    status_t setUpdateRectangle(const Rect& updateRect);
Loading