GitHub/LineageOS/android_kernel_samsung_universal7580.git
14 years agoV4L/DVB: Add support for SMT7020 to cx88
Dirk Herrendoerfer [Thu, 11 Feb 2010 21:06:34 +0000 (18:06 -0300)]
V4L/DVB: Add support for SMT7020 to cx88

This patch adds support for the built-in dvb device
of a Samsung SMT7020s (x86 based STB) to the cx88 family.

Signed-off-by: Dirk Herrendoerfer <d.herrendoerfer@herrendoerfer.name>
Signed-off-by: Helmut Auer <helmut@helmutauer.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: radio-si470x: Use UTF-8 encoding on a comment
Tobias Lorenz [Thu, 18 Feb 2010 19:33:46 +0000 (16:33 -0300)]
V4L/DVB: radio-si470x: Use UTF-8 encoding on a comment

This cosmetic patch corrects a wrong unicode "micro" character in a comment.

Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: MAINTAINERS: Telegent tlg2300 section fix
Joe Perches [Tue, 23 Feb 2010 17:08:20 +0000 (14:08 -0300)]
V4L/DVB: MAINTAINERS: Telegent tlg2300 section fix

linux-next commit 2ff8223957d901999bf76aaf2c6183e33a6ad14e
exposes an infinite loop defect in scripts/get_maintainer.pl

Fix the incorrect format of the MAINTAINERS "M:" entries.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_stv06xx: Add support for camera button
Hans de Goede [Sat, 20 Feb 2010 14:26:07 +0000 (11:26 -0300)]
V4L/DVB: gspca_stv06xx: Add support for camera button

Only tested with an stv6422 based cam, as that is the only stv06xx cam
I have with a button.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_ov519: add support for the button on ov511 based cams
Hans de Goede [Sat, 20 Feb 2010 07:45:49 +0000 (04:45 -0300)]
V4L/DVB: gspca_ov519: add support for the button on ov511 based cams

Due to hardware limitations this only works while the camera is
streaming.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_ov519: Add support for the button on ov518 based cams
Hans de Goede [Sat, 20 Feb 2010 07:30:45 +0000 (04:30 -0300)]
V4L/DVB: gspca_ov519: Add support for the button on ov518 based cams

Due to hardware limitations this only works while the camera is
streaming.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_ov519: add support for the button on ov519 based cams
Hans de Goede [Fri, 19 Feb 2010 10:37:08 +0000 (07:37 -0300)]
V4L/DVB: gspca_ov519: add support for the button on ov519 based cams

Note due to hardware limitiations (no interrupt endpoint), this only works
when the camera is streaming.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_main: Fix a compile error when CONFIG_INPUT is not set
Hans de Goede [Fri, 19 Feb 2010 08:11:09 +0000 (05:11 -0300)]
V4L/DVB: gspca_main: Fix a compile error when CONFIG_INPUT is not set

gspca_main: Fix a compile error when CONFIG_INPUT is not set.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_main: some input error handling fixes
Hans de Goede [Fri, 19 Feb 2010 07:41:40 +0000 (04:41 -0300)]
V4L/DVB: gspca_main: some input error handling fixes

2 small changes to input device error handling:
1) Make it fatal when we fail to create an input device (it is either this
   or add checks for gspca_dev->input_dev being NULL in a lot of places)
2) Since we allow gspca_input_create_urb() to fail everywhere we call it,
   and thus never check its return value, make it void.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_main: Allow use of input device creation code for non int. inputs
Hans de Goede [Fri, 19 Feb 2010 07:28:39 +0000 (04:28 -0300)]
V4L/DVB: gspca_main: Allow use of input device creation code for non int. inputs

Allow use of the gspca core input device creation code by subdrivers which
have non interrupt driven camera buttons.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_pac7302: much improved exposure control
Hans de Goede [Wed, 17 Feb 2010 14:59:19 +0000 (11:59 -0300)]
V4L/DVB: gspca_pac7302: much improved exposure control

My experience with fixing up the controls for the PAS sensors in
sonixb, has lead me to re-investigate the exposure control for the
pac7302. I've now found a regular exposure register in register bank 3
(which seems to be the sensor registers bank), and with this added a proper
fine grained exposure control. This patch also updates the do_autogain
function to work properly with this new finer grained control.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_sonixb: Make sonixb driver handle pas106 and pas202 cameras
Hans de Goede [Wed, 10 Feb 2010 23:29:43 +0000 (20:29 -0300)]
V4L/DVB: gspca_sonixb: Make sonixb driver handle pas106 and pas202 cameras

Make the sonixb driver handle pas106 and pas202 cameras, when both it
and the sn9c102 driver are enabled in the kernel configuration.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_sonixb: pas106: fixup bright ctrl and add gain and exposure ctrls
Hans de Goede [Wed, 10 Feb 2010 21:57:40 +0000 (18:57 -0300)]
V4L/DVB: gspca_sonixb: pas106: fixup bright ctrl and add gain and exposure ctrls

Fixup brightness ctrl and add gain and exposure ctrls for PAS106B sensors,
this allows enabling autogain (done), and makes the cam usable in low light
conditions.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: Documentation: gspca.txt: update known mr97310a cams
Hans de Goede [Wed, 10 Feb 2010 09:49:23 +0000 (06:49 -0300)]
V4L/DVB: Documentation: gspca.txt: update known mr97310a cams

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_mr97310a: add support for the Sakar 1638x CyberPix
Theodore Kilgore [Tue, 9 Feb 2010 21:05:25 +0000 (18:05 -0300)]
V4L/DVB: gspca_mr97310a: add support for the Sakar 1638x CyberPix

This camera has a sensor type we did not support sofar, this patch adds
support for the new sensor type found in the Sakar 1638x CyberPix.

Signed-off-by: Theodore Kilgore <kilgota@banach.math.auburn.edu>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gscpa_sonixb: limit ov7630 max framerate at 640x480
Hans de Goede [Thu, 4 Feb 2010 09:10:55 +0000 (06:10 -0300)]
V4L/DVB: gscpa_sonixb: limit ov7630 max framerate at 640x480

In 640x480, if the reg11 has less than 4, the image is
unstable (the bridge goes into a higher compression mode
which we have not reverse engineered yet).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_sonixb: pas202: fixup brightness ctrl and add gain and exposure ctrls
Hans de Goede [Wed, 3 Feb 2010 17:37:30 +0000 (14:37 -0300)]
V4L/DVB: gspca_sonixb: pas202: fixup brightness ctrl and add gain and exposure ctrls

Fixup brightness ctrl and add gain and exposure ctrls for PAS202BCB sensors,
this allows enabling autogain (done), and makes the cam usable in low light
conditions.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gscpa_sonixb: Differentiate between sensors with a coarse and fine expo...
Hans de Goede [Mon, 1 Feb 2010 16:18:37 +0000 (13:18 -0300)]
V4L/DVB: gscpa_sonixb: Differentiate between sensors with a coarse and fine expo ctrl

Some sensors only allow controlling the exposure by changing the clockdiv,
which means that exposure takes pretty large jumps (for example when going
from a div of 1 to 2, the exposure doubles). Use 2 different entries in
the controls array for these 2 different types of exposure (always
disabling one), and;

Add a new autogain algorithm for the coarse exposure case, which normally
changes the gain setting, only touching the exposure setting if the desired
luminance cannot be reached with gain, and after an exposure change once more
first tries gain, etc. Thus avoiding exposure changes, and the resulting
oscilation because of the huge steps these exposure controls take.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_sonixb: leave bridge gain at 1.0 when we have a sensor gain
Hans de Goede [Mon, 1 Feb 2010 10:48:17 +0000 (07:48 -0300)]
V4L/DVB: gspca_sonixb: leave bridge gain at 1.0 when we have a sensor gain

Leave bridge gain at 1.0 when we have a sensor gain, while at it also
change the bridge gain setting code to write both registers in one go
saving us a usb transaction.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_sonixj: Add camera button support
Hans de Goede [Sun, 31 Jan 2010 15:54:29 +0000 (12:54 -0300)]
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>
14 years agoV4L/DVB: gspca_sonixb: Add support for camera button
Hans de Goede [Sun, 31 Jan 2010 13:35:15 +0000 (10:35 -0300)]
V4L/DVB: gspca_sonixb: Add support for camera button

gspca_sonixb: Add support for camera button

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gscpa_zc3xx: Add support for camera button
Hans de Goede [Fri, 29 Jan 2010 14:05:25 +0000 (11:05 -0300)]
V4L/DVB: gscpa_zc3xx: Add support for camera button

gscpa_zc3xx: Add support for camera button

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gscpa_pac7311: Add support for camera button
Hans de Goede [Fri, 29 Jan 2010 14:04:19 +0000 (11:04 -0300)]
V4L/DVB: gscpa_pac7311: Add support for camera button

gscpa_pac7311: Add support for camera button

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gscpa_pac207: Add support for camera button
Hans de Goede [Fri, 29 Jan 2010 14:02:10 +0000 (11:02 -0300)]
V4L/DVB: gscpa_pac207: Add support for camera button

gscpa_pac207: Add support for camera button

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gscpa Documentation: add cpia1 cameras
Hans de Goede [Sun, 17 Jan 2010 13:45:13 +0000 (10:45 -0300)]
V4L/DVB: gscpa Documentation: add cpia1 cameras

gscpa Documentation: add cpia1 cameras

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_sq905c: Add an additional USB-ID
Hans de Goede [Sun, 17 Jan 2010 13:42:55 +0000 (10:42 -0300)]
V4L/DVB: gspca_sq905c: Add an additional USB-ID

gspca_sq905c: Add an additional USB-ID

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca_mr97310a: Simplify sensor detection
Theodore Kilgore [Fri, 15 Jan 2010 08:54:36 +0000 (05:54 -0300)]
V4L/DVB: gspca_mr97310a: Simplify sensor detection

Simplify sensor detection a bit (share more of the code between cif and vga
cameras). Also remove an unnecessary write from zero_the_pointer().

Signed-off-by: Theodore Kilgore <kilgota@banach.math.auburn.edu>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: ivtv: Tweak Sony GigaPocket Kikyou card entry based on experiments
Andy Walls [Sun, 21 Feb 2010 00:28:39 +0000 (21:28 -0300)]
V4L/DVB: ivtv: Tweak Sony GigaPocket Kikyou card entry based on experiments

Based on experiments by Eric Wescott, edit the Sony GigaPocket (Kikyou)
card entry video and audio mux settings.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: ivtv: Add initial entry for Sony VAIO Giga Pocket (Kikyou) cards
Eric Anderson [Thu, 11 Feb 2010 01:14:54 +0000 (22:14 -0300)]
V4L/DVB: ivtv: Add initial entry for Sony VAIO Giga Pocket (Kikyou) cards

This is a slightly modified version of Eric Anderson's original patch
for the Sony Giga Pocket board.  It has been updated to apply to the
latest ivtv driver version by Hans Verkuil <hverkuil@xs4all.nl> and
Andy Walls <awalls@radix.net>.  Also Andy Walls modified the patch to
use a new Sony BTF-Pnx01Z tuner entry based on Eric Anderson's experimental
findings for the bandswitch.

>From Eric Anderson's original email:

1. The tuner on the card doesn't seem to match any standard
ones. I modified an existing tuner entry. Ideally a new tuner
entry should be created. (The only difference from the one I
modified is that the low-to-mid range frequency cut-off is
slightly different, as are the bit config settings.)

2. It wasn't obvious how to choose a second audio input other
than using "radio" as an option. Basically there's two GPIO
audio inputs. Using radio allowed me to avoid major restructuring
to the code. (perhaps other cards don't have this often...)

3. It's not clear that there's a mute setting that works. Not
sure why.

4. I haven't had a chance to test the two Svideo inputs. I set
them to COMPOSITE1 and SVIDEO2, but I'm not sure those are the
correct settings. The standard composite video inputs seem to work.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tuner-types: Add Sony BTF-Pxn01Z tuner type used on GigaPocket cards
Andy Walls [Wed, 10 Feb 2010 22:02:58 +0000 (19:02 -0300)]
V4L/DVB: tuner-types: Add Sony BTF-Pxn01Z tuner type used on GigaPocket cards

Sony makes custome tuners for its GigaPocket line of ivtv based capture
cards.  This adds an entry to the tuner-types list for such tuners.
Parameters are based on experiments by Eric Anderson <rico99@sbcglobal.net>.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: ivtv: Fix ivtv_api_get_data() to avoid unneeded IO during IRQ handling
Andy Walls [Wed, 10 Feb 2010 18:34:46 +0000 (15:34 -0300)]
V4L/DVB: ivtv: Fix ivtv_api_get_data() to avoid unneeded IO during IRQ handling

ivtv_api_get_data() was performing more PCI MMIO than needed, resulting
often in it accounting for more than half the total time spent in
ivtv_irq_handler().  Now it only reads at most 7 of the 16 mailbox data words
over the PCI bus, and in some instances only 2 or 3 data words as needed.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: V4L - vpfe capture - build environment for isif driver
Murali Karicheri [Sun, 21 Feb 2010 18:52:45 +0000 (15:52 -0300)]
V4L/DVB: V4L - vpfe capture - build environment for isif driver

Adding Makefile and Kconfig for ISIF driver

Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Murali Karicheri <mkaricheri@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: V4L - vpfe capture - vpss driver enhancements for DM365
Murali Karicheri [Sun, 21 Feb 2010 18:51:14 +0000 (15:51 -0300)]
V4L/DVB: V4L - vpfe capture - vpss driver enhancements for DM365

Enhancements to support DM365 ISP5 and VPSS module configuration.
Also cleaned up the driver by removing redundant variables.

Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Murali Karicheri <mkaricheri@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: V4L - vpfe capture - source for ISIF driver on DM365
Murali Karicheri [Sun, 21 Feb 2010 18:48:27 +0000 (15:48 -0300)]
V4L/DVB: V4L - vpfe capture - source for ISIF driver on DM365

This is the source file for ISIF driver on DM365.  ISIF driver is equivalent
to CCDC driver on DM355 and DM644x. This driver is tested for YUV capture from
TVP514x driver. This patch contains the header files required for this driver.

Reviewed-by: Nori, Sekhar <nsekhar@ti.com>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Murali Karicheri <mkaricheri@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: V4L - vpfe capture - header files for ISIF driver
Murali Karicheri [Sun, 21 Feb 2010 18:46:01 +0000 (15:46 -0300)]
V4L/DVB: V4L - vpfe capture - header files for ISIF driver

This is the header file for ISIF driver on DM365.  ISIF driver is equivalent
to CCDC driver on DM355 and DM644x. This driver is tested for
YUV capture from TVP514x driver. This patch contains the header files required
for this driver.

Reviewed-by: Nori, Sekhar <nsekhar@ti.com>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Murali Karicheri <mkaricheri@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: DaVinci - Adding platform & board changes for vpfe capture on DM365
Murali Karicheri [Mon, 1 Feb 2010 22:36:19 +0000 (19:36 -0300)]
V4L/DVB: DaVinci - Adding platform & board changes for vpfe capture on DM365

This patch adds following changes:-
1) add sub device configuration data for TVP5146 used by vpfe capture
2) registers platform devices for vpfe_capture, isif and vpss
3) defines hardware resources for the devices listed under 2)
4) defines clock aliase for isif driver
5) adding setup_pinmux() for isif

Reviewed-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Murali Karicheri <mkaricheri@gmail.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: pvrusb2: Adjust 300msec digitizer wait to be more selective
Mike Isely [Sat, 6 Feb 2010 05:17:17 +0000 (02:17 -0300)]
V4L/DVB: pvrusb2: Adjust 300msec digitizer wait to be more selective

We know that the 300msec settling time after starting the digitizer is
only really needed when the digitizer is a SAA7115.  So if we're not
using a SAA7115, skip the delay.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: pvrusb2: Reduce encoder quiet period
Mike Isely [Sat, 6 Feb 2010 05:12:33 +0000 (02:12 -0300)]
V4L/DVB: pvrusb2: Reduce encoder quiet period

After implementing a 300msec wait between digitizer start and encoder
start, it has been determined that we don't need to wait quite as long
before configuring the encoder.  This reduces the wait period from
100msec back to 50msec.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: pvrusb2: Enforce a 300msec stabilization interval during stream strart
Mike Isely [Sat, 6 Feb 2010 05:10:38 +0000 (02:10 -0300)]
V4L/DVB: pvrusb2: Enforce a 300msec stabilization interval during stream strart

Martin Dauskardt <martin.dauskardt@gmx.de> has determined that the
encoder has a much better chance of starting cleanly if we
deliberately hold off starting it util the video digitizer has had a
chance to run for at least 300msec first.  These changes implement an
enforced 300msec wait in the state machine that orchestrates streaming
start / stop.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: V4L2 docs: replace spaces by tabs
Mauro Carvalho Chehab [Mon, 22 Feb 2010 21:55:00 +0000 (18:55 -0300)]
V4L/DVB: V4L2 docs: replace spaces by tabs

CC: Jonathan Corbet <corbet@lwn.net>
CC: Reviewed-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: V4L2: Add a document describing the videobuf layer
Jonathan Corbet [Mon, 22 Feb 2010 20:47:46 +0000 (17:47 -0300)]
V4L/DVB: V4L2: Add a document describing the videobuf layer

Videobuf is a moderately complex API which most V4L2 drivers should use,
but its documentation is...sparse.  This document attempts to improve the
situation.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Reviewed-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: media-spec: Fix documentation mistakes regarding I/O streaming
Hans Verkuil [Sat, 20 Feb 2010 12:41:03 +0000 (09:41 -0300)]
V4L/DVB: media-spec: Fix documentation mistakes regarding I/O streaming

The media spec contains several errors in the description of the
I/O streaming ioctls, in particular with respect to the userptr
I/O method.

The most important change is that you really need to set count
and index in v4l2_requestbuffer and v4l2_buffer when dealing with
user pointer streaming.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: saa7115: fix saa7111a support
Hans Verkuil [Sat, 20 Feb 2010 11:07:51 +0000 (08:07 -0300)]
V4L/DVB: saa7115: fix saa7111a support

When the saa7111 driver was merged into saa7115 several bugs were introduced,
in particular with the saa7111a support as is used in the mxb.c driver.
This patch fixes the saa7111a support. This was tested with the mxb driver.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: saa7146_vv: fix regression where v4l2_device was registered too late
Hans Verkuil [Sat, 20 Feb 2010 10:56:25 +0000 (07:56 -0300)]
V4L/DVB: saa7146_vv: fix regression where v4l2_device was registered too late

v4l2_device_register needs to be called before the i2c subdevs are loaded.
However, it was called afterwards in the saa7146 driver. This caused an oops
when loading the mxb and hexium drivers. The vv_init function is now split
into two: one registers the v4l2_device, the other does the rest of the
initialization. The three drivers that depend on this have been updated to
call the new vv_devinit function.

Thanks to Michael Hunold for reporting this.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: uvcvideo: Check uvc_ctrl_begin return value in VIDIOC_S_CTRL
Laurent Pinchart [Fri, 5 Feb 2010 00:43:37 +0000 (21:43 -0300)]
V4L/DVB: uvcvideo: Check uvc_ctrl_begin return value in VIDIOC_S_CTRL

The function return value wasn't checked due to a missing variable
assignment.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: uvcvideo: Blacklist gain control for Asus EeePC T91 integrated webcam
Laurent Pinchart [Wed, 3 Feb 2010 09:49:35 +0000 (06:49 -0300)]
V4L/DVB: uvcvideo: Blacklist gain control for Asus EeePC T91 integrated webcam

The Asus EeePC T91 integrated webcam exposes a gain control in the
processing unit but stalls when the control is queried. Blacklist the
gain control for that camera.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: uvcvideo: Clamp control values to the minimum and maximum values
Laurent Pinchart [Sat, 23 Jan 2010 10:07:53 +0000 (07:07 -0300)]
V4L/DVB: uvcvideo: Clamp control values to the minimum and maximum values

When setting a control, the V4L2 specification requires drivers to
either clamp the control value to the [minimum, maximum] range or return
the -ERANGE error.

Fix the driver to clamp control values to the valid range in
uvc_ctrl_set() and make sure the value differs from the minimum by an
integer multiple of step.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: uvcvideo: Cache control min, max, res and def query results
Laurent Pinchart [Sat, 23 Jan 2010 09:30:20 +0000 (06:30 -0300)]
V4L/DVB: uvcvideo: Cache control min, max, res and def query results

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: uvcvideo: Return -ERANGE when setting a control to an out-of-range menu...
Laurent Pinchart [Thu, 21 Jan 2010 19:53:11 +0000 (16:53 -0300)]
V4L/DVB: uvcvideo: Return -ERANGE when setting a control to an out-of-range menu index

The V4L2 specification states that out of bounds control values must
either be clamped to the valid range or result in a -ERANGE error code.

Fix the driver to return -ERANGE instead of -EINVAL when setting a menu
control to an invalid value.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: uvcvideo: Use %pUl printk format specifier to print GUIDs
Laurent Pinchart [Tue, 19 Jan 2010 12:06:22 +0000 (09:06 -0300)]
V4L/DVB: uvcvideo: Use %pUl printk format specifier to print GUIDs

Replace the UVC_GUID_FORMAT and UVC_GUID_ARGS macros with the new %pUl
printk format specifier.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: uvcvideo: Increase the streaming control timeout to 5 seconds
Laurent Pinchart [Tue, 19 Jan 2010 11:59:21 +0000 (08:59 -0300)]
V4L/DVB: uvcvideo: Increase the streaming control timeout to 5 seconds

This fixes timeout issues with some Logitech webcams. The timeout value
seems to match the one used in the Logitech Windows driver, so no
further increase should be necessary.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca - main: Fix a compile error when CONFIG_INPUT is not set
Jean-François Moine [Thu, 18 Feb 2010 18:02:51 +0000 (15:02 -0300)]
V4L/DVB: gspca - main: Fix a compile error when CONFIG_INPUT is not set

Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: gspca - sonixj: Set the vertical flip at capture start for all sensors
Jean-François Moine [Thu, 18 Feb 2010 17:56:33 +0000 (14:56 -0300)]
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>
14 years agoV4L/DVB: gspca - sonixj: Add vertical flip control for sensor hv7131r
Jean-François Moine [Thu, 18 Feb 2010 07:12:06 +0000 (04:12 -0300)]
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>
14 years agoV4L/DVB: videobuf: add missing checks for kzalloc returning NULL
Pawel Osciak [Mon, 22 Feb 2010 16:10:06 +0000 (13:10 -0300)]
V4L/DVB: videobuf: add missing checks for kzalloc returning NULL

Signed-off-by: Pawel Osciak <p.osciak@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: cx88-alsa: prevent out-of-range volume setting
Clemens Ladisch [Mon, 22 Feb 2010 09:45:07 +0000 (06:45 -0300)]
V4L/DVB: cx88-alsa: prevent out-of-range volume setting

Ensure that volume values are always in the allowed range.  Otherwise,
it would be possible to set other bits in the AUD_VOL_CTL register or to
get a wrong sign in the AUD_BAL_CTL register.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: mfd: Add timb-radio to the timberdale MFD
Richard Röjfors [Fri, 19 Feb 2010 22:41:54 +0000 (19:41 -0300)]
V4L/DVB: mfd: Add timb-radio to the timberdale MFD

This patch addes timb-radio to all configurations of the timberdale MFD.

Connected to the FPGA is a TEF6862 tuner and a SAA7706H DSP, the I2C
board info of these devices is passed via the timb-radio platform data.

Signed-off-by: Richard Röjfors <richard.rojfors@pelagicore.com>
Cc: sameo@linux.intel.com
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: dvb-usb/opera1: misplaced parenthesis
Roel Kluin [Mon, 15 Feb 2010 22:30:38 +0000 (19:30 -0300)]
V4L/DVB: dvb-usb/opera1: misplaced parenthesis

The parenthesis was misplaced, tmp is set to 0 or break occurs,
while debugging opera1_usb_i2c_msgxfer() retval was not shown.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
CC: Marco Gittler <g.marco@freenet.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tuner-xc2028: Fix demod breakage for XC3028L
Mauro Carvalho Chehab [Fri, 19 Feb 2010 22:08:06 +0000 (20:08 -0200)]
V4L/DVB: tuner-xc2028: Fix demod breakage for XC3028L

A small mistake on the last patch broke demod s-code setup for
XC3028L (firmware 3.2 and upper). Fix it.

Thanks-to: Stefan Ringel <stefan.ringel@arcor.de>

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tuner-xc2028: fix tuning logic to solve a regression in Australia
Mauro Carvalho Chehab [Fri, 19 Feb 2010 04:45:00 +0000 (02:45 -0200)]
V4L/DVB: tuner-xc2028: fix tuning logic to solve a regression in Australia

There's one reported regression in Australia (DTV7) and some
reported troubles with newer firmwares found on xc3028l chips.
Rework the logic to improve tuner on those cases.

Thanks-to: Robert Lowery <rglowery@exemail.com.au>
Thanks-to: Stefan Ringel <stefan.ringel@arcor.de>
Tested-by: Robert Lowery <rglowery@exemail.com.au>
CC: stable.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: bttv: Let the user disable IR support
Jean Delvare [Tue, 16 Feb 2010 17:22:37 +0000 (14:22 -0300)]
V4L/DVB: bttv: Let the user disable IR support

Add a new module parameter "disable_ir" to disable IR support. Several
other drivers do that already, and this can be very handy for
debugging purposes.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: em28xx : Terratec Cinergy Hybrid T USB XS FR is working
Catimimi [Thu, 18 Feb 2010 21:06:32 +0000 (18:06 -0300)]
V4L/DVB: em28xx : Terratec Cinergy Hybrid T USB XS FR is working

I succeeded in running Cinergy Hybrid T USB XS FR in both modes.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: dvb: fix sparse warnings
Randy Dunlap [Mon, 15 Feb 2010 02:39:32 +0000 (23:39 -0300)]
V4L/DVB: dvb: fix sparse warnings

Fix sparse warnings in media/dvb/frontends:

drivers/media/dvb/frontends/dibx000_common.c:177:13: warning: non-ANSI function declaration of function 'systime'
drivers/media/dvb/frontends/tda665x.c:136:55: warning: right shift by bigger than source value

[mchehab@redhat.com: removed the change at dib0090 since it got fixed by a previous patch]
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: V4L: dvb-usb, add extra sync to down-up input events
Jiri Slaby [Sun, 14 Feb 2010 20:36:25 +0000 (17:36 -0300)]
V4L/DVB: V4L: dvb-usb, add extra sync to down-up input events

Userspace is allowed to coalesce events between SYNCs. And since the code
emits UP right after DOWN for the same key, it may be missed
(up+down=nothing). Add an extra sync in between UP and DOWN events to disable
the coalesce.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Acked-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: add missing 'p' at card name 'Hauppauge HD PVR'
Lars Hanisch [Sun, 14 Feb 2010 11:57:39 +0000 (08:57 -0300)]
V4L/DVB: add missing 'p' at card name 'Hauppauge HD PVR'

I don't know if there are applications which rely on this name,
but after all it's a spelling mistake.

Signed-off-by: Lars Hanisch <dvb@cinnamon-sage.de>
CC: Janne Granau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: Add an entry for Kworld 315U remote
Franklin Meng [Sat, 13 Feb 2010 05:37:15 +0000 (02:37 -0300)]
V4L/DVB: Add an entry for Kworld 315U remote

Signed-off-by: Franklin Meng <fmeng2002@yahoo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: radio_timberdale: depends on I2c
Randy Dunlap [Fri, 12 Feb 2010 21:02:35 +0000 (18:02 -0300)]
V4L/DVB: radio_timberdale: depends on I2c

RADIO_TIMBERDALE selects RADIO_SAA7706H, but RADIO_SAA7706H
depends on I2C, so make RADIO_TIMBERDALE depend on I2C also;
otherwise there are build errors:

drivers/media/radio/saa7706h.c:139: error: implicit declaration of function 'i2c_master_send'
drivers/media/radio/saa7706h.c:148: error: implicit declaration of function 'i2c_transfer'
drivers/media/radio/saa7706h.c:372: error: implicit declaration of function 'i2c_check_functionality'
drivers/media/radio/saa7706h.c:375: error: implicit declaration of function 'i2c_adapter_id'
drivers/media/radio/saa7706h.c:438: error: implicit declaration of function 'i2c_add_driver'
drivers/media/radio/saa7706h.c:443: error: implicit declaration of function 'i2c_del_driver'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Mocean Laboratories <info@mocean-labs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: media/video/tlg2300: fix build when CONFIG_PM=n
Randy Dunlap [Fri, 12 Feb 2010 21:02:29 +0000 (18:02 -0300)]
V4L/DVB: media/video/tlg2300: fix build when CONFIG_PM=n

When CONFIG_PM is not enabled, tlg2300 has build errors,
so handle that case, mostly via stubs.

drivers/media/video/tlg2300/pd-alsa.c:237: error: 'struct poseidon' has no member named 'msg'
drivers/media/video/tlg2300/pd-main.c:412: error: implicit declaration of function 'find_old_poseidon'
drivers/media/video/tlg2300/pd-main.c:418: error: implicit declaration of function 'set_map_flags'
drivers/media/video/tlg2300/pd-main.c:462: error: implicit declaration of function 'get_pd'

Cc: linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>, linux-media@vger.kernel.org
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Huang Shijie <shijie8@gmail.com>
Cc: Kang Yong <kangyong@telegent.com>
Cc: Zhang Xiaobing <xbzhang@telegent.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: timberdale: fix mfd build
Randy Dunlap [Fri, 12 Feb 2010 15:30:55 +0000 (12:30 -0300)]
V4L/DVB: timberdale: fix mfd build

Fix mfd/timberdale build error -- add depends GPIOLIB.

include/linux/spi/max7301.h:14: error: field 'chip' has incomplete type
build-r7353.out:make[3]: *** [drivers/mfd/timberdale.o] Error 1

Repairs

commit ff7a26e08a16bb31158d830dbf60db2ff47019ab
Author:     Richard R<C3><B6>jfors <richard.rojfors@pelagicore.com>
AuthorDate: Thu Feb 4 08:18:52 2010 -0300
Commit:     Mauro Carvalho Chehab <mchehab@redhat.com>
CommitDate: Fri Feb 5 12:25:37 2010 -0200

    V4L/DVB: mfd: Add support for the timberdale FPGA

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Richard Rojfors <richard.rojfors@pelagicore.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: Kbuild addition for TVP7002 driver
Santiago Nunez-Corrales [Fri, 18 Dec 2009 17:07:57 +0000 (14:07 -0300)]
V4L/DVB: Kbuild addition for TVP7002 driver

This patch provides menu configuration options for the TVP7002
decoder driver in DM365. Includes only TVP7002.

Signed-off-by: Santiago Nunez-Corrales <santiago.nunez@ridgerun.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tvp7002: fix compilation breakage when advanced debug is enabled
Hans Verkuil [Thu, 25 Feb 2010 20:34:09 +0000 (17:34 -0300)]
V4L/DVB: tvp7002: fix compilation breakage when advanced debug is enabled

> On Mon, 22 Feb 2010 08:21:44 -0800 Randy Dunlap wrote:
> drivers/media/video/tvp7002.c:896: error: 'struct tvp7002' has no member named 'registers'
>
> so where are these registers??

Hmm, that code is a remnant from older revisions of this driver. Unfortunately,
when I compiled this driver before creating my pull request I forgot to turn on
the CONFIG_VIDEO_ADV_DEBUG option and so I never saw it.

Also fixed the g_register function: it never returned a register
value in the original code.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: TVP7002 driver for DM365
Santiago Nunez-Corrales [Mon, 21 Dec 2009 19:14:04 +0000 (16:14 -0300)]
V4L/DVB: TVP7002 driver for DM365

This patch provides the implementation of the TVP7002 decoder
driver for DM365. Implemented using the V4L2 DV presets API.
Removed shadow register values. Testing shows that the device
needs not to be powered down and up for correct behaviour.
Improved readability. Uses helper function for preset information.

[mchehab@redhat.com: Fix bad Whitespacing]
Signed-off-by: Santiago Nunez-Corrales <santiago.nunez@ridgerun.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: Definitions for TVP7002 in DM365
Santiago Nunez-Corrales [Fri, 18 Dec 2009 17:07:39 +0000 (14:07 -0300)]
V4L/DVB: Definitions for TVP7002 in DM365

This patch provides the required definitions for the TVP7002 driver
in DM365.

Signed-off-by: Santiago Nunez-Corrales <santiago.nunez@ridgerun.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: Support for TVP7002 in v4l2 definitions
Santiago Nunez-Corrales [Fri, 18 Dec 2009 17:07:29 +0000 (14:07 -0300)]
V4L/DVB: Support for TVP7002 in v4l2 definitions

This patch provides required chip identification definitions
within v4l2. Included only definitions for TVP7002.

Signed-off-by: Santiago Nunez-Corrales <santiago.nunez@ridgerun.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: AZ6027: Fix build warnings
Manu Abraham [Sun, 14 Feb 2010 20:07:28 +0000 (17:07 -0300)]
V4L/DVB: AZ6027: Fix build warnings

drivers/media/dvb/dvb-usb/az6027.c:390: warning: excess elements in struct initializer
drivers/media/dvb/dvb-usb/az6027.c:390: warning: (near initialization for ‘az6027_rc_keys[0]’)
drivers/media/dvb/dvb-usb/az6027.c:391: warning: excess elements in struct initializer
drivers/media/dvb/dvb-usb/az6027.c:391: warning: (near initialization for ‘az6027_rc_keys[1]’)
drivers/media/dvb/dvb-usb/az6027.c:759: warning: ‘az6027_read_mac_addr’ defined but not used

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoRevert "V4L/DVB: az6027: az6027_read_mac_addr is currently unused"
Mauro Carvalho Chehab [Thu, 18 Feb 2010 01:54:07 +0000 (23:54 -0200)]
Revert "V4L/DVB: az6027: az6027_read_mac_addr is currently unused"

This reverts commit 1e08370814e8902074d59cc57f2b4c1a62f00ee8.

Patch were wrongly applied.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoRevert "V4L/DVB: az6027: IR RC keys are using the old struct with 3 parameters, inste...
Mauro Carvalho Chehab [Thu, 18 Feb 2010 01:53:04 +0000 (23:53 -0200)]
Revert "V4L/DVB: az6027: IR RC keys are using the old struct with 3 parameters, instead of 2"

This reverts commit 234497b022c464532976b8a12614819bcf67f41b.

Patch were wrongly applied.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agosh_mobile_ceu_camera: pass .set_parm and .get_parm down to subdevices
Guennadi Liakhovetski [Tue, 9 Feb 2010 17:00:38 +0000 (18:00 +0100)]
sh_mobile_ceu_camera: pass .set_parm and .get_parm down to subdevices

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agosoc-camera: add support for VIDIOC_S_PARM and VIDIOC_G_PARM ioctls
Guennadi Liakhovetski [Tue, 9 Feb 2010 17:00:30 +0000 (18:00 +0100)]
soc-camera: add support for VIDIOC_S_PARM and VIDIOC_G_PARM ioctls

Just pass VIDIOC_S_PARM and VIDIOC_G_PARM down to host drivers. So far no
special handling in soc-camera core.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agosoc-camera: return -ENODEV if sensor is missing
Magnus Damm [Tue, 9 Feb 2010 08:40:40 +0000 (17:40 +0900)]
soc-camera: return -ENODEV if sensor is missing

Update the soc-camera i2c code to return -ENODEV if
a camera sensor is missing instead of -ENOMEM.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agopxa_camera: remove init() callback
Antonio Ospite [Tue, 17 Nov 2009 22:04:23 +0000 (23:04 +0100)]
pxa_camera: remove init() callback

pxa_camera init() callback is sometimes abused to setup MFP for PXA CIF, or
even to request GPIOs to be used by the camera *sensor*. These initializations
can be performed statically in machine init functions.

The current semantics for this init() callback is ambiguous anyways, it is
invoked in pxa_camera_activate(), hence at device node open, but its users use
it like a generic initialization to be done at module init time (configure
MFP, request GPIOs for *sensor* control).

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agosoc-camera: adjust coding style to match V4L preferences
Guennadi Liakhovetski [Thu, 24 Dec 2009 13:12:15 +0000 (14:12 +0100)]
soc-camera: adjust coding style to match V4L preferences

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agosoc-camera: ov772x: Modify buswidth control
Kuninori Morimoto [Wed, 6 Jan 2010 09:42:16 +0000 (18:42 +0900)]
soc-camera: ov772x: Modify buswidth control

This patch removes "buswidth" struct member, and sets the default buswidth
to the natively supported 10 bit. You can select 8 bit buswidth by new flag.
This patch also modify ap325rxa/migor setup.c

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agotw9910: use TABs for indentation
Guennadi Liakhovetski [Thu, 4 Feb 2010 10:24:00 +0000 (11:24 +0100)]
tw9910: use TABs for indentation

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agosoc-camera: update mt9v022 to take into account board signal routing
Guennadi Liakhovetski [Thu, 4 Feb 2010 10:17:48 +0000 (11:17 +0100)]
soc-camera: update mt9v022 to take into account board signal routing

Use soc_camera_apply_sensor_flags() in mt9v022 to account for any inverters in
video signal paths.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: az6027: az6027_read_mac_addr is currently unused
Mauro Carvalho Chehab [Wed, 17 Feb 2010 23:13:19 +0000 (21:13 -0200)]
V4L/DVB: az6027: az6027_read_mac_addr is currently unused

drivers/media/dvb/dvb-usb/az6027.c:759: warning: ‘az6027_read_mac_addr’ defined but not used

While there's some code that uses it, it is currently commented. So, comment also
the function itself.

CC: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: az6027: IR RC keys are using the old struct with 3 parameters, instead of 2
Mauro Carvalho Chehab [Wed, 17 Feb 2010 23:11:06 +0000 (21:11 -0200)]
V4L/DVB: az6027: IR RC keys are using the old struct with 3 parameters, instead of 2

drivers/media/dvb/dvb-usb/az6027.c:390: warning: excess elements in struct initializer
drivers/media/dvb/dvb-usb/az6027.c:390: warning: (near initialization for ‘az6027_rc_keys[0]’)
drivers/media/dvb/dvb-usb/az6027.c:391: warning: excess elements in struct initializer
drivers/media/dvb/dvb-usb/az6027.c:391: warning: (near initialization for ‘az6027_rc_keys[1]’)

CC: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: AZ6027: Fix checkpatch violations
Manu Abraham [Sun, 14 Feb 2010 19:58:10 +0000 (16:58 -0300)]
V4L/DVB: AZ6027: Fix checkpatch violations

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: AZ6027: Add driver supported ID's
Manu Abraham [Sun, 14 Feb 2010 18:10:54 +0000 (15:10 -0300)]
V4L/DVB: AZ6027: Add driver supported ID's

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: AZ6027: Update Build
Manu Abraham [Sun, 14 Feb 2010 18:03:39 +0000 (15:03 -0300)]
V4L/DVB: AZ6027: Update Build

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: AZ6027: Add driver supported ID's
Manu Abraham [Sun, 14 Feb 2010 17:59:39 +0000 (14:59 -0300)]
V4L/DVB: AZ6027: Add driver supported ID's

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: AZ6027: Initial import of the driver
Adams Xu [Sun, 14 Feb 2010 17:34:07 +0000 (14:34 -0300)]
V4L/DVB: AZ6027: Initial import of the driver

Signed-off-by: Manu Abaraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: tlg2300: remove the country code for analog tv and radio
Huang Shijie [Thu, 11 Feb 2010 06:53:51 +0000 (03:53 -0300)]
V4L/DVB: tlg2300: remove the country code for analog tv and radio

video :
use the V4L2_STD macros to select the proper audio setting.

radio :
add preemphasis ctr.
test it by the command:
v4l2-ctl -d /dev/radio0 --set-ctrl=pre_emphasis_settings=1

[mchehab@redhat.com: folded documentation patch]
Signed-off-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: Add driver for Telegent tlg2300
Huang Shijie [Tue, 2 Feb 2010 07:07:47 +0000 (04:07 -0300)]
V4L/DVB: Add driver for Telegent tlg2300

pd-common.h contains the common data structures, while
vendorcmds.h contains the vendor commands for firmware.

[mchehab@redhat.com: Folded the 10 patches with the driver]
Signed-off-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: Kworld 315U remote support
Franklin Meng [Thu, 11 Feb 2010 05:50:56 +0000 (02:50 -0300)]
V4L/DVB: Kworld 315U remote support

Adds remote support for the Kworld 315U device

I have added the change for the IR_TYPE_NEC that Mauro suggested.

Note: I believe I got most of the mappings correct.  Though the
source and shutdown button probably could be mapped to something
better.

[mchehab@redhat.com: Fix CodingStyle]
Signed-off-by: Franklin Meng <fmeng2002@yahoo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: drivers/media/radio/si470x/radio-si470x-usb.c fix use after free
Darren Jenkins [Thu, 11 Feb 2010 11:07:53 +0000 (08:07 -0300)]
V4L/DVB: drivers/media/radio/si470x/radio-si470x-usb.c fix use after free

In si470x_usb_driver_disconnect() radio->disconnect_lock is accessed
after it is freed. This fixes the problem.

Coverity CID: 2530

Signed-off-by: Darren Jenkins <darrenrjenkins@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: af901x: inform NXP TDA18218 tuner as know but not supported
Antti Palosaari [Thu, 11 Feb 2010 00:33:12 +0000 (21:33 -0300)]
V4L/DVB: af901x: inform NXP TDA18218 tuner as know but not supported

There is no driver for new NXP TDA18218 tuner which is used by few recent
af9015 designs. af9015 uses number 179 as ID for that tuner. Inform this
tuner is not supported when device using that tuner is meet.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: af9015: MYGICTV U718 remote autodetection
Antti Palosaari [Wed, 10 Feb 2010 23:44:12 +0000 (20:44 -0300)]
V4L/DVB: af9015: MYGICTV U718 remote autodetection

Autodetect MYGICTV U718 from eeprom hash and select remote automatically.
Remove old iManufacturer string compare based remote selection logic.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: af9015: A-Link DTU(m) remote autodetection
Antti Palosaari [Wed, 10 Feb 2010 23:20:41 +0000 (20:20 -0300)]
V4L/DVB: af9015: A-Link DTU(m) remote autodetection

Autodetect A-Link DTU(m) based eeprom hash and select correct remote.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: af9015: support for Leadtek WinFast DTV2000DS
Antti Palosaari [Wed, 10 Feb 2010 23:07:30 +0000 (20:07 -0300)]
V4L/DVB: af9015: support for Leadtek WinFast DTV2000DS

Add USB ID 0413:6a04 for Leadtek WinFast DTV2000DS.

Thanks to Gavin Ramm <gavin_ramm@hotmail.com> for reporting this.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>