rk_fb:fix get wrong display size when plug hdmi start system
authoryzq <yzq@rock-chips.com>
Wed, 17 Oct 2012 10:13:03 +0000 (18:13 +0800)
committeryzq <yzq@rock-chips.com>
Wed, 17 Oct 2012 10:13:49 +0000 (18:13 +0800)
drivers/video/rockchip/rk_fb.c

index 0a2507c2f61833c8e6adc24ba8c6813a727d10d8..ce2fcd191be0b0d001fc18abdecc6b20dcd3ed75 100644 (file)
@@ -401,10 +401,18 @@ static int rk_fb_set_par(struct fb_info *info)
        else  //ohterwise  full  screen display
        {
                xsize = screen->x_res;
-               ysize = screen->y_res;
+        ysize = screen->y_res;
        }
 
 #if defined(CONFIG_ONE_LCDC_DUAL_OUTPUT_INF)
+#if defined(CONFIG_RK_HDMI)
+       if(hdmi_get_hotplug() == HDMI_HPD_ACTIVED)
+       {
+               xsize = screen->x_res;
+               ysize = screen->y_res;
+       }
+#endif
+
        if(screen->screen_id == 0) //this is for device like rk2928 ,whic have one lcdc but two display outputs
        {                          //save parameter set by android
                dev_drv->screen0->xsize = xsize;