AnsweredAssumed Answered

ov2686 DVP port sometimes greenish capture

Question asked by If Zhao on Sep 22, 2016
Latest reply on Sep 25, 2016 by If Zhao

Dear all,

 

With JB4.3 IMX6DL, after I make ov2686 working, I find that sometimes the captured image is totally greenish but previewed image good. In both cases, I see into the IPU_CONF/IDMA_CONF and other related settings, but failed to find any difference.

 

This is the log of failed case, same in good case:

 

In ov2686:ioctl_g_parm
type is V4L2_BUF_TYPE_VIDEO_CAPTURE
In ov2686:ioctl_s_parm
type is V4L2_BUF_TYPE_VIDEO_CAPTURE
In ov2686:ov2686_init_mode capturemode is 0,mode=0
In ov2686:ioctl_g_ifparm
In ov2686:ioctl_g_fmt_cap.
ipu_csi_init_interface,fmt=1448695129 IPU_PIX_FMT_GENERIC=810897481
ipu_csi_init_interface using yuyv format
ipu_csi_init_interface,width=1600,heigt=1200,pifxfmt=1448695129,sigclck=0
sig.clkmode=0,0x900,1600,1200
imx-ipuv3 imx-ipuv3.0: CSI_SENS_CONF = 0x00000900
imx-ipuv3 imx-ipuv3.0: CSI_ACT_FRM_SIZE = 0x04AF063F
imx-ipuv3 imx-ipuv3.0: init channel = 15
channel=-1066027628,mipi_id=-762757120,csi=0 (null)
csi=0,channel=268435392 _ipu_csi_init
imx-ipuv3 imx-ipuv3.0: IPU_CONF = 0x00000660
imx-ipuv3 imx-ipuv3.0: IDMAC_CONF = 0x0000002F
imx-ipuv3 imx-ipuv3.0: IDMAC_CHA_EN1 = 0x00800000
imx-ipuv3 imx-ipuv3.0: IDMAC_CHA_EN2 = 0x00000000
imx-ipuv3 imx-ipuv3.0: IDMAC_CHA_PRI1 = 0x18800001
imx-ipuv3 imx-ipuv3.0: IDMAC_CHA_PRI2 = 0x00000000
imx-ipuv3 imx-ipuv3.0: IDMAC_BAND_EN1 = 0x00000000
imx-ipuv3 imx-ipuv3.0: IDMAC_BAND_EN2 = 0x00000000
imx-ipuv3 imx-ipuv3.0: IPU_CHA_DB_MODE_SEL0 = 0x00000000
imx-ipuv3 imx-ipuv3.0: IPU_CHA_DB_MODE_SEL1 = 0x00000000
imx-ipuv3 imx-ipuv3.0: IPU_CHA_TRB_MODE_SEL0 = 0x00800000
imx-ipuv3 imx-ipuv3.0: IPU_CHA_TRB_MODE_SEL1 = 0x00000000
imx-ipuv3 imx-ipuv3.0: DMFC_WR_CHAN = 0x00000090
imx-ipuv3 imx-ipuv3.0: DMFC_WR_CHAN_DEF = 0x202020F6
imx-ipuv3 imx-ipuv3.0: DMFC_DP_CHAN = 0x000096D4
imx-ipuv3 imx-ipuv3.0: DMFC_DP_CHAN_DEF = 0x2020F6F6
imx-ipuv3 imx-ipuv3.0: DMFC_IC_CTRL = 0x00000002
imx-ipuv3 imx-ipuv3.0: IPU_FS_PROC_FLOW1 = 0x00000000
imx-ipuv3 imx-ipuv3.0: IPU_FS_PROC_FLOW2 = 0x00000000
imx-ipuv3 imx-ipuv3.0: IPU_FS_PROC_FLOW3 = 0x00000000
imx-ipuv3 imx-ipuv3.0: IPU_FS_DISP_FLOW1 = 0x00000000
imx-ipuv3 imx-ipuv3.0: IPU_VDIC_VDI_FSIZE = 0x00000000
imx-ipuv3 imx-ipuv3.0: IPU_VDIC_VDI_C = 0x00000000
imx-ipuv3 imx-ipuv3.0: IPU_IC_CONF = 0x00000000
imx-ipuv3 imx-ipuv3.0: CSI_SENS_CONF = 0x00000A00
imx-ipuv3 imx-ipuv3.0: IPU_INT_STAT1 = 0x00000000
imx-ipuv3 imx-ipuv3.0: initializing idma ch 0 @ d28c0000
imx-ipuv3 imx-ipuv3.0: ch 0 word 0 - 00000000 EA600000 00000000 E0000000 0012BCC7
imx-ipuv3 imx-ipuv3.0: ch 0 word 1 - 03D00000 007A0000 0087C000 00018FC0 0000063F
imx-ipuv3 imx-ipuv3.0: PFS 0x4,
imx-ipuv3 imx-ipuv3.0: BPP 0x0,
imx-ipuv3 imx-ipuv3.0: NPB 0x1f
imx-ipuv3 imx-ipuv3.0: FW 1599,
imx-ipuv3 imx-ipuv3.0: FH 1199,
imx-ipuv3 imx-ipuv3.0: EBA0 0x1e800000
imx-ipuv3 imx-ipuv3.0: EBA1 0x1e800000
imx-ipuv3 imx-ipuv3.0: Stride 1599
imx-ipuv3 imx-ipuv3.0: scan_order 0
imx-ipuv3 imx-ipuv3.0: uv_stride 1599
imx-ipuv3 imx-ipuv3.0: u_offset 0x1d4c00
imx-ipuv3 imx-ipuv3.0: v_offset 0x0
imx-ipuv3 imx-ipuv3.0: Width0 0+1,
imx-ipuv3 imx-ipuv3.0: Width1 0+1,
imx-ipuv3 imx-ipuv3.0: Width2 0+1,
imx-ipuv3 imx-ipuv3.0: Width3 0+1,
imx-ipuv3 imx-ipuv3.0: Offset0 31,
imx-ipuv3 imx-ipuv3.0: Offset1 17,
imx-ipuv3 imx-ipuv3.0: Offset2 1,
imx-ipuv3 imx-ipuv3.0: Offset3 0
imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_5 = 0x00000001
_ipu_csi_wait4eof channel=268435392

Attachments

Outcomes