Hello all,in our project,we need display camera data to multi display device( adv739x ,ldb and hdmi).here is our design:
we use imx6d process with ov5640 camera. our BSP is linux-3.0.35;
the fb device configured as below:
fb0/fb1 -> adv739x IPU0/DI0
fb2/fb3-> ldb IPU1/DI0 (primary display)
Now we can display camera data to each device seperately,but we don't know how to mirror camera data to all three display device. So we hacked into kernel driver(driver/media/video/caputre/ipu_prp_vf_sdc_bg.c)
In the original driver,camera data buffer into vf_bufs0/1 through CSI_PRP_VF_MEM channel,then route to fb device through MEM_ROT_VF_MEM channel)
it's sync interrupt is IPU_IRQ_PRP_VF_OUT_EOF and IPU_IRQ_BG_SF_END.
so we try something like this:
we set IPU1 MEM_PRP_VF_MEM channel input buffer to vf_bufs0/1 ,output buffer to FB4(HDMI),
IPU0 MEM_PP_MEM channel input buffer to vf_bufs0/1,output buffer to FB1(CVBS)
so when we display camera on FB2,it will automatically mirror to FB1&FB4.
it's not beauty but it's worked.
BUT! we found tearing effect on fb1 & fb4,The key problem is we don't know how to sync output frame.
we start MEM_PP_MEM and MEM_PRP_VF_MEM process when IPU_IRQ_PRP_VF_OUT_EOF interrupt arrival,