Kirill Brilliantov

Capture from CMOS-matrix

Discussion created by Kirill Brilliantov on Jul 27, 2012
Latest reply on Jul 31, 2012 by Kirill Brilliantov
Hello! I have to capture and encode video from OmniVision OV2715 CMOS-matrix. I write driver and add matrix description in mx53_loco.c  After loading all modules I see in dmesg what matrix found and configured. root@freescale ~$ cat /proc/modules mxc_v4l2_capture 18356 1 - Live 0x7f0b1000 ov2715 12136 0 - Live 0x7f0a9000 //my module ipu_still 1671 1 mxc_v4l2_capture, Live 0x7f0a3000 ipu_prp_vf_sdc_bg 3285 1 mxc_v4l2_capture, Live 0x7f09d000 ipu_prp_vf_sdc 3392 1 mxc_v4l2_capture, Live 0x7f097000 ipu_prp_enc 3865 1 mxc_v4l2_capture, Live 0x7f091000 ipu_csi_enc 2449 1 mxc_v4l2_capture, Live 0x7f08b000  Output stream from matrix have size 1920x1080. Now I try capture this stream with mxc_v4l2_capture.out.  root@freescale ~$ /unit_tests/mxc_v4l2_capture.out -iw 1920 -ih 1080 -ow 1920 -oh 1080 in_width = 1920, in_height = 1080 out_width = 1920, out_height = 1080 top = 0, left = 0 sensor chip is ov2715_camera sensor frame size is 1920x1080 sensor frame format is UYVY Width = 1920 Height = 1080 Image size = 3110400 pixelformat = 842093913 YUV420 mxc_ipu mxc_ipu: IDMAC20's EBA0 is not 8-byte aligned mxc_ipu mxc_ipu: IDMAC20's EBA1 is not 8-byte aligned ERROR: v4l2 capture: mxc_v4l_dqueue timeout enc_counter 0 VIDIOC_DQBUF failed. ERROR: v4l2 capture: VIDIOC_QBUF: buffer already queued VIDIOC_QBUF failed mxc_v4l_close: release resource  I try some output resolution but result always fail. I don't see any error messages in dmesg output. On osciloscope I see FrameValid and LineValid signals.  I use linux- from LTIB (L2.6.35_11.09.01_ER_source_bundle and IMX_MMCODECS_11.09).  Why I can't capture stream and how can I solve this problem?  Thank you and excuse me my bad english.