]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
15 years agoV4L/DVB (11747): pvrusb2: Bump up version advertised through v4l interface
Mike Isely [Sat, 2 May 2009 03:04:35 +0000 (00:04 -0300)]
V4L/DVB (11747): pvrusb2: Bump up version advertised through v4l interface

Kick up the pvrusb2 version number advertised through the v4l
interface.  This value really has almost no meaning because I don't
make a serious attempt to version the driver in this manner (otherwise
this one line becomes a nasty hotspot of changes and merge
conflicts).  The value that is here is really a historical thing.
However Hans Verkuil thought it might be a good idea to bump up the
number anyway right now since the driver's mechanism for communicating
with the v4l core has pretty much completely changed.  Sending out a

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11746): pvrusb2: Set ir_video autoloading to default disabled
Mike Isely [Sat, 2 May 2009 01:33:16 +0000 (22:33 -0300)]
V4L/DVB (11746): pvrusb2: Set ir_video autoloading to default disabled

This sets the disable_autoload_ir_video module option to being set,
which disables any attempt by the driver to autoload IR support.  This
changes preserves previous behavior, for now.  This change can be set
back concurrent with other changes that finally update i2c-kbd-i2c to
use the new i2c binding model.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11745): pvrusb2: Update to work with upcoming ir_video changes in v4l-dvb...
Mike Isely [Sat, 2 May 2009 01:23:39 +0000 (22:23 -0300)]
V4L/DVB (11745): pvrusb2: Update to work with upcoming ir_video changes in v4l-dvb core

The ir-kbd-i2c module is about to be updated to match the new style
i2c binding model.  These pvrusb2 changes maintain compatibility with
that change.  Note that this does not actually break anything even
without the expected ir-kbd-i2c changes yet because previously the
pvrusb2 didn't autoload ir-kbd-i2c anyway.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11744): pvrusb2: Select, track, and report IR scheme in use with the device
Mike Isely [Mon, 6 Apr 2009 04:51:38 +0000 (01:51 -0300)]
V4L/DVB (11744): pvrusb2: Select, track, and report IR scheme in use with the device

This change defines all possible "IR schemes" related to the pvrusb2
driver, on a per-device basis.  That information is then set according
to the hardware in use.  The idea here is to make possible a more
intelligent future decision on which, if any, IR receiver driver might
be loaded during initialization.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11743): Analog Devices ADV7343 video encoder driver
Chaithrika U S [Thu, 7 May 2009 12:30:01 +0000 (09:30 -0300)]
V4L/DVB (11743): Analog Devices ADV7343 video encoder driver

Add ADV7343 I2C based video encoder driver. This follows the
v4l2-subdev framework. This driver has been tested on TI DM646x EVM. It
has been tested for Composite and Component outputs.

Updates as per review by Mauro Chehab, added support for more standards
supported by the encoder. Also adding the missed out signed-offs.Tested
only NTSC and PAL standards.

[hverkuil@xs4all.nl: s_routing API changed, updated driver to use new API]
Signed-off-by: Manjunath Hadli <mrh@ti.com>
Signed-off-by: Brijesh Jadav <brijesh.j@ti.com>
Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11742): TI THS7303 video amplifier driver code
Chaithrika U S [Thu, 7 May 2009 12:29:25 +0000 (09:29 -0300)]
V4L/DVB (11742): TI THS7303 video amplifier driver code

This patch adds driver for TI THS7303 video amplifier. This driver is
implemented as a v4l2 sub device. Tested on TI DM646x EVM.

This version has updates based on review comments by Mauro Chehab.

Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11741): zoran: Fix &&/|| typo
Roel Kluin [Sat, 2 May 2009 20:52:52 +0000 (17:52 -0300)]
V4L/DVB (11741): zoran: Fix &&/|| typo

Fix &&/|| typo. `default_norm' can be 0 (PAL), 1 (NTSC) or 2 (SECAM),
the condition tested was impossible.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB: cleanup redundant tests on unsigned
Roel Kluin [Sat, 2 May 2009 19:38:47 +0000 (16:38 -0300)]
V4L/DVB: cleanup redundant tests on unsigned

Remove redundant tests on unsigned.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11739): remove driver_data direct access of struct device
Greg Kroah-Hartman [Thu, 30 Apr 2009 22:18:08 +0000 (19:18 -0300)]
V4L/DVB (11739): remove driver_data direct access of struct device

In the near future, the driver core is going to not allow direct access
to the driver_data pointer in struct device.  Instead, the functions
dev_get_drvdata() and dev_set_drvdata() should be used.  These functions
have been around since the beginning, so are backwards compatible with
all older kernel versions.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11737): Drop stray references to i2c_probe
Jean Delvare [Thu, 30 Apr 2009 08:40:07 +0000 (05:40 -0300)]
V4L/DVB (11737): Drop stray references to i2c_probe

The new i2c binding model doesn't use i2c_probe.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11736): videobuf: modify return value of VIDIOC_REQBUFS ioctl
Németh Márton [Wed, 29 Apr 2009 18:57:24 +0000 (15:57 -0300)]
V4L/DVB (11736): videobuf: modify return value of VIDIOC_REQBUFS ioctl

The V4L2 ioctls usually return 0 when the operation was successful
and -1 in case of error. Currently VIDIOC_REQBUFS returns the
number of buffers which is redundant because this information is
available in count field of struct v4l2_requestbuffers. The
V4L2 API specification, revision 0.24 [1] explicitly specifies for
VIDIOC_REQBUFS that the return value shall be 0 on success.

The patch was tested with v4l-test 0.13 [2] with vivi driver.

References:
[1] V4L2 API specification, revision 0.24
    http://v4l2spec.bytesex.org/spec/r13696.htm

[2] v4l-test: Test environment for Video For Linux Two API
    http://v4l-test.sourceforge.net/

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11735): Enables the Winfast TV2000 XP Global TV IR
Pieter Van Schaik [Wed, 29 Apr 2009 06:55:31 +0000 (03:55 -0300)]
V4L/DVB (11735): Enables the Winfast TV2000 XP Global TV IR

Adds support to the remote control of the Winfast TV2000 XP Global TV
capture card. A case statement was added in order to initialize the
GPIO data structures as well as a case statement for handling the keys
correctly when pressed.

Thanks to Hermann and Mauro for all the help

Signed-off-by: Pieter C van Schaik <vansterpc@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11734): remove hw reset of MPEG encoder when lost/found seq.
Dmitri Belimov [Tue, 28 Apr 2009 09:46:15 +0000 (06:46 -0300)]
V4L/DVB (11734): remove hw reset of MPEG encoder when lost/found seq.

When we capture signal from composite input offen lost and found syncro
sequence. In this case the MPEG coder hardware reset after each
lost/found event. The image has a lot of artefactes. This patch remove
hardware reset of MPEG encoder.

This is patch from our customer. I checked this.

With my best regards, Dmitry.

Signed-off-by: Alexey Osipov <lion-simba@pridelands.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11733): increase MPEG encoder timout
Dmitri Belimov [Tue, 28 Apr 2009 09:41:08 +0000 (06:41 -0300)]
V4L/DVB (11733): increase MPEG encoder timout

If video has a lot of changes in frame, MPEG encoder need more time for
coding process. Add new bigger timeout for encoder.

This is patch from our customer. I checked this.

Signed-off-by: Alexey Osipov <lion-simba@pridelands.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11732): saa7134: disable not yet existing IR and DVB support on the Compro...
hermann pitton [Tue, 28 Apr 2009 22:44:05 +0000 (19:44 -0300)]
V4L/DVB (11732): saa7134: disable not yet existing IR and DVB support on the Compro T750

The Compro VideoMate T750 has no support for IR and DVB-T yet.
Disable both to avoid fall through and confusing printouts.

Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11731): buf-dma-contig: remove sync operation
Magnus Damm [Tue, 28 Apr 2009 08:45:39 +0000 (05:45 -0300)]
V4L/DVB (11731): buf-dma-contig: remove sync operation

Remove the videobuf-dma-contig sync operation. Sync is only needed
for noncoherent buffers, and since videobuf-dma-contig is built on
coherent memory allocators the memory is by definition always in sync.

Reported-by: Matthieu CASTET <matthieu.castet@parrot.com>
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Reviewed-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11730): af9015: support for KWorld MC810
Wen-chien Jesse Sung [Tue, 28 Apr 2009 04:11:22 +0000 (01:11 -0300)]
V4L/DVB (11730): af9015: support for KWorld MC810

Add USB ID (1b80:c810) for Kworld MC810.

Signed-off-by: Wen-chien Jesse Sung <jesse@cola.voip.idv.tw>
Acked-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB: cx23885/cymax2: binary/logical &/&& typo
Roel Kluin [Sun, 26 Apr 2009 15:31:26 +0000 (12:31 -0300)]
V4L/DVB: cx23885/cymax2: binary/logical &/&& typo

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11724): firedtv: Storage class should be before const qualifier
Tobias Klauser [Sun, 26 Apr 2009 13:03:29 +0000 (10:03 -0300)]
V4L/DVB (11724): firedtv: Storage class should be before const qualifier

The C99 specification states in section 6.11.5:

The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11723): Link firmware to physical device
Jean Delvare [Sun, 26 Apr 2009 08:43:59 +0000 (05:43 -0300)]
V4L/DVB (11723): Link firmware to physical device

Use the physical device rather than the i2c adapter as the reference
device when loading firmwares. This will prevent the sysfs name
collision with i2c-dev that has been reported many times.

I may have missed other drivers which need the same fix.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11720): gspca - sonixj: Webcam 06f8:3008 added
Jani Monoses [Thu, 7 May 2009 06:32:27 +0000 (03:32 -0300)]
V4L/DVB (11720): gspca - sonixj: Webcam 06f8:3008 added

Signed-off-by: Jani Monoses <jani@ubuntu.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11719): gspca - vc032x: mi1320_soc images are upside-down
Jean-Francois Moine [Tue, 5 May 2009 08:01:11 +0000 (05:01 -0300)]
V4L/DVB (11719): gspca - vc032x: mi1320_soc images are upside-down

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11718): gspca - vc032x: Bad pixelformat for mi1320_soc
Jean-Francois Moine [Tue, 5 May 2009 07:59:45 +0000 (04:59 -0300)]
V4L/DVB (11718): gspca - vc032x: Bad pixelformat for mi1320_soc

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11717): gspca - sonixj: Webcams with bridge sn9c128 added
Jean-Francois Moine [Sat, 9 May 2009 09:21:35 +0000 (06:21 -0300)]
V4L/DVB (11717): gspca - sonixj: Webcams with bridge sn9c128 added

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11716): gspca - sonixj: Adjust some exchanges according to traces
Jean-Francois Moine [Sun, 26 Apr 2009 17:46:12 +0000 (14:46 -0300)]
V4L/DVB (11716): gspca - sonixj: Adjust some exchanges according to traces

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11715): gspca - main: Set the number of packets per ISOC message.
Jean-Francois Moine [Sat, 25 Apr 2009 16:29:01 +0000 (13:29 -0300)]
V4L/DVB (11715): gspca - main: Set the number of packets per ISOC message.

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

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11714): gspca - spca500 and sunplus: Change the 0x00 insertion mechanism.
Jean-Francois Moine [Thu, 23 Apr 2009 17:33:00 +0000 (14:33 -0300)]
V4L/DVB (11714): gspca - spca500 and sunplus: Change the 0x00 insertion mechanism.

The new mechanism does not use any temporary buffer.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11713): gspca - ov534: Don't discard the images when no UVC EOF
Jean-Francois Moine [Thu, 23 Apr 2009 16:52:27 +0000 (13:52 -0300)]
V4L/DVB (11713): gspca - ov534: Don't discard the images when no UVC EOF

A new image may start without any UVC EOF in the last packet of the
previous image.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11712): gspca - main: Set the current alternate setting only when needed
Jean-Francois Moine [Tue, 21 Apr 2009 17:05:44 +0000 (14:05 -0300)]
V4L/DVB (11712): gspca - main:  Set the current alternate setting only when needed

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11711): gspca - main: Fix a crash when no bandwidth available
Jean-Francois Moine [Tue, 21 Apr 2009 16:57:31 +0000 (13:57 -0300)]
V4L/DVB (11711): gspca - main: Fix a crash when no bandwidth available

When the bandwidth is not wide enough, the transfer endpoint may be set to
the one of the alternate setting 0. This one may be null and this causes a
divide by 0 oops.

Reported-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 (11710): gspca - main: Webcams cannot do both isoc and bulk image transfers.
Jean-Francois Moine [Tue, 21 Apr 2009 16:45:56 +0000 (13:45 -0300)]
V4L/DVB (11710): gspca - main: Webcams cannot do both isoc and bulk image transfers.

Let the subdrivers to set the 'image transfer by bulk' flag.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11709): gspca - zc3xx: Bad debug level in i2c_read
Jean-Francois Moine [Tue, 7 Apr 2009 08:30:31 +0000 (05:30 -0300)]
V4L/DVB (11709): gspca - zc3xx: Bad debug level in i2c_read

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11708): gspca - main: Version change.
Jean-Francois Moine [Tue, 21 Apr 2009 07:17:59 +0000 (04:17 -0300)]
V4L/DVB (11708): gspca - main: Version change.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11705): soc-camera: prepare for the platform driver conversion
Guennadi Liakhovetski [Thu, 7 May 2009 16:25:32 +0000 (13:25 -0300)]
V4L/DVB (11705): soc-camera: prepare for the platform driver conversion

Add a platform driver to soc_camera.c. This way we preserve backwards
compatibility with existing platforms and can start converting them one by one
to the new platform-device soc-camera interface.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11703): cx18: Have audio decoder drive SIF gain control, and rework AFE...
Andy Walls [Sun, 3 May 2009 21:01:57 +0000 (18:01 -0300)]
V4L/DVB (11703): cx18: Have audio decoder drive SIF gain control, and rework AFE config

Ensure the variable gain amplifier gain for SIF is driven by the audio deocder
and not the video decoder.  This forced rework of the analog front end (AFE)
configuration to not rely on autoconfiguration, but instead set up the AFE mux,
AFE parameters, and ADC1 & ADC2 configurations explicitly.

Reported-by: Helen Buus <mythtv@hbuus.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11699): pvrusb2: Ensure we specify the I/F at attach time
Steven Toth [Sat, 2 May 2009 14:09:08 +0000 (11:09 -0300)]
V4L/DVB (11699): pvrusb2: Ensure we specify the I/F at attach time

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11698): cx23885: For tda10048 boards ensure we specify the I/F
Steven Toth [Sat, 2 May 2009 14:08:23 +0000 (11:08 -0300)]
V4L/DVB (11698): cx23885: For tda10048 boards ensure we specify the I/F

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11697): tda10048: Add ability to select I/F at attach time.
Steven Toth [Sat, 2 May 2009 14:07:29 +0000 (11:07 -0300)]
V4L/DVB (11697): tda10048: Add ability to select I/F at attach time.

tda10048: Add ability to select I/F at attach time.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11695): gspca - stv06xx-vv6410: Set analog gain at init
Erik Andrén [Sun, 3 May 2009 18:51:36 +0000 (15:51 -0300)]
V4L/DVB (11695): gspca - stv06xx-vv6410: Set analog gain at init

Set the analog gain at sensor init. Also set a sensible default value.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11694): gspca - stv06xx-vv6410: No need to double set gain and exposure
Erik Andrén [Fri, 3 Apr 2009 20:16:42 +0000 (17:16 -0300)]
V4L/DVB (11694): gspca - stv06xx-vv6410: No need to double set gain and exposure

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11693): gspca - stv06xx-vv6410: Add exposure ctrl
Erik Andrén [Sun, 3 May 2009 18:45:48 +0000 (15:45 -0300)]
V4L/DVB (11693): gspca - stv06xx-vv6410: Add exposure ctrl

Add the possibility to control the exposure on the vv6410 sensor

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11692): gspca - m5602: Checkpatch.pl fixes
Erik Andrén [Sun, 3 May 2009 18:31:55 +0000 (15:31 -0300)]
V4L/DVB (11692): gspca - m5602: Checkpatch.pl fixes

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11691): gspca - m5602-ov9650: Add ASUS A6K vflip quirk
Erik Andrén [Tue, 10 Mar 2009 19:45:57 +0000 (16:45 -0300)]
V4L/DVB (11691): gspca - m5602-ov9650: Add ASUS A6K vflip quirk

The ASUS A6K needs the vflip quirk. Thanks to Marco Baldo for reporting
the issue.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11690): gspca - m5602-s5k4aa: Add vflip quirk for the MSI L735
Erik Andrén [Thu, 12 Feb 2009 19:36:05 +0000 (16:36 -0300)]
V4L/DVB (11690): gspca - m5602-s5k4aa: Add vflip quirk for the MSI L735

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11689): gspca - m5602-s5k4aa: Fixup the vflip/hflip
Grégory Lardière [Thu, 12 Feb 2009 06:40:29 +0000 (03:40 -0300)]
V4L/DVB (11689): gspca - m5602-s5k4aa: Fixup the vflip/hflip

Ensure that the hflip and vflip is consistent when the sensor needs to
be vflip quirked or not.

Signed-off-by: Grégory Lardière <spmf2004-m560x@yahoo.fr>
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11688): gspca - m5602-s5k4aa: Fixup SXGA resolution.
Grégory Lardière [Thu, 12 Feb 2009 06:32:52 +0000 (03:32 -0300)]
V4L/DVB (11688): gspca - m5602-s5k4aa: Fixup SXGA resolution.

The SXGA resolution doesn't work unless you first force the VGA resolution.
More investigation is needed in order to fix this the "right" way.

Signed-off-by: Grégory Lardière <spmf2004-m560x@yahoo.fr>
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11687): gspca - m5602-ov9650: Add missing v4l2 ctrl ids
Erik Andrén [Mon, 2 Feb 2009 19:08:06 +0000 (16:08 -0300)]
V4L/DVB (11687): gspca - m5602-ov9650: Add missing v4l2 ctrl ids

Red and blue balance missed their id fields

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11686): gspca - m5602-s5k4aa: Disable SXGA resolution for now
Erik Andrén [Mon, 2 Feb 2009 18:56:39 +0000 (15:56 -0300)]
V4L/DVB (11686): gspca - m5602-s5k4aa: Disable SXGA resolution for now

SXGA resolution needs more testing. Disable it for now

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11685): gspca - gspca-m5602: Constify parameters of two functions
Erik Andrén [Mon, 2 Feb 2009 06:51:20 +0000 (03:51 -0300)]
V4L/DVB (11685): gspca - gspca-m5602: Constify parameters of two functions

A number of parameters to some functions in the m5602 are constant and should be flagged as such.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11684): gspca - m5602-s5k4aa: Add experimental SXGA support
Erik Andrén [Thu, 29 Jan 2009 16:34:41 +0000 (13:34 -0300)]
V4L/DVB (11684): gspca - m5602-s5k4aa: Add experimental SXGA support

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11682): STV0900/STV0903: Add support for Silicon cut >= 3
Manu Abraham [Sat, 2 May 2009 21:26:58 +0000 (18:26 -0300)]
V4L/DVB (11682): STV0900/STV0903: Add support for Silicon cut >= 3

1. Support Silicon Cut >= 3.0
2. Remove support for obsolete cuts: 1.0. 1.1. 1.2
3. Try to catch more error cases

Driver doesn't now attach to obsolete silcon cuts, It just simply quits.
Results in code simplification, with removal of the obsolete cuts.

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11673): v4l2-device: unregister i2c_clients when unregistering the v4l2_device.
Hans Verkuil [Sat, 2 May 2009 13:58:51 +0000 (10:58 -0300)]
V4L/DVB (11673): v4l2-device: unregister i2c_clients when unregistering the v4l2_device.

Until now I relied on i2c_del_adapter to unregister the i2c_clients for
me, however, if the i2c bus is a platform bus then it is never deleted.

So instead I need to unregister i2c clients when unregistering the
v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11672): ivtv: use v4l2_device_set_name.
Hans Verkuil [Sat, 2 May 2009 13:15:17 +0000 (10:15 -0300)]
V4L/DVB (11672): ivtv: use v4l2_device_set_name.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11671): v4l2: add v4l2_device_set_name()
Hans Verkuil [Sat, 2 May 2009 13:12:50 +0000 (10:12 -0300)]
V4L/DVB (11671): v4l2: add v4l2_device_set_name()

Add a utility function that can be used to setup the v4l2_device's name
field in a standard manner.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11670): tuner: remove tuner_i2c_address_check
Hans Verkuil [Sat, 2 May 2009 12:42:57 +0000 (09:42 -0300)]
V4L/DVB (11670): tuner: remove tuner_i2c_address_check

Support for tuners with i2c addresses >= 0x65 is dropped since no tuners
with addresses in the range 0x65-0x6f have been found.

This patch removes addresses 0x65-0x6f from the list of tuner probe addresses,
it removes the kernel warning that warned if addresses in this range appeared,
and it removed a hack for the cx88 that is no longer needed now that the
tuner address range is reduced.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11666): cx23885: Don't assume GPIO interrupts are cam related.
Steven Toth [Wed, 29 Apr 2009 23:49:12 +0000 (20:49 -0300)]
V4L/DVB (11666): cx23885: Don't assume GPIO interrupts are cam related.

cx23885: Don't assume GPIO interrupts are cam related.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11665): cx88: Add support for the Hauppauge IROnly board.
Steven Toth [Sat, 28 Mar 2009 17:22:21 +0000 (14:22 -0300)]
V4L/DVB (11665): cx88: Add support for the Hauppauge IROnly board.

cx88: Add support for the Hauppauge IROnly board.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11663): Fix a warning introduced by git commit ec5f5bf80501abfe2da2897cfcde8...
Mauro Carvalho Chehab [Tue, 5 May 2009 09:39:21 +0000 (06:39 -0300)]
V4L/DVB (11663): Fix a warning introduced by git commit ec5f5bf80501abfe2da2897cfcde8452b545aacb

/home/v4l/master/v4l/radio-si470x.c: In function 'si470x_fops_release':
/home/v4l/master/v4l/radio-si470x.c:1218: warning: label 'unlock' defined but not used

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11654a): Add a missing end of line at the end of gspca/m5602/Makefile
Mauro Carvalho Chehab [Wed, 29 Apr 2009 21:03:27 +0000 (18:03 -0300)]
V4L/DVB (11654a): Add a missing end of line at the end of gspca/m5602/Makefile

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11654): gspca - m5602: Storage class should be before const qualifier
Tobias Klauser [Sun, 26 Apr 2009 12:30:18 +0000 (09:30 -0300)]
V4L/DVB (11654): gspca - m5602: Storage class should be before const qualifier

The C99 specification states in section 6.11.5:

The placement of a storage-class specifier other than at the
beginning of the declaration specifiers in a declaration is an
obsolescent feature.

[mchehab@redhat.com: Fix a trivial merge conflict]
Cc: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11650): gspca - m5602: Sort out macro conflict by adding a prefix
Erik Andrén [Wed, 28 Jan 2009 16:14:34 +0000 (13:14 -0300)]
V4L/DVB (11650): gspca - m5602: Sort out macro conflict by adding a prefix

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11649): gspca - m5602: Probe the ov7660 sensor
Erik Andrén [Mon, 27 Apr 2009 18:41:45 +0000 (15:41 -0300)]
V4L/DVB (11649): gspca - m5602: Probe the ov7660 sensor

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11648): gspca - m5602: Remove some needless error checking and add comments
Erik Andrén [Wed, 28 Jan 2009 07:02:49 +0000 (04:02 -0300)]
V4L/DVB (11648): gspca - m5602: Remove some needless error checking and add comments

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11647): gspca - m5602-po1030: Disable QVGA for now
Erik Andrén [Wed, 28 Jan 2009 06:34:02 +0000 (03:34 -0300)]
V4L/DVB (11647): gspca - m5602-po1030: Disable QVGA for now

Getting QVGA to be supported on the po1030 seems harder than I first thought. I need access to the proper hardware in order to fix it up.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11646): gspca - m5602-mt9m111: Disable QVGA until it has been verified to...
Erik Andrén [Wed, 28 Jan 2009 06:29:51 +0000 (03:29 -0300)]
V4L/DVB (11646): gspca - m5602-mt9m111: Disable QVGA until it has been verified to work

The QVGA resolution currently hasn't been verified to work. Disable it for now.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11645): gspca - m5602-ov9650: Add image flip quirk for the ASUS A6VA
Johannes Klug [Sun, 25 Jan 2009 18:25:44 +0000 (15:25 -0300)]
V4L/DVB (11645): gspca - m5602-ov9650: Add image flip quirk for the ASUS A6VA

Signed-off-by: Johannes Klug <jklug@joyware.de>
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11644): gspca - m5602-s5k4aa: Remove some unneeded init code.
Erik Andrén [Sun, 25 Jan 2009 14:45:35 +0000 (11:45 -0300)]
V4L/DVB (11644): gspca - m5602-s5k4aa: Remove some unneeded init code.

Remove some redundant init from the s5k4aa. All these registers are programmed again later in the init phase

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11643): gspca - m5602: Add the ov7660 to the module parameter description.
Erik Andrén [Sun, 25 Jan 2009 13:19:26 +0000 (10:19 -0300)]
V4L/DVB (11643): gspca - m5602: Add the ov7660 to the module parameter description.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11642): gspca - m5602-ov7660: Add a gain ctrl
Erik Andrén [Thu, 22 Jan 2009 07:04:59 +0000 (04:04 -0300)]
V4L/DVB (11642): gspca - m5602-ov7660: Add a gain ctrl

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11641): gspca - m5602-ov7660: Remove useless init data
Erik Andrén [Thu, 22 Jan 2009 06:57:30 +0000 (03:57 -0300)]
V4L/DVB (11641): gspca - m5602-ov7660: Remove useless init data

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11640): gspca - m5602-s5k4aa: Flip hflip and vflip together
Erik Andrén [Thu, 22 Jan 2009 06:51:40 +0000 (03:51 -0300)]
V4L/DVB (11640): gspca - m5602-s5k4aa: Flip hflip and vflip together

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11639): gspca - m5602-mt9m111: Correct the hflip/vflip semantics
Erik Andrén [Thu, 22 Jan 2009 06:32:32 +0000 (03:32 -0300)]
V4L/DVB (11639): gspca - m5602-mt9m111: Correct the hflip/vflip semantics

mt9m111: Hflip and vflip shall always be 0 at start and the image shall be correctly aligned.
The mt9m111 is hflipped and vflipped by default. Correct the semantics to make this happen.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11638): gspca - m5602-ov7660: Make an educated guess on the proper hsync...
Erik Andrén [Wed, 21 Jan 2009 16:46:58 +0000 (13:46 -0300)]
V4L/DVB (11638): gspca - m5602-ov7660: Make an educated guess on the proper hsync/vsync

Based on how the ov9650 is configured, make an educated guess on the hsync/vsync setup for the ov7660

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11637): gspca - m5602-ov7660: Design init function.
Erik Andrén [Wed, 21 Jan 2009 16:43:20 +0000 (13:43 -0300)]
V4L/DVB (11637): gspca - m5602-ov7660: Design init function.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11636): gspca - m5602-ov7660: Design probe function
Erik Andrén [Wed, 21 Jan 2009 16:39:17 +0000 (13:39 -0300)]
V4L/DVB (11636): gspca - m5602-ov7660: Design probe function

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11635): gspca - m5602-ov7660: Initial checkin of sensor skeleton code
Erik Andrén [Wed, 21 Jan 2009 16:28:31 +0000 (13:28 -0300)]
V4L/DVB (11635): gspca - m5602-ov7660: Initial checkin of sensor skeleton code

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11634): gspca - m5602-s5k83a: Set the sensor_settings pointer correctly
Lukas Karas [Wed, 21 Jan 2009 16:14:07 +0000 (13:14 -0300)]
V4L/DVB (11634): gspca - m5602-s5k83a: Set the sensor_settings pointer correctly

Signed-off-by: Lukas Karas <lukas.karas@centrum.cz>
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11633): gspca - m5602-s5k83a: Move hsync/vsync setup to start function
Erik Andrén [Wed, 21 Jan 2009 06:33:14 +0000 (03:33 -0300)]
V4L/DVB (11633): gspca - m5602-s5k83a: Move hsync/vsync setup to start function

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11632): gspca - m5602-s5k83a: Reset the v4l2 ctrl cache upon sensor init
Erik Andrén [Mon, 27 Apr 2009 18:38:05 +0000 (15:38 -0300)]
V4L/DVB (11632): gspca - m5602-s5k83a: Reset the v4l2 ctrl cache upon sensor init

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11631): gspca - m5602: Remove useless error check
Erik Andrén [Wed, 21 Jan 2009 06:43:49 +0000 (03:43 -0300)]
V4L/DVB (11631): gspca - m5602: Remove useless error check

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11630): gspca - s5k83a: Add resolution annotations
Erik Andrén [Tue, 20 Jan 2009 18:15:25 +0000 (15:15 -0300)]
V4L/DVB (11630): gspca - s5k83a: Add resolution annotations

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11629): gspca - m5602-s5k83a: Move some init code around
Erik Andrén [Tue, 20 Jan 2009 18:10:17 +0000 (15:10 -0300)]
V4L/DVB (11629): gspca - m5602-s5k83a: Move some init code around

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11628): gspca - m5602-s5k83a: Remove more init
Erik Andrén [Tue, 20 Jan 2009 18:07:54 +0000 (15:07 -0300)]
V4L/DVB (11628): gspca - m5602-s5k83a: Remove more init

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11624): cx18: Toggle the AI1 mux when changing the CX18_AUDIO_ENABLE register
Andy Walls [Sun, 26 Apr 2009 21:46:14 +0000 (18:46 -0300)]
V4L/DVB (11624): cx18: Toggle the AI1 mux when changing the CX18_AUDIO_ENABLE register

Toggle the AI1 mux when changing the CX18_AUDIO_ENABLE register.  It's hard to
reliably tell when we have written to this register successfully unless we
change some bits we know we can read back.  The AI mux bits always read back
what we wrote to them, so force them to toggle whenever we have to write to
the register, so we can tell we wrote to the register successfully.

This change was prompted by users experiencing broadcast audio decoding
problems after the cx18 module loads for the first time.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11623): cx18: Verify cx18-av-core digitizer firmware loads correctly
Andy Walls [Sun, 26 Apr 2009 20:02:25 +0000 (17:02 -0300)]
V4L/DVB (11623): cx18: Verify cx18-av-core digitizer firmware loads correctly

Add code to verify the cx18-av-core digitizer firmware loads correctly.  The
verification function reads back and compares the firmware bytes loaded
into the A/V core.  The result of the verification is only used to log a
message in the system log.

This change was prompted by users with multiple card setups that have problems
with broadcast audio decoding the first time the cx18 module is loaded.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11622): cx18: Allow IVTV format VBI insertion in MPEG-2 SVCD and DVD streams
Andy Walls [Sun, 26 Apr 2009 19:34:36 +0000 (16:34 -0300)]
V4L/DVB (11622): cx18: Allow IVTV format VBI insertion in MPEG-2 SVCD and DVD streams

Both the MPEG-2 SVCD stream format and the MPEG-2 DVD stream format should
use an MPEG-2 PS container.  This makes it safe to stuff IVTV Private Stream 1
VBI packets in these stream types using the existing cx18 driver routines.

Reported-by: Helen Buus <mythtv@hbuus.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11620): cx18: Increment version due to significant buffer handling changes
Andy Walls [Wed, 15 Apr 2009 23:49:19 +0000 (20:49 -0300)]
V4L/DVB (11620): cx18: Increment version due to significant buffer handling changes

Version bump from 1.1.0 to 1.2.0

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11619): cx18: Simplify the work handler for outgoing mailbox commands
Andy Walls [Wed, 15 Apr 2009 23:45:10 +0000 (20:45 -0300)]
V4L/DVB (11619): cx18: Simplify the work handler for outgoing mailbox commands

Simplify the way outgoing work handler gets scheduled to send empty buffers
back to the firmware for use.  Also reduced the memory required for scheduling
this outgoing work, by using a single, per stream work object.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11618): cx18: Convert per stream mutex locks to per queue spin locks
Andy Walls [Tue, 14 Apr 2009 02:08:00 +0000 (23:08 -0300)]
V4L/DVB (11618): cx18: Convert per stream mutex locks to per queue spin locks

To avoid sleeps in providing buffers to user space and in handling incoming
buffers from the capture unit, converted the per stream mutex for locking
queues to 3 spin locks.  There is now a spin lock per queue
to increase concurrency when moving buffers around.

Also simplified queue manipulations and buffer handling of incoming buffers
of data from the capture unit.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11617): cx18: Set up to wait for a one-shot response before sending a firmwa...
Andy Walls [Tue, 14 Apr 2009 01:53:09 +0000 (22:53 -0300)]
V4L/DVB (11617): cx18: Set up to wait for a one-shot response before sending a firmware cmd

When sending an outgoing firmware command, prepare to wait before we raise the
interrupt, so we don't miss the wake_up() on the acknowledgment.  When waiting
for the acknowledgement, there is no need to loop around schedule(), as there
will only be one interrupt, and hence one wake_up(), issued.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11616): cx18: Add a work queue for deferring empty buffer handoffs to the...
Andy Walls [Tue, 14 Apr 2009 01:42:43 +0000 (22:42 -0300)]
V4L/DVB (11616): cx18: Add a work queue for deferring empty buffer handoffs to the firmware

This change defers sending all CX18_CPU_DE_SET_MDL commands, for a stream with
an ongoing capture, by adding a work queue to handle sending such commands when
needed.  This prevents any sleeps, caused by notifying the firmware of new
usable buffers, when a V4L2 application read() is being satisfied or when
an incoming buffer is processed by the cx18-NN-in work queue thread.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11615): cx18: Rename the work queue to "in_work_queue"
Andy Walls [Tue, 14 Apr 2009 01:22:40 +0000 (22:22 -0300)]
V4L/DVB (11615): cx18: Rename the work queue to "in_work_queue"

Rename the work queue to "in_work_queue" to indicate it is handling
incoming mailbox commands.  This is preparation for adding a work queue
for handling deferrable outgoing mailbox commands.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11613): pxa_camera: Documentation of the FSM
Robert Jarzmik [Fri, 24 Apr 2009 15:58:35 +0000 (12:58 -0300)]
V4L/DVB (11613): pxa_camera: Documentation of the FSM

After DMA redesign, the pxa_camera dynamic behaviour should
be documented so that future contributors understand how it
works, and improve it.

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 (11611): soc-camera: link host drivers after clients
Guennadi Liakhovetski [Fri, 24 Apr 2009 15:57:42 +0000 (12:57 -0300)]
V4L/DVB (11611): soc-camera: link host drivers after clients

With the transition of soc-camera to become a platform driver and to the
v4l2-subdev framework the initialisation order becomes important. In case
of a static build clients (i2c) drivers have to be available when host
drivers are probed. Moving host drivers down in the Makefile achieves the
desired order.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11610): soc-camera: simplify register access routines in multiple sensor...
Guennadi Liakhovetski [Fri, 24 Apr 2009 15:57:01 +0000 (12:57 -0300)]
V4L/DVB (11610): soc-camera: simplify register access routines in multiple sensor drivers

Register access routines only need the I2C client, not the soc-camera device
context.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11609): soc-camera: remove an extra device generation from struct soc_camera...
Guennadi Liakhovetski [Fri, 24 Apr 2009 15:55:48 +0000 (12:55 -0300)]
V4L/DVB (11609): soc-camera: remove an extra device generation from struct soc_camera_host

Make camera devices direct children of host platform devices, move the
inheritance management into the soc_camera.c core driver.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11608): soc-camera: host-driver cleanup
Guennadi Liakhovetski [Fri, 24 Apr 2009 15:55:18 +0000 (12:55 -0300)]
V4L/DVB (11608): soc-camera: host-driver cleanup

Embed struct soc_camera_host in platform-specific per host instance objects
instead of allocating them statically in drivers, use platform_[gs]et_drvdata
consistently, use resource_size().

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11607): soc-camera: add a free_bus method to struct soc_camera_link
Guennadi Liakhovetski [Fri, 24 Apr 2009 15:53:51 +0000 (12:53 -0300)]
V4L/DVB (11607): soc-camera: add a free_bus method to struct soc_camera_link

Currently pcm990 camera bus-width management functions request a GPIO and never
free it again. With this approach the GPIO extender driver cannot be unloaded
once camera drivers have been loaded, also unloading theb i2c-pxa bus driver
produces errors, because the GPIO extender driver cannot unregister properly.
Another problem is, that if camera drivers are once loaded before the GPIO
extender driver, the platform code marks the GPIO unavailable and only a reboot
helps to recover. Adding an explicit free_bus method and using it in mt9m001
and mt9v022 drivers fixes these problems.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Eric Miao <eric.miao@marvell.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11604): saa7134: split Behold`s card entries to properly identify the model
Dmitri Belimov [Thu, 23 Apr 2009 05:32:49 +0000 (02:32 -0300)]
V4L/DVB (11604): saa7134: split Behold`s card entries to properly identify the model

Split Beholdr`s cards to correct models.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11567): saa7134: Added support for AVerMedia Cardbus Plus
Oldřich Jedlička [Tue, 14 Apr 2009 18:47:17 +0000 (15:47 -0300)]
V4L/DVB (11567): saa7134: Added support for AVerMedia Cardbus Plus

Here comes the full support for AVerMedia Cardbus Plus (E501R) - including
remote control. TV, Composite and FM radio tested, I don't have S-Video to
test. I've figured out that the radio works only with xtal frequency 13MHz.

[mchehab@redhat.com: CodingStyle fixes]
Signed-off-by: Oldřich Jedlička <oldium.pro@seznam.cz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>