]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00268385 v4l2 fg overlay:disable fb ywrap when enable overlay
authorLiu Ying <Ying.Liu@freescale.com>
Mon, 24 Jun 2013 08:38:32 +0000 (16:38 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:14:07 +0000 (14:14 +0200)
This patch disables framebuffer ywrap flag when we enable overlay,
because the display double buffers are not ywrapped. This may avoid
wrong preview pictures on platforms which use NV12 pixel format for
overlay framebuffer.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
drivers/media/video/mxc/capture/ipu_fg_overlay_sdc.c

index 6d8d4399d7ad5d3b90858f8fe7721f9ddd2c4f31..856078a52b6f5c03adfd13426afb65157c7a57b6 100644 (file)
@@ -396,6 +396,7 @@ static int foreground_start(void *private)
        fbvar.yres = cam->win.w.height;
        fbvar.yres_virtual = cam->win.w.height * 2;
        fbvar.yoffset = 0;
+       fbvar.vmode &= ~FB_VMODE_YWRAP;
        fbvar.accel_flags = FB_ACCEL_DOUBLE_FLAG;
        fbvar.activate |= FB_ACTIVATE_FORCE;
        fb_set_var(fbi, &fbvar);