This patch sets framebuffer yres_virtual to be 3*yres defaultly.
Before this patch is applied, the yres_virtual will be changed
to yres when hdmi cable is hot plugged out and in, which
reduces yres_virtual to yres and pan display mechanism cannot
work well.
Signed-off-by: Liu Ying <b17645@freescale.com>
(cherry picked from commit
99a218e876a3a4831ec121fdff0e2b4e39408eda)
if (var->xres_virtual < var->xres)
var->xres_virtual = var->xres;
- if (var->yres_virtual < var->yres)
- var->yres_virtual = var->yres;
+
+ /* Default Y virtual size is 3*yres */
+ if (var->yres_virtual < var->yres * 3)
+ var->yres_virtual = var->yres * 3;
if ((var->bits_per_pixel != 32) && (var->bits_per_pixel != 24) &&
(var->bits_per_pixel != 16) && (var->bits_per_pixel != 12) &&
mxcfb_check_var(&fbi->var, fbi);
- /* Default Y virtual size is 3x panel size */
- fbi->var.yres_virtual = fbi->var.yres * 3;
-
mxcfb_set_fix(fbi);
/* setup display */