linux-2.6
16 years agoV4L/DVB (7047): fix broken build when CONFIG_USB_SI470X is set
Michael Krufky [Thu, 17 Jan 2008 17:54:53 +0000 (14:54 -0300)] 
V4L/DVB (7047): fix broken build when CONFIG_USB_SI470X is set

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7046): Finalise support for the Pinnacle HD 8000i
Steven Toth [Wed, 16 Jan 2008 00:57:14 +0000 (21:57 -0300)] 
V4L/DVB (7046): Finalise support for the Pinnacle HD 8000i

Correctly set the atatch structures, enable IR, configure the
xc5000 tuner includes.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7045): xc5000: Small amount of cleanup and commenting
Steven Toth [Sat, 5 Jan 2008 20:08:05 +0000 (17:08 -0300)] 
V4L/DVB (7045): xc5000: Small amount of cleanup and commenting

xc5000: Small amount of cleanup and commenting, just for clarification.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7044): XC5000: Fix support for HVR1500Q broken by patch 1
Steven Toth [Sat, 5 Jan 2008 19:55:45 +0000 (16:55 -0300)] 
V4L/DVB (7044): XC5000: Fix support for HVR1500Q broken by patch 1

From Zhang: This patch fixes support for the HVR1500Q which was broken
when the xc5000 analog patch was added.

Patch committed as-is, cleanups to follows .... Steve

Signed-off-by: Chaogui Zhang <czhang1974@gmail.com>
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7043): New card supported(partially): Pinnacle 800i
Steven Toth [Sat, 5 Jan 2008 19:53:01 +0000 (16:53 -0300)] 
V4L/DVB (7043): New card supported(partially): Pinnacle 800i

From Zhang: This patch continues the support for the Pinnacle HD 800i.

Patch committed as-is, cleanups to follow ... Steve

Signed-off-by: Chaogui Zhang <czhang1974@gmail.com>
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7042): xc5000: Tuner analog support
Steven Toth [Sat, 5 Jan 2008 19:50:14 +0000 (16:50 -0300)] 
V4L/DVB (7042): xc5000: Tuner analog support

From Zhang: This an updated patch that adds analog support for
the xc5000 tuner driver. it was tested on a Pinnacle PCTV HD 800i
card (patches to follow).

Patch commited as-is, cleanup to follow ... Steve.

Signed-off-by: Chaogui Zhang <czhang1974@gmail.com>
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7041): s5h1409: Bug fix for parallel support
Steven Toth [Wed, 16 Jan 2008 00:35:22 +0000 (21:35 -0300)] 
V4L/DVB (7041): s5h1409: Bug fix for parallel support

Parallel support was not working with the s5h1409 and the Pinnacle HD800i.
This patch fixes the demodulator driver and ensures that all existing
s5h1409 based products configure the demodulator correctly.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7039): Reorder headers
Mauro Carvalho Chehab [Tue, 15 Jan 2008 14:25:10 +0000 (11:25 -0300)] 
V4L/DVB (7039): Reorder headers

The backports weren't tested, but compile fine.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7038): USB radio driver for Silicon Labs Si470x FM Radio Receivers
Tobias Lorenz [Tue, 15 Jan 2008 00:55:27 +0000 (21:55 -0300)] 
V4L/DVB (7038): USB radio driver for Silicon Labs Si470x FM Radio Receivers

this patch adds a new driver for the Silicon Labs Si470x FM Radio Receiver. It
should also work for the identical ADS/Tech FM Radio Receiver (formerly
Instant FM Music) as soon as I find out the USB Vendor and Product ID.

The driver is inspired by several other USB and radio drivers, but mainly from
the D-Link DSB-R100 USB radio (dsbr100.c).

The USB stick currently has an Si4701 FM RDS radio receiver. But the other
Si470x devices are pin and register compatible, so that in the future the
driver can easily be patched to support these too. Therefore I named the
driver radio-si470x and the configuration option usb-si470x.

The driver itself just provides the control function over the radio. For
getting audio back, the device support the USB audio class, which is
implemented in the already existing driver.

I tested the driver in the last days, until it now satisfies all my
functionality and robustness requirements. The application I used for testing
was kradio.

Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7037): Fix build breakage of the bttv driver, when advanced debugging is...
Zoltan Devai [Mon, 14 Jan 2008 16:24:38 +0000 (13:24 -0300)] 
V4L/DVB (7037): Fix build breakage of the bttv driver, when advanced debugging is not enabled

Signed-off-by: Zoltan Devai <zdevai@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7036): radio: Use video_device_release rather than kfree
Julia Lawall [Tue, 1 Jan 2008 21:08:10 +0000 (18:08 -0300)] 
V4L/DVB (7036): radio: Use video_device_release rather than kfree

The file drivers/media/video/videodev.c defines both video_device_alloc and
video_device_release.  These are essentially just kzmalloc and kfree,
respectively, but it seems better to use video_device_release, as done in
the other media files, rather than kfree, in case the implementation some
day changes.

The problem was found using the following semantic match.
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
type T,T1,T2;
identifier E;
statement S;
expression x1,x2,x3;
int ret;
@@

  T E;
  ...
* E = video_device_alloc(...);
  if (E == NULL) S
  ... when != video_device_release(...,(T1)E,...)
      when != if (E != NULL) { ... video_device_release(...,(T1)E,...); ...}
      when != x1 = (T1)E
      when != E = x3;
      when any
  if (...) {
    ... when != video_device_release(...,(T2)E,...)
        when != if (E != NULL) { ... video_device_release(...,(T2)E,...); ...}
        when != x2 = (T2)E
(
*   return;
|
*   return ret;
)
  }
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7035): drivers/media/common: Add missing video_device_release
Julia Lawall [Sat, 12 Jan 2008 01:03:42 +0000 (22:03 -0300)] 
V4L/DVB (7035): drivers/media/common: Add missing video_device_release

Video_device_alloc returns the result of a kzalloc.  In this case, the
value is stored in a local variable which is not copied elsewhere before
the point of the error return (video_register_device does not save its
first argument anywhere if it returns a negative value).  Thus, a
video_device_release it needed before the error return.

The problem was found using the following semantic match.
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
type T,T1,T2;
identifier E;
statement S;
expression x1,x2,x3;
int ret;
@@

  T E;
  ...
* E = video_device_alloc(...);
  if (E == NULL) S
  ... when != video_device_release(...,(T1)E,...)
      when != if (E != NULL) { ... video_device_release(...,(T1)E,...); ...}
      when != x1 = (T1)E
      when != E = x3;
      when any
  if (...) {
    ... when != video_device_release(...,(T2)E,...)
        when != if (E != NULL) { ... video_device_release(...,(T2)E,...); ...}
        when != x2 = (T2)E
(
*   return;
|
*   return ret;
)
  }
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
CC: Oliver Endriss <o.endriss@gmx.de>
CC: Michael Hunold <michael@mihu.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7032): tda18271: tda18271_cal_on_startup should be declared static
Michael Krufky [Mon, 14 Jan 2008 14:10:54 +0000 (11:10 -0300)] 
V4L/DVB (7032): tda18271: tda18271_cal_on_startup should be declared static

This module option variable is only handled within the file tda18271-fe.c -

Declare this variable as static.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7030): Kconfig: add missing selections for VIDEO_PVRUSB2
Michael Krufky [Sun, 13 Jan 2008 23:02:52 +0000 (20:02 -0300)] 
V4L/DVB (7030): Kconfig: add missing selections for VIDEO_PVRUSB2

VIDEO_PVRUSB2 must select:
VIDEO_SAA711X, VIDEO_CX25840, VIDEO_MSP3400, and VIDEO_WM8775

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7029): tda18271: provide a choice whether to perform rf cal on init or on...
Michael Krufky [Mon, 14 Jan 2008 01:01:07 +0000 (22:01 -0300)] 
V4L/DVB (7029): tda18271: provide a choice whether to perform rf cal on init or on first tune

If module option "cal" is set to 1, the ~22 sec rf tracking filter calibration
sequence will be invoked on startup.  Otherwise, the calibration will take
place during the first tune.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7028): tda18271: test RF_CAL_OK to see if we need additional RF calibration
Michael Krufky [Sun, 13 Jan 2008 21:29:44 +0000 (18:29 -0300)] 
V4L/DVB (7028): tda18271: test RF_CAL_OK to see if we need additional RF calibration

Test RF_CAL_OK to see if we need to perform the RF tracking filter
calibration after returning from standby.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7027): tda18271: put the device in standby mode during sleep()
Michael Krufky [Sun, 13 Jan 2008 20:01:01 +0000 (17:01 -0300)] 
V4L/DVB (7027): tda18271: put the device in standby mode during sleep()

Add function, tda18271_set_standby_mode.

During sleep, enter standby mode with slave tuner output enabled,
loop through on and xtal oscillator on.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7026): tda18271: report when the RF tracking filter calibration has completed
Michael Krufky [Mon, 7 Jan 2008 03:51:48 +0000 (00:51 -0300)] 
V4L/DVB (7026): tda18271: report when the RF tracking filter calibration has completed

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7024): usbvision: YUV to RGB conversion fixes
Thierry MERLE [Thu, 10 Jan 2008 21:20:34 +0000 (18:20 -0300)] 
V4L/DVB (7024): usbvision: YUV to RGB conversion fixes

All YUV to RGB conversions in usbvision were reverted
(conversion to BGR but saying RGB to the application)

Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Acked-by: Dwaine Garden <DwaineGarden@rogers.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7023): Fix a regresion left by changeset 7e65d6e8f6df
Mauro Carvalho Chehab [Sun, 13 Jan 2008 22:40:30 +0000 (19:40 -0300)] 
V4L/DVB (7023): Fix a regresion left by changeset 7e65d6e8f6df

Changeset 7e65d6e8f6df removed a very bad hack on mmap(). However, the fixes
weren't considering usermap and overlay memory models. This were breaking
direct reading from /dev/video?, used mostly by mpeg aware drivers.

Thanks to Steven Toth <stoth@linuxtv.org> for reporting the issue and
bissecting it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7022): Fix timestamp presentation on vivi driver
Mauro Carvalho Chehab [Sun, 13 Jan 2008 22:36:11 +0000 (19:36 -0300)] 
V4L/DVB (7022): Fix timestamp presentation on vivi driver

Due to date overflow, vivi were not working fine anymore.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7021): Move all board specific configuration to em28xx-cards.c
Mauro Carvalho Chehab [Sun, 13 Jan 2008 18:42:17 +0000 (15:42 -0300)] 
V4L/DVB (7021): Move all board specific configuration to em28xx-cards.c

This cleanup moves the board-specific configurations to em28xx-cards.c.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7020): Add USB ID for a newer variant of Hauppauge WinTV USB2
Mauro Carvalho Chehab [Sun, 13 Jan 2008 15:02:20 +0000 (12:02 -0300)] 
V4L/DVB (7020): Add USB ID for a newer variant of Hauppauge WinTV USB2

Thanks to Jeroen Janssen <Jeroen.Janssen@vub.ac.be>

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7019): V4L: add support for Syntek DC1125 webcams
Jaime Velasco Juan [Sat, 12 Jan 2008 09:48:14 +0000 (06:48 -0300)] 
V4L/DVB (7019): V4L: add support for Syntek DC1125 webcams

This driver supports cameras with USB ID 174f:a311 or 05e1:0501,
and the ov965x sensors. These devices are found in some Asus laptops
and probably somewhere else.

It is based on the stk11xx driver written by Nicolas Vivien

Signed-off-by: Jaime Velasco Juan <jsagarribay@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7017): saa7134: add MSI TV@nywhere Plus with the older tda8275 tuner
Hermann Pitton [Sat, 12 Jan 2008 17:43:48 +0000 (14:43 -0300)] 
V4L/DVB (7017): saa7134: add MSI TV@nywhere Plus with the older tda8275 tuner

Thanks go to Mark Schultz for the initial contribution and to
Dean Hilkewich for testing it again.

Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7016): saa7134: remove the Avermedia Super 007 from eeprom detection
Hermann Pitton [Sat, 12 Jan 2008 17:31:03 +0000 (14:31 -0300)] 
V4L/DVB (7016): saa7134: remove the Avermedia Super 007 from eeprom detection

saa7134: remove the Avermedia Super 007 from eeprom detection

The card made it into the Philips' Tigers eeprom detection and falls through.
Since it has attracted already others to follow, which are wrongly identified
as TIGER_S then, move it to the usual analog initialization.

Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7014): cx23885: dprintk macro cleanup
Steven Toth [Sat, 12 Jan 2008 14:36:36 +0000 (11:36 -0300)] 
V4L/DVB (7014): cx23885: dprintk macro cleanup

Added missing do { } while (0)

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7013): bw-qcam: add module parameter 'force_init' to skip polite auto-detect...
Brett T. Warden [Thu, 10 Jan 2008 07:33:31 +0000 (04:33 -0300)] 
V4L/DVB (7013): bw-qcam: add module parameter 'force_init' to skip polite auto-detection prior to direct initialization

Setting force_init=1 bypasses the friendly auto-detection by polling the
status register, and instead attempts to initialize the qcam directly.  Not
friendly to other parallel devices, but much more reliable than the
auto-detection.

Signed-off-by: Brett T. Warden <brett.warden@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7011): cx23885: Cleanup of compiler defines and warnings
Steven Toth [Thu, 10 Jan 2008 14:43:18 +0000 (11:43 -0300)] 
V4L/DVB (7011): cx23885: Cleanup of compiler defines and warnings

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7010): cx23885: Small cleanup
Steven Toth [Thu, 10 Jan 2008 07:38:59 +0000 (04:38 -0300)] 
V4L/DVB (7010): cx23885: Small cleanup

cx23885: Small cleanup

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7009): cx23885: Video and VBI related files
Steven Toth [Thu, 10 Jan 2008 07:25:59 +0000 (04:25 -0300)] 
V4L/DVB (7009): cx23885: Video and VBI related files

cx23885: Video and VBI related files.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7008): s5h1409: Ensure the silicon is initialized during attach
Steven Toth [Thu, 10 Jan 2008 06:43:11 +0000 (03:43 -0300)] 
V4L/DVB (7008): s5h1409: Ensure the silicon is initialized during attach

If not it impacts on analog tuner quality.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7007): cx23885: Add basic video support for the HVR1800
Steven Toth [Thu, 10 Jan 2008 06:40:49 +0000 (03:40 -0300)] 
V4L/DVB (7007): cx23885: Add basic video support for the HVR1800

This enabled basic preview NTSC and PAL support for the HVR1800.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7006): cx23885: Track the board clock frequency and allow overrides
Steven Toth [Thu, 10 Jan 2008 05:24:27 +0000 (02:24 -0300)] 
V4L/DVB (7006): cx23885: Track the board clock frequency and allow overrides

The cx23885/6/8 all have different clock rates, this patch allows
the core to compensate, and developers to allow vendor specific
overrides. This patches will be used by future analog video
and encoder patches.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7005): cx23885: SRAM reallocation prior to analog video implementation
Steven Toth [Thu, 10 Jan 2008 05:16:41 +0000 (02:16 -0300)] 
V4L/DVB (7005): cx23885: SRAM reallocation prior to analog video implementation

We need to clear space large enough for the video and encoder fifos.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7004): cx23885: Ensure HVR1800 TDA8295A is reset fully on module load
Steven Toth [Thu, 10 Jan 2008 05:09:27 +0000 (02:09 -0300)] 
V4L/DVB (7004): cx23885: Ensure HVR1800 TDA8295A is reset fully on module load

Failure to do this means that a full system reboot is required if the
part hangs.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7003): cx23885: Add support for device revision detection
Steven Toth [Thu, 10 Jan 2008 05:06:35 +0000 (02:06 -0300)] 
V4L/DVB (7003): cx23885: Add support for device revision detection

Each version of the cx23885/7/8 silicon has different build revs.
We'll use this internal revision to work around bugs and known
issues in the video and encoder related patches.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (7002): cx25840: Add basic CX23885 AVCore support
Steven Toth [Thu, 10 Jan 2008 04:22:39 +0000 (01:22 -0300)] 
V4L/DVB (7002): cx25840: Add basic CX23885 AVCore support

The cx23885/7/8 PCIe bridge has an internal AVCore modelled on
the cx2584x family. Many of the registers positions are identical
but some moved. The register values are also different because
the different bridges run at different clock rates.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6997): Replace a very dirty hack on videobuf for a clean wait_event
Mauro Carvalho Chehab [Thu, 10 Jan 2008 10:33:03 +0000 (07:33 -0300)] 
V4L/DVB (6997): Replace a very dirty hack on videobuf for a clean wait_event

In order to videobuf_iolock to work, mmap_mapper should be called first.
Otherwise, an OOPS is generated.

On some cases, .mmap file handler used to took some time to be called. On those
situations, mmap_mmapper() were called after iolock.

This patch properly waits for mmap_mapper to be called, otherwise generating an
error.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6995): ubvision: add adjust_X_Offset/adjust_Y_Offset parms
Thierry MERLE [Wed, 9 Jan 2008 20:34:53 +0000 (17:34 -0300)] 
V4L/DVB (6995): ubvision: add adjust_X_Offset/adjust_Y_Offset parms

Add adjust_X_Offset/adjust_Y_Offset module parameters to allow users
to tune X and Y picture offsets for their almost-working tuners without
repetitive recompilation.

Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6994): usbvision: add Pinnacle Studio PCTV USB (NTSC) FM V3
Thierry MERLE [Wed, 9 Jan 2008 20:33:53 +0000 (17:33 -0300)] 
V4L/DVB (6994): usbvision: add Pinnacle Studio PCTV USB (NTSC) FM V3

Add the "Pinnacle Studio PCTV USB (NTSC) FM" device.
This is the third occurrence of the same device designation...

Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6993): Fix CARDLIST.saa7134
Mauro Carvalho Chehab [Thu, 10 Jan 2008 00:35:56 +0000 (21:35 -0300)] 
V4L/DVB (6993): Fix CARDLIST.saa7134

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6992): saa7134: remove Beholder devices without eeprom from auto detection
hermann pitton [Tue, 8 Jan 2008 01:36:09 +0000 (22:36 -0300)] 
V4L/DVB (6992): saa7134: remove Beholder devices without eeprom from auto detection

As in the past, we should not allow to auto detect like this,
since all saa7130 and saa7134 cards without eeprom will be detected
as such Beholder cards then.

Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6989): tda18271: clean up chip id logic in tda829x_release
Michael Krufky [Wed, 9 Jan 2008 13:44:27 +0000 (10:44 -0300)] 
V4L/DVB (6989): tda18271: clean up chip id logic in tda829x_release

This test is easier to read.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6988): tda18271: give calibration debug a separate debug mask
Michael Krufky [Wed, 9 Jan 2008 03:34:30 +0000 (00:34 -0300)] 
V4L/DVB (6988): tda18271: give calibration debug a separate debug mask

We don't usually want to see the calibration debug messages, but sometimes
it is useful.  Assign it to a separate debug mask.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6987): tda18271: add support for fm radio
Michael Krufky [Tue, 8 Jan 2008 13:38:10 +0000 (10:38 -0300)] 
V4L/DVB (6987): tda18271: add support for fm radio

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6986): tda18271: share state between analog and digital tuner instances
Michael Krufky [Sun, 6 Jan 2008 18:52:56 +0000 (15:52 -0300)] 
V4L/DVB (6986): tda18271: share state between analog and digital tuner instances

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6981): Fix bugzillas 9686 and 9691
Mauro Carvalho Chehab [Mon, 7 Jan 2008 12:30:31 +0000 (09:30 -0300)] 
V4L/DVB (6981): Fix bugzillas 9686 and 9691

IR were not working for Winfast XP 2000 TV.

Gabor Nyekhelyi <n0gabor@vipmail.hu> wrote a hack some time ago:
http://marc.info/?l=linux-video&m=116362609323281&w=2

This patch fixes CodingStyle and commits the hack. I suspect that the proper
solution would be to find the proper mask_keydown for this IR. Anyway, better
to have this patch as a workaround.

Thanks to Stafan Talpalaru <stefantalpalaru@yahoo.com> for pointing the issue.
CC: Gabor Nyekhelyi <n0gabor@vipmail.hu>
CC: Stafan Talpalaru <stefantalpalaru@yahoo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6979): tda18271: use a mutex to protect state in critical sections
Michael Krufky [Sun, 6 Jan 2008 18:31:35 +0000 (15:31 -0300)] 
V4L/DVB (6979): tda18271: use a mutex to protect state in critical sections

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6978): tda18271: store frequency and bandwidth after successful tune
Michael Krufky [Sun, 6 Jan 2008 03:55:21 +0000 (00:55 -0300)] 
V4L/DVB (6978): tda18271: store frequency and bandwidth after successful tune

Store last tuned frequency & bandwidth after successful tune.

Clean up tune functions -- remove pointer to tune function in
state structure, instead call tune function based on priv->id.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6977): tda18271: clean up calibration initialization procedures
Michael Krufky [Sat, 5 Jan 2008 23:00:09 +0000 (20:00 -0300)] 
V4L/DVB (6977): tda18271: clean up calibration initialization procedures

Always initialize registers during attach.

Perform IR Calibration during init if needed.
Perform RF Calibration during init if needed for C2, only.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6976): drivers/media/radio/radio-sf16fmr2.c: fix error handling
Andrew Morton [Mon, 7 Jan 2008 08:24:51 +0000 (05:24 -0300)] 
V4L/DVB (6976): drivers/media/radio/radio-sf16fmr2.c: fix error handling

video_register_device() returns -EFOO on errr, not -1.

Addresses http://bugzilla.kernel.org/show_bug.cgi?id=9699

Reported-By: <devzero@web.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6975): Add missing entry for Beholder BeholdTV 407
Mauro Carvalho Chehab [Mon, 7 Jan 2008 08:20:04 +0000 (05:20 -0300)] 
V4L/DVB (6975): Add missing entry for Beholder BeholdTV 407

Acked-by: Andrey J. Melnikov <temnota@kmv.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6974): Fix codingStyle
Mauro Carvalho Chehab [Mon, 7 Jan 2008 08:18:36 +0000 (05:18 -0300)] 
V4L/DVB (6974): Fix codingStyle

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6973): Add Beholder TV 401/405/407/409/505/507/609/M6 support
Andrey J. Melnikoff (TEMHOTA) [Mon, 7 Jan 2008 08:17:39 +0000 (05:17 -0300)] 
V4L/DVB (6973): Add Beholder TV 401/405/407/409/505/507/609/M6 support

This patch updates cardlist for Beholder TV tuners:
old models (with GPIO ir) 401, 403, 405, 407, 409, 505, 507
and add support for 607, 609, M6 cards with new i2c-ir.

Signed-off-by: Igor Kuznetsov <igk72@yandex.ru>
Signed-off-by: Andrey J. Melnikov <temnota@kmv.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6970): Request snd-usb-audio for devices with Audio Class support
Mauro Carvalho Chehab [Sun, 6 Jan 2008 12:54:17 +0000 (09:54 -0300)] 
V4L/DVB (6970): Request snd-usb-audio for devices with Audio Class support

Before this patch, only Vendor Class audio support were loaded. This means that
older em28xx devices won't have digital audio support loaded.

This patch changes the logic to auto load eighter snd-usb-audio, for devices
with USB Audio Class or em28xx-alsa, for devices with USB Vendor Class.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6969): Avoid causing regressions for non-HVR950 boards
Mauro Carvalho Chehab [Sun, 6 Jan 2008 12:45:44 +0000 (09:45 -0300)] 
V4L/DVB (6969): Avoid causing regressions for non-HVR950 boards

Only HVR950 has analog_gpio configured. It makes no sense to set gpio to 0 for
other boards. Better to add a test, while this var is not set for all xc3028
devices.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6967): pvrusb2: add support for Hauppauge WinTV PVR-USB2 Model 75xxx
Michael Krufky [Thu, 25 Oct 2007 05:01:10 +0000 (02:01 -0300)] 
V4L/DVB (6967): pvrusb2: add support for Hauppauge WinTV PVR-USB2 Model 75xxx

Create a device description and enable autodetection for
Hauppauge WinTV PVR-USB2 Model 75xxx

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6965): tda18271: fix analog tuning regression caused by earlier changeset
Michael Krufky [Sat, 5 Jan 2008 18:42:54 +0000 (15:42 -0300)] 
V4L/DVB (6965): tda18271: fix analog tuning regression caused by earlier changeset

An earlier patch, "tda18271: fail table lookups if frequency is out of range"
broke analog support on certain hardware.  This patch fixes that problem, by
allowing the RF_CAL byte to be set to the maximum value, in cases of the
frequency being out of range.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6964): tda18271: document debug level and configuration parameters
Michael Krufky [Thu, 3 Jan 2008 04:40:47 +0000 (01:40 -0300)] 
V4L/DVB (6964): tda18271: document debug level and configuration parameters

Document debug level module options and
tda18271_config attach-time parameters.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6963): tda18271: store IF frequency in a u16 instead of u32
Michael Krufky [Thu, 3 Jan 2008 04:17:45 +0000 (01:17 -0300)] 
V4L/DVB (6963): tda18271: store IF frequency in a u16 instead of u32

Store IF Frequency in a u16 instead of a u32.  Multiply by 1000 before use.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6962): tda18271: allow device-specific configuration of IF frequency and...
Michael Krufky [Wed, 2 Jan 2008 06:01:54 +0000 (03:01 -0300)] 
V4L/DVB (6962): tda18271: allow device-specific configuration of IF frequency and std bits

Allow drivers to pass device-specific configuration parameters during attach.

If these parameters are omitted, default values will be used.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6961): tda18271: move common code to tda18271-common.c
Michael Krufky [Wed, 2 Jan 2008 04:58:26 +0000 (01:58 -0300)] 
V4L/DVB (6961): tda18271: move common code to tda18271-common.c

Move some common code to a new file to make this easier to look at.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6960): tda18271: add support for NXP TDA18271HD/C2
Michael Krufky [Wed, 2 Jan 2008 01:52:09 +0000 (22:52 -0300)] 
V4L/DVB (6960): tda18271: add support for NXP TDA18271HD/C2

Tested successfully with QAM256 digital cable.
Analog television is limping, needs more work.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6959): tda18271: add MODULE_VERSION
Michael Krufky [Wed, 2 Jan 2008 04:35:46 +0000 (01:35 -0300)] 
V4L/DVB (6959): tda18271: add MODULE_VERSION

version 0.1

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6958): tda18271: clean up function tda18271_set_analog_params
Michael Krufky [Tue, 1 Jan 2008 21:31:34 +0000 (18:31 -0300)] 
V4L/DVB (6958): tda18271: clean up function tda18271_set_analog_params

make set_analog_params function look consistent with set_params function

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6957): tda18271: fail table lookups if frequency is out of range
Michael Krufky [Sun, 30 Dec 2007 00:46:01 +0000 (21:46 -0300)] 
V4L/DVB (6957): tda18271: fail table lookups if frequency is out of range

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6956): Add Radio support for em28xx
Mauro Carvalho Chehab [Sat, 5 Jan 2008 20:22:01 +0000 (17:22 -0300)] 
V4L/DVB (6956): Add Radio support for em28xx

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6955): Properly implement 12MHz I2S support
Mauro Carvalho Chehab [Sat, 5 Jan 2008 20:01:41 +0000 (17:01 -0300)] 
V4L/DVB (6955): Properly implement 12MHz I2S support

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6954): There isn't a MTS radio firmware
Mauro Carvalho Chehab [Sat, 5 Jan 2008 19:47:16 +0000 (16:47 -0300)] 
V4L/DVB (6954): There isn't a MTS radio firmware

Try to load non-MTS firmware instead.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6953): Fix radio set frequency logic
Mauro Carvalho Chehab [Sat, 5 Jan 2008 19:37:04 +0000 (16:37 -0300)] 
V4L/DVB (6953): Fix radio set frequency logic

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6952): Add code for autoloading em28xx-alsa, if needed
Mauro Carvalho Chehab [Sat, 5 Jan 2008 12:59:03 +0000 (09:59 -0300)] 
V4L/DVB (6952): Add code for autoloading em28xx-alsa, if needed

Older em28xx devices does implement standard Audio Class.

However, on newer devices, this were replaced by a Vendor Class. This
patch autodetects that an em28xx lacks Audio Class and auto-loads
em28xx-alsa, for the devices that implements only a Vendor Class.

For devices with Audio Class, snd-usb-audio module will provide an ALSA
interface.

This patch uses the request_module_async function as defined on cx88-mpeg.c,
originally wrote by Markus Rechberger.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6951): Integrates em28xx-audio.c into em28xx kernel module
Mauro Carvalho Chehab [Sat, 5 Jan 2008 12:57:31 +0000 (09:57 -0300)] 
V4L/DVB (6951): Integrates em28xx-audio.c into em28xx kernel module

Also fixes the remaining CodingStyle issues that Lindent didn't fix.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6950): Lindent em28xx-audio.c
Mauro Carvalho Chehab [Sat, 5 Jan 2008 12:56:24 +0000 (09:56 -0300)] 
V4L/DVB (6950): Lindent em28xx-audio.c

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6949): Adds em28xx-audio module
Markus Rechberger [Sat, 5 Jan 2008 12:55:47 +0000 (09:55 -0300)] 
V4L/DVB (6949): Adds em28xx-audio module

em28xx-audio module exports em28xx Vendor Class audio as an -alsa
driver. This module were written based on usbaudio driver by Markus
Rechberger. Recently, he acked to allow us to merge it on kernel:

http://lists-archives.org/video4linux/20408-supporting-prolink-pixelview-405-dvd-maker.html

Thanks to Markus Rechberger <mrechberger@gmail.com>

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6948): HVR950 requires additional settings for audio to properly work
Mauro Carvalho Chehab [Sat, 5 Jan 2008 12:54:58 +0000 (09:54 -0300)] 
V4L/DVB (6948): HVR950 requires additional settings for audio to properly work

Thanks to Markus Rechberger <mrechberger@gmail.com> for retriving those
commands.

Also, MTS firmware is required for audio to work on HVR950.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6947): Improve audio setup handling
Mauro Carvalho Chehab [Sat, 5 Jan 2008 12:53:54 +0000 (09:53 -0300)] 
V4L/DVB (6947): Improve audio setup handling

It is possible to select audio inputs via em28xx or via ac97 functions.
This patch allows configuring a board to use either one way.

It also do some cleanups at audio setup configurations.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6944): Fix in-kernel ivtv compilation
Mauro Carvalho Chehab [Tue, 1 Jan 2008 17:43:02 +0000 (14:43 -0300)] 
V4L/DVB (6944): Fix in-kernel ivtv compilation

Due to tuner-xc2028.h, some extra directories should be added at .h search.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6938): Add a tool for extracting xc3028 version 2.7 firmware
Mauro Carvalho Chehab [Mon, 31 Dec 2007 05:29:46 +0000 (02:29 -0300)] 
V4L/DVB (6938): Add a tool for extracting xc3028 version 2.7 firmware

This tool allows the extraction of xc3028 v2.7 firmware from HVR 12x0 file.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6936): cx23885: update model matrix for Hauppauge HVR1500
Michael Krufky [Fri, 28 Dec 2007 01:22:16 +0000 (22:22 -0300)] 
V4L/DVB (6936): cx23885: update model matrix for Hauppauge HVR1500

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6935): cx23885: add missing subsystem IDs for Hauppauge HVR1500 Retail
Michael Krufky [Fri, 28 Dec 2007 01:19:31 +0000 (22:19 -0300)] 
V4L/DVB (6935): cx23885: add missing subsystem IDs for Hauppauge HVR1500 Retail

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6934): cx23885: update model matrix for Hauppauge HVR1250
Michael Krufky [Fri, 28 Dec 2007 01:02:38 +0000 (22:02 -0300)] 
V4L/DVB (6934): cx23885: update model matrix for Hauppauge HVR1250

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6933): cx23885: update model matrix for Hauppauge HVR1800
Michael Krufky [Fri, 28 Dec 2007 00:47:50 +0000 (21:47 -0300)] 
V4L/DVB (6933): cx23885: update model matrix for Hauppauge HVR1800

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