From 6ea8b17733d9beafb90616874d77fd87dcab42da Mon Sep 17 00:00:00 2001 From: Liu Ying Date: Mon, 24 Jun 2013 16:38:32 +0800 Subject: [PATCH] ENGR00268385 v4l2 fg overlay:disable fb ywrap when enable overlay 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 --- drivers/media/video/mxc/capture/ipu_fg_overlay_sdc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/video/mxc/capture/ipu_fg_overlay_sdc.c b/drivers/media/video/mxc/capture/ipu_fg_overlay_sdc.c index 6d8d4399d7ad..856078a52b6f 100644 --- a/drivers/media/video/mxc/capture/ipu_fg_overlay_sdc.c +++ b/drivers/media/video/mxc/capture/ipu_fg_overlay_sdc.c @@ -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); -- 2.39.5