From: zwl Date: Fri, 9 May 2014 03:41:01 +0000 (+0800) Subject: rk3288 hdmi: adjust init overscan para according to the resolution that may only... X-Git-Tag: firefly_0821_release~5316 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3a64aae66c76eea3f69c68efc5a2a6dd2acc0a55;p=firefly-linux-kernel-4.4.55.git rk3288 hdmi: adjust init overscan para according to the resolution that may only use for MID --- 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; }