Bug 11946 - gspca sonixj module does not work
Summary: gspca sonixj module does not work
Status: CLOSED PATCH_ALREADY_AVAILABLE
Alias: None
Product: v4l-dvb
Classification: Unclassified
Component: webcam (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Jean-Francois Moine
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-03 11:09 UTC by Sandro
Modified: 2009-02-09 09:02 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.27.4
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Sandro 2008-11-03 11:09:44 UTC
Latest working kernel version: 2.6.26-gentoo-r2 + media-video/gspcav1-20071224
Earliest failing kernel version: 2.6.27 (vanilla)
Distribution: Gentoo
Hardware Environment:
Memory Information
  Total RAM  2056336 kB
  Total Swap 4000168 kB

CPU Information
  CPU 01 AuthenticAMD AMD Athlon(tm) 64 Processor 3500+


Software Environment:
Portage 2.2_rc13 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r2-x86_64-AMD_Athlon-tm-_64_Processor_3500+-with-glibc2.2.5
Timestamp of tree: Mon, 03 Nov 2008 17:05:01 +0000
distcc 3.0 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2


Problem Description:
with kernel 2.6.26 and 
gspcav1-20071224 drivers my webcam (Microsoft VX-3000 -  ID 045e:00f5) just
worked fine. With 2.6.27.4 kernel the webcam doesn't work anymore.
On boot dmesg says:
gspca: main v2.2.0 registered
gspca: probing 045e:00f5
sonixj: Sonix chip id: 11
gspca: probe ok
gspca: probing 045e:00f5
gspca: probing 045e:00f5
usbcore: registered new interface driver sonixj
sonixj: registered


Opening camorama dmesg says:
gspca: usb_submit_urb [0] err -28
ohci_hcd 0000:00:02.0: leak ed ffff88007ec35140 (#81) state 2

Steps to reproduce:
install vanilla 2.6.27.4 kernel
boot

Following instruction provided in bug #11496 I've installed libv4l-0.5.3:
LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so camorama

Result: 
libv4l2: error converting / decoding frame data: v4l-convert: error parsing
JPEG
 header: Not a JPG file ?

No video output.

trying with ekiga:
LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so ekiga

Result:
libv4l2: error converting / decoding frame data: v4l-convert: error parsing
JPEG
 header: Not a JPG file ?
[A lot of times]

libv4lconvert: Error decompressing JPEG: fill_nbits error: need 6 more bits
[A lot of times]
Comment 1 Sandro 2008-11-03 11:13:41 UTC
Ive tryed also 2.6.27-gentoo-r2 kernel and following instruction provided in bug # 11496 I've installed a gspca drivers development snapshot (mercurial, 2008-11-03 19:34 CET, gspca-e0b06b01146c.tar.bz2)

Plugging the camera:

usb 2-7: new full speed USB device using ohci_hcd and address 4
usb 2-7: configuration #1 chosen from 1 choice
usb 2-7: SN9C105 PC Camera Controller detected (vid:pid 0x045E:0x00F5)
gspca: main v2.4.0 registered
usb 2-7: No supported image sensor detected for this bridge
usb 2-7: New USB device found, idVendor=045e, idProduct=00f5
usb 2-7: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 2-7: Product: USB camera
gspca: probing 045e:00f5
sonixj: Sonix chip id: 11
videodev: "" has no release callback. Please fix your driver for proper sysfs support, see http://lwn.net/Articles/36850/
gspca: probe ok
gspca: probing 045e:00f5
gspca: probing 045e:00f5
usbcore: registered new interface driver sonixj
sonixj: registered

modinfo gspca_sonixj
filename:       /lib/modules/2.6.27-gentoo-r2/kernel/drivers/media/video/gspca/gspca_sonixj.ko
license:        GPL
description:    GSPCA/SONIX JPEG USB Camera Driver
author:         Michel Xhaard <mxhaard@users.sourceforge.net>
alias:          usb:v0C45p6143d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p613Cd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p613Bd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p6138d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p6130d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p612Ed*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p612Cd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p612Ad*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p6128d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p60FEd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p60FCd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p60FBd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p60ECd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p60C0d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p607Cd*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0C45p6040d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0471p0330d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0471p0328d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0471p0327d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v045Ep00F7d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v045Ep00F5d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0458p702Ed*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0458p7025d*dc*dsc*dp*ic*isc*ip*
depends:        gspca_main
vermagic:       2.6.27-gentoo-r2 mod_unload



modinfo gspca_main
filename:       /lib/modules/2.6.27-gentoo-r2/kernel/drivers/media/video/gspca/gspca_main.ko
license:        GPL
description:    GSPCA USB Camera Driver
author:         Jean-Francois Moine <http://moinejf.free.fr>
depends:
vermagic:       2.6.27-gentoo-r2 mod_unload
parm:           debug:Debug (bit) 0x01:error 0x02:probe 0x04:config 0x08:stream 0x10:frame 0x20:packet 0x40:USBin 0x80:USBout 0x0100: v4l2 (int)

LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so camorama

shows up an error: Could not connect to video device (/dev/video0). Please
check connection.

$ ls -l /dev/video*
lrwxrwxrwx 1 root root 10  3 nov 19:47 /dev/video -> v4l/video0
lrwxrwxrwx 1 root root 10  3 nov 19:47 /dev/video0 -> v4l/video0


dmesg shows:

videodev: "" has no ioctl_ops.
videodev: "" has no ioctl_ops.
videodev: "" has no ioctl_ops.
videodev: "" has no ioctl_ops.
videodev: "" has no ioctl_ops.
videodev: "" has no ioctl_ops.

LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so ekiga

shouws up an error:
Error while opening video device /dev/v4l/video0

A moving logo will be transmitted during calls. Notice that you can always transmit a given image or the moving logo by choosing "Picture" as video plugin and "MovingLogo" or "StaticPicture" as device.


Applying debug procedure:

echo 0x0f > /sys/module/gspca_main/parameters/debug 

unplugging, plugging, dmesg:

usb 2-7: USB disconnect, address 4
gspca: device deleted
gspca: disconnect complete
usb 2-7: new full speed USB device using ohci_hcd and address 5
usb 2-7: configuration #1 chosen from 1 choice
usb 2-7: SN9C105 PC Camera Controller detected (vid:pid 0x045E:0x00F5)
usb 2-7: No supported image sensor detected for this bridge
gspca: probing 045e:00f5
sonixj: Sonix chip id: 11
videodev: "" has no release callback. Please fix your driver for proper sysfs support, see http://lwn.net/Articles/36850/
gspca: probe ok
gspca: probing 045e:00f5
gspca: probing 045e:00f5
usb 2-7: New USB device found, idVendor=045e, idProduct=00f5
usb 2-7: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 2-7: Product: USB camera


echo 0x3f > /sys/module/gspca_main/parameters/debug
LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so camorama
dmesg:

gspca: camorama open
gspca: open done
videodev: "" has no ioctl_ops.
videodev: "" has no ioctl_ops.
gspca: camorama close
gspca: close done

echo 0x3f > /sys/module/gspca_main/parameters/debug
LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so ekiga
dmesg:

gspca: ekiga open
gspca: open done
videodev: "" has no ioctl_ops.
gspca: ekiga close
gspca: close done
gspca: ekiga open
gspca: open done
videodev: "" has no ioctl_ops.
videodev: "" has no ioctl_ops.
gspca: ekiga close
gspca: close done
gspca: ekiga open
gspca: open done
videodev: "" has no ioctl_ops.
gspca: ekiga close
gspca: close done
gspca: ekiga open
gspca: open done
videodev: "" has no ioctl_ops.
videodev: "" has no ioctl_ops.
gspca: ekiga close
gspca: close done
gspca: ekiga open
gspca: open done
videodev: "" has no ioctl_ops.
gspca: ekiga close
gspca: close done
gspca: ekiga open
gspca: open done
videodev: "" has no ioctl_ops.
videodev: "" has no ioctl_ops.
gspca: ekiga close
gspca: close done
gspca: ekiga open
gspca: open done
videodev: "" has no ioctl_ops.
gspca: ekiga close
gspca: close done
gspca: ekiga open
gspca: open done
videodev: "" has no ioctl_ops.
videodev: "" has no ioctl_ops.
gspca: ekiga close
gspca: close done
gspca: ekiga open
gspca: open done
videodev: "" has no ioctl_ops.
videodev: "" has no ioctl_ops.
gspca: ekiga close
gspca: close done
gspca: ekiga open
gspca: open done
videodev: "" has no ioctl_ops.
gspca: ekiga close
gspca: close done
gspca: ekiga open
gspca: open done
videodev: "" has no ioctl_ops.
videodev: "" has no ioctl_ops.
gspca: ekiga close
gspca: close done
Comment 2 Jean-Francois Moine 2008-11-04 23:34:59 UTC
(In reply to comment #0)
    [snip]
> CPU Information
>   CPU 01 AuthenticAMD AMD Athlon(tm) 64 Processor 3500+

Do you have 64 or 32 bits applications?

    [snip]
> Opening camorama dmesg says:
> gspca: usb_submit_urb [0] err -28
> ohci_hcd 0000:00:02.0: leak ed ffff88007ec35140 (#81) state 2

This error means there are other devices on the same USB port.
In this case, the gspca driver tries to use lower bandwidth changing the
altsetting. Do you see these changes setting the gspca debug level to 0x1f?

    [snip]
> Following instruction provided in bug #11496 I've installed libv4l-0.5.3:
> LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so camorama
> 
> Result: 
> libv4l2: error converting / decoding frame data: v4l-convert: error parsing
> JPEG
>  header: Not a JPG file ?
    [snip]

It may be a 64 bits problem.
Comment 3 Jean-Francois Moine 2008-11-04 23:43:20 UTC
(In reply to comment #1)
> Ive tryed also 2.6.27-gentoo-r2 kernel and following instruction provided in
> bug # 11496 I've installed a gspca drivers development snapshot (mercurial,
> 2008-11-03 19:34 CET, gspca-e0b06b01146c.tar.bz2)
> 
> Plugging the camera:
> 
> usb 2-7: new full speed USB device using ohci_hcd and address 4
> usb 2-7: configuration #1 chosen from 1 choice
> usb 2-7: SN9C105 PC Camera Controller detected (vid:pid 0x045E:0x00F5)
> gspca: main v2.4.0 registered
> usb 2-7: No supported image sensor detected for this bridge
> usb 2-7: New USB device found, idVendor=045e, idProduct=00f5
> usb 2-7: New USB device strings: Mfr=0, Product=1, SerialNumber=0
> usb 2-7: Product: USB camera
> gspca: probing 045e:00f5
> sonixj: Sonix chip id: 11
> videodev: "" has no release callback. Please fix your driver for proper sysfs
> support, see http://lwn.net/Articles/36850/
    [snip]
> dmesg shows:
> 
> videodev: "" has no ioctl_ops.
> videodev: "" has no ioctl_ops.
   [snip]

It seems the videodev module is not the right one.

If videodev is compiled in the kernel, you must generate a new kernel with
videodev as a module.

If videodev is a module, it may have been loaded from initrd. Then, you must
rebuild the initrd or do 'rmmod videodev' before plugging the webcam.

If videodev is not loaded before plugging the webcam, this means the
'make install' from the mercurial tree has not been done correctly.
Comment 4 Sandro 2008-11-05 05:50:45 UTC
Following your suggestions I've disabled everything in Device Drivers -> Multimedia devices in the main kernel directory.
Then I've enabled everything in gspca directory.

Plugging the camera:
usb 2-7: new full speed USB device using ohci_hcd and address 3
usb 2-7: configuration #1 chosen from 1 choice
usb 2-7: New USB device found, idVendor=045e, idProduct=00f5
usb 2-7: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 2-7: Product: USB camera
Linux video capture interface: v2.00
sn9c102: V4L2 driver for SN9C1xx PC Camera Controllers v1:1.47pre49
usb 2-7: SN9C105 PC Camera Controller detected (vid:pid 0x045E:0x00F5)
usb 2-7: No supported image sensor detected for this bridge
usbcore: registered new interface driver sn9c102

lsmod |grep video
videodev               35520  2 sn9c102,v4l2_compat_ioctl32
v4l1_compat            15236  1 videodev

there is no /dev/video0 so:

rmmod sn9c102

usbcore: registered new interface driver sn9c102
usbcore: deregistering interface driver sn9c102

modprobe gspca_sonixj
gspca: main v2.4.0 registered
usbcore: registered new interface driver sonixj
sonixj: registered

there is no /dev/video0 so:

echo 0x0f > /sys/module/gspca_main/parameters/debug

unplugging, plugging:
usb 2-7: USB disconnect, address 3
usb 2-7: new full speed USB device using ohci_hcd and address 4
usb 2-7: configuration #1 chosen from 1 choice
usb 2-7: New USB device found, idVendor=045e, idProduct=00f5
usb 2-7: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 2-7: Product: USB camera
sn9c102: V4L2 driver for SN9C1xx PC Camera Controllers v1:1.47pre49
usb 2-7: SN9C105 PC Camera Controller detected (vid:pid 0x045E:0x00F5)
usb 2-7: No supported image sensor detected for this bridge
usbcore: registered new interface driver sn9c102

echo 0x1f > /sys/module/gspca_main/parameters/debug
unplugging, plugging:
usb 2-7: USB disconnect, address 4
usb 2-7: new full speed USB device using ohci_hcd and address 5
usb 2-7: configuration #1 chosen from 1 choice
usb 2-7: SN9C105 PC Camera Controller detected (vid:pid 0x045E:0x00F5)
usb 2-7: No supported image sensor detected for this bridge
usb 2-7: New USB device found, idVendor=045e, idProduct=00f5
usb 2-7: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 2-7: Product: USB camera

Disabling everything else except USB_GSPCA_SONIXJ && VIDEO_CAPTURE_DRIVERS && V4L_USB_DRIVERS && USB && VIDEO_V4L2 && USB_GSPCA && VIDEO_ADV_DEBUG && VIDEO_V4L1_COMPAT

plugging:
usb 2-7: new full speed USB device using ohci_hcd and address 6
usb 2-7: configuration #1 chosen from 1 choice
usb 2-7: New USB device found, idVendor=045e, idProduct=00f5
usb 2-7: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 2-7: Product: USB camera
Linux video capture interface: v2.00
sn9c102: V4L2 driver for SN9C1xx PC Camera Controllers v1:1.47pre49
gspca: main v2.4.0 registered
gspca: probing 045e:00f5
sonixj: Sonix chip id: 11
gspca: probe ok
gspca: probing 045e:00f5
gspca: probing 045e:00f5
usbcore: registered new interface driver sn9c102
usbcore: registered new interface driver sonixj
sonixj: registered

now the device is recognized, /dev/video0 created.

LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so camorama
libv4lconvert: Error decompressing JPEG: unknown huffman code: 0000ffd9
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 1 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 1 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits

 LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so ekiga
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 2 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 1 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits

dmesg:
gspca: usb_submit_urb [0] err -28
ohci_hcd 0000:00:02.0: leak ed ffff88007f87a140 (#81) state 2
gspca: usb_submit_urb [0] err -28
ohci_hcd 0000:00:02.0: leak ed ffff88007f87a190 (#81) state 2

echo 0x1f > /sys/module/gspca_main/parameters/debug
unplugging, plugging:
usb 2-7: USB disconnect, address 6
gspca: device deleted
gspca: disconnect complete
usb 2-7: new full speed USB device using ohci_hcd and address 7
usb 2-7: configuration #1 chosen from 1 choice
gspca: probing 045e:00f5
sonixj: Sonix chip id: 11
gspca: probe ok
gspca: probing 045e:00f5
gspca: probing 045e:00f5
usb 2-7: New USB device found, idVendor=045e, idProduct=00f5
usb 2-7: New USB device strings: Mfr=0, Product=1, SerialNumber=0
usb 2-7: Product: USB camera
gspca: hald-probe-vide open
gspca: open done
gspca: try fmt cap JPEG 10000x10000
gspca: hald-probe-vide close
gspca: close done

LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so camorama

libv4lconvert: Error decompressing JPEG: fill_nbits error: need 1 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 1 more bits
libv4lconvert: Error decompressing JPEG: fill_nbits error: need 3 more bits





dmesg
gspca: camorama open
gspca: open done
gspca: try fmt cap JPEG 48x32
gspca: try fmt cap JPEG 100000x100000
gspca: try fmt cap JPEG 10000x10000
gspca: try fmt cap JPEG 320x240
gspca: try fmt cap JPEG 320x240
gspca: try fmt cap JPEG 320x240
gspca: try fmt cap JPEG 320x240
gspca: try fmt cap JPEG 320x240
gspca: set ctrl [00980900] = 32767
gspca: set ctrl [00980901] = 63
gspca: set ctrl [00980902] = 32
gspca: set ctrl [00980900] = 32512
gspca: set ctrl [00980901] = 63
gspca: set ctrl [00980902] = 32
gspca: set ctrl [00980900] = 32512
gspca: set ctrl [00980901] = 63
gspca: set ctrl [00980902] = 32
gspca: frame alloc frsz: 29390
gspca: reqbufs st:0 c:4
gspca: mmap start:50215000 size:32768
gspca: mmap start:5020d000 size:32768
gspca: mmap start:50205000 size:32768
gspca: mmap start:501fd000 size:32768
gspca: qbuf 0
gspca: qbuf q:1 i:0 o:0
gspca: qbuf 1
gspca: qbuf q:2 i:0 o:0
gspca: qbuf 2
gspca: qbuf q:3 i:0 o:0
gspca: qbuf 3
gspca: qbuf q:0 i:0 o:0
gspca: init transfer alt 9
gspca: use alt 8 ep 0x81
gspca: isoc 32 pkts size 1023 = bsize:32736
gspca: usb_submit_urb [0] err -28
gspca: kill transfer
gspca: init transfer alt 8
gspca: use alt 7 ep 0x81
ohci_hcd 0000:00:02.0: leak ed ffff88007f87a1e0 (#81) state 2
gspca: isoc 32 pkts size 900 = bsize:28800
gspca: stream on OK JPEG 320x240
gspca: dqbuf
gspca: frame complete len:2838 q:0 i:1 o:0
gspca: frame wait q:0 i:1 o:1
gspca: dqbuf 0
gspca: qbuf 0
gspca: qbuf q:1 i:1 o:1
gspca: dqbuf
gspca: frame complete len:2781 q:1 i:2 o:1
gspca: frame wait q:1 i:2 o:2
gspca: dqbuf 1
gspca: qbuf 1
gspca: qbuf q:2 i:2 o:2
gspca: dqbuf
gspca: frame complete len:2781 q:2 i:3 o:2
gspca: frame wait q:2 i:3 o:3
gspca: dqbuf 2
gspca: qbuf 2
gspca: qbuf q:3 i:3 o:3
gspca: dqbuf
gspca: frame complete len:2781 q:3 i:0 o:3
gspca: frame wait q:3 i:0 o:0
gspca: dqbuf 3
gspca: qbuf 3
gspca: qbuf q:0 i:0 o:0
gspca: dqbuf
gspca: frame complete len:2781 q:0 i:1 o:0
gspca: frame wait q:0 i:1 o:1
gspca: dqbuf 0
gspca: qbuf 0
gspca: qbuf q:1 i:1 o:1
gspca: dqbuf
gspca: frame complete len:2781 q:1 i:2 o:1
gspca: frame wait q:1 i:2 o:2
gspca: dqbuf 1
gspca: qbuf 1
gspca: qbuf q:2 i:2 o:2
gspca: dqbuf
gspca: frame complete len:2838 q:2 i:3 o:2
gspca: frame wait q:2 i:3 o:3
gspca: dqbuf 2
gspca: qbuf 2
gspca: qbuf q:3 i:3 o:3
gspca: dqbuf
gspca: frame complete len:2781 q:3 i:0 o:3
gspca: frame wait q:3 i:0 o:0
gspca: dqbuf 3
gspca: qbuf 3
gspca: qbuf q:0 i:0 o:0
gspca: camorama close
gspca: kill transfer
gspca: stream off OK
gspca: frame free
gspca: close done
Comment 5 Sandro 2008-11-05 05:54:54 UTC
Ah,
uname -a
Linux arilinn 2.6.27-gentoo-r2 #3 Wed Nov 5 13:59:15 CET 2008 x86_64 AMD Athlon(tm) 64 Processor 3500+ AuthenticAMD GNU/Linux

everything in user space compiled with:
CFLAGS="-march=athlon64 -O2 -pipe -fno-strict-aliasing"
CXXFLAGS="${CFLAGS}"
pure 64 bit system.
Comment 6 Sandro 2008-11-10 11:59:26 UTC
Any other info / test needed?
Comment 7 Jean-Francois Moine 2009-01-13 03:36:47 UTC
Looking at your trace, it seems that the sn9c102 is still there:

> usb 2-7: new full speed USB device using ohci_hcd and address 6
> usb 2-7: configuration #1 chosen from 1 choice
> usb 2-7: New USB device found, idVendor=045e, idProduct=00f5
> usb 2-7: New USB device strings: Mfr=0, Product=1, SerialNumber=0
> usb 2-7: Product: USB camera
> Linux video capture interface: v2.00
> sn9c102: V4L2 driver for SN9C1xx PC Camera Controllers v1:1.47pre49
> gspca: main v2.4.0 registered
> gspca: probing 045e:00f5
> sonixj: Sonix chip id: 11
> gspca: probe ok
> gspca: probing 045e:00f5
> gspca: probing 045e:00f5
> usbcore: registered new interface driver sn9c102
> usbcore: registered new interface driver sonixj
> sonixj: registered

Now, your webcam is handled only by gspca. May you get the last version of the driver at linuxtv.org and check if it works?
Comment 8 Sandro 2009-01-13 12:11:18 UTC
Ok,actual version from linuxtv.org works fine for me:
gspca # hg identify
110be1ddb768 tip

Tested working with:
ekiga-2.0.12
camorama-0.19 with libv4l-0.5.7

on both kernels:
2.6.27-gentoo-r7 (considered stable)
2.6.29-rc1-00208-ge0b325d (git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git)

Note You need to log in before you can comment on or make changes to this bug.