Add support for sq905 based cameras to gspca
PATCH v3 1/1 Add support for sq905 based cameras to gspca
Add initial support for cameras based on the SQ Technologies SQ-905 chipset (USB ID 2770:9120) to V4L2 using the gspca infrastructure. Currently only supports one resolution and doesn't attempt to inform libv4l what image flipping options are needed.
---
This version adds locking around the USB operations and hopefully incorporates all suggested changes that I haven't posted a reason for not implementing. Also increased the data timeout as Theodore found some cameras misbehaved otherwise, especially if streaming from 2 cameras simultaneously.
---
linux/drivers/media/video/gspca/Kconfig +9 -0
@@ -176,6 +176,15 @@ config USB_GSPCA_SPCA561 To compile this driver as a module, choose M here: the module will be called gspca_spca561. +config USB_GSPCA_SQ905 + tristate "SQ Technologies SQ905 based USB Camera Driver" + depends on VIDEO_V4L2 && USB_GSPCA + help + Say Y here if you want support for cameras based on the SQ905 chip. + + To compile this driver as a module, choose M here: the + module will be called gspca_sq905. + config USB_GSPCA_STK014 tristate "Syntek DV4000 (STK014) USB Camera Driver" depends on VIDEO_V4L2 && USB_GSPCA
linux/drivers/media/video/gspca/Makefile +2 -0
@@ -16,6 +16,7 @@ obj-$(CONFIG_USB_GSPCA_SPCA506) += gspc obj-$(CONFIG_USB_GSPCA_SPCA506) += gspca_spca506.o obj-$(CONFIG_USB_GSPCA_SPCA508) += gspca_spca508.o obj-$(CONFIG_USB_GSPCA_SPCA561) += gspca_spca561.o +obj-$(CONFIG_USB_GSPCA_SQ905) += gspca_sq905.o obj-$(CONFIG_USB_GSPCA_SUNPLUS) += gspca_sunplus.o obj-$(CONFIG_USB_GSPCA_STK014) += gspca_stk014.o obj-$(CONFIG_USB_GSPCA_T613) += gspca_t613.o
@@ -41,6 +42,7 @@ gspca_spca506-objs := spca506.o gspca_spca506-objs := spca506.o gspca_spca508-objs := spca508.o gspca_spca561-objs := spca561.o +gspca_sq905-objs := sq905.o gspca_stk014-objs := stk014.o gspca_sunplus-objs := sunplus.o gspca_t613-objs := t613.o
linux/drivers/media/video/gspca/sq905.c new file +438 -0
438 lines not on this page · raw message
Jean-Francois Moine
AppliedQuoted 4 lines · On Fri, 6 Feb 2009 18:04:36 +0000 Adam Baker <[email protected]> wrote:
Add initial support for cameras based on the SQ Technologies SQ-905 chipset (USB ID 2770:9120) to V4L2 using the gspca infrastructure. Currently only supports one resolution and doesn't attempt to inform libv4l what image flipping options are needed.
Applied.
As you did not add the supported webcam (Argus Digital Camera DC1512) to
linux/Documentation/video4linux/gspca.txt,
I had a look at the ms-win driver, and this one also supports the webcam 2770:9130 (TCG 501). May I (or you) add it in the sq905's device_table?
Signature · 2 lines
Ken ar c'hentañ | ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/
Quoted 8 lines · Jean-Francois Moine
Quoted 4 lines · On Fri, 6 Feb 2009 18:04:36 +0000 Adam Baker <[email protected]> wrote:
Add initial support for cameras based on the SQ Technologies SQ-905 chipset (USB ID 2770:9120) to V4L2 using the gspca infrastructure. Currently only supports one resolution and doesn't attempt to inform libv4l what image flipping options are needed.
Quoted 7 lines
Applied.
As you did not add the supported webcam (Argus Digital Camera DC1512) to
linux/Documentation/video4linux/gspca.txt,
I had a look at the ms-win driver, and this one also supports the webcam 2770:9130 (TCG 501). May I (or you) add it in the sq905'sdevice_table?
Jean-Francois,
I am aware that it says this in the inf file for the win driver for these cameras, but in all of these years I have never seen any 0x2770:0x9130 device in the wild. As far as I know there really is no such thing, or they put the number in there thinking it was going to be used for some chip that never got produced, or something like that. As to the specific camera that you mention, the Argus DC-1512, I have owned one of them for years, and I have used it as recently as yesterday evening for testing the gspca driver. I assure you, it comes up as Product 0x9120 and works just fine.
If you want a list of the cameras that I know will work, then a good place to start would be the list in libgphoto2/camlibs/sq905/library.c. The exception is that a camera which is listed there which has a product number 0x913C and I can personaly report that, so far, I have been unable to cause it to stream. It might be that, with this timing issue fixed, it can now do so. But it is a pretty messed up camera anyway. See the README about it.
Understand, too, that there are lots of these cameras out there that I do not even know about. The SQ905 for a while was practically *the* chip to put in cameras. But AFAIK they are all the same inside, except for minor details.
Theodore Kilgore
Just in case that my "signed off by" needs to be endorsed, I hereby endorse it.
Theodore Kilgore