From 4982eec61d6202f1175e7426efd276ddad13caef Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Sun, 6 Nov 2016 12:57:40 +0100 Subject: [PATCH] Revert "Get HDMI mode from persist.sys.hdmi or .disp" This reverts commit 8242cf443fecf0c8f923501268a0e8b95b79376d. --- hwc/tulip/hwc.cpp | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/hwc/tulip/hwc.cpp b/hwc/tulip/hwc.cpp index e22f31b..2772ade 100755 --- a/hwc/tulip/hwc.cpp +++ b/hwc/tulip/hwc.cpp @@ -17,7 +17,6 @@ #include "hwc.h" #include "cutils/properties.h" -#include static int Framecount = 0; @@ -271,39 +270,6 @@ static int hwc_device_close(struct hw_device_t *dev) return 0; } -#define TYPE_BUILT_IN 1 -#define TYPE_HDMI 2 - -static void hwc_sysprop_changed() -{ - int disp = 0; - - ALOGI("hwc_sysprop_changed"); - - _hwc_device_set_3d_mode(TYPE_BUILT_IN, - (__display_3d_mode) - property_get_int32("persist.sys.disp.3d_mode", 0)); - - _hwc_device_set_backlight(TYPE_BUILT_IN, - property_get_int32("persist.sys.disp.backlight", 0), 0); - - _hwc_device_set_backlight(TYPE_BUILT_IN, - property_get_int32("persist.sys.disp.backlight_demo", 0), 1); - - _hwc_device_set_enhancemode(TYPE_BUILT_IN, - property_get_int32("persist.sys.disp.enhancemode", 0), 0); - - _hwc_device_set_enhancemode(TYPE_BUILT_IN, - property_get_int32("persist.sys.disp.enhancemode_demo", 0), 1); - - _hwc_device_set_output_mode(TYPE_HDMI, DISP_OUTPUT_TYPE_HDMI, - property_get_int32("persist.sys.hdmi.output_mode", DISP_TV_MOD_1080P_60HZ)); - - _hwc_set_persent(TYPE_HDMI, - property_get_int32("persist.sys.hdmi.percent_x", 0), - property_get_int32("persist.sys.hdmi.percent_y", 0)); -} - /*****************************************************************************/ static int hwc_device_open(const struct hw_module_t* module, const char* name, @@ -355,8 +321,5 @@ static int hwc_device_open(const struct hw_module_t* module, const char* name, hwc_create_device(); - android::add_sysprop_change_callback(hwc_sysprop_changed, 1000); - //hwc_sysprop_changed(); - return err; }