Web lists-archives.com

Re: [Spca50x-devs] Device with ID 0ac8:0302 does not work




> It seem the problem is found.
> ehci_hcd is usb 2.0 device driver and dsb-c320 is usb 1.1 device.
> 
> modprobe -r ehci_hcd  
> solves the problem.
> 
> Related discussion is here 
> http://www.mail-archive.com/linux-usb-users@xxxxxxxxxxxxxxxxxxxxx/msg16742.html

Sergey, Thanks for your feedback. You can use another (not ehci-hub sense) workaround.
See attached patch. Your problem, in my point view, it is not correct sensor detection through ehci work.
I can't reproduce absolutely exact situation on my USB2.0 hub and USB1.1 webcam for final tests 
because my current webcam not use probeSensors procedure.

After patch&compile gspcav1-20070110 driver should be load with parameter force_sensor_id
In your case it is "modprobe gspca force_sensor_id=21"

> 
> Sergey Gulyaevsky
> serggg@xxxxxxxxxx
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Spca50x-devs mailing list
> Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/spca50x-devs
> 

-- 
Regards,
Serge A. Suchkov
--
In Ohio, if you ignore an orator on Decoration day to such an extent as
to publicly play croquet or pitch horseshoes within one mile of the
speaker's stand, you can be fined $25.00.
diff -u -r -N Orig/gspcav1-20070110/gspca_core.c gspcav1-20070110/gspca_core.c
--- Orig/gspcav1-20070110/gspca_core.c	2007-01-11 00:22:01.000000000 +0300
+++ gspcav1-20070110/gspca_core.c	2007-01-22 15:18:36.000000000 +0300
@@ -102,6 +102,8 @@
 static int RegValue = 0;
 static int RegStrobe = 0;
 #endif
+/* force sensor id*/
+static int force_sensor_id=-1;
 module_param(autoexpo, int, 0644);
 module_param(debug, int, 0644);
 module_param(force_rgb, int, 0644);
@@ -122,6 +124,8 @@
 module_param(RegValue, int, 0644);
 module_param(RegStrobe, int, 0644);
 #endif
+module_param(force_sensor_id, int, 0644);
+
 MODULE_PARM_DESC(autoexpo,
 		 "Enable/Disable auto exposure (default=1: enabled) (PC-CAM 600/Zc03xx/spca561a/Etoms Only !!!)");
 MODULE_PARM_DESC(debug,
@@ -145,6 +149,7 @@
 MODULE_PARM_DESC(RegStrobe,
 		 "Strobe to read or write a register 1=write, 2=read");
 #endif				/* SPCA5XX_ENABLE_REGISTERPLAY */
+MODULE_PARM_DESC(force_sensor_id, "Force assign sensor ID (DEBUG ONLY!!!)");
 /****************/
 MODULE_AUTHOR
     ("Michel Xhaard <mxhaard@xxxxxxxxxxxxxxxxxxxxx> based on spca50x driver by Joel Crisp <cydergoth@xxxxxxxxxxxxxxxxxxxxx>,ov511 driver by Mark McClelland <mwm@xxxx>");
diff -u -r -N Orig/gspcav1-20070110/Vimicro/zc3xx.h gspcav1-20070110/Vimicro/zc3xx.h
--- Orig/gspcav1-20070110/Vimicro/zc3xx.h	2006-09-30 16:25:02.000000000 +0400
+++ gspcav1-20070110/Vimicro/zc3xx.h	2007-01-22 15:20:19.000000000 +0300
@@ -515,8 +515,12 @@
     PDEBUG(0, "Sensor ID:%d",spca50x->sensor);
 
     sensor = zcxx_probeSensor(spca50x);
-    
-    switch (sensor) {
+     /* Force assign sensor id */
+    if(force_sensor_id != -1) {
+         PDEBUG(0, "ATTENTION!: Force assign sensor ID to  %d ", force_sensor_id);
+ 	spca50x->sensor = force_sensor_id;
+ 	set_zc3xxVGA(spca50x);
+       } else switch (sensor) {
     case -1:
          if(spca50x->sensor == SENSOR_TAS5130C_VF0250) {
             PDEBUG(0, "Find Sensor Tas5130 (VF0250)");
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs