ADV7180 video camera capture failed!

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ADV7180 video camera capture failed!

Jump to solution
3,541 Views
shengqiangai
Contributor II
Our development board is freescale's SABRE Automotive Infotainment  IMX6DL,BSP is L3.0.35_4.1.0_130816_source,our video device is  ADV7180.

      I config the ADV7180 driver in the linux kernel menu config as follow:    

    

      device drivers > Multimedia support > video capture adapters > [M]MXC  Camera/V4L2 PRP Features support > [M] Analog Device adv7180 TV Decoder Input support

     The kernel was build success . I copy the \linux-3.0.35\drivers\media\video\mxc\capture\*.ko files to the development board,and use the follow cmd to add adv7180 driver,success too:

     insmod adv7180_tvin.ko
     insmod camera_sensor_clock.ko
     insmod ipu_bg_overlay_sdc.ko
     insmod ipu_csi_enc.ko
     insmod ipu_fg_overlay_sdc.ko
     insmod ipu_prp_enc.ko
     insmod ipu_still.ko
     insmod mxc_v4l2_capture.ko

     use the follow cmd find have six video device files in the /dev/ dir.

    
root@freescale /unit_tests$ ls /dev/ | grep video
video
video0
video1
video16
video17
video2

    root@freescale /testTmp$ lsmod
Module                  Size  Used by
mxc_v4l2_capture       22741  1
ipu_still               1703  1 mxc_v4l2_capture
ipu_prp_enc             4685  1 mxc_v4l2_capture
ipu_fg_overlay_sdc      4868  1 mxc_v4l2_capture
ipu_csi_enc             2937  1 mxc_v4l2_capture
ipu_bg_overlay_sdc      3925  1 mxc_v4l2_capture
camera_sensor_clock      765  0
adv7180_tvin            7527  0

         then i go to the /unit_tests dir, use the follow cmd to test the camera:

./mxc_v4l2_tvin.out -ow 640 -oh 480 -ol 10 -ot 20 -f YU12     

         the output is follow :
           
VIDIOC_DBG_G_CHIP_IDENT failed.
Setup v4l capture failed.


         i aloso use the follow cmd to test the camera:


./mxc_v4l2_capture.out -iw 1280 -ih 720 -ow 1280 -oh 720 -r 0 -fr 15 test.yuv

in_width = 1280, in_height = 720
out_width = 1280, out_height = 720
top = 0, left = 0
VIDIOC_DBG_G_CHIP_IDENT failed.
get format failed

       other tests is failed also:

root@freescale /unit_tests$ $modprobe mxc_v4l2_capture
-sh: mxc_v4l2_capture: command not found

root@freescale /unit_tests$ gst-launch tvsrc ! mfw_v4lsink
MFW_GST_tvsrc_PLUGIN 3.0.7 build on Jul 31 2013 18:18:05.
ERROR: v4l2 capture: slave not found!_mxc1568
MFW_GST_V4LSINK_PLUGIN 3.0.7 build on Feb  6 2015 14:57:56.
Setting pipeline to PAUSED ...
VIDIOC_DBG_G_CHIP_IDENT failed.
should set the input to 1
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Total rendered:0
Freeing pipeline ...
[--->FINALIZE v4l_sink

           

        Now ,my question as follow:

     1)  My adv7180 video camera driver is config correct? How do i config the adv7180 video camera driver

     2)  Which program in the  /unit_tests dir should i use to test the camera?

Labels (3)
0 Kudos
1 Solution
941 Views
igorpadykov
NXP Employee
NXP Employee

HI shengqiang

suggest to look at below link for tvin usage

De-interlace Capture Device

Best regards

igor

View solution in original post

0 Kudos
1 Reply
942 Views
igorpadykov
NXP Employee
NXP Employee

HI shengqiang

suggest to look at below link for tvin usage

De-interlace Capture Device

Best regards

igor

0 Kudos