summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca/sonixb.c
AgeCommit message (Collapse)Author
2009-01-01gspca - all subdrivers: Return ret instead of -1 in sd_mod_init.Jean-Francois Moine
From: Alexey Klimov <klimov.linux@gmail.com> Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2009-01-01gspca - all subdrivers: Fix CodingStyle in sd_mod_init function.Jean-Francois Moine
From: Alexey Klimov <klimov.linux@gmail.com> Introduce int ret and check it value after call to usb_register(). Priority: normal Signed-off-by: Alexey Klimov <klimov.linux@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-12-31gspca - main and many subdrivers: Remove the epaddr variable.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> The transfer endpoint address is now automatically chosen. Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-12-29gspca - many subdrivers: Set 'const' the pixel format table.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-11-10gspca: Remove empty lines in traces.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-11-07gspca: Let gspca handle the webcam 0c45:602c instead of sn9c102.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> According to http://bugzilla.kernel.org/show_bug.cgi?id=11920, the driver sn9c102 does not work for this webcam. Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-10-22gspca: Adjust autoexpo values for cams with a vga sensor in sonixb.Jean-Francois Moine
From: Hans de Goede <hdegoede@redhat.com> - This patch makes sonixb.c strife to different values during autoexposure for sif versus vga sensors. Priority: normal Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-09-20gspca: Return error code from stream start functions.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> Priority: normal Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-09-04v4l-dvb: fix assorted sparse warningsHans Verkuil
From: Hans Verkuil <hverkuil@xs4all.nl> Fix sparse warnings. None are serious, but cutting down on these helps find future serious sparse warnings/errors. Redid the av7710.c patch based on a suggestion by Oliver Endriss. Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
2008-09-02gspca: Adjust hstart for sn9c103/ov7630 and update usb-id's.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> - Adjust hstart in ov7630 on sn9c103 initdata to shift bayer pattern, this is the same change as done for the other initdata tables in a previous patch. - Assign usb-id's for the ov7630 + sn9c103 to gspca if gspca and sn9c102 drivers are both enabled. Priority: high Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-08-31gspca: Fix dark room problem with sonixb.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> When using the sonixb driver in a dark room and given that the autoexposure algorithm starts with a setting most suitable for daylight, the picture produced by the cam may actually be 100% black leading to a avg_lum value of 0, so an avg_lum value of 0 does not always signal an exposure settings change (which it normally does). This patch adds a check for the really black image case and stops dropping all frames as invalid in this case. Priority: high Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-08-30gspca: Move the Sonix webcams with TAS5110C1B from sn9c102 to gspca.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> This patch makes gspca claim the USB-ID for sn9c101/2 cams with a TAS5110C1B sensor even if both gspca and sn9c102 are enabled, as these cams are much better supported under gspca (and extensively tested with gspca). It also removes an usb-id from sn9c102 for one more unsupported bridge sensor combo. Priority: high Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-08-30gspca: Support for vga modes with sif sensors in sonixb.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> - Add documentation for some known registers - Add support for vga modes (320x240, 160x120) for sif sensors - Remove F_RAW sensor flag raw mode should work on any sensor as its a bridge only thing and keeping the flag was becoming awkward. - Fixup ov6650 and pas106 auto exposure window settings Priority: high Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-08-29gspca: Same pixfmt as the sn9c102 driver and raw Bayer added in sonixb.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> 1) Lower the hstart setting for all sensor by 1 so that we generate (compressed) BGGR data just like sn9c102 does (instead of GBRG data) 2) Add support for raw bayer output in the lowest resolutions (not enough bandwidth for higher resolutions), this should work with all sensors but to be sure only enable it for sensors where it has been tested. Priority: high Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-08-29gspca: Have a bigger buffer for sn9c10x compressed images.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> Under certain conditions sonixb compressed frame size can get bigger then the uncompressed size (seen with 0c45:6028), so make the buffers slightly bigger. Priority: high Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-08-29gspca: Cleanup the sonixb code.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> -the usb-id table caried several flags which were not usb-id specific but sensor specific, add a sensor_data array and move these flag there -fr_h_sz was being abused to store and check which bridge was being used instead add a bridge member to the sd struct -now that we have a sensor_data table use that to store pointers to init_sequences instead of using switch cases on sd->sensor Priority: high Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-08-28gspca: Resolve webcam conflicts between some drivers.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> -remove USB-id's from zc0301 for cams for which zc0301.c does not support the sensor -remove USB-id's from sn9c102 for cams where sn9c102 does not support the bridge sensor combination -no longer make inclusion of usb id's removed from zc0301 and sn9c102 conditional in gspca -fix conditional inclusion of USB-id's in gspca to also work when the conflicting drivers are build as a module -add a number of USB-id's to gspca from various windows .inf files: 0c45:608f from generic sonix sn9c103 inf file (+ ov7630 which we support) 041e:4022 from creative webcam nx pro, same as already supported 041e:401e 0ac8:0301 from generic zc0301 driver which supports many sensors 10fd:804d from typhoon webshot driver (also FlyCAM-USB 300 plus) Priority: high Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-08-27gspca: Move some probe code to the new init function.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> Priority: high Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-08-27gspca: Have a clean kmalloc-ated buffer for USB exchanges.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> The USB buffer may be used for DMA and there may be a caching problem if the buffer is part of the device structure. Thanks to Alan Stern. Priority: high Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-08-26gspca: Change some subdriver functions for suspend/resume.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> - new function 'init' called on probe and resume - remove the functions 'open' and 'closed' - 'stopN' and 'stop0' are optional Priority: high Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-08-24gspca: LED and proble changes in sonixb.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> - turn the led of the cam off after plugging in the cam - move the probe code from open to config, so that if the probe fails we never register Priority: high Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-08-24gspca: Set disabled ctrls and fix a register pb with ovxxxx in sonixb.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> - set some controls as disabled instead of copying the device descr. - in the ov6650 / 7650 exposure code clamp reg 11 before (instead of after) using it to calculate reg 10. - disable brightness (instead of ignoring it) for the TAS5110. Priority: high Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-08-21gspca: suspend/resume added.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> Priority: high Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-30gspca: Don't use CONFIG_VIDEO_ADV_DEBUG as a compile option.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> This option is changed to GSPCA_DEBUG and it is set by default in gspca.h. Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-27gspca: Webcams with Sonix bridge and sensor ov7630 are VGA.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> This fixes a bug introduced in c503a6f8332a (thanks to Hans de Goede). Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-26gspca: Set the specific per webcam information in driver_info for sonixb.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-26merge: http://linuxtv.org/hg/~hgoede/v4l-dvb/Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2008-07-23gspca_sonixb remove one more no longer needed special case from the codehans@localhost.localdomain
From: Hans de Goede <j.w.r.degoede@hhs.nl> gspca_sonixb remove one more no longer needed special case from the code Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
2008-07-22gspca_sonixb remove some no longer needed sn9c103+ov7630 special caseshans@localhost.localdomain
From: Andoni Zubimendi <andoni.zubimendi@gmail.com> gspca_sonixb remove some no longer needed sn9c103+ov7630 special cases Signed-off-by: Andoni Zubimendi <andoni.zubimendi@gmail.com> Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
2008-07-22gspca_sonixb remove non working ovXXXX contrast, hue and saturation ctrlshans@localhost.localdomain
From: Hans de Goede <j.w.r.degoede@hhs.nl> gspca_sonixb remove non working ovXXXX contrast, hue and saturation ctrls Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
2008-07-22gspca_sonixb sn9c103 + ov7630 autoexposure and cleanuphans@localhost.localdomain
From: Hans de Goede <j.w.r.degoede@hhs.nl> Andoni Zubimendi has been doing some testing with his sn9c103 cam with ov7630 sensor, and with this patch the exposure setting and autoexposure now work. This patch also removes some special cases in the shared ov6650 / ov7630 code which now are handled the same for both sensors and it adds a new special case which stops us from changing the hsync / vsync polarity settings from their default on the ov7630 (which we were doing as a side-effect of using the ov6650 exposure code for the ov7630). Last this patch removes the superficial difference between the OV7630 and OV7630_3 sensors. Signed-off-by: Andoni Zubimendi <andoni.zubimendi@gmail.com> Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
2008-07-22gspca: Remove the version from the subdrivers.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-17gspca: No conflict of 0c45:6011 with the sn9c102 driver.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> The sn9c102 driver claims to support usb-ID 0x0c45:0x6011, which is a sn9c102 with ov6650 sensor, but the sn9c102 driver does not support the ov6650 sensor (tested). Also the sn9c102 driver claims to support usb-ID 0x0c45:0x603f, which is a sn9c102 with CISVF10 sensor, but the sn9c102 driver does not support the CISVF10 sensor (not tested). Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-17gspca: Hue, saturation and contrast controls added for sn9c10x ovxxxx.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> (does not work with ov6650) Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-17gspca: Small ov6650 fixes.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> 1) Don't change the red and blue pre-gain's from their defaults 2) Actually make the powerline freq ctrl available to userspace Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-17gspca: Webcam 0461:0821 added.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-17gspca: Bad initialization of sn9c102 ov7630.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-17gspca: Light frequency filter / exposure / clean-up for sn9c103 ov7630.Jean-Francois Moine
From: Andoni Zubimendi <andoni.zubimendi@gmail.com> Signed-off-by: Andoni Zubimendi <andoni.zubimendi@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-16gspca: Better code for ov6650 and ov7630.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> sonixb: Common code between ov6650 and ov7630. Fix brightness oscillation with ov6650 sensor. Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-16gspca: Support of powerline frequency for ov6650.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-16gspca: Bad offset of the brightness sum in sn9c103 packets.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-16gspca: Bad check of i2c write to sn9c10x.Jean-Francois Moine
From: Andoni Zubimendi <andoni.zubimendi@gmail.com> Signed-off-by: Andoni Zubimendi <andoni.zubimendi@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-16gspca: Bad initialization of sn9c103 - ov7630.Jean-Francois Moine
From: Andoni Zubimendi <andoni.zubimendi@gmail.com> Signed-off-by: Andoni Zubimendi <andoni.zubimendi@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-15gspca: Perfect exposure for sn9c10x, sensor ov6650.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-15gspca: 352x288 mode fix and source clean-up for Sonix bridges.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> sonixb: Bad initialization of sensor for 352x288 mode. (from Hans de Goede) sonixj: Clean-up source. Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-14gspca: Better gain for bridge sn9c10x - sensor ov6650.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> sonixb: Better gain for ov6650. Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-14gspca: 640x480 for bridge sn9c103 / sensor ov7630.Jean-Francois Moine
From: Andoni Zubimendi <andoni.zubimendi@gmail.com> sonixb: 640x480 mode for sn9c103 - ov7630. Signed-off-by: Andoni Zubimendi <andoni.zubimendi@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-14gspca: Buffers for USB exchanges cannot be in the stack.Jean-Francois Moine
From: Jean-Francois Moine <moinejf@free.fr> gspca: Protect dq_callback() against simultaneous USB exchanges. Temporary buffer for USB exchanges added in the device struct. (all) Use a temporary buffer for all USB exchanges. Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-10gspca: SN9C103 OV7630 fixes in sonixb.Jean-Francois Moine
From: Andoni Zubimendi <andoni.zubimendi@gmail.com> Signed-off-by: Andoni Zubimendi <andoni.zubimendi@gmail.com> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
2008-07-10gspca: Add auto gain/exposure to sonixb and tas5110 / ov6650 sensors.Jean-Francois Moine
From: Hans de Goede <j.w.r.degoede@hhs.nl> sonixb: Do auto gain for tas5110 / ov6650 sensors. pac207: Move the auto_gain function to gspca. gspca: New function gspca_auto_gain_n_exposure(). Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by: Jean-Francois Moine <moinejf@free.fr>