We now have a video (almost), it was an hardware problem. Now we receive our test pattern and can see it through the camera app. However it seems that it is not synced properly see attachment. Running mxc-v4l2-tvin -ow 720 -oh 480 -ot 0 -ol 1 -f UYVY now results in this:
fmt RGB565: fourcc = 0x50424752
fmt BGR24: fourcc = 0x33524742
fmt RGB24: fourcc = 0x33424752
fmt RGB32: fourcc = 0x34424752
fmt BGR32: fourcc = 0x34524742
fmt NV12: fourcc = 0x3231564e
fmt UYVY: fourcc = 0x59565955
fmt YUYV: fourcc = 0x56595559
fmt YUV422 planar: fourcc = 0x50323234
fmt YUV444: fourcc = 0x34343459
fmt YUV420: fourcc = 0x32315559
fmt YVU420: fourcc = 0x32315659
fmt TILED NV12P: fourcc = 0x50564e54
fmt TILED NV12F: fourcc = 0x46564e54
fmt YUV444 planar: fourcc = 0x50343434
start time = 946690433 s, 979772 us
mxc_ipu mxc_ipu: ERR: no-0x0,ipu_queue_task err:-22
mxc_v4l2_output v4l2_out.19: display work fail ret = -22
mxc_ipu mxc_ipu: ERR: no-0x0,ipu_queue_task err:-22
mxc_v4l2_output v4l2_out.19: display work fail ret = -22
mxc_ipu mxc_ipu: ERR: no-0x0,ipu_queue_task err:-22
mxc_v4l2_output v4l2_out.19: display work fail ret = -22
mxc_ipu mxc_ipu: ERR: no-0x0,ipu_queue_task err:-22
mxc_v4l2_output v4l2_out.19: display work fail ret = -22
We tried using the VSYNC and HSYNC pins by changing (driver)
p->u.bt656.mode = V4L2_IF_TYPE_BT656_MODE_BT_8BIT;
p->u.bt656.bt_sync_correct = 0;
to
p->u.bt656.mode = V4L2_IF_TYPE_BT656_MODE_NOBT_8BIT;
p->u.bt656.bt_sync_correct = 1;
We also tried to change the active top value from 13 to 3 (mxc_v4l2_capture.c)
static video_fmt_t video_fmts[] = {
{ /*! NTSC */
.v4l2_id = V4L2_STD_NTSC,
.name = "NTSC",
.raw_width = 720, /* SENS_FRM_WIDTH */
.raw_height = 525, /* SENS_FRM_HEIGHT */
.active_width = 720, /* ACT_FRM_WIDTH */
.active_height = 480, /* ACT_FRM_HEIGHT */
.active_top = 3,
.active_left = 0,
},
Switching to PROGRESSIVE mode sadly didn't work either. The IPU shows following warning:
<7>imx-ipuv3 2400000.ipu: IPU_CLK_RATE = 264000000
<7>imx-ipuv3 2400000.ipu: CSI_SENS_CONF = 0x00000A30
<7>imx-ipuv3 2400000.ipu: CSI_SENS_FRM_SIZE = 0x020C02CF
<7>imx-ipuv3 2400000.ipu: CSI_ACT_FRM_SIZE = 0x01DF02CF
<4>imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x00000001
Any suggestions as to why the video is not syncing correctly?