platform/kernel/linux-exynos.git
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>
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>