promcu 发表于 2013-8-6 20:00:57

tq210 CAMERA_A1单摄像头测试无显示

请教下,单摄像头,接在tq210 CAMERA_A1接口;
发现如果没有打开SAA7113,打开camera菜单都不能打开;
当编译了SAA7113和OV3640,但是无显示,测量HS,VS信号看起来正常,但是PCLK几乎没有;
LOG 如下:
fimc->active_camera == -1                                                      
saa7113 address 0xE3666408, product ID 0x0000, expect 0x0011                  
SAA7113 5-0025: saa7113 has been probed,err(-19)                              
s3c-fimc-0 : fimc_configure_subdev: v4l2 subdev board registering failed      
smdkv210_OV3640_1_powerov3640_1 rst :1                                       
OV3640 1-003c: t4k28has been probed                                          
smdkv210_OV3640_1_powerov3640_1 rst :0                                       
OV3640 1-003c: OV3640_s_ctrl: no such control                                 
smdkv210_OV3640_1_powerov3640_1 rst :1                                       
OV3640 1-003c: OV3640_init: camera initialization start                        
OV3640 1-003c: OV3640_init:   id4is :8 !                                    
OV3640 1-003c: OV3640_init:id5is :40 !                                    
OV3640 1-003c: OV3640_init:t4k28id6is :840 !                              
OV3640_init :t4k28 initial end :t4k28 initial ok                              
OV3640 1-003c: OV3640_s_ctrl: no such control                                 
smdkv210_OV3640_1_powerov3640_1 rst :1                                       
OV3640 1-003c: OV3640_init: camera initialization start                        
OV3640 1-003c: OV3640_init:   id4is :8 !                                    
OV3640 1-003c: OV3640_init:id5is :40 !                                    
OV3640 1-003c: OV3640_init:t4k28id6is :840 !                              
OV3640_init :t4k28 initial end :t4k28 initial ok                              
OV3640 1-003c: OV3640_s_ctrl: no such control                                 
s3c-fimc-0 : fimc_camera_start: Error in V4L2_CID_CAM_PREVIEW_ONOFF - start

wbz073 发表于 2013-8-7 09:00:08

你的log很多failed,你去检查camera注册是否成功

promcu 发表于 2013-8-9 19:16:18

现在还是无法使用啊,log如下:

I/ActivityManager( 2249): START {act=android.intent.action.MAIN cat= flg=0x10200000 cmp=com.android.camera/.C3
D/AudioHardware( 2153): AudioHardware pcm playback is exiting standby.
D/AudioHardware( 2153): openPcmOut_l() mPcmOpenCnt: 0
I/ActivityManager( 2249): Start proc com.android.camera for activity com.android.camera/.Camera: pid=3132 uid=10033 gids={1006, 1015}
D/dalvikvm( 2249): GC_CONCURRENT freed 579K, 9% free 10137K/11079K, paused 3ms+8ms
D/OpenGLRenderer( 2513): Flushing caches (mode 1)
I/InputReader( 2249): Reconfiguring input devices.changes=0x00000004
I/InputReader( 2249): Device reconfigured: id=2, name='Goodix', surface size is now 800x480, mode is 1
I/InputReader( 2249): Device reconfigured: id=3, name='s3c_ts', surface size is now 800x480, mode is 1
I/InputReader( 2249): Device reconfigured: id=4, name='s3c_ts', surface size is now 800x480, mode is 1
D/OpenGLRenderer( 2513): Flushing caches (mode 0)
I/ActivityManager( 2249): Config changed: {1.0 0mcc0mnc en_US layoutdir=0 sw451dp w451dp h690dp nrml port finger -keyb/v/h -nav/h s.8}
D/OpenGLRenderer( 2325): Flushing caches (mode 0)
D/OpenGLRenderer( 2325): Flushing caches (mode 0)
V/CameraHolder( 3132): open camera 0
I/CameraService( 2153): Opening camera 0
I/CameraHardwareSec( 2153): int android::HAL_camera_device_open(const hw_module_t*, const char*, hw_device_t**): open camera 0
I/SecCamera( 2153): Name of input channel is OV3640
OV3640 1-003c: t4k28has been probed
v4l2_device_register_subdevok I/SecCamera( 2153): Name of input channel is OV3640
I/SecCamera( 2153): initCamera : initialized
I/SecCamera( 2153): Name of input channel is OV3640
I/CameraHardwareSec( 2153): int android::HAL_camera_device_open(const hw_module_t*, const char*, hw_device_t**): opened camera 0 (0xf68180)
I/AwesomePlayer( 2153): setDataSource_l('/system/media/audio/ui/camera_click.ogg')
I/CameraHardwareSec( 2153): int android::CameraHardwareSec::previewThreadWrapper(): starting
I/CameraHardwareSec( 2153): int android::CameraHardwareSec::previewThreadWrapper(): calling mSecCamera->stopPreview() and waiting
W/SecCamera( 2153): int android::SecCamera::stopPreview(): doing nothing because m_flag_camera_start is zero
I/AwesomePlayer( 2153): setDataSource_l('/system/media/audio/ui/VideoRecord.ogg')
D/dalvikvm( 2325): GC_CONCURRENT freed 411K, 8% free 7642K/8263K, paused 2ms+14ms
D/dalvikvm( 3132): GC_CONCURRENT freed 236K, 5% free 6987K/7303K, paused 5ms+2ms
D/dalvikvm( 3132): GC_FOR_ALLOC freed 11K, 5% free 7137K/7495K, paused 14ms
D/dalvikvm( 3132): GC_FOR_ALLOC freed 264K, 7% free 7276K/7751K, paused 14ms
I/Process ( 2249): Sending signal. PID: 3132 SIG: 3
D/Camera( 3132): app passed NULL surface
I/dalvikvm( 3132): threadid=3: reacting to signal 3
I/dalvikvm( 3132): Wrote stack traces to '/data/anr/traces.txt'
V/camera( 3132): Preview size is 640x480
V/camera( 3132): startPreview
E/CameraHardwareSec( 2153): preview window is NULL!
I/CameraHardwareSec( 2153): virtual android::status_t android::CameraHardwareSec::startPreview() : deferring
D/dalvikvm( 3132): GC_CONCURRENT freed 263K, 5% free 7528K/7879K, paused 1ms+2ms
D/dalvikvm( 2573): GC_CONCURRENT freed 369K, 7% free 7138K/7623K, paused 4ms+3ms
D/libEGL( 3132): loaded /system/lib/egl/libGLES_android.so
D/libEGL( 3132): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
D/libEGL( 3132): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
D/libEGL( 3132): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
D/OpenGLRenderer( 3132): Enabling debug mode 0

OV3640 1-003c: OV3640_s_ctrl: no such control
V/camera( 3132): surfaceChanged. w=480. h=640
E/SecCamera( 2153): ERR(int android::fimc_v4l2_s_ctrl(int, unsigned int, unsigned int)):VIDIOC_S_CTRL(id = 0x8000070 (112), value = 0) failed r1
E/SecCamera( 2153): int android::SecCamera::startPreview()::752 fail. errno: Invalid argument, m_camera_id = 0
E/CameraHardwareSec( 2153): ERR(android::status_t android::CameraHardwareSec::startPreviewInternal()):Fail on mSecCamera->startPreview()
I/Process ( 2249): Sending signal. PID: 3132 SIG: 3
I/dalvikvm( 3132): threadid=3: reacting to signal 3
I/dalvikvm( 3132): Wrote stack traces to '/data/anr/traces.txt'
I/ActivityManager( 2249): Displayed com.android.camera/.Camera: +1s247ms
W/IInputConnectionWrapper( 2513): showStatusIcon on inactive InputConnection
D/LocationManager( 3132): provider does not exist provider=network
W/GpsLocationProvider( 2249): Duplicate add listener for uid 10033
D/LocationManager( 3132): startReceivingLocationUpdates
D/CameraStorage( 3132): External storage state=mounted
I/Thumbnail( 3132): Fail to load bitmap. java.io.FileNotFoundException: /data/data/com.android.camera/files/last_thumb: open failed: ENOENT (No)
D/Thumbnail( 3132): getLastVideoThumbnail: /mnt/sdcard/DCIM/Camera/VID_20000101_000936.mp4
E/MetadataRetrieverClient( 2153): failed to capture a video frame
E/MediaMetadataRetrieverJNI( 2538): getFrameAtTime: videoFrame is a NULL pointer
W/MediaThumbRequest( 2538): Can't create mini thumbnail for /mnt/sdcard/DCIM/Camera/VID_20000101_000936.mp4
V/MediaStore( 3132): Create the thumbnail in memory: origId=482, kind=1, isVideo=true
E/MetadataRetrieverClient( 2153): failed to capture a video frame
E/MediaMetadataRetrieverJNI( 3132): getFrameAtTime: videoFrame is a NULL pointer
E/Thumbnail( 3132): Failed to create thumbnail from null bitmap
D/dalvikvm( 3132): GC_CONCURRENT freed 347K, 6% free 7622K/8071K, paused 2ms+3ms
D/AudioHardware( 2153): AudioHardware pcm playback is going to standby.
D/AudioHardware( 2153): closePcmOut_l() mPcmOpenCnt: 1
D/dalvikvm( 2249): GC_EXPLICIT freed 631K, 13% free 9642K/11079K, paused 2ms+4ms
V/FocusManager( 3132): Start autofocus.
V/camera( 3132): onShutterButtonClick: mCameraState=2
V/camera( 3132): mAutoFocusTime = 1000ms
D/LocationManager( 3132): No location received yet.
I/SecCamera( 2153): int android::fimc_v4l2_querybuf(int, android::fimc_buffer*, v4l2_buf_type) :
I/SecCamera( 2153): int android::fimc_v4l2_querybuf(int, android::fimc_buffer*, v4l2_buf_type): buffer->start = 0x42a37000 v4l2_buf.length = 610
smdkv210_OV3640_1_powerov3640_1 rst :1
OV3640 1-003c: OV3640_init: camera initialization start
OV3640 1-003c: OV3640_init:   id4is :8 !
OV3640 1-003c: OV3640_init:id5is :40 !
OV3640 1-003c: OV3640_init:t4k28id6is :840 !
OV3640_init :t4k28 initial end :t4k28 initial ok
set ctrl->cam
OV3640 1-003c: OV3640_s_ctrl: no such control
smdkv210_OV3640_1_powerov3640_1 rst :1
OV3640 1-003c: OV3640_init: camera initialization start
OV3640 1-003c: OV3640_init:   id4is :8 !
OV3640 1-003c: OV3640_init:id5is :40 !
OV3640 1-003c: OV3640_init:t4k28id6is :840 !
OV3640_init :t4k28 initial end :t4k28 initial ok
OV3640 1-003c: OV3640_s_ctrl: no such control
s3c-fimc-0 : fimc_camera_start: Error in V4L2_CID_CAM_PREVIEW_ONOFF - start
E/SecCamera( 2153): ERR(int android::fimc_v4l2_streamon(int)):VIDIOC_STREAMON failed
E/SecCamera( 2153): int android::SecCamera::getSnapshotAndJpeg(unsigned char*, unsigned char*, unsigned int*)::1365 fail. errno: Invalid argume0
I/SecCamera( 2153): int android::SecCamera::endSnapshot() :
I/SecCamera( 2153): munmap():virt. addr 0x42a37000 size = 614400
I/SecCamera( 2153): int android::SecCamera::endSnapshot() :

promcu 发表于 2013-8-9 19:23:00

好像上层一次打开双CAMERA,但是我现在用的是单CAMERA;
第2次执行此函数出错:
s3c-fimc-0 : fimc_camera_start: Error in V4L2_CID_CAM_PREVIEW_ONOFF - start
页: [1]
查看完整版本: tq210 CAMERA_A1单摄像头测试无显示