Hi Deepak, u can observe the error "VIDIOC_QBUF Failed" that's causing one of the problem.
Also androidphan patch is meant for yuyv cameras. if ur camera is jpeg or other, it wont work. u have to modify the androidphan's patch. Thanks and Regards, HarishKumar.V On Thu, Aug 6, 2009 at 5:51 PM, deepak singal <[email protected]> wrote: > Hi all, > > I'm trying the Androidphan patch on my beagle board. > I'm using android kernel 2.6.29. > I use USB HP Webcam. > /********* Kernel msg **********/ > usb 1-1.2: new full speed USB device using musb_hdrc and address 6 > usb 1-1.2: configuration #1 chosen from 1 choice > gspca: probing 093a:2460 > pac207: Pixart Sensor ID 0x27 Chips ID 0x00 > pac207: Pixart PAC207BCA Image Processor and Control Chip detected (vid/pid > 0x093A:0x2460) > gspca: probe ok > /********************************/ > > bash-3.2# ls -l /dev/video* > crwxrwxrwx root root 81, 0 2000-01-01 04:24 video0 > crw------- root root 81, 1 2000-01-01 05:37 video1 > > change permission of video device in init.rc > chmod 777 /dev/video0 > chmod 777 /dev/video1 > > change resolution to 352x288 and node in CameraHardware.cpp > #define VIDEO_DEVICE "/dev/video1" > #define MIN_WIDTH 352 > #define MIN_HEIGHT 288 > > when i click the camera application, only green colour or some random > dotted pixels coming. > > /************************** LOG MSG **************************************/ > bash-3.2# I/ActivityManager( 954): Starting activity: Intent { > action=android.intent.action.MAIN categories={android.intent} > I/ActivityManager( 954): Start proc com.android.camera for activity > com.android.camera/.Camera: pid=1105 uid=10000 gids={10} > D/dalvikvm( 954): GC freed 5297 objects / 223840 bytes in 172ms > I/WindowManager( 954): Setting rotation to 1, animFlags=0 > I/ARMAssembler( 954): generated > scanline__00000077:03010104_00000004_00000000 [ 22 ipp] (41 ins) at > [0x209ab0:0x209b54] in s > I/WindowManager( 954): Config changed: { scale=1.0 imsi=0/0 locale=en_US > touch=1 key=2/1/2 nav=1 orien=1 } > W/WindowManager( 954): performLayoutAndPlaceSurfacesLocked called while in > layout > W/WindowManager( 954): performLayoutAndPlaceSurfacesLocked called while in > layout > W/WindowManager( 954): performLayoutAndPlaceSurfacesLocked called while in > layout > I/ARMAssembler( 954): generated > scanline__00000077:03545404_00000004_00000000 [ 47 ipp] (67 ins) at > [0x209b58:0x209c64] in s > D/CameraService( 941): Connect E from ICameraClient 0x20c20 > D/CameraService( 941): Client E constructor > D/CameraHardware( 941): PREVIEW SIZE: w=352 h=288 framerate=15 > D/LocationManager( 1105): Constructor: service = > android.location.ilocationmanager$stub$pr...@435d06f8 > E/MediaPlayer( 941): Unable to to create media player > E/CameraService( 941): Failed to load CameraService sounds. > E/MediaPlayer( 941): Unable to to create media player > E/CameraService( 941): Failed to load CameraService sounds. > D/CameraService( 941): Client X constructor > D/CameraService( 941): Connect X > W/HAL ( 1105): load: module=/system/lib/hw/sensors.omap3.soerror=Cannot > find library > W/HAL ( 1105): load: module=/system/lib/hw/sensors.default.soerror=Cannot > find library > D/SensorManager( 1105): found sensor: null, handle=0 > V/ImageManager( 1105): storage state is mounted > W/OrientationEventListener( 1105): Cannot detect sensors. Not enabled > V/ImageManager( 1105): storage state is mounted > V/ImageManager( 1105): storage writable is true > D/StatusBar( 954): updateResources > V/ImageManager( 1105): storage writable is true > D/CameraService( 941): setPreviewDisplay(0x27050) > D/CameraService( 941): getParameters > E/Camera ( 1105): _getParameters: > picture-format=jpeg;picture-size=352x288;preview-format=yuv422sp;preview-frame-rate=15;pr8 > E/Camera ( 1105): setParameters() > D/CameraService( 941): > setParameters(picture-size=352x288;preview-frame-rate=15;preview-size=480x640;picture-format=jpeg;pr) > D/CameraHardware( 941): PREVIEW SIZE: w=480 h=640 framerate=15 > W/IInputConnectionWrapper( 996): showStatusIcon on inactive > InputConnection > I/ActivityManager( 954): Displayed activity com.android.camera/.Camera: > 1266 ms > I/ARMAssembler( 954): generated > scanline__00000077:03515104_00000001_00000000 [ 46 ipp] (65 ins) at > [0x206ca0:0x206da4] in s > D/dalvikvm( 954): GC freed 1795 objects / 104344 bytes in 122ms > > D/dalvikvm( 996): GC freed 730 objects / 30488 bytes in 115ms > E/ALSALib ( 941): > external/alsa-lib/src/pcm/pcm.c:2201:(snd_pcm_open_noupdate) Unknown PCM > AndroidPlayback_Speaker_normal > E/ALSALib ( 941): > external/alsa-lib/src/pcm/pcm.c:2201:(snd_pcm_open_noupdate) Unknown PCM > AndroidPlayback_Speaker > E/ALSALib ( 941): > external/alsa-lib/src/pcm/pcm.c:2201:(snd_pcm_open_noupdate) Unknown PCM > AndroidPlayback > I/AudioHardwareALSA( 941): Initialized ALSA PLAYBACK device default > D/AudioHardwareALSA( 941): Set PLAYBACK PCM format to S16_LE (Signed 16 > bit Little Endian) > D/AudioHardwareALSA( 941): Using 2 channels for PLAYBACK. > D/AudioHardwareALSA( 941): Set PLAYBACK sample rate to 44100 HZ > D/AudioHardwareALSA( 941): Buffer size: 16384 > D/AudioHardwareALSA( 941): Latency: 371519 > E/Camera ( 1105): setParameters() > D/CameraService( 941): > setParameters(picture-size=352x288;preview-frame-rate=15;preview-size=480x640;picture-format=jpeg;jp) > D/CameraHardware( 941): PREVIEW SIZE: w=480 h=640 framerate=15 > D/CameraService( 941): takePicture > E/V4L2Camera( 941): GrabPreviewFrame: VIDIOC_QBUF Failed > D/CameraHardware( 941): Picture Size: Width = 352 Height = 288 > D/CameraHardware( 941): mRawPictureCallback > D/CameraHardware( 941): mJpegPictureCallback > I/V4L2Camera( 941): GrabJpegFrame: Generated a frame from capture device > I/V4L2Camera( 941): JPEG PICTURE WIDTH AND HEIGHT: 352x288 > D/CameraService( 941): postJpeg > D/dalvikvm( 1105): Trying to load lib /system/lib/libexif.so 0x435bd488 > D/dalvikvm( 1105): Added shared lib /system/lib/libexif.so 0x435bd488 > I/VideoPreview( 1105): ar 1.2222222 setting size: 480x392 > D/CameraService( 941): setPreviewDisplay(0x2a4f8) > D/CameraService( 941): getParameters > E/Camera ( 1105): _getParameters: > jpeg-quality=85;picture-format=jpeg;picture-size=352x288;preview-format=yuv422sp;preview-0 > E/Camera ( 1105): setParameters() > D/CameraService( 941): > setParameters(picture-size=352x288;preview-frame-rate=15;preview-size=480x640;picture-format=jpeg;jp) > D/CameraHardware( 941): PREVIEW SIZE: w=480 h=640 framerate=15 > V/ImageManager( 1105): storage state is mounted > V/ImageManager( 1105): storage writable is true > > /************************************************************************************/ > > whether i needs to change anything in v4l2-camera.patch? > Can anybody help me? > > Thanks & Regards > Deepak > > > > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
