linux-2.6
15 years agoV4L/DVB (9895): cx18: Refine the firmware load and firmware startup process
Andy Walls [Mon, 15 Dec 2008 00:26:25 +0000 (21:26 -0300)] 
V4L/DVB (9895): cx18: Refine the firmware load and firmware startup process

Refine the firmware load and firmware startup process.  Significant changes
are to ensure the SCB and IPC area are correct before starting up the firmware,
and letting the CPU firmware start up the APU firmware for us.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9894): cx18: Use a known open task handle when setting stream CX2341x parameters
Andy Walls [Sun, 23 Nov 2008 22:16:44 +0000 (19:16 -0300)] 
V4L/DVB (9894): cx18: Use a known open task handle when setting stream CX2341x parameters

cx18: Use a known open task handle when setting stream CX2341x parameters
Sometimes, we might only have VBI or YUV stream open instead of an MPEG stream.
Let's make sure we use a valid task handle to perform the CX2341x control
settings.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9893): cx18: Convert some list manipulations to emphasize entries not lists
Andy Walls [Mon, 15 Dec 2008 00:05:36 +0000 (21:05 -0300)] 
V4L/DVB (9893): cx18: Convert some list manipulations to emphasize entries not lists

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9892): cx18: VBI comment corrections and comments about VBI issues
Andy Walls [Sun, 14 Dec 2008 22:21:35 +0000 (19:21 -0300)] 
V4L/DVB (9892): cx18: VBI comment corrections and comments about VBI issues

VBI comment corrections to avoid future confusion about standards.
Comments on cx18 VBI implementation shortcomings that need resolution.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9891): cx18 Replace magic number 63 with CX18_MAX_FW_MDLS_PER_STREAM
Andy Walls [Sun, 14 Dec 2008 21:52:12 +0000 (18:52 -0300)] 
V4L/DVB (9891): cx18 Replace magic number 63 with CX18_MAX_FW_MDLS_PER_STREAM

Removed magic number that referred to firmware limit on the number of
MDLs the firmware can maintain for any stream at any one time.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9889): CX24113: Fixed more typos
Patrick Boettcher [Sun, 14 Dec 2008 14:56:28 +0000 (11:56 -0300)] 
V4L/DVB (9889): CX24113: Fixed more typos

Uwe Bugla pointed out that there are some more typos in some print-statements. Fixed.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9888): Patch: fix a typo in cx24113.c
Uwe Bugla [Sun, 14 Dec 2008 12:11:53 +0000 (09:11 -0300)] 
V4L/DVB (9888): Patch: fix a typo in cx24113.c

This patch fixes a typo in cx24113.c.

Signed-off-by: Uwe Bugla <uwe.bugla@gmx.de>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9887): Minor fixes for cx24113-driver (codingstyle)
Patrick Boettcher [Sun, 14 Dec 2008 11:59:55 +0000 (08:59 -0300)] 
V4L/DVB (9887): Minor fixes for cx24113-driver (codingstyle)

Fixed some minor coding style issues and some driver information
printed when using the driver on a board.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9884): gspca - ov534: Fix a warning when compilation without GSPCA_DEBUG.
Jean-Francois Moine [Sun, 14 Dec 2008 08:50:24 +0000 (05:50 -0300)] 
V4L/DVB (9884): gspca - ov534: Fix a warning when compilation without GSPCA_DEBUG.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9883): gspca - ov534: Show sensor ID.
Antonio Ospite [Sun, 14 Dec 2008 08:48:07 +0000 (05:48 -0300)] 
V4L/DVB (9883): gspca - ov534: Show sensor ID.

The original version of sccb_read_reg() is from Jim Paris.

NOTE: as it is now reading sensor ID won't work for sensors on different
i2c slave address.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9882): gspca - ov534: Fix typo.
Antonio Ospite [Sun, 14 Dec 2008 08:41:56 +0000 (05:41 -0300)] 
V4L/DVB (9882): gspca - ov534: Fix typo.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9880): gspca - vc032x: Add V&H flips and sharpness controls for sensor po1200.
Jean-Francois Moine [Sat, 13 Dec 2008 10:45:34 +0000 (07:45 -0300)] 
V4L/DVB (9880): gspca - vc032x: Add V&H flips and sharpness controls for sensor po1200.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9879): gspca - vc032x: Remove the unused quality/qindex.
Jean-Francois Moine [Fri, 12 Dec 2008 07:48:06 +0000 (04:48 -0300)] 
V4L/DVB (9879): gspca - vc032x: Remove the unused quality/qindex.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9878): gspca - vc032x: Fix frame overflow errors with vc0321.
Hans de Goede [Thu, 11 Dec 2008 08:02:18 +0000 (05:02 -0300)] 
V4L/DVB (9878): gspca - vc032x: Fix frame overflow errors with vc0321.

The vc0321 sends some additional data after sending the complete
frame, we ignore this.

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>
15 years agoV4L/DVB (9877): gspca - ov534: Add framerate support.
Jim Paris [Wed, 10 Dec 2008 09:06:20 +0000 (06:06 -0300)] 
V4L/DVB (9877): gspca - ov534: Add framerate support.

Add support for getting and setting framerate via v4l2 controls,
rather than setting a fixed value at module insertion.

Signed-off-by: Jim Paris <jim@jtan.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9876): gspca - main: Allow subdrivers to handle v4l2_streamparm requests.
Jim Paris [Wed, 10 Dec 2008 09:02:42 +0000 (06:02 -0300)] 
V4L/DVB (9876): gspca - main: Allow subdrivers to handle v4l2_streamparm requests.

Add get_streamparm and set_streamparm operations so subdrivers can
get/set stream parameters such as framerate.

Signed-off-by: Jim Paris <jim@jtan.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9874): gspca - ov534: Explicitly initialize frame format.
Jim Paris [Wed, 10 Dec 2008 08:47:44 +0000 (05:47 -0300)] 
V4L/DVB (9874): gspca - ov534: Explicitly initialize frame format.

Set frame format registers 0x0a and 0x0b to explicit values
rather than relying on reset-time defaults.

Signed-off-by: Jim Paris <jim@jtan.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9873): gspca - ov534: Improve payload handling.
Jim Paris [Wed, 10 Dec 2008 08:45:14 +0000 (05:45 -0300)] 
V4L/DVB (9873): gspca - ov534: Improve payload handling.

Frame data in bulk transfers is separated into 2048-byte payloads.
Each payload has its own header.

Signed-off-by: Jim Paris <jim@jtan.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9871): gspca - vc032x: Bad detection of sensor mi0360.
Jean-Francois Moine [Wed, 10 Dec 2008 08:13:05 +0000 (05:13 -0300)] 
V4L/DVB (9871): gspca - vc032x: Bad detection of sensor mi0360.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9870): gspca - vc032x: Webcam 15b8:6002 and sensor po1200 added.
Jean-Francois Moine [Wed, 10 Dec 2008 08:06:13 +0000 (05:06 -0300)] 
V4L/DVB (9870): gspca - vc032x: Webcam 15b8:6002 and sensor po1200 added.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9869): gspca - zc3xx: Change the USB exchanges for the sensor pas202b.
Jean-Francois Moine [Mon, 8 Dec 2008 09:41:04 +0000 (06:41 -0300)] 
V4L/DVB (9869): gspca - zc3xx: Change the USB exchanges for the sensor pas202b.

This sensor was declared as hdcs2020.
The new exchanges have been extracted from the ms-win file usbvm31b.inf.
The light frequency control has been added.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9868): gspca - zc3xx: Remove the duplicated register names
Jean-Francois Moine [Mon, 8 Dec 2008 09:25:40 +0000 (06:25 -0300)] 
V4L/DVB (9868): gspca - zc3xx: Remove the duplicated register names

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9867): gspca - vc032x: Remove the autogain control.
Jean-Francois Moine [Mon, 8 Dec 2008 08:17:32 +0000 (05:17 -0300)] 
V4L/DVB (9867): gspca - vc032x: Remove the autogain control.

This control was not coded.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9866): gspca - vc032x: V and H flips added for sensors ov7660 and 7670.
Jean-Francois Moine [Mon, 8 Dec 2008 08:13:53 +0000 (05:13 -0300)] 
V4L/DVB (9866): gspca - vc032x: V and H flips added for sensors ov7660 and 7670.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9865): gspca - vc032x: Bad check of the sensor mi0360.
Jean-Francois Moine [Mon, 8 Dec 2008 07:48:21 +0000 (04:48 -0300)] 
V4L/DVB (9865): gspca - vc032x: Bad check of the sensor mi0360.

Error was due to bad variable names.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9864): gspca - ov519: Change copyright information.
Romain Beauxis [Fri, 5 Dec 2008 09:25:26 +0000 (06:25 -0300)] 
V4L/DVB (9864): gspca - ov519: Change copyright information.

Signed-off-by: Romain Beauxis <toots@rastageeks.org>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9863): gspca - sonixj: Cleanup / simplify code.
Jean-Francois Moine [Fri, 5 Dec 2008 09:18:37 +0000 (06:18 -0300)] 
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>
15 years agoV4L/DVB (9861): gspca - ov534: Accept many simultaneous webcams.
Jean-Francois Moine [Thu, 4 Dec 2008 08:06:08 +0000 (05:06 -0300)] 
V4L/DVB (9861): gspca - ov534: Accept many simultaneous webcams.

This patch moves the last fid and pts from static to the sd structure.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9860): gspca - ov534: Frame transfer improvements.
Jim Paris [Thu, 4 Dec 2008 07:52:40 +0000 (04:52 -0300)] 
V4L/DVB (9860): gspca - ov534: Frame transfer improvements.

The indirect registers at 0x1c/0x1d control frame settings.  If we
leave the values at 0x0a and 0x0b at their reset-time defaults, frame
data from the camera matches the UVC payload format.  This lets us
better reassemble the data into frames and know when data was lost.

This also lets us relax the bulk_size requirement from 600K to 2K,
which should help systems on with limited RAM (like the PS3).

Signed-off-by: Jim Paris <jim@jtan.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9859): gspca - ov534: Fix frame size so we don't miss the last pixel.
Jim Paris [Thu, 4 Dec 2008 07:36:14 +0000 (04:36 -0300)] 
V4L/DVB (9859): gspca - ov534: Fix frame size so we don't miss the last pixel.

The frame size is too small, so we lose the last YUYV pixel.
Fix the setup and remove the last_pixel hack.

Signed-off-by: Jim Paris <jim@jtan.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9858): gspca - ov534: Initialization cleanup.
Jim Paris [Thu, 4 Dec 2008 07:28:27 +0000 (04:28 -0300)] 
V4L/DVB (9858): gspca - ov534: Initialization cleanup.

Signed-off-by: Jim Paris <jim@jtan.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9857): gspca: Use smaller chunks for urb buffer in ov534.
Antonio Ospite [Wed, 3 Dec 2008 19:21:08 +0000 (16:21 -0300)] 
V4L/DVB (9857): gspca: Use smaller chunks for urb buffer in ov534.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9856): gspca: Use u8 values for USB control messages in ov534.
Antonio Ospite [Wed, 3 Dec 2008 17:10:01 +0000 (14:10 -0300)] 
V4L/DVB (9856): gspca: Use u8 values for USB control messages in ov534.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9855): gspca: Simplify frame rate setting and debug in ov534.
Antonio Ospite [Wed, 3 Dec 2008 17:01:54 +0000 (14:01 -0300)] 
V4L/DVB (9855): gspca: Simplify frame rate setting and debug in ov534.

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9854): gspca: Add the webcam 0c45:60fe in the gspca documentation.
Jean-Francois Moine [Wed, 3 Dec 2008 10:29:26 +0000 (07:29 -0300)] 
V4L/DVB (9854): gspca: Add the webcam 0c45:60fe in the gspca documentation.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9853): gspca: Webcam 093a:2622 added in pac7311.
Jean-Francois Moine [Wed, 3 Dec 2008 10:19:22 +0000 (07:19 -0300)] 
V4L/DVB (9853): gspca: Webcam 093a:2622 added in pac7311.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9852): gspca: Fix image problem at low resolutions with ov7660 in sonixj.
Jean-Francois Moine [Tue, 2 Dec 2008 18:00:57 +0000 (15:00 -0300)] 
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>
15 years agoV4L/DVB (9850): gspca: Bad color control in sonixj.
Jean-Francois Moine [Tue, 2 Dec 2008 09:58:57 +0000 (06:58 -0300)] 
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>
15 years agoV4L/DVB (9849): gspca: Add the webcam 0c45:613a in the gspca documentation.
Jean-Francois Moine [Tue, 2 Dec 2008 09:56:47 +0000 (06:56 -0300)] 
V4L/DVB (9849): gspca: Add the webcam 0c45:613a in the gspca documentation.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9848): gspca: Webcam 06f8:3004 added in sonixj.
Jean-Francois Moine [Mon, 1 Dec 2008 17:44:02 +0000 (14:44 -0300)] 
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>
15 years agoV4L/DVB (9847): gspca: Align the 640x480 and 320x240 init of tas5130 in zc3xx.
Jean-Francois Moine [Fri, 28 Nov 2008 18:31:43 +0000 (15:31 -0300)] 
V4L/DVB (9847): gspca: Align the 640x480 and 320x240 init of tas5130 in zc3xx.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9846): gspca: Do the webcam microphone work when present.
Jean-Francois Moine [Fri, 28 Nov 2008 11:51:50 +0000 (08:51 -0300)] 
V4L/DVB (9846): gspca: Do the webcam microphone work when present.

This patch adds the set/get/enum audio controls.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9845): gspca: Add sensor mi0360 in vc032x.
Jean-Francois Moine [Wed, 26 Nov 2008 19:17:13 +0000 (16:17 -0300)] 
V4L/DVB (9845): gspca: Add sensor mi0360 in vc032x.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9843): gspca: Change the colors and add the red and blue controls in sonixj.
Jean-Francois Moine [Wed, 26 Nov 2008 07:46:15 +0000 (04:46 -0300)] 
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>
15 years agoV4L/DVB (9842): gspca: Center the brightness in sonixj.
Jean-Francois Moine [Tue, 25 Nov 2008 07:47:09 +0000 (04:47 -0300)] 
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>
15 years agoV4L/DVB (9841): gspca: Use msleep instead of mdelay.
Jean-Francois Moine [Mon, 24 Nov 2008 09:38:21 +0000 (06:38 -0300)] 
V4L/DVB (9841): gspca: Use msleep instead of mdelay.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9840): gspca: Simplify the pkt_scan of stk014.
Jean-Francois Moine [Mon, 24 Nov 2008 09:28:58 +0000 (06:28 -0300)] 
V4L/DVB (9840): gspca: Simplify the pkt_scan of stk014.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9838): gspca: Delay when trying an other altsetting on streaming start.
Jean-Francois Moine [Sun, 23 Nov 2008 18:53:28 +0000 (15:53 -0300)] 
V4L/DVB (9838): gspca: Delay when trying an other altsetting on streaming start.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9837): gspca: Simplify the brightness/contrast for ov76xx sensors in sonixj.
Jean-Francois Moine [Sun, 23 Nov 2008 17:47:50 +0000 (14:47 -0300)] 
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>
15 years agoV4L/DVB (9835): ivtv/ivtvfb: convert to v4l2_device/v4l2_subdev.
Hans Verkuil [Sat, 29 Nov 2008 22:38:23 +0000 (19:38 -0300)] 
V4L/DVB (9835): ivtv/ivtvfb: convert to v4l2_device/v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9834): wm8775: convert to v4l2_subdev.
Hans Verkuil [Sat, 29 Nov 2008 16:03:22 +0000 (13:03 -0300)] 
V4L/DVB (9834): wm8775: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9833): wm8739: convert to v4l2_subdev.
Hans Verkuil [Sat, 29 Nov 2008 16:02:26 +0000 (13:02 -0300)] 
V4L/DVB (9833): wm8739: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9832): vp27smpx: convert to v4l2_subdev.
Hans Verkuil [Sat, 29 Nov 2008 16:01:28 +0000 (13:01 -0300)] 
V4L/DVB (9832): vp27smpx: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9831): upd64083: convert to v4l2_subdev.
Hans Verkuil [Sat, 29 Nov 2008 16:00:30 +0000 (13:00 -0300)] 
V4L/DVB (9831): upd64083: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9830): upd64031a: convert to v4l2_subdev.
Hans Verkuil [Sat, 29 Nov 2008 15:59:33 +0000 (12:59 -0300)] 
V4L/DVB (9830): upd64031a: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9829): tuner: convert to v4l2_subdev.
Hans Verkuil [Mon, 24 Nov 2008 21:21:40 +0000 (18:21 -0300)] 
V4L/DVB (9829): tuner: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9828): saa717x: convert to v4l2_subdev.
Hans Verkuil [Sat, 29 Nov 2008 15:57:44 +0000 (12:57 -0300)] 
V4L/DVB (9828): saa717x: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9827): saa7127: convert to v4l2_subdev.
Hans Verkuil [Sat, 29 Nov 2008 15:56:38 +0000 (12:56 -0300)] 
V4L/DVB (9827): saa7127: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9826): saa7115: convert to v4l2_subdev.
Hans Verkuil [Sat, 29 Nov 2008 15:55:19 +0000 (12:55 -0300)] 
V4L/DVB (9826): saa7115: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9825): msp3400: convert to v4l2_subdev.
Hans Verkuil [Mon, 24 Nov 2008 21:16:46 +0000 (18:16 -0300)] 
V4L/DVB (9825): msp3400: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9824): m52790: convert to v4l2_subdev.
Hans Verkuil [Sat, 29 Nov 2008 15:51:32 +0000 (12:51 -0300)] 
V4L/DVB (9824): m52790: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9823): cx25840: convert to v4l2_subdev.
Hans Verkuil [Sat, 29 Nov 2008 15:50:06 +0000 (12:50 -0300)] 
V4L/DVB (9823): cx25840: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9822): cs53l32a: convert to v4l2_subdev.
Hans Verkuil [Sat, 29 Nov 2008 15:45:59 +0000 (12:45 -0300)] 
V4L/DVB (9822): cs53l32a: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9821): v4l2-common: add i2c helper functions
Hans Verkuil [Sun, 23 Nov 2008 15:19:45 +0000 (12:19 -0300)] 
V4L/DVB (9821): v4l2-common: add i2c helper functions

Add helper functions to load i2c sub-devices, integrating them
into the v4l2-framework.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9820): v4l2: add v4l2_device and v4l2_subdev structs to the v4l2 framework.
Hans Verkuil [Sun, 30 Nov 2008 00:36:58 +0000 (21:36 -0300)] 
V4L/DVB (9820): v4l2: add v4l2_device and v4l2_subdev structs to the v4l2 framework.

Start implementing a proper v4l2 framework as discussed during the
Linux Plumbers Conference 2008.

Introduces v4l2_device (for device instances) and v4l2_subdev (representing
sub-device instances).

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Reviewed-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Reviewed-by: Andy Walls <awalls@radix.net>
Reviewed-by: David Brownell <david-b@pacbell.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9817): v4l: add new tvp514x I2C video decoder driver
Vaibhav Hiremath [Fri, 5 Dec 2008 13:19:36 +0000 (10:19 -0300)] 
V4L/DVB (9817): v4l: add new tvp514x I2C video decoder driver

Signed-off-by: Brijesh Jadav <brijesh.j@ti.com>
Signed-off-by: Hardik Shah <hardik.shah@ti.com>
Signed-off-by: Manjunath Hadli <mrh@ti.com>
Signed-off-by: R Sivaraj <sivaraj@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Karicheri Muralidharan <m-karicheri2@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed-by: David Brownell <david-b@pacbell.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9816): v4l2-int-if: add three new ioctls for std handling and routing
Vaibhav Hiremath [Fri, 5 Dec 2008 13:13:40 +0000 (10:13 -0300)] 
V4L/DVB (9816): v4l2-int-if: add three new ioctls for std handling and routing

These changes are needed for the new TVP514x driver.

Signed-off-by: Brijesh Jadav <brijesh.j@ti.com>
Signed-off-by: Hardik Shah <hardik.shah@ti.com>
Signed-off-by: Manjunath Hadli <mrh@ti.com>
Signed-off-by: R Sivaraj <sivaraj@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Karicheri Muralidharan <m-karicheri2@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9815): omap2: add OMAP2 camera driver.
Sakari Ailus [Mon, 1 Dec 2008 18:40:09 +0000 (15:40 -0300)] 
V4L/DVB (9815): omap2: add OMAP2 camera driver.

Add a driver for the OMAP2 camera block. OMAP2 is used in e.g. Nokia
N800/N810 internet tablet.

This driver uses the V4L2 internal ioctl interface.

Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Trilok Soni <soni.trilok@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9812): [PATCH] short help for Technisat cards to select the right configuration
Patrick Boettcher [Wed, 10 Dec 2008 21:27:39 +0000 (18:27 -0300)] 
V4L/DVB (9812): [PATCH] short help for Technisat cards to select the right configuration

This patch adds a short help for Technisat cards to help the user
selecting the right configuration for his card(s).

Signed-off-by: Uwe Bugla <uwe.bugla@gmx.de>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9811): Add support for the CX24113 DVB-S tuner driver
Patrick Boettcher [Sun, 23 Nov 2008 19:26:54 +0000 (16:26 -0300)] 
V4L/DVB (9811): Add support for the CX24113 DVB-S tuner driver

This commit adds support for the CX24113 DVB-S tuner driver and thus support for the Technisat Skystar2 revision 2.8.
The driver was created with the help of Technisat. Thank you very much.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9810): uvcvideo: Add a device quirk to prune bogus controls.
Laurent Pinchart [Sat, 6 Dec 2008 20:43:40 +0000 (17:43 -0300)] 
V4L/DVB (9810): uvcvideo: Add a device quirk to prune bogus controls.

Bogus controls currently include processing unit auto controls for which no
corresponding manual control is available. Such auto controls make little
sense if any, and are known to crash at least the SiGma Micro webcam.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9809): uvcvideo: Add nodrop module parameter to turn incomplete frame drop...
Laurent Pinchart [Sat, 6 Dec 2008 19:25:14 +0000 (16:25 -0300)] 
V4L/DVB (9809): uvcvideo: Add nodrop module parameter to turn incomplete frame drop off.

The driver drops incomplete uncompressed video frames to avoid confusing
userspace with corrupt data. Add a nodrop module parameter to turn that
behaviour off and make all frames available to userspace.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9806): cx18: Enable raw VBI capture
Andy Walls [Fri, 12 Dec 2008 23:00:29 +0000 (20:00 -0300)] 
V4L/DVB (9806): cx18: Enable raw VBI capture

A combined authorship patch from Hans Verkuil and Andy Walls.  Raw
VBI can now be captured but requires a video capture to be in progress as well.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9805): cx18: Port fix for raw/sliced VBI mixup from ivtv and cx25840
Andy Walls [Fri, 12 Dec 2008 19:24:04 +0000 (16:24 -0300)] 
V4L/DVB (9805): cx18: Port fix for raw/sliced VBI mixup from ivtv and cx25840

This is a port of the fixes Hans Verkuil made for ivtv/cx25840:
The service_set field was used to determine whether raw or sliced VBI was
desired. This is incorrect since it is perfectly valid to select sliced VBI
with a service_set of 0.

Instead the driver should check on VIDIOC_S_FMT whether the type
field matches the raw or sliced VBI type.

Updated the cx18 driver accordingly, including an additional check in
cx18_start_v4l2_encode_stream() that didn't exist in ivtv.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9804): cx18: Avoid making firmware API calls with the queue lock held
Andy Walls [Fri, 12 Dec 2008 18:50:27 +0000 (15:50 -0300)] 
V4L/DVB (9804): cx18: Avoid making firmware API calls with the queue lock held

cx18: Avoid making firmware API calls with the queue lock held.  The source
of MPEG strem corruption when not holding the queue lock was found to be that
the MPEG buffer could be retrieved by the user app before it was sync'ed for
the host cpu.  Incoming buffers are now sync'ed before being put on q_full and
releasing the queue lock.  We can thus avoid the sometimes lengthy call to
the firmware for CPU_DE_SET_MDL while holding the queue lock, so we can get
better performance.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9803): cx18: Increment version number due to siginificant buffering changes
Andy Walls [Tue, 9 Dec 2008 02:14:46 +0000 (23:14 -0300)] 
V4L/DVB (9803): cx18: Increment version number due to siginificant buffering changes

cx18: Increment version number due to siginificant buffering changes.
Now version 1.0.4

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9802): cx18: Add module parameters for finer control over buffer allocations
Andy Walls [Mon, 8 Dec 2008 02:30:17 +0000 (23:30 -0300)] 
V4L/DVB (9802): cx18: Add module parameters for finer control over buffer allocations

cx18: Add module parameters for finer control over buffer allocations.
User now has the option of setting smaller buffers to get lower
latency transfers from the encoder.  User can also now set the number
of buffers used for a stream explicitly.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9801): cx18: Allow more than 63 capture buffers in rotation per stream
Andy Walls [Tue, 9 Dec 2008 02:02:45 +0000 (23:02 -0300)] 
V4L/DVB (9801): cx18: Allow more than 63 capture buffers in rotation per stream

cx18: Allow more than 63 capture buffers in rotation per stream.  Implement
q_busy to hold buffers the firmware has for use.  q_free holds truly unused
buffers in a pool.  New buffers are given to the firmware as soon as the
firmware returns one, if there are any to give to the firmware.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9800): cx18: Eliminate q_io from stream buffer handling
Andy Walls [Fri, 28 Nov 2008 03:04:21 +0000 (00:04 -0300)] 
V4L/DVB (9800): cx18: Eliminate q_io from stream buffer handling

Eliminate q_io from stream buffer handling in anticipation of upcoming
changes in buffer handling.  q_io was a holdover from ivtv and it's function
in cx18 was trivial and not necessary.  We just push things back onto the
front of q_full now, instead of maintaining a 1 buffer q_io queue.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9799): em28xx: fix Kworld Hybrid 330 (A316) support
Mauro Carvalho Chehab [Tue, 9 Dec 2008 18:43:10 +0000 (15:43 -0300)] 
V4L/DVB (9799): em28xx: fix Kworld Hybrid 330 (A316) support

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9798): saa7134: add analog and DVB-T support for Medion/Creatix CTX946
Hermann Pitton [Fri, 5 Dec 2008 22:49:34 +0000 (19:49 -0300)] 
V4L/DVB (9798): saa7134: add analog and DVB-T support for Medion/Creatix CTX946

How to enable the mpeg encoder is not found yet.
The card comes up with gpio 0x0820000 for DVB-T.

Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9797): Fix stv0299 support in dw2102 USB DVB-S/S2 driver
Igor M. Liplianin [Thu, 4 Dec 2008 15:49:23 +0000 (12:49 -0300)] 
V4L/DVB (9797): Fix stv0299 support in dw2102 USB DVB-S/S2 driver

register 0x00 contains 0xa1 for STV0299 and STV0299B
register 0x00 might contain 0x80 when returning from standby

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Acked-by: Sergey Silkin <neovision@rambler.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9796): drivers/media/video/cx88/cx88-alsa.c: Adjust error-handling code
Julia Lawall [Tue, 2 Dec 2008 22:34:52 +0000 (19:34 -0300)] 
V4L/DVB (9796): drivers/media/video/cx88/cx88-alsa.c: Adjust error-handling code

In the function cx88_audio_initdev, the value card has been created using
snd_card_new.  The other error handling code in this function frees the
value using snd_card_free.  I have thus changed the first error case to do
the same.  On the other hand, it may be that card is not sufficiently
initialized at this point to use snd_card_free, in which case something
else should be done to free the memory in the error case.

In the function snd_cx88_create the call kfree(chip) in one error case
looks suspicious, both because it is not done in the other error code, and
because chip points into the middle of the memory allocated by
snd_card_new, ie it is not itself associated with a separate kmalloc.
Therefore I have removed it.

The semantic match that finds the first problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@r exists@
local idexpression x;
statement S,S1;
position p1,p2,p3;
expression E,E1;
type T,T1;
expression *ptr != NULL;
@@

(
 if ((x@p1 = snd_card_new(...)) == NULL) S
|
 x@p1 = snd_card_new(...);
)
 ... when != snd_card_free(...,(T)x,...)
     when != if (...) { <+... snd_card_free(...,(T)x,...) ...+> }
     when != true x == NULL || ...
     when != x = E
     when != E = (T)x
     when any
(
 if (x == NULL || ...) S1
|
 if@p2 (...) {
  ... when != snd_card_free(...,(T1)x,...)
      when != if (...) { <+... snd_card_free(...,(T1)x,...) ...+> }
      when != x = E1
      when != E1 = (T1)x
(
  return \(0\|<+...x...+>\|ptr\);
|
  return@p3 ...;
)
}
)

@ script:python @
p1 << r.p1;
p3 << r.p3;
@@

print "* file: %s snd_card_new: %s return: %s" % (p1[0].file,p1[0].line,p3[0].line)

// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9795): Add Compro VideoMate E650F (DVB-T part only).
Igor M. Liplianin [Sun, 23 Nov 2008 17:11:16 +0000 (14:11 -0300)] 
V4L/DVB (9795): Add Compro VideoMate E650F (DVB-T part only).

Add Compro VideoMate E650F (DVB-T part only).
The card based on cx23885 PCI-Express chip, xc3028 tuner and ce6353 demodulator.

Cc: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9793): em28xx: Add specific entry for WinTV-HVR 850
Douglas Schilling Landgraf [Tue, 2 Dec 2008 00:01:04 +0000 (21:01 -0300)] 
V4L/DVB (9793): em28xx: Add specific entry for WinTV-HVR 850

Added specific entry for WinTV-HVR 850

Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9791): pxa-camera: pixel format negotiation
Robert Jarzmik [Mon, 1 Dec 2008 12:45:35 +0000 (09:45 -0300)] 
V4L/DVB (9791): pxa-camera: pixel format negotiation

Use the new format-negotiation infrastructure, support all four YUV422
packed and the planar formats.

The new translation structure enables to build the format
list with buswidth, depth, host format and camera format
checked, so that it's not done anymore on try_fmt nor
set_fmt.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9790): soc-camera: pixel format negotiation - core support
Guennadi Liakhovetski [Mon, 1 Dec 2008 12:45:27 +0000 (09:45 -0300)] 
V4L/DVB (9790): soc-camera: pixel format negotiation - core support

Allocate and fill a list of formats, supported by this specific
camera-host combination. Use it for format enumeration. Take care to stay
backwards-compatible.

Camera hosts rely on sensor formats available, as well as
host specific translations. We add a structure so that hosts
can define a translation table and use it for format check
and setup.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9789): soc-camera: add a per-camera device host private data pointer
Guennadi Liakhovetski [Mon, 1 Dec 2008 12:45:24 +0000 (09:45 -0300)] 
V4L/DVB (9789): soc-camera: add a per-camera device host private data pointer

This pointer will be used by pxa_camera.c to point to its pixel format
data.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9788): soc-camera: simplify naming
Guennadi Liakhovetski [Mon, 1 Dec 2008 12:45:21 +0000 (09:45 -0300)] 
V4L/DVB (9788): soc-camera: simplify naming

We anyway don't follow the s_fmt_vid_cap / g_fmt_vid_cap / try_fmt_vid_cap
naming, and soc-camera is so far only about video capture, let's simplify
operation names a bit further. set_fmt_cap / try_fmt_cap wasn't a very good
choice too.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9787): soc-camera: let camera host drivers decide upon pixel format
Guennadi Liakhovetski [Mon, 1 Dec 2008 12:44:59 +0000 (09:44 -0300)] 
V4L/DVB (9787): soc-camera: let camera host drivers decide upon pixel format

Pixel format requested by the user is not necessarily the same, as what
a sensor driver provides. There are situations, when a camera host driver
provides the required format, but requires a different format from the
sensor. Further, the list of formats, supported by sensors is pretty static
and can be pretty good described with a constant list of structures. Whereas
decisions, made by camera host drivers to support requested formats can be
quite complex, therefore it is better to let the host driver do the work.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9786): soc-camera: formatting fixes
Guennadi Liakhovetski [Mon, 1 Dec 2008 12:44:56 +0000 (09:44 -0300)] 
V4L/DVB (9786): soc-camera: formatting fixes

Minor formatting fixes

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9785): soc-camera: merge .try_bus_param() into .try_fmt_cap()
Guennadi Liakhovetski [Mon, 1 Dec 2008 12:44:53 +0000 (09:44 -0300)] 
V4L/DVB (9785): soc-camera: merge .try_bus_param() into .try_fmt_cap()

.try_bus_param() method from struct soc_camera_host_ops is only called at one
location immediately before .try_fmt_cap(), there is no value in keeping these
two methods separate, merge them.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9784): Register name fix for ov772x driver
Kuninori Morimoto [Mon, 1 Dec 2008 12:44:51 +0000 (09:44 -0300)] 
V4L/DVB (9784): Register name fix for ov772x driver

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>
15 years agoV4L/DVB (9783): Change power on/off sequence on ov772x
Kuninori Morimoto [Mon, 1 Dec 2008 12:44:48 +0000 (09:44 -0300)] 
V4L/DVB (9783): Change power on/off sequence on ov772x

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>
15 years agoV4L/DVB (9778): cx18: cx18_writel_expect() should not declare success on a PCI read...
Andy Walls [Sun, 30 Nov 2008 13:01:21 +0000 (10:01 -0300)] 
V4L/DVB (9778): cx18: cx18_writel_expect() should not declare success on a PCI read error

cx18: cx18_writel_expect() should not declare success on a PCI read error.
This removes the potential for cx18_write*_expect() calls to not
accomplish a PCI write successfully as expected.  The CX18-AV core uses the
*expect() calls often and this may be the source of intermittent audio
problems and standands switching problems.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9776): cx18: Change to per CX23418 device work queues for deferrable work...
Andy Walls [Wed, 26 Nov 2008 00:43:05 +0000 (21:43 -0300)] 
V4L/DVB (9776): cx18: Change to per CX23418 device work queues for deferrable work handling

cx18: Change to per CX23418 device work queues for deferrable work handling.
Needed to support 2.6.22 and earlier kernels that can't selectively cancel
work orders.  Also will provide slightly better performance on SMP systems.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9775): tda8290: fix FM radio
Mauro Carvalho Chehab [Mon, 8 Dec 2008 13:36:57 +0000 (10:36 -0300)] 
V4L/DVB (9775): tda8290: fix FM radio

tda8290 were using some random video standard for FM. This results on random
errors. Instead, program tda8290 in expert mode, using a configuration near the
one specified on NXP datasheet for tda8295 (available on their site).

Also, properly display that the device is on radio mode.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9774): tda827x: fix returned frequency
Mauro Carvalho Chehab [Mon, 8 Dec 2008 03:49:33 +0000 (00:49 -0300)] 
V4L/DVB (9774): tda827x: fix returned frequency

Probably due to a removed code, tda827x were doing some wrong calculus at the
returned frequency. I suspect that the original idea were to return the
programmed divisor converted into frequency again.

However, the current code is sometimes multiplying the programmed frequency by
62500, and, on other cases, like radio, it dividing it by 1000.

Instead of doing such math, let's just store the frequency value as requested by
the caller module.

Cc: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9773): tda827x: fix printk message when in FM mode
Mauro Carvalho Chehab [Mon, 8 Dec 2008 02:01:57 +0000 (23:01 -0300)] 
V4L/DVB (9773): tda827x: fix printk message when in FM mode

Cc: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (9772): saa7134: Add support for Kworld Plus TV Analog Lite PCI
Mauro Carvalho Chehab [Sun, 7 Dec 2008 16:19:29 +0000 (13:19 -0300)] 
V4L/DVB (9772): saa7134: Add support for Kworld Plus TV Analog Lite PCI

Thanks to Sistema Fenix (http://www.sistemafenix.com.br/) for sponsoring
this
development.

Signed-off-by: Gilberto <gilberto@sistemafenix.com.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>