]> err.no Git - linux-2.6/log
linux-2.6
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>
16 years agoV4L/DVB (6770): pvrusb2: Device CONFIG flags for OnAir device support
Mike Isely [Sat, 8 Dec 2007 20:15:55 +0000 (17:15 -0300)]
V4L/DVB (6770): pvrusb2: Device CONFIG flags for OnAir device support

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6769): pvrusb2: Implement experimental support for OnAir Creator and USB2...
Mike Isely [Sat, 8 Dec 2007 20:11:13 +0000 (17:11 -0300)]
V4L/DVB (6769): pvrusb2: Implement experimental support for OnAir Creator and USB2 devices

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6768): pvrusb2: Mark Gotview hardware as having a cx2584x part
Mike Isely [Sat, 8 Dec 2007 20:08:32 +0000 (17:08 -0300)]
V4L/DVB (6768): pvrusb2: Mark Gotview hardware as having a cx2584x part

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6766): ivtv: remove i2c legacy support from drivers that no longer need it
Hans Verkuil [Sat, 8 Dec 2007 10:43:14 +0000 (07:43 -0300)]
V4L/DVB (6766): ivtv: remove i2c legacy support from drivers that no longer need it

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6765): ivtv: convert to bus-based i2c API
Hans Verkuil [Sat, 8 Dec 2007 00:01:15 +0000 (21:01 -0300)]
V4L/DVB (6765): ivtv: convert to bus-based i2c API

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6764): ivtv: select VIDEO_IR in Kconfig
Hans Verkuil [Fri, 7 Dec 2007 23:48:29 +0000 (20:48 -0300)]
V4L/DVB (6764): ivtv: select VIDEO_IR in Kconfig

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6763): ivtv: add AVerMedia EZMaker PCI Deluxe support
Hans Verkuil [Fri, 7 Dec 2007 23:40:16 +0000 (20:40 -0300)]
V4L/DVB (6763): ivtv: add AVerMedia EZMaker PCI Deluxe support

Add support for the AVerMedia EZMaker PCI Deluxe and update the ivtv cardlist.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6762): ivtv: update version number to 1.2
Hans Verkuil [Fri, 7 Dec 2007 23:31:17 +0000 (20:31 -0300)]
V4L/DVB (6762): ivtv: update version number to 1.2

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6759): CodingStyle fixes
Mauro Carvalho Chehab [Mon, 10 Dec 2007 13:53:20 +0000 (10:53 -0300)]
V4L/DVB (6759): CodingStyle fixes

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6758): Miscelaneous cleanups
Mauro Carvalho Chehab [Mon, 10 Dec 2007 12:33:52 +0000 (09:33 -0300)]
V4L/DVB (6758): Miscelaneous cleanups

Manually fixed all pertinent checkpatch.pl errors inside the source code.

Also removed some unused code at the driver and a few minor cleanups.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6755): Avoid troubles when using multiple devices
Mauro Carvalho Chehab [Mon, 10 Dec 2007 07:43:38 +0000 (04:43 -0300)]
V4L/DVB (6755): Avoid troubles when using multiple devices

mv_count is a counter used to move the vertical bars. Before this patch, it
where a static var. This works fine for just one device. However, when using
multiple devices, every device would increment it.

This patch moves it to its correct place: struct vivi_dev. So, now, each device
has its own data.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6754): Allow vivi to open multiple video devices
Mauro Carvalho Chehab [Mon, 10 Dec 2007 07:38:11 +0000 (04:38 -0300)]
V4L/DVB (6754): Allow vivi to open multiple video devices

Now, it is possible to open multiple vivi devices, by using n_devs parameter.
This makes vivi driver closer to a real one.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6753): Fix vivi to support non-zero minor node
Mauro Carvalho Chehab [Mon, 10 Dec 2007 07:07:03 +0000 (04:07 -0300)]
V4L/DVB (6753): Fix vivi to support non-zero minor node

There were a trouble at vivi driver when using non-zero inodes. This where due
to not properly preserving the minor inode after calling video_register. Since
this driver is a reference for newer drivers, and it is possible to have more
than one video device inside the machine, this patch makes vivi to dynamically
allocate video_device struct.

Thanks to Gregor Jasny <jasny@vidsoft.de> for pointing the issue.

Also, this patch removes a very anoying (but useless) message of not having a
proper release call.

CC: Gregor Jasny <jasny@vidsoft.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6752): saa7134: Enable remote control support for Avermedia M102
Albert Graham [Sun, 9 Dec 2007 12:44:38 +0000 (09:44 -0300)]
V4L/DVB (6752): saa7134: Enable remote control support for Avermedia M102

This patch enabled the IR remote control for the Avermedia M102 (card=110),
which appears to be the same IR as the already supported device on the
Avermedia AVerTV GO 007 FM (card=57) model, the code is two one liners which
enable the IR for this device (subsystem: 1461:f31e)

Signed-off-by: Albert Graham <agraham@g-b.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6749): v4l-nopage-fix
Andrew Morton [Sat, 8 Dec 2007 00:14:43 +0000 (21:14 -0300)]
V4L/DVB (6749): v4l-nopage-fix

dont just copy-and-paste stuff.
(compile-tested this time)

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6748): Subject: v4l: nopage
Nick Piggin [Fri, 7 Dec 2007 20:57:38 +0000 (17:57 -0300)]
V4L/DVB (6748): Subject: v4l: nopage

Convert v4l from nopage to fault.
Remove redundant vma range checks.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6745): tda18271: remove tuning offset for atsc/qam
Michael Krufky [Fri, 7 Dec 2007 03:33:08 +0000 (00:33 -0300)]
V4L/DVB (6745): tda18271: remove tuning offset for atsc/qam

The tuning request coming in from userspace is already center adjusted,
so we should not adjust to center (+1.75mhz) within the driver.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>