camera ov5640 could not  preview on Android 4.3

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

camera ov5640 could not  preview on Android 4.3

1,758 次查看
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

标签 (5)
3 回复数

1,244 次查看
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?

1,244 次查看
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 项奖励
回复

1,244 次查看
佳杰吴
Contributor I

Do you solve the problem?

0 项奖励
回复