From 3a64aae66c76eea3f69c68efc5a2a6dd2acc0a55 Mon Sep 17 00:00:00 2001 From: zwl Date: Fri, 9 May 2014 11:41:01 +0800 Subject: [PATCH] rk3288 hdmi: adjust init overscan para according to the resolution that may only use for MID --- drivers/video/rockchip/hdmi/rk_hdmi_lcdc.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/drivers/video/rockchip/hdmi/rk_hdmi_lcdc.c b/drivers/video/rockchip/hdmi/rk_hdmi_lcdc.c index 754e4dd0b78e..7943df96476e 100755 --- a/drivers/video/rockchip/hdmi/rk_hdmi_lcdc.c +++ b/drivers/video/rockchip/hdmi/rk_hdmi_lcdc.c @@ -148,10 +148,20 @@ int hdmi_set_info(struct rk_screen *screen, unsigned int vic) screen->standby = NULL; /*Init Default Overscan Value: TODO modify the value according to your need adjust value*/ - screen->overscan.left = 96; - screen->overscan.top = 96; - screen->overscan.right = 96; - screen->overscan.bottom = 96; + switch(vic) { + case 16: /*1080p-60Hz*/ + screen->overscan.left = 97; + screen->overscan.top = 97; + screen->overscan.right = 97; + screen->overscan.bottom = 97; + break; + default: + screen->overscan.left = 96; + screen->overscan.top = 96; + screen->overscan.right = 96; + screen->overscan.bottom = 96; + break; + } return 0; } -- 2.34.1