AnsweredAssumed Answered

camera ov5640 could not  preview on Android 4.3

Question asked by fang min on Aug 13, 2014
Latest reply on Apr 15, 2015 by 佳杰 吴

hi, all

     i encountered a problem about camera ov5640.

     i checked the boot log.  i found the following message.

    ------------------------------------------------------------------

     camera ov5640 is found

     mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video16

     mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video17

    ------------------------------------------------------------------

    it seems that the driver is OK.

 

    but when I open the camera APP in android, it display nothing on LVDS panel and it can't preview.

    i found the following message in logcat

    ------------------------------------------------------------------

E/FslCameraHAL( 2208): VIDIOC_STREAMON failed: Operation not permitted

E/FslCameraHAL( 2208): Couldn't start preview for DeviceAdapter

E/FslCameraHAL( 2208): error start stream -1

---------------------------------------------------------------------

   and I have checked the following waveform

1)the MCLK  pin outputs 24M waveform

2)the HSYNC, VSYNC output square wave

3) CSI0_DAT12~CSI0_DAT19 output waveform


   by the way , my resolution of  lvds panel is 1024*600,  and there is not 1024*600 mode in ov5640_mode_info_data of ov5640 driver

   is this a root cause?

Original Attachment has been moved to: camera_android.log.zip

Outcomes