History log of /drivers/media/video/gspca/sonixj.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
122804ecb59493fbb4d31b3ba9ac59faaf45276f 15-Jan-2012 Linus Torvalds <torvalds@linux-foundation.org> Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media

* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (655 commits)
[media] revert patch: HDIC HD29L2 DMB-TH USB2.0 reference design driver
mb86a20s: Add a few more register settings at the init seq
mb86a20s: Group registers into the same line
[media] [PATCH] don't reset the delivery system on DTV_CLEAR
[media] [BUG] it913x-fe fix typo error making SNR levels unstable
[media] cx23885: Query the CX25840 during enum_input for status
[media] cx25840: Add support for g_input_status
[media] rc-videomate-m1f.c Rename to match remote controler name
[media] drivers: media: au0828: Fix dependency for VIDEO_AU0828
[media] convert drivers/media/* to use module_platform_driver()
[media] drivers: video: cx231xx: Fix dependency for VIDEO_CX231XX_DVB
[media] Exynos4 JPEG codec v4l2 driver
[media] doc: v4l: selection: choose pixels as units for selection rectangles
[media] v4l: s5p-tv: mixer: fix setup of VP scaling
[media] v4l: s5p-tv: mixer: add support for selection API
[media] v4l: emulate old crop API using extended crop/compose API
[media] doc: v4l: add documentation for selection API
[media] doc: v4l: add binary images for selection API
[media] v4l: add support for selection api
[media] hd29l2: fix review findings
...
41f09322e912fdfbd947d7363dec69cff96adc3d 30-Nov-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Change color control for sensor po2030n

Adjustment of the colors by the po2030n is finer than by the bridge controls.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
b4b0107137913815bc63df96f01cf1225e889ba9 30-Nov-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Bad sensor mode at start time

The 'open-drain' mode was not reset when starting the webcams.
This problem was introduced by commit 0e4d413af1a9d and
its exact effects are unknown.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
6121ca572f1b38dbce79b0366b47dbf2ce305eec 30-Nov-2011 Jean-François Moine <moinejf@free.fr> [media] gspca: Remove the useless variable 'nbalt'

As the alternate settings are now sorted in gspca main,
the variable 'nbalt' is no more useful.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
ecb3b2b35db49778b6d89e3ffd0c400776c20735 18-Nov-2011 Greg Kroah-Hartman <gregkh@suse.de> USB: convert drivers/media/* to use module_usb_driver()

This converts the drivers in drivers/media/* to use the
module_usb_driver() macro which makes the code smaller and a bit
simpler.

Added bonus is that it removes some unneeded kernel log messages about
drivers loading and/or unloading.

Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Luca Risolia <luca.risolia@studio.unibo.it>
Cc: Jean-Francois Moine <moinejf@free.fr>
Cc: Frank Zago <frank@zago.net>
Cc: Olivier Lorin <o.lorin@laposte.net>
Cc: Erik Andren <erik.andren@gmail.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Brian Johnson <brijohn@gmail.com>
Cc: Leandro Costantino <lcostantino@gmail.com>
Cc: Antoine Jacquet <royale@zerezo.com>
Cc: Jarod Wilson <jarod@redhat.com>
Cc: Florian Mickler <florian@mickler.org>
Cc: Antti Palosaari <crope@iki.fi>
Cc: Michael Krufky <mkrufky@kernellabs.com>
Cc: "David Härdeman" <david@hardeman.nu>
Cc: Florent Audebert <florent.audebert@anevia.com>
Cc: Sam Doshi <sam@metal-fish.co.uk>
Cc: Manu Abraham <manu@linuxtv.org>
Cc: Olivier Grenie <olivier.grenie@dibcom.fr>
Cc: Patrick Boettcher <patrick.boettcher@dibcom.fr>
Cc: "Igor M. Liplianin" <liplianin@me.by>
Cc: Derek Kelly <user.vdr@gmail.com>
Cc: Malcolm Priestley <tvboxspy@gmail.com>
Cc: Steven Toth <stoth@kernellabs.com>
Cc: "André Weidemann" <Andre.Weidemann@web.de>
Cc: Martin Wilks <m.wilks@technisat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Jose Alberto Reguero <jareguero@telefonica.net>
Cc: David Henningsson <david.henningsson@canonical.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Joe Perches <joe@perches.com>
Cc: Jesper Juhl <jj@chaosbits.net>
Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Alexey Khoroshilov <khoroshilov@ispras.ru>
Cc: Anssi Hannula <anssi.hannula@iki.fi>
Cc: Rafi Rubin <rafi@seas.upenn.edu>
Cc: Dan Carpenter <error27@gmail.com>
Cc: Paul Bender <pebender@gmail.com>
Cc: Devin Heitmueller <dheitmueller@kernellabs.com>
Cc: "Márcio A Alves" <froooozen@gmail.com>
Cc: Julia Lawall <julia@diku.dk>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Chris Rankin <rankincj@yahoo.com>
Cc: Lee Jones <lee.jones@canonical.com>
Cc: Andy Walls <awalls@md.metrocast.net>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Dean Anderson <linux-dev@sensoray.com>
Cc: Pete Eberlein <pete@sensoray.com>
Cc: Arvydas Sidorenko <asido4@gmail.com>
Cc: Andrea Anacleto <andreaanacleto@libero.it>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
/drivers/media/video/gspca/sonixj.c
b813b0ca1310a0fec2789bd34378492e983a866b 10-Aug-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Cleanup source and remove useless instructions

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
2458df4324b802e51c830e2a7ff851dbe18df9bb 10-Aug-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Increase the exposure for sensor soi768

Lower exposure values give too dark images.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
abe8cee744aa8aa29a2d88b915a17f0c7744aa3a 10-Aug-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Adjust the contrast control

The contrast was too low. Higher values are better.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
822f6e2a9a41d3fea094591bf8cc227e12f5cb8f 09-Aug-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Fix the darkness of sensor om6802 in 320x240

The images are clearer with a lower bridge clock.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
133a9fe949862d9ed8411fb423739f4cee08232d 22-Aug-2011 Joe Perches <joe@perches.com> [media] gspca: Use current logging styles

Add pr_fmt.
Convert usb style logging macros to pr_<level>.
Remove now unused old usb style logging macros.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
d1520c58eb84ad1ec973a257cd835c948215aab5 15-Jul-2011 Luiz Ramos <luizzramos@yahoo.com.br> [media] Fix wrong register mask in gspca/sonixj.c

Hello,

When migrating from Slackware 13.1 to 13.37 (kernel 2.6.33.x to
2.6.37.6), there was some sort of regression with the external webcam
installed at the notebook (0x45:6128, SN9C325+OM6802).

In the version 2.6.37.6, the images got *very* dark, making the webcam
almost unusable, unless if used with direct sunlight.

Tracing back what happened, I concluded that changeset 0e4d413af
caused some sort of odd effects - including this - to this specific model.

Signed-off-by: Luiz Carlos Ramos <lramos.prof@yahoo.com.br>
Acked-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
67e27c741339faedcc8e9c2c613487745d1c4b8b 23-May-2011 Hans Petter Selasky <hselasky@c2i.net> [media] Make nchg variable signed because the code compares this variable against negative values

The sonixj driver compares the value for nchg with:
if (sd->nchg < -6 || sd->nchg >= 12) {

With u8, negative values won't work.

Signed-off-by: Hans Petter Selasky <hselasky@c2i.net>
Acked-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
20c957b360f85c293fbb6bcec9d1ec11b241ef1a 10-Feb-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: The pin S_PWR_DN is inverted for sensor mi0360

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
062909f64981678899a1abbe16a616b0e92fc615 10-Feb-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj, zc3xx: Let some bandwidth for audio when USB 1.1

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
5c95606b1d94a6dc62df0af2bc0d3e0e9a2e6cce 10-Feb-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Set both pins for infrared of mt9v111 webcams

This avoids to define the webcam model.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
336d23ef88fd71564fb07fdc1d1d871f8e1eeadd 10-Feb-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Same init for all bridges but the sn9c102p

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
e6a92a7445cc33bbfe2775eb50473fb43bb3a2da 10-Feb-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Simplify GPIO setting when audio present

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
222036765ccbdb1ff4feef22d8e2fc687a9cdcfd 10-Feb-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Adjust autogain for sensor mt9v111

The gain/expo adjustment was too long.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
804632201f2d749b7cb35fce42fc28552ad595c1 10-Feb-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Fix start sequence of sensor mt9v111

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
b96cfc33e74f5ee5a206b2d43bf0bc3898c5a572 10-Feb-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Update the JPEG quality for best image transfer

During image capture, the filling rate of the isoc packets is computed.
It is then used by a work queue to update the current JPEG quality.

Tested-by: Franck Bourdonnec <fbourdonnec@chez.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
dccdcccdd36bf7570967ff53411c7401b8e645d6 10-Feb-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Have the same JPEG quality for encoding and decoding

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
a4a3076ffcdbcf40358edc2068aa4d9103fe0a28 10-Feb-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Better scanning of isochronous packets

A marker 'ff ff 00 c4 c4 96' indicates an end of frame.
It is 62 bytes long and may be splitted on 2 packets.
It contains a flag 'USB full' which indicates that the frame is truncated.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
0f77f40c300c18c15e7aeb2f9eee510aa96d58fd 10-Feb-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Move the avg lum computation to a separate function

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
a63d601803c2e3ba06ed51b9ed997fc6bf80e5bf 13-Jan-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Add LED (illuminator) control to the webcam 0c45:614a

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
3afef85bfefa65a31f4dbf8e7921c7938adb24f4 13-Jan-2011 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Infrared bug fix and enhancement

The infrared was set by sensor write instead of bridge GPIO.
It is now settable by the standard control ILLUMINATOR_1.
A module parameter permits to set the right GPIO bit according
to the StarCam model.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
95c967c167785eb991cf6b22fb854dd8d61d0ff8 13-Jan-2011 Jean-François Moine <moinejf@free.fr> [media] gspca: Remove __devinit, __devinitconst and __devinitdata

__devinit* must not be used in USB drivers.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
e48d38f7f100f37edc873df1b3a1d15ee3575874 06-Jan-2011 Hans de Goede <hdegoede@redhat.com> [media] gspca_sonixj: Add one more commented out usb-id

While going through windows inf file I found more usb-id, add a comment
with this id for future reference.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
e530a5e3cfe5f2dca35552d2d968f0a3fc115968 06-Jan-2011 Hans de Goede <hdegoede@redhat.com> [media] gspca_sonixj: Probe sensor type independent of bridge type

Looking at the windows inf file, for usb ids with a sensor type where probing
is needed to determine the type (for example ov7630 or soi768), this is
needed for all bridge variants with a usb id indicating this sensor type.

So do the probing to determine the actual sensor type for types where the
usb-id info is not 100% deterministic, independent of the bridge type.

If you look through the list of currently active usb ids in sonixj, this
effectively only changes the code path for 0c45:60fe (sn9c105 + ov7630) and
0c45:612e (sn9c110 + ov7630), which according to the inf file can have a
soi768 instead of a ov7630 just like the sn9c120 + ov7630 models where we
already probe for a soi7630.

The main reason for this code change is to keep the code paths as bridge
variant independent as possible, so that we don't need a lot of special
per bridge cases, as we enable more usb-ids in the future.

This change makes the 0c45:60fe code path identical to the successfully
tested 0c45:613e, so also make sonixj the default driver for 0c45:60fe.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
4944e27d85ed8e5ccd591687546d56d111c5cc98 06-Jan-2011 Hans de Goede <hdegoede@redhat.com> [media] gspca_sonixj: Enable more usb ids when sn9c102 gets compiled too

Both we and the windows driver make no sensor specific differences
(with some exceptions) for different sonixj bridge types. Thus if a
sn9c105 bridge has been successfully tested with a sensor, the same
sensor can be successfully used with a sn9c120 bridge too.

Using this knowledge we can move over most usb-ids too the sonixj
driver when both are compiled.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
aa777a88b2d73f710b86b955e0c738af91e9e452 28-Dec-2010 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Bad clock for om6802 in 640x480

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
a79cc7b9182abb2e3936a26064dec414b417f1d1 29-Oct-2010 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Simplify and clarify the hv7131r probe function

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
0e4d413af1a9ddd12f82617734eb535007e186a8 14-Dec-2010 Jean-Francois Moine <moinejf@free.fr> [media] gspca - sonixj: Better handling of the bridge registers 0x01 and 0x17

The initial values of the registers 0x01 and 0x17 are taken from the sensor
table at capture start and updated according to the flag PDN_INV.

Their values are updated at each step of the capture initialization and
memorized for reuse in capture stop.

This patch also fixed automatically some bad hardcoded values of these
registers.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
4fd350ee2bf129acb933ad5104bc4754b2c7c9ef 14-Dec-2010 Jean-Francois Moine <moinejf@free.fr> [media] gspca - sonixj: Add the bit definitions of the bridge reg 0x01 and 0x17

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
b2272a49e7df37732d73988f00468ce31e1ebc92 14-Dec-2010 Jean-Francois Moine <moinejf@free.fr> [media] gspca - sonixj: Set the flag for some devices

The flag PDN_INV indicates that the sensor pin S_PWR_DN has not the same
value as other webcams with the same sensor. For now, only two webcams have
been so detected: the Microsoft's VX1000 and VX3000.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
c6c14330717f9850b4b4c054b81424b9979cd07d 14-Dec-2010 Jean-Francois Moine <moinejf@free.fr> [media] gspca - sonixj: Add a flag in the driver_info table

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
4f67f3adefadbb056c1ce2c228916701b566e6fc 14-Dec-2010 Jean-Francois Moine <moinejf@free.fr> [media] gspca - sonixj: Fix a bad probe exchange

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
5e68f400aad4e2c29e2531cc4413c459fa88cb62 14-Dec-2010 Jean-Francois Moine <moinejf@free.fr> [media] gspca - sonixj: Move bridge init to sd start

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
780e312175f688ab5ab6124c91d46fa2b9afe2d2 19-Oct-2010 Jean-François Moine <moinejf@free.fr> [media] gspca: Fix coding style issues

The errors were found by checkpatch.pl. Most fixes are:
- remove spaces followed by TAB(s),
- split lines greater than 80 characters,
- move most '{'s from start of line to end of previous line.
(Some '{'s at start of line remain when the '}'s are on the same line)

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
76ad3b684ae6bf43662f8fc57501e4ad0e3b12e8 19-Oct-2010 Németh Márton <nm127@freemail.hu> [media] gspca - sonixj: Add horizontal and vertical flip for po2030n

The PO2030N sensor chip found in hama AC-150 webcam supports horizontal
and vertical flipping the image by hardware.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
ccbc5df21ca0c616c5e47d1e7f58ff5b312e03a7 18-Oct-2010 Németh Márton <nm127@freemail.hu> [media] gspca - sonixj: Remove magic numbers for delay

The number 0xdd is used for marking delay init sequence steps.
Replace 0xdd values only if the meaning is delay.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
75f05ba09f50ef934cf6dbe9bf7460a9618d8e88 21-Oct-2010 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Fix a regression with sensor hv7131r

The bug was introduced by commit d5aa3856fd09ad0ea04619d6cba31192dac08e84
removing the probe sequence of hv7131r with bridge sn9c120 and so, letting
the sensor inactive.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Cc: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
0303a90a744662e934877a5d637a43197229274b 21-Oct-2010 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Fix a regression of sensors hv7131r and mi0360

The bug was introduced by commit 23a98274cc348880ecb6803307c254448084953a
applying values of sensor sp80708 to sensors hv7131r and mi0360.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Cc: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
72b667ebc1e7ed655ddaa8ff9abf84f8b0925d79 02-Oct-2010 Jean-François Moine <moinejf@free.fr> [media] gspca - sonixj: Use the new video control mechanism

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
266815e25522879cf10d4a8677f1589b7b67ee68 01-Oct-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Have 0c45:6130 handled by sonixj instead of sn9c102

The driver sn9c102 does not know about the sensor mi0360b.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
a95bd640e7e5642eca52b946f7a27481980154ac 01-Oct-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Bad detection of the end of image

The 'end of image' block may be splitted between two ISOC packets.
This case was not tested, so, some images could be lost and concatenated
to previous one(s), raising 'frame overflow' errors.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
a067db847335207bd059f5b93bcbbb04910d8a69 01-Oct-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Add sensor mi0360b

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
2856643e2e18f306227ae1257b63fc713d426dc7 01-Oct-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - many subdrivers: Handle the buttons when CONFIG_INPUT=m

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
4bf8b679029127fd84e9bfeb8710723a426e89ad 25-Sep-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Propagate USB errors to higher level

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
2a3b501ffd28b2be355f558479543028ccdead48 13-Sep-2010 Alexander Goncharov <alexzandersss@gmail.com> V4L/DVB: gspca - sonixj: Add webcam 0c45:612b

Signed-off-by: Alexander Goncharov <alexzandersss@gmail.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
860e7f474cb5bd9a691ebde302ac094093a1f5a7 13-Sep-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Webcam 0c45:6102 added

Tested-by: Simon Danner <simon@danner-urloffen.de>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
0b656321f338a2e5e3d9a9bdce959a2d76857967 13-Sep-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - all modules: Display error messages when gspca debug disabled

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
548264375b1c0d51b418bf7ab6d2fec647307ab7 13-Sep-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - all modules: Remove useless module load/unload messages

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
11ce884a0df4487b9f9f9e0605a1f16321637d24 26-Jul-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj / sq930x / t613: Remove unused variable in struct sd

The sensor enum definition was not at the right place.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
19697b546c9bc5b3c44070be1cfc7ce54a97c0d9 14-Jul-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Do the audio input work for webcams with a microphone

The bit 0x04 of the bridge register 02 (GPIO) is used for audio connection
in webcams containing the bridge SN9C105. This patch sets it correctly,
according to the presence of an audio device.

Tested-by: Kyle Baker <kyleabaker@gmail.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
be2a9fae7be36864777e4b66f925d7af11578d99 04-Jun-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca: Remove/move useless inclusions of slab.h

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
c4f95d84b8dedf28adda927561f7e09b1d5ea626 07-May-2010 Warren Bosworth Focke <wbfocke@gmail.com> V4L/DVB: gspca - sonixj: Add webcam 0c45:60ce

Signed-off-by: Warren Bosworth Focke <wbfocke@gmail.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
6804675e3644361b1d509cac5427bab42a0bc6da 07-May-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Add information about some potential JPEG webcams

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
03ed2a11eac62c15be28f58b182003fc56ca4f82 25-Apr-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Add sensor soi768

The webcams 0c45:613e may contain the sensors ov7630 or soi768.
A sensor probe is done at init time when the sensor is declared ov7630.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
e3302cad9bc111e158e03eff763dff36bce02fe6 25-Apr-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Reset the bridge after sensor probe

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
0a85c74b5d48f6cb41770ec3951a582738446b33 25-Apr-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Adjust minor values of sensor ov7630. - set the color gains to null at init time - change value of register 0x9a

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
fff2f708f8838c9be0099d32ed1739e9aa42af6f 25-Apr-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Set the colors at startup time

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
cfd23c8eca3587fcb20f308532293e92d1f248a8 25-Apr-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Adjust debug output. - fix bad function name - add debug info for i2c buffer write

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
bdd2b93c44bf70eac3c5ef7da62355e1e48ee1eb 25-Apr-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Split the init sequence of sensor ov7630

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
c26b12d0646e0f571389a0a990882af3732b26a8 02-Apr-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Add autogain for sensor gc0307

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
73e4934c80338757dca46ffaa30a3443a31043fb 02-Apr-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Let the JPEG header in the device

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
27c6f9e548633f148a45a138f2d6d0e513514172 02-Apr-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca: Change some copyrights and module authors

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
ad98c0f674796848c6fd8fe614ef83ef971ebfcf 18-Mar-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Add webcam 0c45:6142 with sensors gc0307 and po2030n

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
9c33afc6102517764fb5d308dcf49bf42893da2c 17-Mar-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: More static const and better array initialization

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
5a0e3ad6af8660be21ca98a971cd00f331318c05 24-Mar-2010 Tejun Heo <tj@kernel.org> include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h

percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files. percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.

percpu.h -> slab.h dependency is about to be removed. Prepare for
this change by updating users of gfp and slab facilities include those
headers directly instead of assuming availability. As this conversion
needs to touch large number of source files, the following script is
used as the basis of conversion.

http://userweb.kernel.org/~tj/misc/slabh-sweep.py

The script does the followings.

* Scan files for gfp and slab usages and update includes such that
only the necessary includes are there. ie. if only gfp is used,
gfp.h, if slab is used, slab.h.

* When the script inserts a new include, it looks at the include
blocks and try to put the new include such that its order conforms
to its surrounding. It's put in the include block which contains
core kernel includes, in the same order that the rest are ordered -
alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
doesn't seem to be any matching order.

* If the script can't find a place to put a new include (mostly
because the file doesn't have fitting include block), it prints out
an error message indicating which .h file needs to be added to the
file.

The conversion was done in the following steps.

1. The initial automatic conversion of all .c files updated slightly
over 4000 files, deleting around 700 includes and adding ~480 gfp.h
and ~3000 slab.h inclusions. The script emitted errors for ~400
files.

2. Each error was manually checked. Some didn't need the inclusion,
some needed manual addition while adding it to implementation .h or
embedding .c file was more appropriate for others. This step added
inclusions to around 150 files.

3. The script was run again and the output was compared to the edits
from #2 to make sure no file was left behind.

4. Several build tests were done and a couple of problems were fixed.
e.g. lib/decompress_*.c used malloc/free() wrappers around slab
APIs requiring slab.h to be added manually.

5. The script was run on all .h files but without automatically
editing them as sprinkling gfp.h and slab.h inclusions around .h
files could easily lead to inclusion dependency hell. Most gfp.h
inclusion directives were ignored as stuff from gfp.h was usually
wildly available and often used in preprocessor macros. Each
slab.h inclusion directive was examined and added manually as
necessary.

6. percpu.h was updated not to include slab.h.

7. Build test were done on the following configurations and failures
were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
distributed build env didn't work with gcov compiles) and a few
more options had to be turned off depending on archs to make things
build (like ipr on powerpc/64 which failed due to missing writeq).

* x86 and x86_64 UP and SMP allmodconfig and a custom test config.
* powerpc and powerpc64 SMP allmodconfig
* sparc and sparc64 SMP allmodconfig
* ia64 SMP allmodconfig
* s390 SMP allmodconfig
* alpha SMP allmodconfig
* um on x86_64 SMP allmodconfig

8. percpu.h modifications were reverted so that it could be applied as
a separate patch and serve as bisection point.

Given the fact that I had only a couple of failures from tests on step
6, I'm fairly confident about the coverage of this conversion patch.
If there is a breakage, it's likely to be something in one of the arch
headers which should be easily discoverable easily on most builds of
the specific arch.

Signed-off-by: Tejun Heo <tj@kernel.org>
Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
/drivers/media/video/gspca/sonixj.c
9712a8be6b842ba9ffbd1b74a8d9b04c785b8ac1 31-Jan-2010 Hans de Goede <hdegoede@redhat.com> V4L/DVB: gspca_sonixj: Add camera button support

gspca_sonixj: Add camera button support

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
1e5eb1133aac7982dd941b473e23cd396acb2706 18-Feb-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Set the vertical flip at capture start for all sensors

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
f6b22e5e8e93d03046d3878664a9ba375ccded96 18-Feb-2010 Jean-François Moine <moinejf@free.fr> V4L/DVB: gspca - sonixj: Add vertical flip control for sensor hv7131r

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
eac8f5fa5f5dcaf228694fe23e19b02b98e68879 12-Jan-2010 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (13927): gspca - sonixj: Fix bad video mode for all webcams.

The bug was introduced when adding the sensor adcm1700.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
7e64dc4c4d6f5c8935fac25c7fc7aa83f9880ed7 30-Dec-2009 Marton Nemeth <nm127@freemail.hu> V4L/DVB (13899): gspca - all subdrivers: Make control descriptors constant.

The ctrls field of struct sd_desc is declared as const
in gspca.h. It is worth to initialize the content also with
constant values.

Signed-off-by: Marton Nemeth <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
878b35aedb930a31a72298b717a22990b6773a03 30-Dec-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (13894): gspca - sonixj: Add more controls.

- sharpness
- brightness for adcm1700
- adjust brightness/exposure for adcm1700
- add some comments

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
64677573a28c354828343741bc177e5543f5077e 20-Dec-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (13872): gspca - sonixj: Add sensor adcm1700 and webcam 0c45:614a.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
b8c8a5bf833db5ad80266a6a9e5ad496ab01d434 23-Nov-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (13489): gspca - sonixj: Add the sensor po1030.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
76dd272b56cd1c7fa013ef5d7eb28c4d319e322b 13-Nov-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (13453): gspca - all subdrivers: Remove the unused frame ptr from pkt_scan().

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
d5aa3856fd09ad0ea04619d6cba31192dac08e84 07-Nov-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (13384): gspca - sonixj: Optimize code and add some comments.

- the i2c base address is now taken from the sn9c1xx register table

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
5b34e3e4eb993578c313f473ff60df62e0c24379 02-Nov-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (13306): gspca - sonixj: Change the copyright.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
0939e266697d516ba09cfaec6a97887600a4162d 02-Nov-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (13305): gspca - sonixj: The V flip control does not exist for all sensors.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
98941e4dade35ab2e83c9bc796fdc76ed3636a75 02-Nov-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (13304): gspca - sonixj: Don't access the sensor when setting the bridge.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
3fccb774ef6e43c2d80d322a5b52564db3067ef8 02-Nov-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (13303): gspca - sonixj: Change sensor and om6802 exchanges.

- the sensors are now initialized sooner
- om6802:
. set some parameters in factory mode
. lack of some parameters
. gpio adjustments

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
a782636c26b7468345d2c3b67952bf695a39cdfa 02-Nov-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (13302): gspca - sonixj: Fix some bad values of sensor om6802.

- sensor address is 0x34
- sensor i2c is 100 kHz

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
23a98274cc348880ecb6803307c254448084953a 02-Nov-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (13301): gspca - sonixj: Simplify the sensor init exchanges.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
7fb101ae2525ea5e8bad43a3fc228e87c5f047c6 22-Oct-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (13251): gspca - sonixj: Cleanup code and change some comments.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
46b4f2ab5858de905a20389c32105fcee833e0d3 17-Oct-2009 Amauri Magagna <amaurimagagna@gmail.com> V4L/DVB (13197): gspca - sonixj: Adjust colors and autogain for sensor om6802.

- set correct colors at startup time
- autogain was too slow (4-5 mn - now 15-30 s))

Signed-off-by: Amauri Magagna <amaurimagagna@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
f077b0a64856c5b3bf346ae9fba8631c1fb210cf 01-Sep-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (12696): gspca - sonixj / sn9c102: Two drivers for 0c45:60fc and 0c45:613e.

Let 0c45:60fc in sn9c102 and 0c45:613e in gspca-sonixj (sensor not supported).

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
1f78a976ce18bc98e8b509cee04c5b3756098614 29-Aug-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (12691): gspca - sonixj: Don't use mdelay().

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
47f7f6fb7949b6546baf4b6f26bf0ca075d12759 25-Aug-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (12501): gspca - sonixj: Do the ov7660 sensor work again.

- bad sensor power
- bad edge gain/threshold
- set back the auto gain
- light frequency filter inverted

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
6baefab531b22288be3b4ddef5671ea6469b09f8 28-Jul-2009 Denis Loginov <dinvlad@gmail.com> V4L/DVB (12356): gspca - sonixj: Webcam 0c45:6148 added

Signed-off-by: Denis Loginov <dinvlad@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
d8f400efc1ef7b344e07590fb6b77431bc358ba0 08-Jul-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (12280): gspca - sonixj: Remove auto gain/wb/expo for the ov7660 sensor.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
3eb0237d445c23e9f46b11a07bce986eca450640 19-Jul-2009 Julia Lawall <julia@diku.dk> V4L/DVB (12284): gspca - jpeg subdrivers: Check the result of kmalloc(jpeg header).

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
27954930f047df73a16253db2750345034e56c40 08-Jul-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (12267): gspca - sonixj: Bad sensor init of non ov76xx sensors.

The bug was introduced when adding the light frequency control

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
3fb4a57b494e05dba4d1305e2347c6633b76c20e 18-Jun-2009 Hans de Goede <hdegoede@redhat.com> V4L/DVB (12093): gspca_sonixj: Name saturation control saturation, not color

Name saturation control saturation, not color and make the default
less saturated (the old default was overdoing it).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
f800952c21157f11a5510d9cf700c9a7ba30800d 18-Jun-2009 Hans de Goede <hdegoede@redhat.com> V4L/DVB (12092): gspca_sonixj + ov7630: invert vflip control instead of changing default

gspca_sonixj + ov7630 had the default value for flip enabled, as otherwise
the picture is upside down. It is better to instead invert the meaning
of the control in the set function, and have the default be no vflip,
as one would expect vflip enabled to be upside down.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
37c6dbe290c05023b47f52528e30ce51336b93eb 18-Jun-2009 Hans de Goede <hdegoede@redhat.com> V4L/DVB (12091): gspca_sonixj: Add light frequency control

gspca_sonixj: Add light frequency control

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
1fec747cd389b4812a9932a1416d76e8a53596b2 18-Jun-2009 Hans de Goede <hdegoede@redhat.com> V4L/DVB (12090): gspca_sonixj: enable autogain control for the ov7620

gspca_sonixj: enable autogain control for the ov7620, and not only
make it enable autogain but also auto exposure (and do the
same for the ov7648).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
a5d1cc39fee739cf4fc2a1f43da812c50de9d3d6 18-Jun-2009 Hans de Goede <hdegoede@redhat.com> V4L/DVB (12089): gspca_sonixj: increase 640x480 frame-buffersize

gspca_sonixj: increase 640x480 frame-buffersize, as I was getting buffer
overflows during my testing of a "Premier" 0c45:613e cam

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
cc7b5b573feb5edfe68c028bc1ea383dab37dde2 18-Jun-2009 Hans de Goede <hdegoede@redhat.com> V4L/DVB (12087): gspca_sonixj: enable support for 0c45:613e camera

gspca_sonixj: enable support for 0c45:613e camera, and slightly tweak
the ov7630 register init values for a much better picture.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
9764398bdeef49414b37ef8bd35abfec1f44bd3e 18-Jun-2009 Hans de Goede <hdegoede@redhat.com> V4L/DVB (12086): gspca_sonixj: Fix control index numbering

The control index defines for the gspca_sonixj driver were numbered
wrong, causing us to disable the wrong controls on various sensors

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
f8eaaf4f2a2810d6e486da2916ef07f7e00665c9 07-May-2009 Jani Monoses <jani@ubuntu.com> V4L/DVB (11720): gspca - sonixj: Webcam 06f8:3008 added

Signed-off-by: Jani Monoses <jani@ubuntu.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
ceec80e5a52580bd7b257c14c6c8355be58c971f 09-May-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (11717): gspca - sonixj: Webcams with bridge sn9c128 added

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
c8b9b2cad435544177a2b7eed1c59438945de68b 26-Apr-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (11716): gspca - sonixj: Adjust some exchanges according to traces

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
49cb6b046da812d9c1d1f8c958b741126ee4eece 25-Apr-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (11715): gspca - main: Set the number of packets per ISOC message.

The number of packets per isochronous message may now be set by the subdrivers
(default value 32).

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
3dee4dfed34b579ecc9533881cdabb961d92d5c7 26-Mar-2009 Hans de Goede <hdegoede@redhat.com> V4L/DVB (11221): gspca - sonixj: Prefer sonixj instead of sn9c102 for 0471:0327.

Prefer the gspca sonixj driver for the Philips SPC600NC webcam instead of
the sn9c102 driver. As we've got userreports that it works with the gspca
driver, whereas it fails with the sn9c102 driver, see:
https://bugzilla.redhat.com/show_bug.cgi?id=477111

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
77ac0baf24d1a43498f7bdf6efa2ee6c4ed0ebaa 02-Mar-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (11040): gspca - most jpeg subdrivers: Have the JPEG quality settable.

The JPEG quality of the images (quantization tables) is now settable by the
VIDIOC_S_JPEGCOMP ioctl.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
71cb2764fcc51bd9e1b95be5b0f2da6f026634c7 03-Mar-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (11039): gspca - most jpeg subdrivers: Change the JPEG header creation.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
8d97770a687b282184e85027628b030f8a5c53d2 19-Feb-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10679): gspca - sonixj: Handle the webcam 0c45:613c instead of sn9c102.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
2797ba2a1727df07a4c74d494a43296cbf5179b9 05-Feb-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10636): gspca - sonixj: Add autogain for ov7630/48 and vflip for ov7648.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
c33c02ed07d678625d7ca2e26238c8e925710138 05-Feb-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10635): gspca - sonixj: No vertical flip control for mt9v111.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
92e8c91bd2a0db4b129baf332344f564bdfca941 02-Feb-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10618): gspca - some drivers: Fix compilation warnings.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
2687a2fb1ce2b764298fb40c96765b04eaddac95 01-Feb-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10430): gspca - sonixj: Adjust some exchanges with the sensor mt9v111.

This patch also enables the autogain for the mt9v111.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
65c5259cc44c822215e670025c226d77f5a323bf 01-Feb-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10429): gspca - sonixj: Simplify the probe of the sensors mi0360/mt9v111.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
b083b92f9386d82e8ff3c1cfe04eefae488cbf1f 01-Feb-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10428): gspca - sonixj: Specific gamma tables per sensor.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
5e31dc8dda6e52934acfa4706854cc2a22542949 01-Feb-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10427): gspca - sonixj: Sensor sp80708 added for webcam 0c45:6143.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
0fbe057412a68d830698333eef24b47b5b0e8bef 30-Jan-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10425): gspca - sonixj: Bad initialization of sensor mt9v111.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
661ab25d6f44a98ecf3a23ab37721ec83b2986cc 29-Jan-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10423): gspca - sonixj: Bad sensor definition of the webcams 0c45:60c0.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
3ef2c5be9c79ce668e3e58d323379be24e39e20c 29-Jan-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10419): gspca - sonixj: Sensor mt9v111 added.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
9881918756be1cf0a33ae7454ca767682cbfadc3 19-Jan-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10372): gspca - sonixj: Cleanup code.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
592f4eb9a2dc63afdbe78e2874d728f6e9e1e9f0 15-Jan-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10361): gspca - sonixj: Gamma control added.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
8c2ba44106a8693c7f5d2da93c3ab135254d86af 13-Jan-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10356): gspca - sonixj: Cleanup code.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
36e819db435a61819d50c57c424a5ab2b9634e59 07-Jan-2009 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10345): gspca - jpeg subdrivers: One quantization table per subdriver.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
e6b148490f5e9ebb90ecb4a8de930be1b8936a16 01-Jan-2009 Alexey Klimov <klimov.linux@gmail.com> V4L/DVB (10336): gspca - all subdrivers: Return ret instead of -1 in sd_mod_init.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
f69e9529ed96ff917096d0b7b3015c8d8ea5750d 01-Jan-2009 Alexey Klimov <klimov.linux@gmail.com> V4L/DVB (10335): gspca - all subdrivers: Fix CodingStyle in sd_mod_init function.

Introduce int ret and check it value after call to usb_register().

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
50e06dee958bdb81229cb42486f7fdc4917fa4da 31-Dec-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10333): gspca - main and many subdrivers: Remove the epaddr variable.

The transfer endpoint address is now automatically chosen.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
cc611b8aef7a8a9a2e614f1bdf3e2b8f066c8c8d 29-Dec-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (10049): gspca - many subdrivers: Set 'const' the pixel format table.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
577cbf49cd793c39f149b526309b080ac4ebbad4 05-Dec-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9863): gspca - sonixj: Cleanup / simplify code.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
daa5cb42f12684173e2cfd7d062527ca24916791 02-Dec-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9852): gspca: Fix image problem at low resolutions with ov7660 in sonixj.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
bd088835c78bd402711b16940b80bb761a74fa75 02-Dec-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9850): gspca: Bad color control in sonixj.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
3319dc98a742d445a660268a6ce3426ad0922e2a 01-Dec-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9848): gspca: Webcam 06f8:3004 added in sonixj.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
403123d276e6af29ed401930fd8e25de768d2e34 26-Nov-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9843): gspca: Change the colors and add the red and blue controls in sonixj.

The colors control (saturation) acted as color balance.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
b1b056a5f22851273813f7f1208b50fb7934f12a 25-Nov-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9842): gspca: Center the brightness in sonixj.

The brightness jumped from max to min at the middle of the control values.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
91bd3412a22d68b7a9a09720e748fbbf68c2d545 23-Nov-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9837): gspca: Simplify the brightness/contrast for ov76xx sensors in sonixj.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
a08d81af37b3d7547813219da68c3c946f742fb3 22-Nov-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9711): gspca: Let gspca handle the webcams 045e:00f5 & 00f7 instead of sn9c102.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
1432f3062a72d1eafccc641dd9327a062fc27b92 21-Nov-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9708): gspca: Do the sn9c105 - ov7660 work again in sonixj.

The sn9c105 and sn9c120 bridges must be differently programmed for the ov7660.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
6270330abea2d9556583d597bb78d64b291aa6ba 11-Nov-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9681): gspca: Rewrite the exchanges with the sensor ov7648 of sonixj.

The new exchanges are adapted from MS-win traces and the webcams work better.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
821ced29a4aee1bd21d1d114cc9c7247b3aa4ba3 11-Nov-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9680): gspca: Let gspca handle the webcam 0c45:613a instead of sn9c102.

The driver sn9c102 has no code for the ov7648 sensor.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
7e21fda17e7f6156e2ad66ca4f76abcbe1063eb2 10-Nov-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9563): gspca: Let gspca handle the webcam 0471:0328 instead of sn9c102.

According to http://bugzilla.kernel.org/show_bug.cgi?id=11997,
the driver sn9c102 does not work for this webcam.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
0cae89647e3f601029474b99c21b38a7ca781f07 17-Oct-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9541): gspca: Add infrared control for sonixj - mi0360.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
79a9098ae47119fad54a3443e358f08e30b7d3a5 05-Oct-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9118): gspca: Set the vertical flip at streamon time in sonixj.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
803f9ccf50178af6cde7aec86db2d78db3d069e7 04-Oct-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9097): gspca: Adjust control values and restore compilation of sonixj.

- no compilation since last changeset
- brightness is a signed value
- better values of the color matrix

[mchehab@redhat.com: fix a merge conflict]
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
40e6ec129100041121aea2fb98590eaea4bb6ba2 22-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9082): gspca: Vertical flip the image by default in sonixj.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
72ab97cecb7225a4c9f74cdd80268b50b74697bb 20-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9079): gspca: Return error code from stream start functions.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
3c41cb77f4be3076fdbcf9a417052c3c6ce78094 10-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9074): gspca: sonixj webcam 0c45:60fe added.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
6c86274fcdf4b3893ee22c1e39ddfb5b05bf0362 08-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8931): gspca: Vflip added for sonixj - ov7630.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
7b537391dde35d7f412417a95f02f89af08dd2d3 07-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8929): gspca: sonixj webcam 0458:702e added.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
674cbc691c5439134bb2ea064c0ee1311fc92384 02-Oct-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9092): gspca: Bad init values for sonixj ov7660.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
8d768e14fc57160b35ac13e797a81163baab34d2 21-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (9080): gspca: Add a delay after writing to the sonixj sensors.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
222a07ffd8e280b1bf4a6f7edab8b6fa27a5455a 03-Sep-2008 Hans de Goede <j.w.r.degoede@hhs.nl> V4L/DVB (8831): gspca: Resolve webcam conflicts between some drivers.

-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)

Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
8295d99ee5340f1e62b53c8adc979e0789299445 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8829): gspca: Have a clean kmalloc-ated buffer for USB exchanges.

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.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
91de65ac00f976c972940bedd9dbfe38bb8bfec3 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8828): gspca: Set the clock at the end of initialization in sonixj.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
012d6b029ec17f45374303bbdccd0bc206725751 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8822): gspca: Change some subdriver functions for suspend/resume.

- new function 'init' called on probe and resume
- remove the functions 'open' and 'closed'
- 'stopN' and 'stop0' are optional

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
f50ba1bed3cfd65d6899afc4cb77299ee5c297ae 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8814): gspca: Set DISABLED the disabled controls at query control time.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
6a709749228c5f76f128c69c16f39a52d639bd96 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8718): gspca: suspend/resume added.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
5d05294ac8f6b5d592ee3379fbddd0fb9d1b4c87 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8717): gspca: Frame buffer too small for small resolutions (sonixj and t613).

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
5b064da80831500a6ac6ea501d2d0cb5e8323cc7 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8716): gspca: Bad start of sn9c110 and sensor ov7630.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
4f30f6cf6b1baf2d19f6b575c4486ae6dc0c2a00 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8714): gspca: Bad start of sn9c110 and sensor om6802.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
9c5f70f248ccce6d943904e6da687c6ec062f072 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8713): gspca: Bad color control again in sonixj.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
759aa3c21ebbab6cc00fc4aebd09b3a7d63715d1 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8712): gspca: Bad start of sonixj webcams since changeset a8779025e7e8.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
d55b83d3c4558d0d118bf20ef3f1fa65b1c75c3d 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8710): gspca: Bad color control in sonixj.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
05b809c702bf297690c63ea78ee117c4dc909028 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8709): gspca: Fix initialization and controls of sn9x110 - ov7630.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/gspca/sonixj.c
6ab0b174d22b448d66058c9de0114fdfac5b7ccf 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8674): gspca: Webcam 0c45:612e added in sonixj.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
9d5c1251bfc10a0e864352f45e272331f65b3420 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8665): gspca: Fix the 640x480 resolution of the webcam 093a:2621.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
d2d16e9084ee44088974c3312b803d54dd9b46d7 03-Sep-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8663): gspca: Webcam 0c45:6128 added in sonixj.

Patch adapted from a patch to gspcav1 made by the google microdia group.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
cebf3b67f7f80fd69bd1ff5787fee69ab8fd3c2a 03-Aug-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8604): gspca: Fix of "scheduling while atomic" crash.

The crash is due to USB exchanges done at interrupt level.
These exchanges, tied to autogain, are now done by the application.
Also, there is a fix about autogain start.
Concerned subdrivers: etoms, pac7311, sonixj and spca561.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
8f47a3cefbb275893ce26ade7094599e4b129bb3 29-Jul-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8569): gspca: Set back the old values of Sonix sn9c120 and cleanup source.

The values from win traces do not seem to work while the webcams
did work with gspca v1.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
738608ae08572bf915c3fcd40e9579fbca06464b 28-Jul-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8550): gspca: Change a bit the init of ov7660 and Sonix JPEG bridges.

Set back some values of gspcav1 in init of sonixj sensor ov7660.
Add some comments.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
e546f4bb6d3b320d60c33025597bc8fc31532394 26-Jul-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8515): gspca: Webcam 0c45:6143 added in sonixj.

It is an other Pccam168. The .inf says SN9C120B + SP80708, but it should
work as SN9C120 + MI0360.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
9d64fdb15b1b9ce9144cfde4001e9194ccde42d1 25-Jul-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8513): gspca: Set the specific per webcam information in driver_info.

This patch removes a big part of the code run at probe time.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
07767ebda385956bd2b193f9820de719475bfe6e 23-Jul-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8512): gspca: Do not use the driver_info field of usb_device_id.

The field driver_info will be used to handle the specific per webcam
information.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
10b0e96ed9a1ce0412ef981cf6250f9de3c80b02 22-Jul-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8442): gspca: Remove the version from the subdrivers.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
600176176101fc6e0e0c7468efa83203e8d3e015 18-Jul-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8435): gspca: Delay after reset for ov7660 and USB traces in sonixj.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
568788a771ee88cc6b5e311a207c09731a6e47f0 15-Jul-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8358): gspca: Better initialization of sn9c120 - ov7660.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
3647fea840c94c04f35215cb75b48613c0af310e 15-Jul-2008 Hans de Goede <j.w.r.degoede@hhs.nl> V4L/DVB (8356): gspca: 352x288 mode fix and source clean-up for Sonix bridges.

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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
739570bb218bb4607df1f197282561e97a98e54a 14-Jul-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8352): gspca: Buffers for USB exchanges cannot be in the stack.

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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
c41492c89a00630c7482eae25deaf9af91b73c98 07-Jul-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8231): gspca: Do not declare the webcams declared by other drivers.

etoms: Do not declare the webcams declared by the driver et61x251.
sonixb, sonixj:
Do not declare the webcams declared by the driver sn9c102.
zc3xx: Do not declare the webcams declared by the driver zc0301.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
c2446b3eba97243acbe2ad0939a28b5edb97eae7 05-Jul-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8201): gspca: v4l2_pix_format in each subdriver.

main: Parameter comp_fac removed.
main, pac207:
get_buff_size op removed.
(all) v4l2_pix_format in each subdriver.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
a5ae2062252e697d38e53dbbeb91460252208914 04-Jul-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8195): gspca: Input buffer overwritten in spca561 + cleanup code.

spca561: Input buffer may be changed on reg write.
(all sd): Cleanup code, 'const' added.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
bf7f0b98426b54c29ec8100a3f1963114c2f2ef0 03-Jul-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8193): gspca: Input buffer may be changed on reg write.

Done for conex, etoms, pac7311, sonixj, t613 and tv8532.
Code cleanup for some other subdrivers.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
956e42d28f300f5bb928fb5850b3e3c0a8982d23 01-Jul-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8180): Source cleanup - compile error with VIDEO_ADV_DEBUG.

main, etoms, mars, pac207, pac7311, sonixb, sonixj, spca500, spca505:
Cleanup source.
sunplus: Compilation error when VIDEO_ADV_DEBUG set.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c
6a7eba24e4f0ff725d33159f6265e3a79d53a833 30-Jun-2008 Jean-Francois Moine <moinejf@free.fr> V4L/DVB (8157): gspca: all subdrivers

- remaning subdrivers added
- remove the decoding helper and some specific frame decodings

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/gspca/sonixj.c