0ac8:307b test gspcav2-0.0.25

jmarco <[email protected]>
Newsgroups gmane.linux.drivers.spca50x.devel
Message-ID <[email protected]>
Bonsoir, Jean-françois:

je reviens sur gspcav2 cette fois avec la nouvelle version gspcav2-0.0.25,

  # rmmod gspca
  # cd /usr/src/modules/gspcav1-20071224/
  # make uninstall
  # copie de gspcav2-0.0.25.tar.gz dans /usr/src/modules/
  # cd /usr/src/modules/
  # tar xzvf gspcav2-0.0.25.tar.gz
  # cd gspcav2-0.0.25/
  # make -f Makefile.standalone
  # cp *.ko /lib/modules/2.6.18-6-686/kernel/drivers/usb/media/
  # depmod -ae
  # modprobe videodev

  reboot

  # modprobe gspca_zc3xx
  # modprobe gspca_main

  # luvcview -d /dev/video0
luvcview version 0.2.1
Video driver: x11
A window manager is available
video /dev/video0
----> ecran noir , xkill pour fermer luvcview

  # dmesg | tail -30
v4l2 ioctl VIDIOC_QUERYBUF, dir=rw (0xc0445609)
gspca main driver: 00:01:17.00856865 index=0, type=video-cap,
bytesused=0, flags=0x00000003, field=1, sequence=1, memory=mmap,
offset/userptr=0x00000000
v4l2 ioctl VIDIOC_STREAMON, dir=-w (0x40045612)
gspca main driver: type=video-cap
v4l2 ioctl VIDIOC_QUERYCAP, dir=r- (0x80685600)
gspca main driver: driver=zc3xx, card=Ldlc VC302+Ov7620,
bus=0000:00:07.2, version=0x00000019, capabilities=0x05000001
v4l2 ioctl VIDIOC_S_FMT, dir=rw (0xc0cc5605)
gspca main driver: type=video-cap
v4l2 ioctl VIDIOC_S_PARM, dir=rw (0xc0cc5616)
gspca main driver: type=1
v4l2 ioctl VIDIOC_REQBUFS, dir=rw (0xc0145608)
gspca main driver: count=4, type=video-cap, memory=mmap
v4l2 ioctl VIDIOC_QUERYBUF, dir=rw (0xc0445609)
gspca main driver: 00:01:17.00856865 index=0, type=video-cap,
bytesused=0, flags=0x00000000, field=1, sequence=1, memory=mmap,
offset/userptr=0x00000000
v4l2 ioctl VIDIOC_QUERYBUF, dir=rw (0xc0445609)
gspca main driver: 00:00:00.00000000 index=1, type=video-cap,
bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap,
offset/userptr=0x00006000
v4l2 ioctl VIDIOC_QUERYBUF, dir=rw (0xc0445609)
gspca main driver: 00:00:00.00000000 index=2, type=video-cap,
bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap,
offset/userptr=0x0000c000
v4l2 ioctl VIDIOC_QUERYBUF, dir=rw (0xc0445609)
gspca main driver: 00:00:00.00000000 index=3, type=video-cap,
bytesused=0, flags=0x00000000, field=1, sequence=0, memory=mmap,
offset/userptr=0x00012000
v4l2 ioctl VIDIOC_QBUF, dir=rw (0xc044560f)
gspca main driver: 00:00:00.00000000 index=0, type=video-cap,
bytesused=0, flags=0x00000002, field=0, sequence=0, memory=mmap,
offset/userptr=0x00000000
v4l2 ioctl VIDIOC_QBUF, dir=rw (0xc044560f)
gspca main driver: 00:00:00.00000000 index=1, type=video-cap,
bytesused=0, flags=0x00000002, field=0, sequence=0, memory=mmap,
offset/userptr=0x00000000
v4l2 ioctl VIDIOC_QBUF, dir=rw (0xc044560f)
gspca main driver: 00:00:00.00000000 index=2, type=video-cap,
bytesused=0, flags=0x00000002, field=0, sequence=0, memory=mmap,
offset/userptr=0x00000000
v4l2 ioctl VIDIOC_QBUF, dir=rw (0xc044560f)
gspca main driver: 00:00:00.00000000 index=3, type=video-cap,
bytesused=0, flags=0x00000002, field=0, sequence=0, memory=mmap,
offset/userptr=0x00000000
v4l2 ioctl VIDIOC_STREAMON, dir=-w (0x40045612)
gspca main driver: type=video-cap

  # echo 0xff > /sys/module/gspca_main/parameters/debug

   unplug and plug again the webcam

  # tail /var/log/messages
Apr 10 23:33:31 localhost kernel: gspca: ISOC data error: [10] len=0,
status=-18
Apr 10 23:33:31 localhost kernel: gspca: ISOC data error: [11] len=0,
status=-18
Apr 10 23:33:31 localhost kernel: gspca: ISOC data error: [12] len=0,
status=-18
Apr 10 23:33:31 localhost kernel: gspca: ISOC data error: [13] len=0,
status=-18
Apr 10 23:33:31 localhost kernel: gspca: ISOC data error: [14] len=0,
status=-18
Apr 10 23:33:31 localhost kernel: gspca: ISOC data error: [15] len=0,
status=-18
Apr 10 23:33:31 localhost kernel: gspca: ISOC data error: [16] len=0,
status=-18
Apr 10 23:33:31 localhost kernel: gspca: ISOC data error: [17] len=0,
status=-18
Apr 10 23:33:31 localhost kernel: gspca: usb_submit_urb() ret -19
Apr 10 23:33:31 localhost kernel: gspca: kill transfer

  # lsmod
gspca_zc3xx            79104  0
gspca_main             18912  3 gspca_zc3xx
videodev               21120  3 gspca_main
v4l1_compat            12036  1 videodev
v4l2_common            20448  1 videodev
usbcore               112644  9
usblp,wacom,gspca_zc3xx,gspca_main,usbhid,usb_storage,ehci_hcd,uhci_hcd

je relance luvcview mais rien, donc je reboot,

  # luvcview -d /dev/video0
luvcview version 0.2.1
Video driver: x11
A window manager is available
video /dev/video0
----> ecran noir , xkill pour fermer luvcview

  # dmesg
...
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
... (une grande colonne)

# tail /var/log/messages
Apr 10 23:48:27 localhost kernel: v4l2 ioctl VIDIOC_QUERYBUF, dir=rw 
(0xc0445609 )
Apr 10 23:48:27 localhost last message repeated 3 times
Apr 10 23:48:27 localhost kernel: v4l2 ioctl VIDIOC_QBUF, dir=rw 
(0xc044560f)
Apr 10 23:48:27 localhost last message repeated 3 times
Apr 10 23:48:27 localhost kernel: v4l2 ioctl VIDIOC_STREAMON, dir=-w 
(0x40045612 )
Apr 10 23:49:43 localhost kernel: gspca: isoc irq
Apr 10 23:50:14 localhost last message repeated 1716 times
Apr 10 23:51:15 localhost last message repeated 3390 times
Apr 10 23:52:16 localhost last message repeated 3389 times
Apr 10 23:53:17 localhost last message repeated 3389 times

#  luvcview -d /dev/video0 -f jpg -s 640x480
luvcview version 0.2.1
  size width: 640 height: 480
Video driver: x11
A window manager is available
video /dev/video0
Unable to allocate buffers: 16.
  Init v4L2 failed !! exit fatal

# ./grab
width: 640 bytesperline:640 height:480 sizeimage:92160
--> sizeimage: 614400
select timeout

# dmesg | tail -30
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: poll
gspca: closing
gspca: kill transfer
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: isoc irq
gspca: stream off OK
zc3xx: reg read 00a1 0001 0180 -> 42
zc3xx: reg write 00a0 0000 0180
zc3xx: reg write 00a0 0001 0000
gspca: frame free
gspca: closed

#

donc...? j'ai peut-etre fait des erreurs...
bonne nuit,
Jmarc Dufour


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.