linux-2.6
16 years agoV4L/DVB (6906): tda18271: rename tda18271_calc_* functions to tda18271_lookup_*
Michael Krufky [Mon, 24 Dec 2007 07:35:21 +0000 (04:35 -0300)] 
V4L/DVB (6906): tda18271: rename tda18271_calc_* functions to tda18271_lookup_*

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6905): tda18271: check ID register during attach
Michael Krufky [Mon, 24 Dec 2007 07:15:20 +0000 (04:15 -0300)] 
V4L/DVB (6905): tda18271: check ID register during attach

Identify the silicon during attach, return NULL if unsupported device.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6904): tda18271: divider byte 1, bit 7 is always 0
Michael Krufky [Mon, 24 Dec 2007 06:47:30 +0000 (03:47 -0300)] 
V4L/DVB (6904): tda18271: divider byte 1, bit 7 is always 0

Bit 7 of both Main Divider byte 1 and Cal Divider byte 1 is always zero.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6903): mt312: CodingStyle fix
Matthias Schwarzott [Mon, 24 Dec 2007 10:12:55 +0000 (07:12 -0300)] 
V4L/DVB (6903): mt312: CodingStyle fix

Fixes all occurences of assignment in if

checkpatch marks them as ERROR.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Reviewed-by: Andreas Oberritter <obi@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6901): Kconfig: VIDEO_CX23885 selects TUNER_TDA8290 and DVB_TDA18271
Michael Krufky [Sat, 22 Dec 2007 20:56:25 +0000 (17:56 -0300)] 
V4L/DVB (6901): Kconfig: VIDEO_CX23885 selects TUNER_TDA8290 and DVB_TDA18271

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6900): cx23885: enable EZ-QAM mode for Hauppauge WinTV HVR-1800
Michael Krufky [Fri, 7 Dec 2007 04:40:36 +0000 (01:40 -0300)] 
V4L/DVB (6900): cx23885: enable EZ-QAM mode for Hauppauge WinTV HVR-1800

Add module option 'alt_tuner' disabled by default.

When set to one, the dvb_frontend of HVR1800 will consist of:
s5h1409 demod + tda18271 tuner

When set zero (default), the dvb_frontend of HVR1800 will consist of:
s5h1409 demod + mt2131 tuner

If the tda18271 is used in digital mode, you will not be able to
tune an analog channel at the same time.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6899): Kconfig: VIDEO_CX23885 must select TUNER_XC2028 if !DVB_FE_CUSTOMIZE
Michael Krufky [Sat, 22 Dec 2007 19:59:08 +0000 (16:59 -0300)] 
V4L/DVB (6899): Kconfig: VIDEO_CX23885 must select TUNER_XC2028 if !DVB_FE_CUSTOMIZE

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6898): cx23885: add support for Hauppauge WinTV HVR-1500
Michael Krufky [Tue, 18 Dec 2007 04:09:11 +0000 (01:09 -0300)] 
V4L/DVB (6898): cx23885: add support for Hauppauge WinTV HVR-1500

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6897): xc2028: ignore HAS_IF during specific S-Code type searches
Chris Pascoe [Sun, 2 Dec 2007 12:30:55 +0000 (09:30 -0300)] 
V4L/DVB (6897): xc2028: ignore HAS_IF during specific S-Code type searches

If we are selecting the S-Code firmware to load by name, then we must mask
off the HAS_IF bit during the search.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6896): ivtv: add XC2028 support for Club3D cards
Hans Verkuil [Sat, 22 Dec 2007 00:33:36 +0000 (21:33 -0300)] 
V4L/DVB (6896): ivtv: add XC2028 support for Club3D cards

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6894): xc5000: fix build warning
Michael Krufky [Fri, 21 Dec 2007 19:20:23 +0000 (16:20 -0300)] 
V4L/DVB (6894): xc5000: fix build warning

Fix the following build warning:

xc5000.c:560: warning: format '%d' expects type 'int',
      but argument 2 has type 'size_t'

On many architectrues size_t is unsigned long, and may not be printed with %d.
Use %Zu instead.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6893): tuner-xc2028: fix xc2028_attach function
Michael Krufky [Fri, 21 Dec 2007 19:12:09 +0000 (16:12 -0300)] 
V4L/DVB (6893): tuner-xc2028: fix xc2028_attach function

xc2028_attach was returning an integer when disabled from the build, where it
should instead be returning NULL.  Declare xc2028_attach as type dvb_frontend *
instead of void *.

The prototype declaration must be marked as extern in the header.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6892): xc5000: fix build when DVB_TUNER_XC5000 is disabled
Michael Krufky [Fri, 21 Dec 2007 19:00:45 +0000 (16:00 -0300)] 
V4L/DVB (6892): xc5000: fix build when DVB_TUNER_XC5000 is disabled

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6890): tda18271: fix typo in RF tracking filter calibration
Michael Krufky [Fri, 21 Dec 2007 17:28:46 +0000 (14:28 -0300)] 
V4L/DVB (6890): tda18271: fix typo in RF tracking filter calibration

We want to set bits 1 & 2 on easy programming byte 4, not extended byte 4.

Thanks to David Wong for pointing this out.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Cc: David Wong <davidtlwong@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6888): Add Hauppauge tuner type 150 defintion
Steven Toth [Thu, 20 Dec 2007 04:20:38 +0000 (01:20 -0300)] 
V4L/DVB (6888): Add Hauppauge tuner type 150 defintion

Add Hauppauge tuner type 150 defintion.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6887): Avoid 'unknown model' message for the HVR1500-Q
Steven Toth [Thu, 20 Dec 2007 04:17:15 +0000 (01:17 -0300)] 
V4L/DVB (6887): Avoid 'unknown model' message for the HVR1500-Q

Avoid 'unknown model' message for the HVR1500-Q

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6886): xc5000: Cleanups of types, result codes etc
Steven Toth [Thu, 20 Dec 2007 04:14:43 +0000 (01:14 -0300)] 
V4L/DVB (6886): xc5000: Cleanups of types, result codes etc

This translates much of the xceive coding style, adds
some result codes and generally cleans up whitespace
and function arguments.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6885): Add support for the Hauppauge HVR1500Q
Steven Toth [Tue, 18 Dec 2007 04:57:06 +0000 (01:57 -0300)] 
V4L/DVB (6885): Add support for the Hauppauge HVR1500Q

The express card ATSC/QAM tuner.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6884): Add support for the Xceive xc5000 silicon tuner
Steven Toth [Tue, 18 Dec 2007 04:55:51 +0000 (01:55 -0300)] 
V4L/DVB (6884): Add support for the Xceive xc5000 silicon tuner

This is an all formats tuner, QAM, ATSC, DVB-T and others.
Only ATSC and QAM have been tested.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6882): dvb_frontend: release analog demod in dvb_frontend_detach
Michael Krufky [Fri, 21 Dec 2007 14:34:45 +0000 (11:34 -0300)] 
V4L/DVB (6882): dvb_frontend: release analog demod in dvb_frontend_detach

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6881): include struct analog_demod_ops directly inside struct dvb_frontend
Michael Krufky [Fri, 21 Dec 2007 14:18:32 +0000 (11:18 -0300)] 
V4L/DVB (6881): include struct analog_demod_ops directly inside struct dvb_frontend

Rather than using a pointer, include struct analog_demod_ops directly
inside struct dvb_frontend.  This will allow us to use dvb_attach in
the future, along with removing the need to check the ops structure
before having to check the pointer to the method being called.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6880): kill tuner-driver.h
Michael Krufky [Fri, 21 Dec 2007 06:00:59 +0000 (03:00 -0300)] 
V4L/DVB (6880): kill tuner-driver.h

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6879): move struct analog_tuner_ops into dvb_frontend.h
Michael Krufky [Fri, 21 Dec 2007 05:55:43 +0000 (02:55 -0300)] 
V4L/DVB (6879): move struct analog_tuner_ops into dvb_frontend.h

struct analog_tuner_ops no longer has any dependencies specific
to v4l2, so we can move this into dvb_frontend.h with the rest
of the tuning structures.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6878): tuner: remove extraneous variable declaration
Michael Krufky [Fri, 21 Dec 2007 02:19:14 +0000 (23:19 -0300)] 
V4L/DVB (6878): tuner: remove extraneous variable declaration

tuner_count is already declared as "extern unsigned const int"
in <media/tuner-types.h>  -- Remove it from tuner-driver.h

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6875): tuner-xc2028: ATSC requires 1.75 MHz tuning offset
Michael Krufky [Tue, 18 Dec 2007 13:42:33 +0000 (10:42 -0300)] 
V4L/DVB (6875): tuner-xc2028: ATSC requires 1.75 MHz tuning offset

In my testing yesterday, I was using a scan file tailored specifically
for a unique test situation -- As it turns out, this scan file was bad,
and I will use the one included inside dvb-apps for testing for now on.

I've tested with other ATSC tuners just to confirm, using:

us-ATSC-center-frequencies-8VSB

Anyhow, as it turns out, the tuner-xc2028 *does* require a tuning offset
for ATSC.  Even though the linux-dvb api passes in center frequencies
from userspace, apparantly the xceive firmware is already factoring in
the tuning offset to center.

In order to make the device function using the same scan files /
channels.conf configurations as other atsc devices, we must offset by
1.75 MHz.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6874): removes duplicated KERN_DEBUG flags from dprintk calls in mt312.c
Matthias Schwarzott [Fri, 21 Dec 2007 11:58:09 +0000 (08:58 -0300)] 
V4L/DVB (6874): removes duplicated KERN_DEBUG flags from dprintk calls in mt312.c

        do { \
                if (debug) printk(KERN_DEBUG "mt312: " args); \
        } while (0)

So no caller need to specify KERN_DEBUG.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6873): Fixes issues listed by checkpatch
Matthias Schwarzott [Fri, 21 Dec 2007 11:56:44 +0000 (08:56 -0300)] 
V4L/DVB (6873): Fixes issues listed by checkpatch

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6869): cs5345: new i2c driver
Hans Verkuil [Tue, 18 Dec 2007 22:40:44 +0000 (19:40 -0300)] 
V4L/DVB (6869): cs5345: new i2c driver

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6868): i2c-id.h: add I2C_DRIVERID_CS5345
Hans Verkuil [Tue, 18 Dec 2007 22:27:31 +0000 (19:27 -0300)] 
V4L/DVB (6868): i2c-id.h: add I2C_DRIVERID_CS5345

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6867): saa7127: CodingStyle cleanups
Hans Verkuil [Wed, 12 Dec 2007 13:23:52 +0000 (10:23 -0300)] 
V4L/DVB (6867): saa7127: CodingStyle cleanups

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6866): msp3400: CodingStyle cleanups
Hans Verkuil [Wed, 12 Dec 2007 11:25:18 +0000 (08:25 -0300)] 
V4L/DVB (6866): msp3400: CodingStyle cleanups

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6865): vp27smpx: CodingStyle cleanup
Hans Verkuil [Wed, 12 Dec 2007 10:40:54 +0000 (07:40 -0300)] 
V4L/DVB (6865): vp27smpx: CodingStyle cleanup

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6864): upd64031a: CodingStyle cleanup
Hans Verkuil [Wed, 12 Dec 2007 10:34:15 +0000 (07:34 -0300)] 
V4L/DVB (6864): upd64031a: CodingStyle cleanup

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6863): upd64083: CodingStyle cleanups
Hans Verkuil [Wed, 12 Dec 2007 10:30:02 +0000 (07:30 -0300)] 
V4L/DVB (6863): upd64083: CodingStyle cleanups

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6862): ivtv: really remove i2c legacy support from drivers that no longer...
Hans Verkuil [Wed, 12 Dec 2007 10:24:27 +0000 (07:24 -0300)] 
V4L/DVB (6862): ivtv: really remove i2c legacy support from drivers that no longer need it

For some reason the include header wasn't changed from v4l2-i2c-drv-legacy.h
to v4l2-i2c-drv.h in the previous patch. This is now corrected.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6861): cx2341x: command argument should be u32 instead of int
Hans Verkuil [Wed, 12 Dec 2007 10:04:58 +0000 (07:04 -0300)] 
V4L/DVB (6861): cx2341x: command argument should be u32 instead of int

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6860): tveeprom: CodingStyle cleanup
Hans Verkuil [Wed, 12 Dec 2007 09:50:20 +0000 (06:50 -0300)] 
V4L/DVB (6860): tveeprom: CodingStyle cleanup

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6859): tveeprom: add support for Hauppauge models 74xxx
Hans Verkuil [Wed, 12 Dec 2007 09:21:58 +0000 (06:21 -0300)] 
V4L/DVB (6859): tveeprom: add support for Hauppauge models 74xxx

Thanks to Steve Toth from Hauppauge with providing me with the information
needed to add support for these models.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6858): Fix offset for ATSC
Mauro Carvalho Chehab [Tue, 18 Dec 2007 03:30:52 +0000 (00:30 -0300)] 
V4L/DVB (6858): Fix offset for ATSC

ATSC works with offset=0

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6857): cx23885: correctly join I2C writes and reads from same address
Chris Pascoe [Sat, 15 Dec 2007 06:31:09 +0000 (03:31 -0300)] 
V4L/DVB (6857): cx23885: correctly join I2C writes and reads from same address

When an I2C message specifies a write then a read from the same I2C address,
we need to tell the chip to not release the bus between the message parts.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6856): zl10353: improve tuning parameters and update register map
Chris Pascoe [Sat, 15 Dec 2007 06:24:00 +0000 (03:24 -0300)] 
V4L/DVB (6856): zl10353: improve tuning parameters and update register map

Some more I2C traces and a experimentation with register values on
both the ZL10353 and MT352 mean that I can now guess at what more
of the ZL10353 registers do.

Guess at the registers' names (based on the equivalent names in MT352)
and update set_parameters/get_parameters with the new knowledge.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6855): xc2028: select DTV78 firmware if tuning 7MHz VHF / 8MHz UHF
Chris Pascoe [Sun, 2 Dec 2007 13:07:06 +0000 (10:07 -0300)] 
V4L/DVB (6855): xc2028: select DTV78 firmware if tuning 7MHz VHF / 8MHz UHF

It seems that the DTV78 firmware is intended for use in locations where
VHF channels have 7MHz bandwidth and UHF channels have 8MHz bandwidth.
If we switch to DTV78 firmware when we detect this condition, we can
avoid firmware reloads when switching between VHF and UHF transponders.

Place the state for this in the control structure so that card drivers
can hint to us to use DTV78 firmware from the first tuning attempt.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6854): xc2028: be more specific about when applying offset for 7MHz channels
Chris Pascoe [Sun, 2 Dec 2007 12:39:18 +0000 (09:39 -0300)] 
V4L/DVB (6854): xc2028: be more specific about when applying offset for 7MHz channels

We have been inserting a mystery 500kHz offset for tuning 7MHz channels,
however some experimentation reveals it is only needed under certain
conditions with specific firmware combinations.  Document these and only
apply the offset when we know it is required.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6853): xc2028: check HAS_IF flag against table
Chris Pascoe [Sun, 2 Dec 2007 09:54:17 +0000 (06:54 -0300)] 
V4L/DVB (6853): xc2028: check HAS_IF flag against table

When searching for the right S-Code table to load, check the HAS_IF flag
against the firmware we are checking instead of against the the "type"
requested.  We already ignore the scode type requested if the caller passed
an int_freq; this makes the search by frequency consistent with that behaviour.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6852): xc2028: s-code offset should not modify internal control structure
Chris Pascoe [Sun, 2 Dec 2007 09:36:42 +0000 (06:36 -0300)] 
V4L/DVB (6852): xc2028: s-code offset should not modify internal control structure

Don't modify the control structure that was provided at attach when applying
an offset to the S-Code, otherwise it will be incorrect on subsequent tunes.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6851): xc2028: include int_freq in firmware version display
Chris Pascoe [Sun, 2 Dec 2007 09:30:50 +0000 (06:30 -0300)] 
V4L/DVB (6851): xc2028: include int_freq in firmware version display

Add "int_freq" to the debugging output when selecting firmware and the
HAS_IF flag when dumping firmware during load.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (em28xx): Add support for Pinnacle Dazzle DVC 100
Aurelien Jarno [Mon, 17 Dec 2007 16:49:17 +0000 (13:49 -0300)] 
V4L/DVB (em28xx): Add support for Pinnacle Dazzle DVC 100

The patch below adds the "Pinnacle Dazzle DVC 100" to the list of
cards supported by the em28xx driver. As the configuration is the same
as the DVC 90 one, it simply adds a new USB ID to the list of devices
supported by the DVC 90 configuration.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6848): bttv: check pci_register_driver() error
Akinobu Mita [Mon, 17 Dec 2007 17:26:29 +0000 (14:26 -0300)] 
V4L/DVB (6848): bttv: check pci_register_driver() error

Check pci_register_driver() error in module_init.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6846): tda9887: initialize mode to T_STANDBY at startup
Michael Krufky [Mon, 17 Dec 2007 12:49:33 +0000 (09:49 -0300)] 
V4L/DVB (6846): tda9887: initialize mode to T_STANDBY at startup

Ensure that the audio is muted at attach-time

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6845): tuner: remove unneeded #includes from tuner-driver.h
Michael Krufky [Mon, 17 Dec 2007 04:21:08 +0000 (01:21 -0300)] 
V4L/DVB (6845): tuner: remove unneeded #includes from tuner-driver.h

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6844): tuner: remove struct tuner from tuner-driver.h
Michael Krufky [Mon, 17 Dec 2007 01:02:26 +0000 (22:02 -0300)] 
V4L/DVB (6844): tuner: remove struct tuner from tuner-driver.h

struct tuner holds state for tuner-core, only -- move it into tuner-core.c

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6843): tda9887: use printk macros from tuner-i2c.h
Michael Krufky [Mon, 17 Dec 2007 00:20:21 +0000 (21:20 -0300)] 
V4L/DVB (6843): tda9887: use printk macros from tuner-i2c.h

replace tda9887_info and tda9887_dbg printk macros with
tuner_info and tuner_dbg, defined in tuner-i2c.h

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6842): tda9887: remove dependency on struct tuner
Michael Krufky [Sun, 16 Dec 2007 23:11:46 +0000 (20:11 -0300)] 
V4L/DVB (6842): tda9887: remove dependency on struct tuner

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6841): tda9887: maintain private state independent of struct tuner
Michael Krufky [Sun, 16 Dec 2007 23:05:00 +0000 (20:05 -0300)] 
V4L/DVB (6841): tda9887: maintain private state independent of struct tuner

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6840): tuner: convert tda9887 to use TUNER_SET_CONFIG
Michael Krufky [Sun, 16 Dec 2007 22:53:32 +0000 (19:53 -0300)] 
V4L/DVB (6840): tuner: convert tda9887 to use TUNER_SET_CONFIG

Use TUNER_SET_CONFIG to set configuration in tda9887's private state
structure, rather than storing tda9887-specific configuration within
struct tuner.

Update handling of TUNER_SET_CONFIG by tuner-core, to call
&t->fe.ops.analog_demod_ops rather than &t->fe.ops.tuner_ops

analog_demod_ops.set_config passes the request to tuner_ops.set_config,
so this does not break other drivers.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6839): tuner: add set_config to struct analog_tuner_ops
Michael Krufky [Sun, 16 Dec 2007 22:27:23 +0000 (19:27 -0300)] 
V4L/DVB (6839): tuner: add set_config to struct analog_tuner_ops

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6838): tda9887: remove references to struct tuner from printk macros
Michael Krufky [Sun, 16 Dec 2007 22:14:31 +0000 (19:14 -0300)] 
V4L/DVB (6838): tda9887: remove references to struct tuner from printk macros

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6837): Convert cx88_input.audioroute to a bitfield
Michael Krufky [Mon, 17 Dec 2007 13:54:06 +0000 (10:54 -0300)] 
V4L/DVB (6837): Convert cx88_input.audioroute to a bitfield

Prevent us from wasting some extra bytes of memory

Thanks to Trent Piepho, for pointing this out.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6836): Fix CodingStyle troubles caused by the previous cx88 commits
Mauro Carvalho Chehab [Mon, 17 Dec 2007 13:35:59 +0000 (10:35 -0300)] 
V4L/DVB (6836): Fix CodingStyle troubles caused by the previous cx88 commits

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6834): cx88-video: Enable selection of the WM8775 for cx88 cards
Frej Drejhammar [Mon, 5 Nov 2007 20:57:11 +0000 (17:57 -0300)] 
V4L/DVB (6834): cx88-video: Enable selection of the WM8775 for cx88 cards

The auto selection of pertinent helper chips (VIDEO_HELPER_CHIPS_AUTO)
should select the wm8775 driver, which is used by at least one
Conexant 2388x based card (Hauppauge HVR-1300), if VIDEO_CX88 is
selected.

Signed-off-by: Frej Drejhammar <frej.drejhammar@gmail.com>
Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6833): Don't limit cx88 audio routing to blackbird boards
Ricardo Cerqueira [Tue, 16 Oct 2007 23:52:08 +0000 (20:52 -0300)] 
V4L/DVB (6833): Don't limit cx88 audio routing to blackbird boards

All cx2388 boards need the line-in audio to be routed from an external ADC
(refered to as "ADC mode" in the spec sheet), since the chip is uncapable
of dealing with baseband audio directly.
So... this patch enables normal mode when using the tuner (TV or Radio), and
enables ADC mode with any other source. It'll probably only work with boards
that have supported ADCs (such as the Wolfson wm9775)

Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6832): cx88-blackbird: don't mute audio when stopping the codec
Michael Krufky [Sat, 13 Oct 2007 23:42:45 +0000 (20:42 -0300)] 
V4L/DVB (6832): cx88-blackbird: don't mute audio when stopping the codec

We should not mute the audio input when we stop the codec,
because it will interfere with the live uncompressed stream.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Jelle Foks <jelle@foks.8m.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6831): Audio routes fix for blackbird boards with the wm8775 ADC
Ricardo Cerqueira [Sun, 30 Sep 2007 16:02:49 +0000 (13:02 -0300)] 
V4L/DVB (6831): Audio routes fix for blackbird boards with the wm8775 ADC

Fix lack of audio on the MPEG-2 stream of wm8775 based blackbirds.

The wm8775 module initializes the audio input at "route 2", which doesn't
hold true for all boards. The HVR-1300, for example, uses route 1 for
tuner audio, and route 2 for baseband. So we must route the audio to the
proper input depending on what video input is being used.

Signed-off-by: Ricardo Cerqueira <v4l@cerqueira.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6830): cx88-blackbird: remove unnecessary encoder unmute
Jelle Foks [Mon, 21 May 2007 17:48:58 +0000 (14:48 -0300)] 
V4L/DVB (6830): cx88-blackbird: remove unnecessary encoder unmute

Remove the unnecessary BLACKBIRD_UNMUTE calls to the mpeg encoder in
cx88-blackbird.c

The encoder is never muted, hence unmuting should then only be necessary
once after hardware initialization.

I tested this from warm boots and cold boots (with long power down time
to ensure the sram in the chip is emptied), and found that after the
firmware upload the encoder is apparently not muted, making the unmutes
unnecessary.

Signed-off-by: Jelle Foks <jelle@foks.8m.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6829): cx88-blackbird: remove unnecessary msleep()'s
Jelle Foks [Mon, 21 May 2007 17:46:06 +0000 (14:46 -0300)] 
V4L/DVB (6829): cx88-blackbird: remove unnecessary msleep()'s

Remove the unnecessary msleep()'s in cx88-blackbird.c

Signed-off-by: Jelle Foks <jelle@foks.8m.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6828): cx88-blackbird: audio improvements
Jelle Foks [Mon, 21 May 2007 17:36:01 +0000 (14:36 -0300)] 
V4L/DVB (6828): cx88-blackbird: audio improvements

This patch should fix the 'muted audio' and 'raspy audio' problem for
mpeg2 streams out of cx88-blackbird devices.

Especially mythtv users would find that the audio would often sound bad
(aliased, or 'raspy'), mainly related to channel changes, many (all?)
other users would find that there was no audio at all in the mpeg data
from the encoder chip, unless the audio was manually unmuted.

The patch includes the following modifications:

Don't actually start the mpeg2 encoder until the device is read from
by the application.

Wait until the audio is stable for at least 400ms before starting the
mpeg encoder.

Mute/Unmute the audio when starting/stopping the mpeg encoder.

Stop the mpeg encoder when changing parameters and when changing tuner
frequency.

Add a variable 'mpeg_active' to struct cx8802_dev to allow tracking of
whether or not the mpeg2 encoder is active.

Load the firmware on cx88-blackbird driver load.

Signed-off-by: Jelle Foks <jelle@foks.8m.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6827): Auto-selects D2633 for ATSC
Mauro Carvalho Chehab [Sun, 16 Dec 2007 12:24:30 +0000 (09:24 -0300)] 
V4L/DVB (6827): Auto-selects D2633 for ATSC

ATSC standard-specific firmware is D2633 on both v2.5 and v2.7. Better to
auto-select this firmware, overriding ctrl.d2633.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6822): s5h1409: use VSB IF frequency ( 44 / 5.38 MHz ) unless otherwise...
Michael Krufky [Thu, 13 Dec 2007 13:11:49 +0000 (10:11 -0300)] 
V4L/DVB (6822): s5h1409: use VSB IF frequency ( 44 / 5.38 MHz ) unless otherwise specified

use VSB IF frequency ( 44 / 5.38 MHz ) if qam_if is invalid or unspecified

Acked-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6821): s5h1409: fix IF frequency configuration
Michael Krufky [Thu, 13 Dec 2007 13:04:10 +0000 (10:04 -0300)] 
V4L/DVB (6821): s5h1409: fix IF frequency configuration

On the s5h1409 demod, the IF frequency for VSB is limited to 44 / 5.38 MHz.

Hardcode VSB IF frequency within the driver to 44 / 5.38 MHz.
QAM IF frequency remains configurable via attach-time configuration.

Acked-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6818): git-dvb: drivers/media/dvb/frontends/zl10353.c: avoid 64-bit divide
Andrew Morton [Thu, 13 Dec 2007 00:43:57 +0000 (21:43 -0300)] 
V4L/DVB (6818): git-dvb: drivers/media/dvb/frontends/zl10353.c: avoid 64-bit divide

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6817): Cleanup kernel thread and provide overrun detection
Mauro Carvalho Chehab [Thu, 13 Dec 2007 19:15:41 +0000 (16:15 -0300)] 
V4L/DVB (6817): Cleanup kernel thread and provide overrun detection

The previous code were a little bit messy. Cleans it up.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6816): Add proper locking for buffer filling
Mauro Carvalho Chehab [Thu, 13 Dec 2007 19:13:37 +0000 (16:13 -0300)] 
V4L/DVB (6816): Add proper locking for buffer filling

Avoids de-alocating buffers before finishing to fill a buffer

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6815): Fix vivi internal debug messages
Mauro Carvalho Chehab [Thu, 13 Dec 2007 16:30:14 +0000 (13:30 -0300)] 
V4L/DVB (6815): Fix vivi internal debug messages

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6812): media: video: usbvision: remove ctrlUrbLock
Daniel Walker [Wed, 12 Dec 2007 21:37:54 +0000 (18:37 -0300)] 
V4L/DVB (6812): media: video: usbvision: remove ctrlUrbLock

The ctrlUrbLock has all it's users commented out, and so it's unused.  This
patch removes it.

Signed-off-by: Daniel Walker <dwalker@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6811): media-video-usbvision-add-mutex_unlock-to-error-paths-fix
Andrew Morton [Wed, 12 Dec 2007 21:25:23 +0000 (18:25 -0300)] 
V4L/DVB (6811): media-video-usbvision-add-mutex_unlock-to-error-paths-fix

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6810): media: video: usbvision: add mutex_unlock() to error paths
Daniel Walker [Wed, 12 Dec 2007 21:22:48 +0000 (18:22 -0300)] 
V4L/DVB (6810): media: video: usbvision: add mutex_unlock() to error paths

There are a few error paths which don't unlock the usbvision->lock.

So I've added mutex_unlock() calls to fix those paths.

Signed-off-by: Daniel Walker <dwalker@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6809): git-dvb: drivers/media/video/et61x251/et61x251_core.c: fix warnings
Andrew Morton [Wed, 12 Dec 2007 22:55:49 +0000 (19:55 -0300)] 
V4L/DVB (6809): git-dvb: drivers/media/video/et61x251/et61x251_core.c: fix warnings

drivers/media/video/et61x251/et61x251_core.c:390: warning: 'et61x251_i2c_read' defined but not used
drivers/media/video/et61x251/et61x251_core.c:397: warning: 'et61x251_i2c_write' defined but not used

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6808): git-dvb: fix build in drivers/media/dvb/frontends/tda18271.h
Andrew Morton [Wed, 12 Dec 2007 22:27:57 +0000 (19:27 -0300)] 
V4L/DVB (6808): git-dvb: fix build in drivers/media/dvb/frontends/tda18271.h

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6807): fix debug enable
Mauro Carvalho Chehab [Thu, 13 Dec 2007 09:36:22 +0000 (06:36 -0300)] 
V4L/DVB (6807): fix debug enable

The changes at vivi_template make debug option to not work properly.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6806): Allow emulating changes of video std by vivi
Mauro Carvalho Chehab [Thu, 13 Dec 2007 09:35:26 +0000 (06:35 -0300)] 
V4L/DVB (6806): Allow emulating changes of video std by vivi

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6805): video std is a bitmask. Better to print in hexa
Mauro Carvalho Chehab [Thu, 13 Dec 2007 09:34:12 +0000 (06:34 -0300)] 
V4L/DVB (6805): video std is a bitmask. Better to print in hexa

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6804): __videobuf_read_start is static
Mauro Carvalho Chehab [Thu, 13 Dec 2007 00:46:26 +0000 (21:46 -0300)] 
V4L/DVB (6804): __videobuf_read_start is static

Thanks to Jean Delvare <khali@linux-fr.org> for pointing this.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6801): tda18271: pass i2c gate configuration into tda18271_attach()
Michael Krufky [Mon, 10 Dec 2007 01:23:30 +0000 (22:23 -0300)] 
V4L/DVB (6801): tda18271: pass i2c gate configuration into tda18271_attach()

If we pass TDA18271_GATE_DIGITAL into tda18271_attach(), it will always try to
use the digital demodulator's i2c gate.

If we pass TDA18271_GATE_ANALOG into tda18271_attach(), it will always try to
use the analog demodulator's i2c gate.

If we pass TDA18271_GATE_AUTO into tda18271_attach(), it will try to use the
analog demodulator's i2c gate when tuning in analog mode, and it will try to
use the digital demodulator's i2c gate when tuning in digital mode.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6800): tda18271: use an enum rather than an integer to store analog / digita...
Michael Krufky [Mon, 10 Dec 2007 01:13:01 +0000 (22:13 -0300)] 
V4L/DVB (6800): tda18271: use an enum rather than an integer to store analog / digital state

Use an enum rather than an integer #define to store analog / digital state.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6795): Add EXPORT_SYMBOL_GPL to the saa7134 video control routines
Mauro Carvalho Chehab [Tue, 11 Dec 2007 18:01:57 +0000 (15:01 -0300)] 
V4L/DVB (6795): Add EXPORT_SYMBOL_GPL to the saa7134 video control routines

Those newer functions are used by saa7134-empress. Adds export for them:
+EXPORT_SYMBOL_GPL(saa7134_g_ctrl);
+EXPORT_SYMBOL_GPL(saa7134_s_ctrl);
+EXPORT_SYMBOL_GPL(saa7134_queryctrl);

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6793): Convert saa7134-empress to video_ioctl2
Mauro Carvalho Chehab [Tue, 11 Dec 2007 15:56:23 +0000 (12:56 -0300)] 
V4L/DVB (6793): Convert saa7134-empress to video_ioctl2

saa7134 were converted to video_ioctl2, but saa7134_empress weren't. This broke
saa7134-empress, since it were dependent of saa7134_common_ioctl.

With the conversion, the module had a size decrease of 436 bytes on x86_64:

   text    data     bss     dec     hex filename
   5196    4912       4   10112    2780 old/saa7134-empress.ko
   4760    4912       4    9676    25cc new/saa7134-empress.ko

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6792): Fix VBI support
Mauro Carvalho Chehab [Tue, 11 Dec 2007 15:05:06 +0000 (12:05 -0300)] 
V4L/DVB (6792): Fix VBI support

VBI were broken, since there weren't any function handlers for it. This patch
fixes it, by removing the vbi_template, using, instead video_template.

This also saves some space at the data segment.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6791): Rename all vidioc_ to saa7134_
Mauro Carvalho Chehab [Tue, 11 Dec 2007 14:51:53 +0000 (11:51 -0300)] 
V4L/DVB (6791): Rename all vidioc_ to saa7134_

Some functions are used also by saa7134-empress, and need to be exported. To
avoid namespace confusion, rename all of them to saa7134_

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6789): tuner: use char *name instead of 128 byte fixed array for demod info
Michael Krufky [Mon, 10 Dec 2007 19:08:25 +0000 (16:08 -0300)] 
V4L/DVB (6789): tuner: use char *name instead of 128 byte fixed array for demod info

Don't waste 128 bytes of memory for a name that might not actually need it.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6788): tda8290: fix codingstyle, open brace following struct on the same...
Michael Krufky [Mon, 10 Dec 2007 14:12:59 +0000 (11:12 -0300)] 
V4L/DVB (6788): tda8290: fix codingstyle, open brace following struct on the same line

Fix codingstyle issue discovered after using new checkpatch.pl

 ERROR: open brace '{' following struct go on the same line
 396: FILE: linux/drivers/media/video/tda8290.h:24:
+struct tda829x_config
+{

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6787): tuner: bug-fix: default mode was set to bogus value
Michael Krufky [Sun, 9 Dec 2007 20:21:54 +0000 (17:21 -0300)] 
V4L/DVB (6787): tuner: bug-fix: default mode was set to bogus value

Fix type inconsistency in t->mode value, causing the following:

tuner' 1-0043: freq set: unknown mode: 0x0004!

(only visible with tuner debug enabled)

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6786): tuner: add struct analog_demod_info to struct analog_tuner_ops
Michael Krufky [Sun, 9 Dec 2007 16:52:51 +0000 (13:52 -0300)] 
V4L/DVB (6786): tuner: add struct analog_demod_info to struct analog_tuner_ops

Store the analog demodulator name in fe.ops.analog_demod_ops.info.name

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6785): tda8290: remove dependency on struct tuner
Michael Krufky [Sun, 9 Dec 2007 05:26:48 +0000 (02:26 -0300)] 
V4L/DVB (6785): tda8290: remove dependency on struct tuner

- remove dependency of tda8290 module on struct tuner
- move tuner_foo printk macros from tuner-driver.h into tuner-core.c
- clean up #includes of tuner-i2c.h / tuner-driver.h

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6784): tda8290: prevent possible memory leak
Michael Krufky [Sun, 9 Dec 2007 08:16:10 +0000 (05:16 -0300)] 
V4L/DVB (6784): tda8290: prevent possible memory leak

Always call tda829x_release if tda829x_attach fails for a reason
other than failure to allocate memory for private structure.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6783): tuner: combine set_tv_freq and set_radio_freq into a single set_param...
Michael Krufky [Sat, 8 Dec 2007 20:06:30 +0000 (17:06 -0300)] 
V4L/DVB (6783): tuner: combine set_tv_freq and set_radio_freq into a single set_params method

We can tell whether we are tuning television or radio by testing for
struct analog_parameters *params->mode == V4L2_TUNER_RADIO

There is no longer any need for separate set_tv_freq and
set_radio_freq functions in the analog tuner demodulator modules.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6782): tda8290: access frontend structure directly, where possible
Michael Krufky [Sat, 8 Dec 2007 19:25:41 +0000 (16:25 -0300)] 
V4L/DVB (6782): tda8290: access frontend structure directly, where possible

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6776): ivtv: Some general fixes
Richard Knutsson [Sat, 8 Dec 2007 13:35:06 +0000 (10:35 -0300)] 
V4L/DVB (6776): ivtv: Some general fixes

Fix "warning: Using plain integer as NULL pointer".
Convert 'x < y ? x : y' to use min() instead.

Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6773): pvrusb2: rework device descriptor layout
Mike Isely [Sat, 8 Dec 2007 20:20:06 +0000 (17:20 -0300)] 
V4L/DVB (6773): pvrusb2: rework device descriptor layout

The pvrusb2 driver tries to keep all device specific attributes in a
single data structure in one source file.  This change further cleans
up how that table is set up.  We now try to group everything together
for each specific device, and the number of symbols exported from this
module has now been reduced to a single global.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6772): pvrusb2: Remove obsolete (and misleading) comment
Mike Isely [Sat, 8 Dec 2007 20:17:44 +0000 (17:17 -0300)] 
V4L/DVB (6772): pvrusb2: Remove obsolete (and misleading) comment

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6771): pvrusb2: Remove old obsolete CONFIG flags for pvrusb2 driver
Mike Isely [Sat, 8 Dec 2007 20:17:09 +0000 (17:17 -0300)] 
V4L/DVB (6771): pvrusb2: Remove old obsolete CONFIG flags for pvrusb2 driver

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>