Trust WB-1300N webcam
A message that is not in the archive (sent off-list or not yet received): 001401c93855$9b263d80$d172b880$@nl
Hello Tommy
I forward this mail to the v4l mail list because gspca V1 (spca5xx) is deprecated.
New, gspca V2 (v4l2 interface) is part of the official kernel tree, now. The newest source is included in the linuxtv project (www.linuxtv.org).
Jean-Francois, can you please pick up these changes?
Regards, Thomas
PS: Tommy, subscribe to the v4l mail list to get more infos about the progress with gspca v2.
Quoted 67 lines · Tommy van der Vorst
Hi Michel, Thomas,
I tried to use the Trust WB-1300N webcam with the spca5xx drivers. The device is not on the compatibility list, but is is based on the Pixart PAC207 chip. Unfortunately, this webcam is not recognized by the driver (it has USB ID 145f:013a, according to lsusb). When I read through the source code, I realized that since the chip used is supported (Pixart PAC207) and the chip is also the bridge itself, it might work if I changed the USB vendor/device ID from another PAC207 device to my device’s numbers. I edited a few lines in
spca5xx.cto do that. That didn’t work immediately, since the pac207 driver also seems to check some kind of ‘id’ in the registers of the PAC207. The device was recognized, but it didn’t work with any capture program (and would cause errors to show up in dmesg). After disabling this check (which is probably not the way it should be done…) I loaded the module and things worked great! I now use it as a network camera (it’s connected to a Linksys NSLU2, a small, ARM-based device).My changes are below; I’m not such a hero with Linux source code so I don’t know how to quickly create a patch, but it’s just a few changed lines. It would be great if you could add these to the spca package, so this is another cam to be supported!
Best regards,
Tommy van der Vorst.
*Pac207.h lines 137/138:*
// if (id[0] !=
0x27|| id[1] !=0x00)// return
-ENODEV;Probably change this to something sensible…
*In
spca5xx.cfunction spcaDetectCamera:** *
*Add*
* *
case
0x145f: /* Trust */switch(product) { case 0x013a: spca50x->desc = PAC207; spca50x->bridge =
BRIDGE_PAC207;spca50x->sensor =
SENSOR_PAC207;spca50x->cameratype = PGBRG;
memcpy(&spca50x->funct,&fpac207,sizeof(struct cam_operation));break; } break; }
Quoted 6 lines
}
Also add a
USB_DEVICEwith USB vendor ID 145f and product ID 013a.
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list