移植DM37xx android 板子摄像头预览 全绿
大家好:
目前移植jorjin panther 800X480的板子到 目前我的板子 240*320 lcd 上
ov5640的摄像头,ID 已经读到 但是 摄像头预览是屏幕是全绿的。 数据接口用的 CAM[2-9] data接口
这个是 board配置
isp_v4l2_subdevs_group panther_camera_subdevs[] = {
#ifdef CONFIG_VIDEO_OV5640
{
.subdevs = panther_ov5640_primary_subdevs,
.interface = ISP_INTERFACE_PARALLEL,
.bus = {
.parallel = {
.width= 8,
.data_lane_shift = 1,
.clk_pol = 0,
.hdpol = 0,
.vdpol = 1,
.fldmode = 0,
.bridge = 3,
},
4760.ov5640.txt
V/CameraHolder( 1911): open camera 0
V/Camera ( 1911): connect
D/V4L2Camera( 1098): 84: Open() ENTER
D/V4L2Camera( 1098): 165: Open() EXIT
D/V4L2Camera( 1098): 181: Open_media_device() ENTER
D/V4L2Camera( 1098): entity 1:OMAP3 ISP CCP2
D/V4L2Camera( 1098): entity 2:OMAP3 ISP CCP2 input
D/V4L2Camera( 1098): entity 3:OMAP3 ISP CSI2a
D/V4L2Camera( 1098): entity 4:OMAP3 ISP CSI2a output
D/V4L2Camera( 1098): entity 5:OMAP3 ISP CCDC
D/V4L2Camera( 1098): entity 6:OMAP3 ISP CCDC output
D/V4L2Camera( 1098): entity 7:OMAP3 ISP preview
D/V4L2Camera( 1098): entity 8:OMAP3 ISP preview input
D/V4L2Camera( 1098): entity 9:OMAP3 ISP preview output
D/V4L2Camera( 1098): entity 10:OMAP3 ISP resizer
D/V4L2Camera( 1098): entity 11:OMAP3 ISP resizer input
D/V4L2Camera( 1098): entity 12:OMAP3 ISP resizer output
D/V4L2Camera( 1098): entity 13:OMAP3 ISP AEWB
D/V4L2Camera( 1098): entity 14:OMAP3 ISP AF
D/V4L2Camera( 1098): entity 15:OMAP3 ISP histogram
D/V4L2Camera( 1098): entity 16:ov5640 2-003c
D/V4L2Camera( 1098): pads for entity 1=
D/V4L2Camera( 1098): (0 INPUT)
D/V4L2Camera( 1098): (1 OUTPUT)
D/V4L2Camera( 1098): [1:1]===>[5:0]
D/V4L2Camera( 1098): INACTIVE
D/V4L2Camera( 1098): pads for entity 2=
D/V4L2Camera( 1098): (0 OUTPUT)
D/V4L2Camera( 1098): [2:0]===>[1:0]
D/V4L2Camera( 1098): INACTIVE
D/V4L2Camera( 1098): pads for entity 3=
D/V4L2Camera( 1098): (0 INPUT)
D/V4L2Camera( 1098): (1 OUTPUT)
D/V4L2Camera( 1098): [3:1]===>[4:0]
D/V4L2Camera( 1098): INACTIVE
D/V4L2Camera( 1098): [3:1]===>[5:0]
D/V4L2Camera( 1098): INACTIVE
D/V4L2Camera( 1098): pads for entity 4=
D/V4L2Camera( 1098): (0 INPUT)
D/V4L2Camera( 1098): pads for entity 5=
D/V4L2Camera( 1098): (0 INPUT)
D/V4L2Camera( 1098): (1 OUTPUT)
D/V4L2Camera( 1098): (2 OUTPUT)
D/V4L2Camera( 1098): [5:1]===>[6:0]
D/V4L2Camera( 1098): INACTIVE
D/V4L2Camera( 1098): [5:2]===>[7:0]
D/V4L2Camera( 1098): INACTIVE
D/V4L2Camera( 1098): [5:1]===>[10:0]
D/V4L2Camera( 1098): INACTIVE
D/V4L2Camera( 1098): [5:2]===>[13:0]
D/V4L2Camera( 1098): ACTIVE
D/V4L2Camera( 1098): [5:2]===>[14:0]
D/V4L2Camera( 1098): ACTIVE
D/V4L2Camera( 1098): [5:2]===>[15:0]
D/V4L2Camera( 1098): ACTIVE
D/V4L2Camera( 1098): pads for entity 6=
D/V4L2Camera( 1098): (0 INPUT)
D/V4L2Camera( 1098): pads for entity 7=
D/V4L2Camera( 1098): (0 INPUT)
D/V4L2Camera( 1098): (1 OUTPUT)
D/V4L2Camera( 1098): [7:1]===>[9:0]
D/V4L2Camera( 1098): INACTIVE
D/V4L2Camera( 1098): [7:1]===>[10:0]
D/V4L2Camera( 1098): INACTIVE
D/V4L2Camera( 1098): pads for entity 8=
D/V4L2Camera( 1098): (0 OUTPUT)
D/V4L2Camera( 1098): [8:0]===>[7:0]
D/V4L2Camera( 1098): INACTIVE
D/V4L2Camera( 1098): pads for entity 9=
D/V4L2Camera( 1098): (0 INPUT)
D/V4L2Camera( 1098): pads for entity 10=
D/V4L2Camera( 1098): (0 INPUT)
D/V4L2Camera( 1098): (1 OUTPUT)
D/V4L2Camera( 1098): [10:1]===>[12:0]
D/V4L2Camera( 1098): INACTIVE
D/V4L2Camera( 1098): pads for entity 11=
D/V4L2Camera( 1098): (0 OUTPUT)
D/V4L2Camera( 1098): [11:0]===>[10:0]
D/V4L2Camera( 1098): INACTIVE
D/V4L2Camera( 1098): pads for entity 12=
D/V4L2Camera( 1098): (0 INPUT)
D/V4L2Camera( 1098): pads for entity 13=
D/V4L2Camera( 1098): (0 INPUT)
D/V4L2Camera( 1098): pads for entity 14=
D/V4L2Camera( 1098): (0 INPUT)
D/V4L2Camera( 1098): pads for entity 15=
D/V4L2Camera( 1098): (0 INPUT)
D/V4L2Camera( 1098): pads for entity 16=
D/V4L2Camera( 1098): (0 OUTPUT)
D/V4L2Camera( 1098): [16:0]===>[5:0]
D/V4L2Camera( 1098): INACTIVE
D/V4L2Camera( 1098): 299: Open_media_device() EXIT
D/CameraHardware( 1098): 113: initDefaultParameters() ENTER
D/CameraHardware( 1098): Set Parameter...!!
D/CameraHardware( 1098): PreviewFormat yuv422sp
D/CameraHardware( 1098): PictureFormat jpeg
D/CameraHardware( 1098): preview width:320,height:240
D/CameraHardware( 1098): picture width:320,height:240
D/CameraHardware( 1098): FRAMERATE 15
D/CameraHardware( 1098): Picture Size by CamHAL 320 x 240
D/CameraHardware( 1098): Preview Resolution by CamHAL 320 x 240
D/CameraHardware( 1098): 132: initDefaultParameters() EXIT
D/CameraHardware( 1098): 205: setCallbacks() ENTER
D/CameraHardware( 1098): 211: setCallbacks() EXIT
D/CameraHardware( 1098): enableMsgType:13
I/StagefrightPlayer( 1098): setDataSource('/system/media/audio/ui/camera_click.ogg')
I/StagefrightPlayer( 1098): setDataSource('/system/media/audio/ui/VideoRecord.ogg')
V/Camera ( 1911): getParameters
V/Camera ( 1911): getParameters
V/Camera ( 1911): setPreviewDisplay
D/Camera ( 1911): app passed NULL surface
V/Camera ( 1911): sendCommand
V/Camera ( 1911): getParameters
V/Camera ( 1911): setParameters
D/CameraHardware( 1098): Set Parameter...!!
D/CameraHardware( 1098): PreviewFormat yuv422sp
D/CameraHardware( 1098): PictureFormat jpeg
D/CameraHardware( 1098): preview width:320,height:240
D/CameraHardware( 1098): picture width:320,height:240
D/CameraHardware( 1098): FRAMERATE 15
D/CameraHardware( 1098): Picture Size by CamHAL 320 x 240
D/CameraHardware( 1098): Preview Resolution by CamHAL 320 x 240
V/camera ( 1911): startPreview
V/Camera ( 1911): startPreview
D/CameraHardware( 1098): enableMsgType:16
D/CameraHardware( 1098): 317: startPreview() ENTER
D/V4L2Camera( 1098): 84: Open() ENTER
D/V4L2Camera( 1098): 165: Open() EXIT
D/CameraHardware( 1098): startPreview width:320,height:240
D/V4L2Camera( 1098): 305: Configure() ENTER
D/V4L2Camera( 1098): CameraConfigure PreviewFormat: w=640 h=480
D/V4L2Camera( 1098): 341: Configure() EXIT
D/V4L2Camera( 1098): 347: BufferMap() ENTER
D/V4L2Camera( 1098): 394: BufferMap() EXIT
D/V4L2Camera( 1098): 509: StartStreaming() ENTER
D/V4L2Camera( 1098): 522: StartStreaming() EXIT
D/CameraHardware( 1098): 405: startPreview() EXIT
I/ActivityManager( 1177): Displayed com.android.camera/.Camera: +1s762ms
V/Camera ( 1911): setPreviewDisplay
D/CameraHardware( 1098): Preview Heap
W/IInputConnectionWrapper( 1295): showStatusIcon on inactive InputConnection
W/OrientationEventListener( 1911): Cannot detect sensors. Not enabled
W/AudioPolicyManagerALSA( 1098): AudioPolicyManagerALSA::getStrategyForStream() Stub Called...
W/AudioPolicyManagerALSA( 1098): redirecting AudioPolicyManagerALSA::getStrategy()
D/libEGL ( 1911): loaded /system/lib/egl/libGLES_android.so
D/libEGL ( 1911): loaded /system/lib/egl/libEGL_POWERVR_SGX530_125.so
D/libEGL ( 1911): loaded /system/lib/egl/libGLESv1_CM_POWERVR_SGX530_125.so
D/libEGL ( 1911): loaded /system/lib/egl/libGLESv2_POWERVR_SGX530_125.so
V/GLRootView( 1911): onSurfaceChanged: 257x193, gl10: com.google.android.gles_jni.GLImpl@40647e88
V/GLRootView( 1911): layout content pane 257x193
D/dalvikvm( 1177): GC_EXPLICIT freed 342K, 42% free 4414K/7559K, external 992K/2192K, paused 48ms
D/dalvikvm( 1295): GC_EXPLICIT freed 238K, 46% free 3187K/5895K, external 1654K/1990K, paused 35ms
D/dalvikvm( 1438): GC_EXPLICIT freed 409K, 52% free 2730K/5575K, external 383K/517K, paused 24ms
请高手 帮忙看看
这个建议发到DSP的相关版块