ENGR00120500 V4L2 overlay:Unblank overlay fb before enable PRP_VF channel

This change makes us get rid of DIx_SYNC_DISP_ERR. The error sometimes
causes the backgound framebuffer reinitialized automatically, even if
we preview captured video on overlay framebuffer.

Signed-off-by: Liu Ying <b17645@freescale.com>
This commit is contained in:
Liu Ying
2010-01-28 10:19:23 -05:00
committed by Matt Sealey
parent f2711d576d
commit e603df439e

View File

@@ -96,6 +96,10 @@ static int prpvf_start(void *private)
ipu_disp_set_window_pos(MEM_FG_SYNC, cam->win.w.left,
cam->win.w.top);
acquire_console_sem();
fb_blank(fbi, FB_BLANK_UNBLANK);
release_console_sem();
memset(&vf, 0, sizeof(ipu_channel_params_t));
ipu_csi_get_window_size(&vf.csi_prp_vf_mem.in_width,
&vf.csi_prp_vf_mem.in_height, cam->csi);
@@ -253,10 +257,6 @@ static int prpvf_start(void *private)
ipu_select_buffer(CSI_PRP_VF_MEM, IPU_OUTPUT_BUFFER, 1);
}
acquire_console_sem();
fb_blank(fbi, FB_BLANK_UNBLANK);
release_console_sem();
cam->overlay_active = true;
return err;