From 1f6222aefc52668f935e866df6746ce099e2294f Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Mon, 19 Jun 2017 22:15:08 +0200 Subject: [PATCH] Support additional display modes --- hwc/tulip/hwc_uevent.cpp | 2 ++ hwc/tulip/sunxi_display2.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hwc/tulip/hwc_uevent.cpp b/hwc/tulip/hwc_uevent.cpp index 37dddd1..91bc4e0 100755 --- a/hwc/tulip/hwc_uevent.cpp +++ b/hwc/tulip/hwc_uevent.cpp @@ -41,6 +41,8 @@ static tv_para_t g_tv_para[]= {5, DISP_TV_MOD_1080I_50HZ, 1920, 1080, 50,0}, {5, DISP_TV_MOD_1080I_60HZ, 1920, 1080, 60,0}, + {5, DISP_TV_MOD_800_480P, 800, 480, 60,0}, + {5, DISP_TV_MOD_1024_600P, 1024, 600, 60,0}, {5, DISP_TV_MOD_3840_2160P_25HZ, 3840, 2160, 25,0xff}, {5, DISP_TV_MOD_3840_2160P_24HZ, 3840, 2160, 24,0xff}, diff --git a/hwc/tulip/sunxi_display2.h b/hwc/tulip/sunxi_display2.h index 40ebf4d..8175d74 100755 --- a/hwc/tulip/sunxi_display2.h +++ b/hwc/tulip/sunxi_display2.h @@ -153,7 +153,9 @@ enum disp_tv_mode DISP_TV_MOD_3840_2160P_30HZ = 0x1c, DISP_TV_MOD_3840_2160P_25HZ = 0x1d, DISP_TV_MOD_3840_2160P_24HZ = 0x1e, - DISP_TV_MODE_NUM = 0x1f, + DISP_TV_MOD_800_480P = 0x1f, + DISP_TV_MOD_1024_600P = 0x20, + DISP_TV_MODE_NUM = 0x21, };