rk3288 hdmi: adjust init overscan para according to the resolution that may only...
authorzwl <zwl@rock-chips.com>
Fri, 9 May 2014 03:41:01 +0000 (11:41 +0800)
committerzwl <zwl@rock-chips.com>
Fri, 9 May 2014 03:41:30 +0000 (11:41 +0800)
drivers/video/rockchip/hdmi/rk_hdmi_lcdc.c

index 754e4dd0b78eedf801b9288c9e285021a0ce0e87..7943df96476e6966a8491343be1bfd3f9dd94905 100755 (executable)
@@ -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;
 }