Web lists-archives.com

[Spca50x-devs] Problems with LDLC 0x0ac8:0x307b

Hi all,

I am using Ubuntu 8.04 with kernel 2.6.24-17-generic SMP with gspca driver 01.00.20. I have a "Bright 480" camera which is equivalent to a camera recently added to GSPCA:

Release 01.00.19 rc2   
        Add LDLC 0x0ac8:0x307b Thanks Pierre Quelen/Didier Leclerc for the webcam.

dmesg shows the driver is loaded correctly (I am using the options: options gspca force_rgb=1 autoexpo=0 debug=4 GGreen=255 GBlue=255 GRed=255 OffGreen=1 OffBlue=1 OffRed=1 gamma=2 in /etc/modprobe.d/options):
[ 4520.775103] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-generic/media/gspcav1/gspca_core.c: USB GSPCA camera found.(ZC3XX)
[ 4520.779885] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-generic/media/gspcav1/gspca_core.c: data format set to RGB
[ 4520.779924] usbcore: registered new interface driver gspca
[ 4520.779932] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-generic/media/gspcav1/gspca_core.c: gspca driver 01.00.20 registered

However, I couldn't make it work under Ubuntu yet. It works ok under Windows XP. When I try to use gqcam, it shows the controls but nothing on the screen; and if I try to change preferences, stop capturing or even just leaving the program, it freezes. If I use camorama , it simply freezes at start. And when I use camstream, it freezes when I try to change the resolution setting (and no image appears at all).

camstream reports this, before freezing:
  D: No Philips webcam detected, removing extension tab
  D: CCamPanel::SetSize(176x144)
  D: CCamPanel::SetImageSize(176x144)
  D: CCamPanel::SetVisibleSize(176x144)
  D: CCamPanel::SetSize(176x144)
  D: CCamPanel::SetImageSize(176x144)
  D: CCamPanel::SetVisibleSize(176x144)
  >> void CWebCamViewer::RecalcTotalViewSize()
  << void CWebCamViewer::RecalcTotalViewSize()
<< CWebCamViewer::CWebCamViewer(CVideoDevice*, QWidget*, const char*)
D: >> CVideoDevice::IncrementPalette(0)
D: >> CVideoDeviceLinux::StartCapture()
D: CVideoDeviceLinux::SetPalette picked palette 5 [rgb32]
D: >> CVideoDeviceLinux::CreateImagesRGB()
D: << CVideoDeviceLinux::CreateImagesRGB()
D: >> CVideoDeviceLinux::run()...
D: << CVideoDeviceLinux::StartCapture()
D: << CVideoDevice::IncrementPalette()
D: >> CVideoDeviceLinux::SetSize(640x480)
D: >> CVideoDeviceLinux::StopCapture()
D: Waiting for capture thread to stop...

caminfo (from camstream) reports this string: LDLC OV7620+VC302.

camorama reports this:
Name: LDLC OV7620+VC302
Type: 1
    Can capture
Channels: 1
Audios: 0
Maxwidth: 640
Maxheight: 480
Minwidth: 160
Minheight: 120
X: 0
Y: 0
Width: 320
Height: 240
Chromakey: 0
Flags: 0
Brightness:    32768 (128)
Hue:        0 (0)
Color:        0 (0)
Contrast:    32768 (128)
Whiteness:    0 (0)
Depth:        24
Palette:    4 - RGB24

On dmesg, after trying the camera with there programs, there are lots of warnings:

[45216.855059] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-generic/media/gspcav1/gspca_core.c: VIDIOCMCAPTURE: invalid format (7)
[45221.370469] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-generic/media/gspcav1/gspca_core.c: VIDIOCMCAPTURE: invalid format (9)
[45229.286227] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-generic/media/gspcav1/gspca_core.c: VIDIOCMCAPTURE: invalid format (1)
[45229.286720] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-generic/media/gspcav1/gspca_core.c: VIDIOCMCAPTURE: invalid format (13)

Can you tell me what could be going wrong? This is a cheap webcam I bought recently, hope I can make it work under Ubuntu since I don't use windows at all.
Thanks and congratulations for the nice job,

Patola / Cláudio
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
Spca50x-devs mailing list