camera ov5640 could not  preview on Android 4.3

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

camera ov5640 could not  preview on Android 4.3

1,357 Views
pfsang
Contributor IV

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

Labels (5)
3 Replies

843 Views
SergioSolis
NXP Employee
NXP Employee

I don't think the resolution is the problem, but we need to rule that out. Do you have a different display with a resolution included in the camera driver?

843 Views
pfsang
Contributor IV

hi SerchMX

       i have not added the other resolution in camera driver.

       And i checked the logcat again, i found configuration for ov5640 camera is 640*480 and

       it is  recommended that media_profiles_480p.xml be used for any board's configuration which defines the that media_profiles_480p.xml be used for any board's configuration which defines the in Android_Frequently_Asked_Questions.pdf .

        so as you said, the resolution is not the problem.

0 Kudos

843 Views
佳杰吴
Contributor I

Do you solve the problem?

0 Kudos