Re: [Spca50x-devs] spcaview shows black window using gspca-2 0060930 driver (gspca1) on vimicro zc0305 b
- Date: Tue, 31 Oct 2006 12:45:19 +0300
- From: "Serge A. Suchkov" <Serge.A.S@xxxxxxxxx>
- Subject: Re: [Spca50x-devs] spcaview shows black window using gspca-2 0060930 driver (gspca1) on vimicro zc0305 b
В сообщении от 31 октября 2006 11:22 yafrank написал(a):
> Hi,
> My webcam is vimicro zc0305b. I compiled gspcav1-20060925 and
> spcaview-20060828 in my fc5 box(2.6.18-1.2200.fc5 kernel/845gl chipset)
> using gcc-4.1.1 successfully. The gspca driver then loads flawlessly. But
> spcaview only shows a black window no matter how I adjust the brightness,
> contract or color etc. I then tried gspca1 of gspca-20060930 driver with
> the same result. The output of spcaview is as following:
> [test@ltest gspcav1]$ spcaview
> Spcaview version: 1.1.6 date: 28:08:2006 (C) mxhaard@xxxxxxxx
> Initializing SDL.
> SDL initialized.
> bpp 3 format 15
> Using video device /dev/video0.
> Initializing v4l.
> **************** PROBING CAMERA *********************
> Camera found: Generic Zc0305b
> Bridge found: ZC301-2
> Bridge find ZC301-2 number 13
> StreamId: JPEG Camera
> quality 1 autoexpo 1 Timeframe 0 lightfreq 50
> Bridge find ZC301-2 number 13
> Available Resolutions width 640 heigth 480 native
> Available Resolutions width 352 heigth 288 decoded
> Available Resolutions width 320 heigth 240 native *
> Available Resolutions width 176 heigth 144 decoded
> unable to probe size !!
> *****************************************************
> grabbing method default MMAP asked
> VIDIOCGMBUF size 2457616 frames 2 offets[0]=0 offsets[1]=1228808
> VIDIOCGPICT
> brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0
> depth=12 palette=4
> VIDIOCSPICT
> brightness=32768 hue=0 color=0 contrast=32768 whiteness=0
> depth=24 palette=15
>
> The relevent syslog is as following:
> Oct 31 16:12:00 ltest
> kernel: /usr/local/src/media/gspca-20060930/gspcav1/gspca_core.
> c: USB SPCA5XX camera found.(ZC3XX)
> Oct 31 16:12:00 ltest
> kernel: /usr/local/src/media/gspca-20060930/gspcav1/gspca_core.
> c: [spca5xx_probe:3887] Camera type JPEG
> Oct 31 16:12:00 ltest
> kernel: /usr/local/src/media/gspca-20060930/gspcav1/Vimicro/zc3
> xx.h: [zc3xx_config:515] Sensor ID:7
> Oct 31 16:12:01 ltest
> kernel: /usr/local/src/media/gspca-20060930/gspcav1/Vimicro/zc3
> xx.h: [zc3xx_config:525] Find Sensor UNKNOW_0 force Tas5130
> Oct 31 16:12:01 ltest
> kernel: /usr/local/src/media/gspca-20060930/gspcav1/gspca_core.
> c: [spca5xx_getcapability:1164] maxw 640 maxh 480 minw 176 minh 144
> Oct 31 16:12:01 ltest kernel: usbcore: registered new driver gspca
> Oct 31 16:12:01 ltest
> kernel: /usr/local/src/media/gspca-20060930/gspcav1/gspca_core.
> c: gspca driver 01.00.05 registered
>
> I've searched the mailing list and not found any relevent clue about
> zc0305b webcam. Is there anything I did wrong? If more info is needed,
> please just let me know.
> Thanks for your concern.
Looks like same problem as described in letter from "Ernestas V." <ernisv@xxxxxxxxx>
You can try attached patch (for gspcav1-20060925) and force assign sensor id to 22
0) patch&compile gspcav1-20060925 source code
1) insmod gspca force_sensor_id=22
2) connect your webcam
3) start userspace tools for play video
Remember, this action not safe !!!
> Regards
> Frank Wang
--
Regards,
Serge A. Suchkov
--
"In order to make an apple pie from scratch, you must first create the
universe."
-- Carl Sagan, Cosmos
diff -u -r -N ../gspcav1-20060925/gspca_core.c gspcav1-20060925/gspca_core.c
--- ../gspcav1-20060925/gspca_core.c 2006-09-25 16:53:42.000000000 +0400
+++ gspcav1-20060925/gspca_core.c 2006-10-31 11:53:27.000000000 +0300
@@ -100,6 +100,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);
@@ -120,6 +122,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,
@@ -143,6 +147,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 ../gspcav1-20060925/Vimicro/zc3xx.h gspcav1-20060925/Vimicro/zc3xx.h
--- ../gspcav1-20060925/Vimicro/zc3xx.h 2006-09-14 17:56:07.000000000 +0400
+++ gspcav1-20060925/Vimicro/zc3xx.h 2006-10-31 12:23:04.000000000 +0300
@@ -515,10 +515,14 @@
PDEBUG(0, "Sensor ID:%d",spca50x->sensor);
sensor = zcxx_probeSensor(spca50x);
-
- switch (sensor) {
+ /* Force assign sensor id */
+ if(force_sensor_id != -1) {
+ PDEBUG(0, "ATTANTION!: 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_FV0250) {
+ if(spca50x->sensor == SENSOR_TAS5130C_FV0250) {
PDEBUG(0, "Find Sensor Tas5130 (FV0250)");
set_zc3xxVGA(spca50x);
} else {
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs