fix bug of rk_fb_set_par in hdmi mode
authoryxj <yxj@rock-chips.com>
Thu, 18 Apr 2013 07:33:06 +0000 (15:33 +0800)
committeryxj <yxj@rock-chips.com>
Thu, 18 Apr 2013 07:33:22 +0000 (15:33 +0800)
drivers/video/rockchip/rk_fb.c

index 6a2cd20dd428101723fed99b0997b485f64e957e..4fd861dd15e30ea52cf152709e650f3ee02598f0 100644 (file)
@@ -607,12 +607,18 @@ static int rk_fb_set_par(struct fb_info *info)
                                                par2->xact = par->yact;
                                                par2->yact = par->xact;
                                                par2->xvir = par->yact;
+                                               info2->var.xres = var->yres;
+                                               info2->var.yres = var->xres;
+                                               info2->var.xres_virtual = var->yres;
                                        }
                                        else
                                        {
                                                par2->xact = par->xact;
                                                par2->yact = par->yact;
                                                par2->xvir = par->xvir;
+                                               info2->var.xres = var->xres;
+                                               info2->var.yres = var->yres;
+                                               info2->var.xres_virtual = var->xres_virtual;
                                        }
                                        par2->format = par->format;
                                        info2->var.nonstd &= 0xffffff00;