This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

UVC camera enabling on DM814x Android ICS

Hi,

I am working on DM814x evm, In that I have ported Android ICS 4.0.3. I am trying to capture Image using USB camera but I couldn't able through. When I connected USB camera device nodes getting created like video0, video1, video2, video3. But When I click on Camera Application in Application launcher it is saying that "Unfortunately, Camera has stopped".  Please suggest some ways to solve this problem so that I am able to see camera preview on my board DM814x Android ICS

Here I am giving logcat messages

I/ActivityManager(  142): Start proc com.android.camera for activity com.android.camera/.Camera: pid=770 uid=10003 gids={1006, 1015, 1023}
W/NetworkManagementSocketTagger(  142): setKernelCountSet(10003, 1) failed with errno -2
D/****CameraHAL(   62): cameraHal BACK 0
D/****CameraHAL(   62): cameraHal 0
V/CameraHolder(  770): open camera 0
D/****CameraHAL(   62): cameraHal BACK 0
D/****CameraHAL(   62): cameraHal 0
I/CameraService(   62): Opening camera 0
I/****CameraHAL(   62): camera_device open
E/CameraHardware(   62): version >= KERNEL_VERSION(2,6,37)
E/V4L2Camera(   62): Error opening ccdc device
E/V4L2Camera(   62): ERROR opening media device: No such file or directory
D/CameraHardware(   62): Set Parameter...!! 
D/CameraHardware(   62): PreviewFormat yuv422sp
D/CameraHardware(   62): PictureFormat jpeg
D/CameraHardware(   62): preview width:320,height:240
D/CameraHardware(   62): picture width:320,height:240
D/CameraHardware(   62): FRAMERATE 15
D/CameraHardware(   62): Picture Size by CamHAL 320 x 240
D/CameraHardware(   62): Preview Resolution by CamHAL 320 x 240
D/CameraHardware(   62): enableMsgType:1037
I/AwesomePlayer(   62): setDataSource_l('/system/media/audio/ui/camera_click.ogg')
I/AwesomePlayer(   62): setDataSource_l('/system/media/audio/ui/VideoRecord.ogg')
D/CameraHardware(   62): Set Parameter...!! 
D/CameraHardware(   62): PreviewFormat yuv422sp
D/CameraHardware(   62): PictureFormat jpeg
D/CameraHardware(   62): preview width:320,height:240
D/CameraHardware(   62): picture width:320,height:240
D/CameraHardware(   62): FRAMERATE 15
D/CameraHardware(   62): Picture Size by CamHAL 320 x 240
D/CameraHardware(   62): Preview Resolution by CamHAL 320 x 240
D/dalvikvm(  770): GC_CONCURRENT freed 205K, 5% free 6693K/6983K, paused 4ms+3ms
D/dalvikvm(  770): GC_FOR_ALLOC freed 27K, 4% free 6956K/7239K, paused 32ms
D/CameraHardware(   62): Set Parameter...!! 
D/CameraHardware(   62): PreviewFormat yuv422sp
D/CameraHardware(   62): PictureFormat jpeg
D/CameraHardware(   62): preview width:320,height:240
D/CameraHardware(   62): picture width:320,height:240
D/CameraHardware(   62): FRAMERATE 15
D/CameraHardware(   62): Picture Size by CamHAL 320 x 240
D/CameraHardware(   62): Preview Resolution by CamHAL 320 x 240
D/Camera  (  770): app passed NULL surface
D/****CameraHAL(   62): cameraHal BACK 0
D/****CameraHAL(   62): cameraHal 0
D/CameraHardware(   62): Set Parameter...!! 
D/CameraHardware(   62): PreviewFormat yuv422sp
D/CameraHardware(   62): PictureFormat jpeg
D/CameraHardware(   62): preview width:320,height:240
D/CameraHardware(   62): picture width:320,height:240
D/CameraHardware(   62): FRAMERATE 15
D/CameraHardware(   62): Picture Size by CamHAL 320 x 240
D/CameraHardware(   62): Preview Resolution by CamHAL 320 x 240
D/CameraHardware(   62): Set Parameter...!! 
D/CameraHardware(   62): PreviewFormat yuv422sp
D/CameraHardware(   62): PictureFormat jpeg
D/CameraHardware(   62): preview width:640,height:480
D/CameraHardware(   62): picture width:640,height:480
D/CameraHardware(   62): FRAMERATE 15
D/CameraHardware(   62): Picture Size by CamHAL 640 x 480
D/CameraHardware(   62): Preview Resolution by CamHAL 640 x 480
D/CameraHardware(   62): Set Parameter...!! 
D/CameraHardware(   62): PreviewFormat yuv422sp
D/CameraHardware(   62): PictureFormat jpeg
D/CameraHardware(   62): preview width:640,height:480
D/CameraHardware(   62): picture width:640,height:480
D/CameraHardware(   62): FRAMERATE 15
D/CameraHardware(   62): Picture Size by CamHAL 640 x 480
D/CameraHardware(   62): Preview Resolution by CamHAL 640 x 480
V/camera  (  770): Preview size is 640x480
D/CameraHardware(   62): Set Parameter...!! 
D/CameraHardware(   62): PreviewFormat yuv422sp
D/CameraHardware(   62): PictureFormat jpeg
D/CameraHardware(   62): preview width:640,height:480
D/CameraHardware(   62): picture width:640,height:480
D/CameraHardware(   62): FRAMERATE 15
D/CameraHardware(   62): Picture Size by CamHAL 640 x 480
D/CameraHardware(   62): Preview Resolution by CamHAL 640 x 480
V/camera  (  770): startPreview
W/****CameraHAL(   62): ----Preview not Enabled----
W/****CameraHAL(   62): window is NULL
W/CameraHardware(   62): Window is Null
E/V4L2Camera(   62): Error opening ccdc device
D/CameraHardware(   62): disableMsgType:16
D/CameraHardware(   62): disableMsgType:16
D/CameraHardware(   62): disableMsgType:65535
I/CameraService(   62): Destroying camera 0
E/V4L2Camera(   62): Uninit: Unmap failed
E/V4L2Camera(   62): Uninit: Unmap failed
E/V4L2Camera(   62): Uninit: Unmap failed
E/V4L2Camera(   62): Uninit: Unmap failed
W/dalvikvm(  770): threadid=12: thread exiting with uncaught exception (group=0x409e51f8)
W/AudioFlinger(   62): session id 17 not found for pid 62
W/AudioFlinger(   62): session id 18 not found for pid 62
E/AndroidRuntime(  770): FATAL EXCEPTION: Thread-86
E/AndroidRuntime(  770): java.lang.RuntimeException: startPreview failed
E/AndroidRuntime(  770):        at com.android.camera.Camera.startPreview(Camera.java:1867)
E/AndroidRuntime(  770):        at com.android.camera.Camera.access$3100(Camera.java:87)
E/AndroidRuntime(  770):        at com.android.camera.Camera$5.run(Camera.java:1112)
E/AndroidRuntime(  770):        at java.lang.Thread.run(Thread.java:856)
E/AndroidRuntime(  770): Caused by: java.lang.RuntimeException: startPreview failed
E/AndroidRuntime(  770):        at android.hardware.Camera.startPreview(Native Method)
E/AndroidRuntime(  770):        at com.android.camera.Camera.startPreview(Camera.java:1864)
E/AndroidRuntime(  770):        ... 3 more
W/ActivityManager(  142):   Force finishing activity com.android.camera/.Camera
D/dalvikvm(  142): GC_CONCURRENT freed 362K, 19% free 8660K/10567K, paused 4ms+6ms
W/ActivityManager(  142): Activity pause timeout for ActivityRecord{410e8d80 com.android.camera/.Camera}
W/NetworkManagementSocketTagger(  142): setKernelCountSet(10003, 0) failed with errno -2