linux-2.6
16 years agoV4L/DVB (6932): cx23885: add missing subsystem ID for Hauppauge HVR1800 Retail
Michael Krufky [Fri, 28 Dec 2007 00:46:34 +0000 (21:46 -0300)] 
V4L/DVB (6932): cx23885: add missing subsystem ID for Hauppauge HVR1800 Retail

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6930): xc5000: Removed erroneous defines
Steven Toth [Thu, 27 Dec 2007 17:33:30 +0000 (14:33 -0300)] 
V4L/DVB (6930): xc5000: Removed erroneous defines

Basic cleanup.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6928): tda18271: break calculation functions out of tda18271_tune
Michael Krufky [Tue, 25 Dec 2007 21:54:22 +0000 (18:54 -0300)] 
V4L/DVB (6928): tda18271: break calculation functions out of tda18271_tune

Break out the following new functions from tda18271_tune:

tda18271_calc_bp_filter
tda18271_calc_km
tda18271_calc_rf_band
tda18271_calc_gain_taper
tda18271_calc_ir_measure
tda18271_calc_rf_cal

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6927): tda18271: improve printk macros
Michael Krufky [Tue, 25 Dec 2007 18:10:11 +0000 (15:10 -0300)] 
V4L/DVB (6927): tda18271: improve printk macros

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6926): tda18271: consolidate table lookup functions
Michael Krufky [Tue, 25 Dec 2007 03:39:37 +0000 (00:39 -0300)] 
V4L/DVB (6926): tda18271: consolidate table lookup functions

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6925): tda18271: move state structures to tda18271-priv.h
Michael Krufky [Mon, 24 Dec 2007 17:38:41 +0000 (14:38 -0300)] 
V4L/DVB (6925): tda18271: move state structures to tda18271-priv.h

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6924): tda18271: fix whitespace in tda18271_ir_measure
Michael Krufky [Tue, 25 Dec 2007 00:03:52 +0000 (21:03 -0300)] 
V4L/DVB (6924): tda18271: fix whitespace in tda18271_ir_measure

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6923): tda18271: remove extraneous debug
Michael Krufky [Mon, 24 Dec 2007 17:14:03 +0000 (14:14 -0300)] 
V4L/DVB (6923): tda18271: remove extraneous debug

We don't need to do a dbg_info during tda18271_attach anymore, since
the tda18271_get_id function will call dbg_info with the same information
and more.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6921): include/media/v4l2-i2c-drv.h must #include <media/v4l2-common.h>
Michael Krufky [Mon, 24 Dec 2007 18:49:33 +0000 (15:49 -0300)] 
V4L/DVB (6921): include/media/v4l2-i2c-drv.h must #include <media/v4l2-common.h>

Fix the following compiler error:

v4l2-i2c-drv.h:72: error: implicit declaration of function 'v4l2_i2c_attach'

Also, prevent multiple inclusions of v4l2-i2c-drv.h

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6920): tuner: fix backwards logic in check for set_config
Michael Krufky [Mon, 24 Dec 2007 19:05:39 +0000 (16:05 -0300)] 
V4L/DVB (6920): tuner: fix backwards logic in check for set_config

tuner-core was checking if analog_ops->set_config is set.  If set, it would
complain that it isn't.  Fix this backwards logic to the proper behavior.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6919): Kconfig: VIDEO_CX23885 must select DVB_TUNER_XC5000 if !DVB_FE_CUSTOMIZE
Michael Krufky [Wed, 26 Dec 2007 16:04:08 +0000 (13:04 -0300)] 
V4L/DVB (6919): Kconfig: VIDEO_CX23885 must select DVB_TUNER_XC5000 if !DVB_FE_CUSTOMIZE

Everybody forgets to add the Kconfig stuff after they add new card support :-/

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6917): ivtv: small textual update
Hans Verkuil [Mon, 24 Dec 2007 13:41:47 +0000 (10:41 -0300)] 
V4L/DVB (6917): ivtv: small textual update

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6915): ivtv: drop an incorrect comment
Jean Delvare [Sat, 22 Dec 2007 21:28:22 +0000 (18:28 -0300)] 
V4L/DVB (6915): ivtv: drop an incorrect comment

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6914): Fix a few issues at the bttv conversion
Mauro Carvalho Chehab [Fri, 28 Dec 2007 01:28:31 +0000 (22:28 -0300)] 
V4L/DVB (6914): Fix a few issues at the bttv conversion

bttv driver is working as previously. An additional gain of about 1,5Kb were
obtained with the driver conversion to vidioc_ioctl2:

   text    data     bss     dec     hex filename
  89208   40244   57556  187008   2da80 old/bttv.ko
  88960   38740   57556  185256   2d3a8 new/bttv.ko

(measured on a x86_64)

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6913): Preserve the previous order to make easier to check the conversion
Mauro Carvalho Chehab [Fri, 28 Dec 2007 01:23:34 +0000 (22:23 -0300)] 
V4L/DVB (6913): Preserve the previous order to make easier to check the conversion

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6912): Replace vidioc_ to bttv_
Mauro Carvalho Chehab [Fri, 28 Dec 2007 01:22:59 +0000 (22:22 -0300)] 
V4L/DVB (6912): Replace vidioc_ to bttv_

Since there are a few vidioc_ functions that were exported, rename those
functions to bttv_ in order to avoid poluting namespace.

The other functions were also renamed, to standardize inside the driver.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6911): Converted bttv to use video_ioctl2
Douglas Schilling Landgraf [Fri, 28 Dec 2007 01:20:58 +0000 (22:20 -0300)] 
V4L/DVB (6911): Converted bttv to use video_ioctl2

Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6909): cx23885: fix bad use count caused by tda18271 being probed by tda8290
Michael Krufky [Mon, 24 Dec 2007 07:52:08 +0000 (04:52 -0300)] 
V4L/DVB (6909): cx23885: fix bad use count caused by tda18271 being probed by tda8290

Don't allow the tda8290 module to probe and attach the tuner module,
causing incorrect use counts when using dvb_attach.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6908): tda8290: add the option not to probe for tuners passed into tda829x_c...
Michael Krufky [Mon, 24 Dec 2007 07:36:14 +0000 (04:36 -0300)] 
V4L/DVB (6908): tda8290: add the option not to probe for tuners passed into tda829x_config

Prevent the tda8290 module from probing for tuners during tda829x_attach,
by passing:

.probe_tuner = TDA829X_DONT_PROBE,

...in struct tda829x_config

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6907): tda18271: create separate calc_pll functions
Michael Krufky [Mon, 24 Dec 2007 08:05:05 +0000 (05:05 -0300)] 
V4L/DVB (6907): tda18271: create separate calc_pll functions

Consolidate duplicated code by creating functions:

tda18271_calc_main_pll
tda18271_calc_cal_pll

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
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>