Web lists-archives.com

Re: [Spca50x-devs] 093a:2468 dealloc error




Le Vendredi 26 Octobre 2007 00:08, Dominik Hensler a écrit :
> On Thu, 2007-10-25 at 22:09 +0200, Thomas Kaiser wrote:
> > Dominik Hensler wrote:
> > > hello,
> > >
> > > I'm having trouble getting a Trust WB-1200P webcam (093a:2468) to work.
> > > The device is recognized, but whenever I run spcaview I get the
> > > following error:
> > >
> > > Using video device /dev/video0.
> > > Initializing v4l.
> > > ERROR opening V4L interface
> > >
> > > : Invalid argument
> > >
> > > the dmesg output:
> > >
> > > gspca_core.c: [spca5xx_open:1940] DEALLOC error on spca50x_init_source
> > >
> > > I've built the driver and the program from the latest sources. I'm
> > > running Fedora 7, Kernel 2.6.22.9-91.fc7. I can post the complete lsusb
> > > output if needed.
> > >
> > > any help would be much appreciated, I have really no idea what I'm
> > > doing wrong
> > >
> > > thanks alot,
> > >
> > > Dominik
> > >
> > >
> > >
> > >
> > > -----------------------------------------------------------------------
> > >-- This SF.net email is sponsored by: Splunk Inc.
> > > Still grepping through log files to find problems?  Stop.
> > > Now Search log events and configuration files using AJAX and a browser.
> > > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > > _______________________________________________
> > > Spca50x-devs mailing list
> > > Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
> > > https://lists.sourceforge.net/lists/listinfo/spca50x-devs
> >
> > Hello Dominik
> >
> > I just tried it on my AMD64 with the newest Ubuntu (Gusty). No problems.
> > Kernel is "Linux AMD64 2.6.22-14-generic"
> >
> > Can you load the module with debug option (debug=5) and send the full
> > log?
> >
> > Thomas
>
> ok, I reloaded the module with debug=5. Don't let the Sonix stuff
> confuse you, there's also another webcam installed on this system.
> Here's the relevant part of the system log:
>
>
> Oct 25 23:26:37 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c:
> [spca5xx_disconnect:4180] Disconnect Kill isoc done Oct 25 23:26:37
> yakisoba kernel: /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c:
> [spca5xx_dealloc:1727] entered dealloc Oct 25 23:26:37 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c:
> [spca5xx_dealloc:1740] buffer memory deallocated Oct 25 23:26:37 yakisoba
> kernel: /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c:
> [spca5xx_dealloc:1743] leaving dealloc Oct 25 23:26:37 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c:
> [spca5xx_disconnect:4197] Disconnect complete Oct 25 23:26:37 yakisoba
> kernel: /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c: driver gspca
> deregistered Oct 25 23:26:47 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c: USB GSPCA camera
> found. (PAC207) Oct 25 23:26:47 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c: [spca5xx_probe:4098]
> Camera type GBRG Oct 25 23:26:47 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c:
> [spca50x_configure:2586] video_register_device succeeded Oct 25 23:26:47
> yakisoba kernel: /home/trustno1/gspcasrc/gspcav1-20070508/Pixart/pac207.h:
> [pac207_config:187] Find Sensor PAC207 Oct 25 23:26:47 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/utils/spcausb.h:
> [sonixRegWrite:198] reg write: 0x41, 0x00,0x00, 0x41 Oct 25 23:26:47
> yakisoba kernel: /home/trustno1/gspcasrc/gspcav1-20070508/utils/spcausb.h:
> [sonixRegWrite:198] reg write: 0x41, 0x00,0x00, 0x0F Oct 25 23:26:47
> yakisoba kernel: /home/trustno1/gspcasrc/gspcav1-20070508/utils/spcausb.h:
> [sonixRegWrite:198] reg write: 0x41, 0x00,0x30, 0x11 Oct 25 23:26:47
> yakisoba kernel: /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c:
> [spca5xx_getcapability:1215] maxw 352 maxh 288 minw 160 minh 120 Oct 25
> 23:26:47 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c:
> [spca50x_configure:2603] Spca5xx Configure done !! Oct 25 23:26:47 yakisoba
> kernel: /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c:
> [spca5xx_probe:4127] setting video device = eade3000, spca50x = eaecc000
> Oct 25 23:26:47 yakisoba kernel: usbcore: registered new interface driver
> gspca Oct 25 23:26:47 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c: gspca driver
> 01.00.18 registered Oct 25 23:27:25 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c: [spca5xx_open:1925]
> opening Oct 25 23:27:25 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c: [spca50x_alloc:1681]
> entered Oct 25 23:27:25 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c: [spca50x_alloc:1701]
> frame[0] @ f92ab000 Oct 25 23:27:25 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c: [spca50x_alloc:1701]
> frame[1] @ f93d7008 Oct 25 23:27:25 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c: [spca50x_alloc:1707]
> leaving Oct 25 23:27:25 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/utils/spcausb.h:
> [sonixRegWrite:198] reg write: 0x41, 0x00,0x00, 0x41 Oct 25 23:27:25
> yakisoba kernel: /home/trustno1/gspcasrc/gspcav1-20070508/utils/spcausb.h:
> [sonixRegRead:162] reg read: 0xC1, 0x00, 0x00, 0x00: 0x0002 Oct 25 23:27:25
> yakisoba kernel: /home/trustno1/gspcasrc/gspcav1-20070508/utils/spcausb.h:
> [sonixRegRead:162] reg read: 0xC1, 0x00, 0x00, 0x01: 0x0078 Oct 25 23:27:25
> yakisoba kernel: /home/trustno1/gspcasrc/gspcav1-20070508/Pixart/pac207.h:
> [pac207_init:136]  Pixart Sensor ID 0x27 Chips ID 0x08 !! Oct 25 23:27:25
> yakisoba kernel:
> Oct 25 23:27:25 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c: [spca5xx_open:1940]
> DEALLOC error on spca50x_init_source Oct 25 23:27:25 yakisoba kernel:
> Oct 25 23:27:25 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c:
> [spca5xx_dealloc:1727] entered dealloc Oct 25 23:27:25 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c:
> [spca5xx_dealloc:1740] buffer memory deallocated Oct 25 23:27:25 yakisoba
> kernel: /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c:
> [spca5xx_dealloc:1743] leaving dealloc Oct 25 23:27:25 yakisoba kernel:
> /home/trustno1/gspcasrc/gspcav1-20070508/gspca_core.c: [spca5xx_open:1969]
> Open failed
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Spca50x-devs mailing list
> Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/spca50x-devs
You need to change the pac207.h near line 137 - 138
    if (id[0] != 0x27 || id[1] != 0x00)
	return -ENODEV;
to:
    if (id[0] != 0x27 || id[1] != 0x08)
	return -ENODEV;
please feedvback here if that works for you
regards
-- 
Michel Xhaard
http://mxhaard.free.fr

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs