linux-2.6
16 years agoV4L/DVB (8998): s2api: restore DTV_UNDEFINED
Steven Toth [Fri, 12 Sep 2008 00:08:59 +0000 (21:08 -0300)] 
V4L/DVB (8998): s2api: restore DTV_UNDEFINED

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8997): S2API: Cleanup SYMBOLRATE, INNERFEC -> SYMBOL_RATE, INNER_FEC
Steven Toth [Thu, 11 Sep 2008 13:34:19 +0000 (10:34 -0300)] 
V4L/DVB (8997): S2API: Cleanup SYMBOLRATE, INNERFEC -> SYMBOL_RATE, INNER_FEC

This is now consistent with the existing API.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8996): S2API: typedefs replaced, _SEQ_'s removed, fixed 16 command arrays...
Steven Toth [Thu, 11 Sep 2008 13:23:01 +0000 (10:23 -0300)] 
V4L/DVB (8996): S2API: typedefs replaced, _SEQ_'s removed, fixed 16 command arrays replaced

After discussion the following changes were made:
1. Removed the typedefs in frontend.h, use structures.
2. In the frontend.h, remove the 16 command limit on the API and
   switch to a flexible variable length API. For practical reasons
   a #define limits this to 64, this should be discussed.
3. Changed dvb-core ioctl handing to deal with variable sequences
   of commands.

tune-v0.0.3.c is required to use this API, it contains the interface changes.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8995): S2API: tv_ / TV_ to dtv_ / DTV_ namespace changes
Steven Toth [Thu, 11 Sep 2008 13:19:27 +0000 (10:19 -0300)] 
V4L/DVB (8995): S2API: tv_ / TV_ to dtv_ / DTV_ namespace changes

The group preferred dtv_ over tv_, this implements it.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8994): Adjust MPEG initialization in cx24116
Igor M. Liplianin [Tue, 9 Sep 2008 16:57:47 +0000 (13:57 -0300)] 
V4L/DVB (8994): Adjust MPEG initialization in cx24116

Adjust MPEG initialization in cx24116 in order to accomodate different
MPEG CLK position and polarity in different cards.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8993): cx24116: Fix lock for high (above 30000 kSyms) symbol rates
Igor M. Liplianin [Tue, 9 Sep 2008 16:22:29 +0000 (13:22 -0300)] 
V4L/DVB (8993): cx24116: Fix lock for high (above 30000 kSyms) symbol rates

cx24116: Fix lock for high (above 30000 kSyms) symbol rates

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8992): Kconfig corrections for DVBWorld 2104 and TeVii S650 USB DVB-S2 cards
Igor M. Liplianin [Tue, 9 Sep 2008 14:29:43 +0000 (11:29 -0300)] 
V4L/DVB (8992): Kconfig corrections for DVBWorld 2104 and TeVii S650 USB DVB-S2 cards

Change menu item in Kconfig for DVBWorld 2104 and TeVii S650 USB DVB-S2 cards

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8991): Added support for DVBWorld 2104 and TeVii S650 USB DVB-S2 cards
Igor M. Liplianin [Mon, 8 Sep 2008 20:16:40 +0000 (17:16 -0300)] 
V4L/DVB (8991): Added support for DVBWorld 2104 and TeVii S650 USB DVB-S2 cards

Added support for DVBWorld 2104 and TeVii S650 USB DVB-S2 cards
This cards based on cx24116 demodulator.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8990): S2API: DVB-S/S2 voltage selection bug fix
Steven Toth [Mon, 8 Sep 2008 15:07:06 +0000 (12:07 -0300)] 
V4L/DVB (8990): S2API: DVB-S/S2 voltage selection bug fix

Thanks to Hans Werner for finding the problem.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8989): Added support for TeVii S460 DVB-S/S2 card
Igor M. Liplianin [Thu, 4 Sep 2008 20:24:14 +0000 (17:24 -0300)] 
V4L/DVB (8989): Added support for TeVii S460 DVB-S/S2 card

Added support for TeVii S460 DVB-S/S2 card. The card
based on cx24116 demodulator.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8988): S2API: Allow the properties to call legacy ioctls
Steven Toth [Fri, 5 Sep 2008 00:19:43 +0000 (21:19 -0300)] 
V4L/DVB (8988): S2API: Allow the properties to call legacy ioctls

SET_TONE and SET_VOLTAGE were not previously implemented. Two options
existed. Either cut/paste from the previous ioctl handler into the
process_properties function, which is code duplication. Or, split
the current ioctl handler into it's two major pieces.

Piece 1, responsible for input validation and semaphore acquiring
Piece 2 the processing of the previous ioctls

and finally, a new third pieces where the array of properties
is processed, and can freely call the legacy ioctl handler without
having to re-acquire the fepriv->sem semaphore. This is a clean approach
and ensures the existing legacy ioctls are processed as they were previously
(but with an extra function call) and allows the new API to share code
without duplication.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8987): cx88: Add support for the Hauppauge HVR4000 and HVR4000-LITE (S2...
Steven Toth [Thu, 4 Sep 2008 04:17:33 +0000 (01:17 -0300)] 
V4L/DVB (8987): cx88: Add support for the Hauppauge HVR4000 and HVR4000-LITE (S2) boards

Adding support for Hauppauge's cx88 S2 based products, based on the
cx24116 DVB-S2 demodulator.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8986): cx24116: Adding DVB-S2 demodulator support
Steven Toth [Thu, 4 Sep 2008 04:14:43 +0000 (01:14 -0300)] 
V4L/DVB (8986): cx24116: Adding DVB-S2 demodulator support

Adds support for the COnexant cx24116 DVB-S2 demodulator.

TODO: checkpatch cleanup.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8985): S2API: Added dvb frontend changes to support a newer tuning API
Steven Toth [Thu, 4 Sep 2008 04:12:25 +0000 (01:12 -0300)] 
V4L/DVB (8985): S2API: Added dvb frontend changes to support a newer tuning API

This is an experimental patch to add a new tuning mechanism for
dvb frontends. Rather than passing fixed structures across the
user/kernel boundary, which need to be revised for each new modulation
type (or feature the kernel developers want to add), this implements
a simpler message based approach, allowing fe commands to be broken
down into a series of small fixed size transactions, presented
in an array.

The goal is to avoid changing the user/kernel ABI in the future, by
simply creating new frontend commands (and sequencies of commands) that
help us add support for brand new demodulator, delivery system or
statistics related commmands.

known issues:
checkpatch voilations
feedback from various developers yet to be implemented, relating
to namespace conventions, variable length array passing conventions,
and generally some optimization.

This patch should support all existing tuning mechanisms through the
new API, as well as adding 8PSK, DVB-S2 NBC-QPSK and ISDB-T API support.

For testing and exercise purposes, see the latest tune.c tool
available from http://www.steventoth.net/linux/s2

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Antti Palosaari [Mon, 22 Sep 2008 15:32:37 +0000 (12:32 -0300)] 
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309

- AVerMedia A309 Mini Card (07ca:a309)

Thanks-to: Dirk Vornheder <dirk_vornheder@yahoo.de>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8975): af9015: cleanup
Antti Palosaari [Fri, 19 Sep 2008 21:34:06 +0000 (18:34 -0300)] 
V4L/DVB (8975): af9015: cleanup

- cleanup Telestar Starstick 2 patch

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8974): af9015: Add USB ID for Telestar Starstick 2
Mikko Ohtamaa [Fri, 19 Sep 2008 21:26:05 +0000 (18:26 -0300)] 
V4L/DVB (8974): af9015: Add USB ID for Telestar Starstick 2

- Add USB ID for Telestar Starstick 2 (10b9:8000)

Signed-off-by: Mikko Ohtamaa <mikko@redinnovation.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8973): af9013: fix compile error coming from u64 div
Antti Palosaari [Tue, 16 Sep 2008 17:22:43 +0000 (14:22 -0300)] 
V4L/DVB (8973): af9013: fix compile error coming from u64 div

- fix compile error coming from u64 div

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8972): initial driver for af9015 chipset
Antti Palosaari [Mon, 15 Sep 2008 20:18:09 +0000 (17:18 -0300)] 
V4L/DVB (8972): initial driver for af9015 chipset

- initial driver for the Afatech AF9015 chipset

Thanks-to: Mark Spieth <mark@digivation.com.au>
Thanks-to: Lee Essen <lee.essen@nowonline.co.uk>
Thanks-to: Luca Olivetti <luca@ventoso.org>
Thanks-to: Andrew Leech <andrew@floppyspongeonline.com>
Thanks-to: Nick Andrew <nick-linuxtv@nick-andrew.net>
Thanks-to: Rafael Antoniello <rafael.antoniello@gmail.com>
Thanks-to: Jarryd Beck <jarro.2783@gmail.com>
Thanks-to: Jose Alberto Reguero <jareguero@telefonica.net>
Thanks-to: Benjamin Larsson <banan@ludd.ltu.se>
Thanks-to: Wolfgang Breyha <wbreyha@gmx.net>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8971): initial driver for af9013 demodulator
Antti Palosaari [Mon, 15 Sep 2008 18:01:52 +0000 (15:01 -0300)] 
V4L/DVB (8971): initial driver for af9013 demodulator

- initial driver for the Afatech AF9013 demodulator

Signed-off-by: Antti Palosaari <crope@iki.fi>
[mchehab.redhat.com: having a global var called 'debug' is not a good idea. rename it to af9013_debug]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8970): mt2060: implement I2C-gate control
Antti Palosaari [Mon, 15 Sep 2008 17:34:31 +0000 (14:34 -0300)] 
V4L/DVB (8970): mt2060: implement I2C-gate control

- implement I2C-gate control

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8968): replace xc3028 firmware filenames with defined default firmware names
Michael Krufky [Tue, 16 Sep 2008 05:15:30 +0000 (02:15 -0300)] 
V4L/DVB (8968): replace xc3028 firmware filenames with defined default firmware names

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB: pxa-camera: Unsigned dma_chans[] cannot be negative
roel kluin [Thu, 18 Sep 2008 20:50:15 +0000 (17:50 -0300)] 
V4L/DVB: pxa-camera: Unsigned dma_chans[] cannot be negative

Unsigned dma_chans[] cannot be negative

Also the third time dma_chans[0] < 0 was tested instead of dma_chans[2]

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8964): dvb/budget: push adapter_nr mod option down to individual drivers
Janne Grunau [Sun, 21 Sep 2008 23:50:11 +0000 (20:50 -0300)] 
V4L/DVB (8964): dvb/budget: push adapter_nr mod option down to individual drivers

adapter_nr mod option does not make sense for budget-core since it is only
common code shared by all budget drivers

Signed-off-by: Janne Grunau <janne-dvb@grunau.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8962): zr36067: VIDIOC_S_FMT returns the colorspace value
Jean Delvare [Sun, 7 Sep 2008 08:58:54 +0000 (05:58 -0300)] 
V4L/DVB (8962): zr36067: VIDIOC_S_FMT returns the colorspace value

Ioctl VIDIOC_S_FMT is supposed to fill the colorspace value in the
returned buffer.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8959): include <linux/videodev2.h> into linux/ivtv.h
Kirill A. Shutemov [Wed, 10 Sep 2008 11:22:06 +0000 (08:22 -0300)] 
V4L/DVB (8959): include <linux/videodev2.h> into linux/ivtv.h

linux/videodev2.h defines enum v4l2_buf_type and struct v4l2_rect

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8956): bttv: Turn video_nr, vbi_nr and radio_nr into arrays
Jean Delvare [Sun, 7 Sep 2008 15:49:59 +0000 (12:49 -0300)] 
V4L/DVB (8956): bttv: Turn video_nr, vbi_nr and radio_nr into arrays

With video_nr, vbi_nr and radio_nr being simple integers, it is not
possible to use these parameters on a system with multiple bttv
adapters (which happens to be my case.) video_register_device() will
always fail on the second and later adapters. Turn these parameters
into arrays, as many other V4L drivers are already doing, so that they
can be used on such systems.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8954): common/tuners: Drop code after return or goto
Julia Lawall [Thu, 11 Sep 2008 12:33:26 +0000 (09:33 -0300)] 
V4L/DVB (8954): common/tuners: Drop code after return or goto

The break after the return or goto serves no purpose.

Signed-off-by: Julia Lawall <julia@diku.dk>
Reviewed-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB: remove unused #include <version.h>
Huang Weiyi [Tue, 9 Sep 2008 13:10:52 +0000 (10:10 -0300)] 
V4L/DVB: remove unused #include <version.h>

The file(s) below do not use LINUX_VERSION_CODE nor KERNEL_VERSION.
  drivers/media/video/pwc/pwc-ctrl.c

This patch removes the said #include <version.h>.

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8951): xc5000: dont pass devptr in xc5000_attach()
Michael Krufky [Sat, 6 Sep 2008 17:56:58 +0000 (14:56 -0300)] 
V4L/DVB (8951): xc5000: dont pass devptr in xc5000_attach()

Dont pass devptr in xc5000_attach, dont store it in xc5000_priv.
This pointer is passed into the tuner_callback function, which always
expects a pointer to fe->dvb->priv or i2c_adapter->algo_data.

This prevents future possible bugs in new drivers, such as using a "devptr"
other that the standard fe->dvb->priv in a DVB driver.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8950): xc5000: prevent an OOPS if analog driver is unloaded while digital...
Michael Krufky [Sat, 6 Sep 2008 16:54:45 +0000 (13:54 -0300)] 
V4L/DVB (8950): xc5000: prevent an OOPS if analog driver is unloaded while digital is in use

Prevent an OOPS if xc5000_attach was called by tuner.ko before being called by
the DVB adapter driver. The OOPS occurs when a digital tune request is made
after tuner.ko is unloaded.

When tuner.ko is unloaded, it takes the xc5000_config structure with it.

Rather than storing a pointer to the xc5000_config structure, just store the
if_khz and tuner_callback inside the xc5000_priv internal state structure.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8949): xc5000: allow multiple driver instances for the same hardware to...
Michael Krufky [Sat, 6 Sep 2008 14:44:53 +0000 (11:44 -0300)] 
V4L/DVB (8949): xc5000: allow multiple driver instances for the same hardware to share state

Convert xc5000 to use the hybrid_tuner_request_state and
hybrid_tuner_release_state macros to manage state sharing between
hybrid tuner instances.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8948): xc5000: kill xc5000_priv.h
Michael Krufky [Sat, 6 Sep 2008 13:52:30 +0000 (10:52 -0300)] 
V4L/DVB (8948): xc5000: kill xc5000_priv.h

move struct xc5000_priv into xc5000.c and delete xc5000_priv.h

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8946): dib7000m: fix powerpc build error
Hans Verkuil [Sun, 7 Sep 2008 11:38:50 +0000 (08:38 -0300)] 
V4L/DVB (8946): dib7000m: fix powerpc build error

The dib7000m_i2c_enumeration() function is not used by any public drivers,
however some prototype board use it. So '#if 0' for now, but don't remove it.

Thanks to Patrick Boettcher for clarifying this.

Cc: Patrick Boettcher <patrick.boettcher@desy.de>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8945): mxb: use unique i2c adapter name
Hans Verkuil [Sun, 7 Sep 2008 11:32:44 +0000 (08:32 -0300)] 
V4L/DVB (8945): mxb: use unique i2c adapter name

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8944): saa5249: convert i2c driver for new i2c API
Hans Verkuil [Sun, 7 Sep 2008 11:31:38 +0000 (08:31 -0300)] 
V4L/DVB (8944): saa5249: convert i2c driver for new i2c API

- Convert to use v4l2-i2c-drv-legacy.h to be able to handle the new i2c API
- Cleanups
- Use v4l_dbg/v4l_info to have uniform kernel messages

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8943): saa5246a: convert i2c driver for new i2c API
Hans Verkuil [Sun, 7 Sep 2008 11:31:13 +0000 (08:31 -0300)] 
V4L/DVB (8943): saa5246a: convert i2c driver for new i2c API

- Convert to use v4l2-i2c-drv-legacy.h to be able to handle the new i2c API
- Cleanups
- Use v4l_dbg/v4l_info to have uniform kernel messages

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8942): mxb: coding style cleanups
Hans Verkuil [Sat, 6 Sep 2008 20:24:30 +0000 (17:24 -0300)] 
V4L/DVB (8942): mxb: coding style cleanups

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8941): mxb/tda9840: cleanups, use module saa7115 instead of saa7111.
Hans Verkuil [Sat, 6 Sep 2008 18:40:25 +0000 (15:40 -0300)] 
V4L/DVB (8941): mxb/tda9840: cleanups, use module saa7115 instead of saa7111.

Cleanup tda9840 and use a v4l2 API to get the tuner subchannels.
Do some cleanups in mxb and switch to saa7115 instead of the saa7111
module.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8940): saa7115: fix saa7111(a) support
Hans Verkuil [Sat, 6 Sep 2008 18:26:44 +0000 (15:26 -0300)] 
V4L/DVB (8940): saa7115: fix saa7111(a) support

The saa7111 support in saa7115.c was missing some features and did not
properly take some of the differences into account. With this patch
saa7115 can be used in the mxb driver instead of saa7111.c.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8939): cx18: fix sparse warnings
Hans Verkuil [Sat, 6 Sep 2008 17:02:43 +0000 (14:02 -0300)] 
V4L/DVB (8939): cx18: fix sparse warnings

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8937): em28xx: Fix and add some validations
Douglas Schilling Landgraf [Mon, 8 Sep 2008 06:27:20 +0000 (03:27 -0300)] 
V4L/DVB (8937): em28xx: Fix and add some validations

Fixed and Added some validations

Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8936): em28xx-cards: Add vendor/product id for EM2820_BOARD_PROLINK_PLAYTV_USB2
Douglas Schilling Landgraf [Mon, 8 Sep 2008 06:23:55 +0000 (03:23 -0300)] 
V4L/DVB (8936): em28xx-cards: Add vendor/product id for EM2820_BOARD_PROLINK_PLAYTV_USB2

Added vendor/product id for EM2820_BOARD_PROLINK_PLAYTV_USB2

Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8931): gspca: Vflip added for sonixj - ov7630.
Jean-Francois Moine [Mon, 8 Sep 2008 07:57:26 +0000 (04:57 -0300)] 
V4L/DVB (8931): gspca: Vflip added for sonixj - ov7630.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8930): gspca: The image transfer by bulk is started by the subdrivers.
Jean-Francois Moine [Mon, 8 Sep 2008 06:22:42 +0000 (03:22 -0300)] 
V4L/DVB (8930): gspca: The image transfer by bulk is started by the subdrivers.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8929): gspca: sonixj webcam 0458:702e added.
Jean-Francois Moine [Sun, 7 Sep 2008 14:56:49 +0000 (11:56 -0300)] 
V4L/DVB (8929): gspca: sonixj webcam 0458:702e added.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8928): gspca: Version change to 2.3.0.
Jean-Francois Moine [Sat, 6 Sep 2008 07:21:08 +0000 (04:21 -0300)] 
V4L/DVB (8928): gspca: Version change to 2.3.0.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8927): gspca: PAC 207 webcam 093a:2476 added.
Jean-Francois Moine [Sat, 6 Sep 2008 07:18:48 +0000 (04:18 -0300)] 
V4L/DVB (8927): gspca: PAC 207 webcam 093a:2476 added.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8924): cx18: Set mmio throttling delay default to 0 nsec.
Andy Walls [Sat, 6 Sep 2008 19:43:59 +0000 (16:43 -0300)] 
V4L/DVB (8924): cx18: Set mmio throttling delay default to 0 nsec.

cx18: Set mmio throttling delay default to 0 nsec.  Not doing so makes analog
tuner audio not work on some mahcines.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8921): ivtv: fix incorrect capability and assorted sliced vbi and video...
Hans Verkuil [Sat, 6 Sep 2008 12:56:17 +0000 (09:56 -0300)] 
V4L/DVB (8921): ivtv: fix incorrect capability and assorted sliced vbi and video out fmt fixes

- V4L2_CAP_VBI_OUTPUT is not supported by ivtv, remove it.
- ivtv_try_fmt_vid_out also needed to constrain the width/height of MPEG decoder
  window sizes.
- allow empty sliced services.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8920): cx18/ivtv: fix check of window boundaries for VIDIOC_S_FMT
Hans Verkuil [Sat, 6 Sep 2008 11:24:37 +0000 (08:24 -0300)] 
V4L/DVB (8920): cx18/ivtv: fix check of window boundaries for VIDIOC_S_FMT

It was possible to set out-of-bounds windows sizes, this is now
fixed.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8918): saa6752hs: simplify writing to registers
Hans Verkuil [Sat, 6 Sep 2008 10:00:24 +0000 (07:00 -0300)] 
V4L/DVB (8918): saa6752hs: simplify writing to registers

Add some utility functions to set registers.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8917): saa7134-empress: fix changing the capture standard for non-tuner...
Hans Verkuil [Sat, 6 Sep 2008 09:34:44 +0000 (06:34 -0300)] 
V4L/DVB (8917): saa7134-empress: fix changing the capture standard for non-tuner inputs

When changing the standard the saa6752hs was not updated unless the input
was the TV tuner. The saa6752hs should be updated regardless of the input.

In addition the S_STD and G_STD ioctls for the mpeg video device didn't do
anything. This is now fixed: they behave just like S_STD and G_STD on the
video0 device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8915): cx18: Increment u8 pointers not void pointers.
Andy Walls [Thu, 4 Sep 2008 16:16:40 +0000 (13:16 -0300)] 
V4L/DVB (8915): cx18: Increment u8 pointers not void pointers.

cx18: Increment u8 pointers not void pointers.  Incrementing void pointers
is dubious and the real intent in cx18_memcpy_fromio() and cx18_memset_io() is
to increment by bytes, so use u8 pointers instead.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8914): cx18: Throttle mmio to/from the CX23418 so boards work in older systems
Andy Walls [Mon, 1 Sep 2008 03:40:41 +0000 (00:40 -0300)] 
V4L/DVB (8914): cx18: Throttle mmio to/from the CX23418 so boards work in older systems

cx18: Throttle mmio to/from the CX23418 so boards work in older systems.  The
CX23418 couldn't reliably handle mmio at the rate at which the cx18 driver was
attempting to access the chip.  The PCI bridge arrangements and settings on
modern motherboards still allowed the CX23418 to work OK, but it didn't work
well on many older motherboards: mysterious I2C errors, firmware loading errors,
etc.  This patch adds a throttle to *all* mmio access to the CX23418.  It
defaults to a delay of 31 ns, but is adjustable by the mmio_ndelay module parm.
My HVR-1600 and Raptor PAL/SECAM card now function for analog capture on a
motherboard with an Intel 82810E Northbridge and 82801AA Southbridge.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8913): cx18: Create cx18_ specific wrappers for all pci mmio accessesors.
Andy Walls [Sat, 30 Aug 2008 19:03:44 +0000 (16:03 -0300)] 
V4L/DVB (8913): cx18: Create cx18_ specific wrappers for all pci mmio accessesors.

cx18: Create cx18_ specific wrappers for all pci mmio accessesors.  This is a
first step in instrumenting all CX23418 PCI bus IO, to debug problems with
accessing the CX23418's PCI memory mapped IO.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8912): cx18: Correct CX23418 PCI configuration settings.
Andy Walls [Fri, 29 Aug 2008 19:10:21 +0000 (16:10 -0300)] 
V4L/DVB (8912): cx18: Correct CX23418 PCI configuration settings.

cx18: Correct CX23418 PCI configuration settings.  The CX23418 doesn't have
I/O space registers, so there was no need to try and turn them on (the card
ignores the attempt to set the bit anyway).  Also removed incorrect config
space register setting that was errantly borrowed from ivtv.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8910): gspca: Add support of image transfer by bulk and minor change.
Jean-Francois Moine [Thu, 4 Sep 2008 10:01:50 +0000 (07:01 -0300)] 
V4L/DVB (8910): gspca: Add support of image transfer by bulk and minor change.

- image transfer by bulk
- set the max number of transfer URS's to 4 (was 16)

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8906): v4l-dvb: fix assorted sparse warnings
Hans Verkuil [Thu, 4 Sep 2008 06:33:43 +0000 (03:33 -0300)] 
V4L/DVB (8906): v4l-dvb: fix assorted sparse warnings

Fix sparse warnings. None are serious, but cutting down on these helps find
future serious sparse warnings/errors.

Redid the av7710.c patch based on a suggestion by Oliver Endriss.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8902): pvrusb2: Remove comment lines which refer to checkpatch's behavior
Mike Isely [Thu, 4 Sep 2008 00:51:59 +0000 (21:51 -0300)] 
V4L/DVB (8902): pvrusb2: Remove comment lines which refer to checkpatch's behavior

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8901): pvrusb2: Disable virtual IR device when not needed.
Mike Isely [Mon, 1 Sep 2008 00:06:11 +0000 (21:06 -0300)] 
V4L/DVB (8901): pvrusb2: Disable virtual IR device when not needed.

Disable "virtual" IR receiver on for 24xxx devices that have an
internal IR blaster.  In that case there's another another IR
receiver present and to leave the virtual receiver available
just causes confusion.  This means that 24xxx users will no
longer see a phantom IR chip.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8900): pvrusb2: Implement cropping pass through
Mike Isely [Mon, 1 Sep 2008 00:02:20 +0000 (21:02 -0300)] 
V4L/DVB (8900): pvrusb2: Implement cropping pass through

This builds upon the previous pvrusb2 change to more formally
implement full cropping support.  This enables access from the
driver's V4L interface, and enables access to full capabilities from
sysfs as well.  Note that this is only effective when in analog mode.
It also will only work when the underlying digitizer's driver (saa7115
or cx25840 depending on the hardware) also implements the appropriate
functions.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8899): pvrusb2: Implement default value retrieval in sysfs interface
Mike Isely [Sun, 31 Aug 2008 23:57:54 +0000 (20:57 -0300)] 
V4L/DVB (8899): pvrusb2: Implement default value retrieval in sysfs interface

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8898): pvrusb2: Be able to programmatically retrieve a control's default...
Mike Isely [Sun, 31 Aug 2008 23:55:03 +0000 (20:55 -0300)] 
V4L/DVB (8898): pvrusb2: Be able to programmatically retrieve a control's default value

The pvrusb2 control mechanism up until now has used a constant int to
hold a control's default value.  This change makes it possible to
retrieve the control's default through some other means, e.g. as a
result of a query from lower level software.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8897): pvrusb2: Mark crop window size change as being disruptive to the...
Mike Isely [Sun, 31 Aug 2008 23:50:59 +0000 (20:50 -0300)] 
V4L/DVB (8897): pvrusb2: Mark crop window size change as being disruptive to the encoder

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8896): pvrusb2: Implement crop support
vdb128@picaros.org [Sat, 30 Aug 2008 21:26:39 +0000 (18:26 -0300)] 
V4L/DVB (8896): pvrusb2: Implement crop support

Implement pvrusb2 driver plumbing to support cropping.  Submitted by a
pvrusb2 user.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8895): pvrusb2: Fail gracefully if an alien USB ID is used
Mike Isely [Sat, 30 Aug 2008 21:11:40 +0000 (18:11 -0300)] 
V4L/DVB (8895): pvrusb2: Fail gracefully if an alien USB ID is used

The driver includes an internal table specifying additional
information on a per device-type basis.  This works great until
somebody tries to run-time associate another USB ID with the driver.
This change should hopefully allow the driver to fail gracefully under
such a circumstance.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8894): pvrusb2: Remove BKL
Mike Isely [Sat, 30 Aug 2008 18:11:16 +0000 (15:11 -0300)] 
V4L/DVB (8894): pvrusb2: Remove BKL

The earlier change from Hans Verkuil that pushed the BKL from
video_open() down into the drivers should be unneeded for the pvrusb2
driver.  This driver's implementation for open already protects its
internal structures through other means, thus the BKL is not required.
This change reverses Hans' previous change, for the pvrusb2 driver.

It probably would have been a good idea for Hans to previously have
asked for my ack before committing his change.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8893): pvrusb2: Add comment elaborating on direct use of swab32()
Mike Isely [Sat, 30 Aug 2008 18:09:31 +0000 (15:09 -0300)] 
V4L/DVB (8893): pvrusb2: Add comment elaborating on direct use of swab32()

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8890): budget: Add callback to load firmware for the TDHD1 tuner
Oliver Endriss [Thu, 4 Sep 2008 23:35:19 +0000 (20:35 -0300)] 
V4L/DVB (8890): budget: Add callback to load firmware for the TDHD1 tuner

Supply callback to load firmware for the TDHD1 tuner (using request_firmware).

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8889): dvb-ttpci: Support full-ts hardware modification
Oliver Endriss [Wed, 3 Sep 2008 22:15:27 +0000 (19:15 -0300)] 
V4L/DVB (8889): dvb-ttpci: Support full-ts hardware modification

Add support for the 'full-ts' hardware modification.

On full-featured cards the data throughput is limited by the hardware
design. The full-ts mod removes this bottleneck, i.e. the card is able
to deliver the complete transport stream of a transponder.

For details see http://www.escape-edv.de/endriss/dvb-full-ts-mod

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8888): budget: Support Activy DVB-T with TDHD1 tuner
Oliver Endriss [Wed, 3 Sep 2008 21:16:09 +0000 (18:16 -0300)] 
V4L/DVB (8888): budget: Support Activy DVB-T with TDHD1 tuner

Support Fujitsu-Siemens Activy DVB-T card rev AL (ALPS TDHD1-204A tuner).

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8559): replace __FUNCTION__ with __func__
Alexander Beregalov [Mon, 21 Jul 2008 19:20:32 +0000 (16:20 -0300)] 
V4L/DVB (8559): replace __FUNCTION__ with __func__

v4l: replace __FUNCTION__ with __func__

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8879): bttv: Don't unmask VPRES interrupt
Jean Delvare [Sat, 30 Aug 2008 13:18:21 +0000 (10:18 -0300)] 
V4L/DVB (8879): bttv: Don't unmask VPRES interrupt

When the input is set to tuner and no antenna is connected, the BT848
can flood VPRES interrupts. So we don't want to enable this type of
interrupts when the input it set to tuner.

As we don't do anything when receiving such an interrupt anyway, the
easiest fix is to simply not unmask this specific interrupt.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8866): Add dummy FE to the Kconfig-file and fix it
Patrick Boettcher [Sat, 30 Aug 2008 15:15:54 +0000 (12:15 -0300)] 
V4L/DVB (8866): Add dummy FE to the Kconfig-file and fix it

Reactivated dummy frontend driver which is extremely useful for debugging.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8857): v4l2-dev: replace panic with BUG
Hans Verkuil [Sat, 30 Aug 2008 12:40:47 +0000 (09:40 -0300)] 
V4L/DVB (8857): v4l2-dev: replace panic with BUG

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8856): v4l: fix assorted compile warnings/errors
Hans Verkuil [Sat, 30 Aug 2008 11:21:13 +0000 (08:21 -0300)] 
V4L/DVB (8856): v4l: fix assorted compile warnings/errors

BIT define conflicts on kernels < 2.6.24, byteorder/swab.h doesn't need
to be included at all.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8852): v4l2: use register_chrdev_region instead of register_chrdev
Hans Verkuil [Fri, 29 Aug 2008 20:31:35 +0000 (17:31 -0300)] 
V4L/DVB (8852): v4l2: use register_chrdev_region instead of register_chrdev

Replace the old register_chrdev with the more flexible register_chrdev_region.

Ensure that the release() is called when the very last chardev usage was
released, and not when the sysfs devices were removed. This should simplify
hotpluggable drivers considerably.

Tested-by: Mike Isely <isely@isely.net>
Tested-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: David Ellingsworth <david@identd.dyndns.org>
Reviewed-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8850): bt856: fix define conflict
Hans Verkuil [Sat, 30 Aug 2008 09:03:09 +0000 (06:03 -0300)] 
V4L/DVB (8850): bt856: fix define conflict

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8847): uvcvideo: Add support for a Bison Electronics webcam found in the...
Laurent Pinchart [Fri, 29 Aug 2008 20:57:10 +0000 (17:57 -0300)] 
V4L/DVB (8847): uvcvideo: Add support for a Bison Electronics webcam found in the Fujitsu Amilo SI2636.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8846): uvcvideo: Supress spurious "EOF in empty payload" trace message
Laurent Pinchart [Fri, 29 Aug 2008 20:37:44 +0000 (17:37 -0300)] 
V4L/DVB (8846): uvcvideo: Supress spurious "EOF in empty payload" trace message

Pass the payload size instead of the header size to uvc_video_decode_end() to
avoid generating an extra trace message for each frame.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8845): s2255drv: adds JPEG compression quality control
Dean Anderson [Fri, 29 Aug 2008 18:33:19 +0000 (15:33 -0300)] 
V4L/DVB (8845): s2255drv: adds JPEG compression quality control

adds VIDIOC_S_JPEGCOMP and VIDIOC_G_JPEGCOMP ioctls for
controlling JPEG compression quality.

Signed-off-by: Dean Anderson <dean@sensoray.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8838): CRED: Wrap task credential accesses in video input drivers
David Howells [Wed, 27 Aug 2008 13:46:39 +0000 (10:46 -0300)] 
V4L/DVB (8838): CRED: Wrap task credential accesses in video input drivers

Wrap access to task credentials so that they can be separated more easily from
the task_struct during the introduction of COW creds.

Change most current->(|e|s|fs)[ug]id to current_(|e|s|fs)[ug]id().

Change some task->e?[ug]id to task_e?[ug]id().  In some places it makes more
sense to use RCU directly rather than a convenient wrapper; these will be
addressed by later patches.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: James Morris <jmorris@namei.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8807): Add DVB support for the Leadtek Winfast PxDVR3200 H
Steven Toth [Tue, 12 Aug 2008 16:30:03 +0000 (13:30 -0300)] 
V4L/DVB (8807): Add DVB support for the Leadtek Winfast PxDVR3200 H

This patch is on behalf of Stephen Backway <stev391@email.com>, and
represents two patches I received (and some subsequent whitespace
cleanup I had due to how I pulled the patches).

From the original author:

a) Add DVB support for the Leadtek Winfast PxDVR3200 H.

b) The tuner callback previously checked the command 3 times:
1) To see if it was the XC2028_RESET_CLK
2) To see if it was not the XC2028_RESET_TUNER
3) To see if it was the XC2028_RESET_TUNER
This patch removes the third check.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Stephen Backway <stev391@email.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8800): [v4l-dvb-maintainer] [PATCH] v4l: mt9m111.c make function static
Harvey Harrison [Wed, 27 Aug 2008 20:20:01 +0000 (17:20 -0300)] 
V4L/DVB (8800): [v4l-dvb-maintainer] [PATCH] v4l: mt9m111.c make function static

drivers/media/video/mt9m111.c:758:5: warning: symbol 'mt9m111_restore_state' was not declared. Should it be static?

New warning in next-20080825

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8799): soc-camera: add API documentation
Guennadi Liakhovetski [Fri, 29 Aug 2008 18:16:31 +0000 (15:16 -0300)] 
V4L/DVB (8799): soc-camera: add API documentation

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8797): A simple state machine was added to saa7134_ts.
Dmitry Belimov [Tue, 26 Aug 2008 17:16:33 +0000 (14:16 -0300)] 
V4L/DVB (8797): A simple state machine was added to saa7134_ts.

A simple state machine was added to saa7134_ts. It has three states:

        SAA7134_TS_STOPPED
        SAA7134_TS_BUFF_DONE
        SAA7134_TS_STARTED

When buffer_setup is run we start the TS initialization: set SAA7134_TS_STOPPED.
When all buffers are prepared we write data into DMA register and set
SAA7134_TS_BUFF_DONE.
When the first buffer is active start TS and set SAA7134_TS_STARTED.
When ts_release is called stop TS and set SAA7134_TS_STOPPED.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8796): saa7134-empress: remove incorrect IRQ defines for TS
Dmitry Belimov [Tue, 26 Aug 2008 16:47:10 +0000 (13:47 -0300)] 
V4L/DVB (8796): saa7134-empress: remove incorrect IRQ defines for TS

SAA7134_IRQ1_INTE_RA2_3 and SAA7134_IRQ1_INTE_RA2_2 are used for planar video,
not for TS.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8795): saa7134-empress: insert leading null bytes for Beholder M6 empress...
Dmitry Belimov [Tue, 26 Aug 2008 16:44:40 +0000 (13:44 -0300)] 
V4L/DVB (8795): saa7134-empress: insert leading null bytes for Beholder M6 empress cards

Additional code to improve the init sequence and add board type tests
were done by Hans Verkuil.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8791): v4l2-dev: do not clear the driver_data field
Hans Verkuil [Sun, 24 Aug 2008 14:18:47 +0000 (11:18 -0300)] 
V4L/DVB (8791): v4l2-dev: do not clear the driver_data field

The driver_data field of the device structure was zeroed, thus losing
this information. Many drivers set this up before calling
video_device_register, so we have to ensure that it isn't lost.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8788): v4l: replace video_get_drvdata(video_devdata(filp)) with video_drvdat...
Hans Verkuil [Sat, 23 Aug 2008 11:32:09 +0000 (08:32 -0300)] 
V4L/DVB (8788): v4l: replace video_get_drvdata(video_devdata(filp)) with video_drvdata(filp)

Use the new video_drvdata(filp) function where it is safe to do so.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8787): v4l2-dev: cleanups and add video_drvdata helper function
Hans Verkuil [Sat, 23 Aug 2008 10:48:38 +0000 (07:48 -0300)] 
V4L/DVB (8787): v4l2-dev: cleanups and add video_drvdata helper function

Cleanup v4l2-dev.[ch], add/improve comments and add a new helper
function: video_drvdata() that can get the private driver data from
a file struct.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8786): v4l2: remove the priv field, use dev_get_drvdata instead
Hans Verkuil [Sat, 23 Aug 2008 10:24:07 +0000 (07:24 -0300)] 
V4L/DVB (8786): v4l2: remove the priv field, use dev_get_drvdata instead

Remove the priv field and let video_get/set_drvdata use dev_get_drvdata
and dev_set_drvdata instead.

Convert all drivers that still used priv directly.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8785): v4l2: add __must_check to v4l2_dev.h
Hans Verkuil [Sat, 23 Aug 2008 09:38:11 +0000 (06:38 -0300)] 
V4L/DVB (8785): v4l2: add __must_check to v4l2_dev.h

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8784): v4l2-dev: make the video_device's release callback mandatory
Hans Verkuil [Sat, 23 Aug 2008 09:27:59 +0000 (06:27 -0300)] 
V4L/DVB (8784): v4l2-dev: make the video_device's release callback mandatory

Now that all drivers set the release callback in the video_device
struct we can put in a BUG_ON in video_register_device to ensure that
the callback is always there.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8783): v4l: add all missing video_device release callbacks
Hans Verkuil [Sat, 23 Aug 2008 09:23:55 +0000 (06:23 -0300)] 
V4L/DVB (8783): v4l: add all missing video_device release callbacks

All drivers that call video_device_register where checked to see if they
set the release callback of struct video_device. Where that callback was
missing it was added.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8782): v4l2-dev: add video_device_release_empty
Hans Verkuil [Sat, 23 Aug 2008 08:47:41 +0000 (05:47 -0300)] 
V4L/DVB (8782): v4l2-dev: add video_device_release_empty

Add a second release function: video_device_release_empty
It can be used by drivers that have statically allocated
video_device structs.

Its use usually, but not always, indicates laziness on the
part of the driver programmer.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8781): v4l2-dev: remove obsolete video_exclusive_open/release
Hans Verkuil [Sat, 23 Aug 2008 08:34:55 +0000 (05:34 -0300)] 
V4L/DVB (8781): v4l2-dev: remove obsolete video_exclusive_open/release

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8780): v4l: replace the last uses of video_exclusive_open/release
Hans Verkuil [Sat, 23 Aug 2008 08:31:47 +0000 (05:31 -0300)] 
V4L/DVB (8780): v4l: replace the last uses of video_exclusive_open/release

Handle the video_exclusive_open/release functionality inside the
driver.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8777): tea575x-tuner: replace video_exclusive_open/release
Hans Verkuil [Sat, 23 Aug 2008 07:52:00 +0000 (04:52 -0300)] 
V4L/DVB (8777): tea575x-tuner: replace video_exclusive_open/release

Move the video_exclusive_open/release functionality into the
driver itself.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>