firefly-linux-kernel-4.4.55.git
16 years agoV4L/DVB (6584): Fix read() method
Mauro Carvalho Chehab [Sun, 11 Nov 2007 04:13:49 +0000 (01:13 -0300)]
V4L/DVB (6584): Fix read() method

Backport read() fixes from Markus Rechberger.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6583): Fix em28xx read stream locking
Mauro Carvalho Chehab [Sun, 11 Nov 2007 04:08:26 +0000 (01:08 -0300)]
V4L/DVB (6583): Fix em28xx read stream locking

On some situations, closing an streaming application and re-opening were
returning -EBUSY.

Uses the same locking schema also present on cx88.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6582): Fix em28xx to allow multiple open
Mauro Carvalho Chehab [Sun, 11 Nov 2007 01:21:01 +0000 (22:21 -0300)]
V4L/DVB (6582): Fix em28xx to allow multiple open

Allows shared access support for em28xx. Just one userspace application is
allowed to get stream. The other(s) application(s) can change V4L2 controls,
set video standards, etc.

This patch were splited from Markus Rechberger's tree and backported to 2.6.17
by Pádraig Brady.

The original patch were ported to the latest em28xx version and had CodingStyle
corrected to solve the issues pointed by scripts/checkpatch.pl.

Thanks to Pádraig Brady <P@draigBrady.com> for pointing this.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6580): Set slave's master before master's attach call.
Sakari Ailus [Tue, 30 Oct 2007 08:52:52 +0000 (05:52 -0300)]
V4L/DVB (6580): Set slave's master before master's attach call.

V4L: Int if: Set slave's master before attach, remove master argument

The master also now gets its own pointer from slave's structure.

Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6578): dvb-usb: make some debug vars static
Adrian Bunk [Mon, 5 Nov 2007 17:07:06 +0000 (14:07 -0300)]
V4L/DVB (6578): dvb-usb: make some debug vars static

This patch makes some needlessly global debug variables static.

opera1.h became so small that I removed it.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6577): et61x251/: make 5 functions static
Adrian Bunk [Mon, 5 Nov 2007 17:07:26 +0000 (14:07 -0300)]
V4L/DVB (6577): et61x251/: make 5 functions static

This patch makes the following needlessly global functions in
et61x251_core.c static:
- et61x251_read_reg()
- et61x251_i2c_try_read()
- et61x251_i2c_try_write()
- et61x251_i2c_read()
- et61x251_i2c_write()

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6576): cx88-mpeg.c: make 4 functions static
Adrian Bunk [Mon, 5 Nov 2007 17:07:22 +0000 (14:07 -0300)]
V4L/DVB (6576): cx88-mpeg.c: make 4 functions static

This patch makes the following needlessly global functions static:
- cx8802_init_common()
- cx8802_fini_common()
- cx8802_suspend_common()
- cx8802_resume_common()

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6575): cx23885/: cleanups
Adrian Bunk [Mon, 5 Nov 2007 17:07:20 +0000 (14:07 -0300)]
V4L/DVB (6575): cx23885/: cleanups

This patch contains the following cleanups:
- make the following needlessly global code static:
  - cx23885-core.c: struct cx23885_sram_channels[]
  - cx23885-core.c: struct cx23887_sram_channels[]
  - cx23885-core.c: cx23885_wakeup()
  - cx23885-core.c: cx23885_sram_channel_setup()
  - cx23885-core.c: cx23885_sram_channel_dump()
  - cx23885-core.c: cx23885_risc_disasm()
  - cx23885-core.c: cx23885_shutdown()
  - cx23885-core.c: cx23885_reset()
  - cx23885-core.c: cx23885_dev_unregister()
  - cx23885-core.c: cx23885_risc_databuffer()
  - cx23885-core.c: cx23885_risc_stopper()
- #if 0 the following unused functions:
  - cx23885-core.c: cx23885_risc_buffer()
  - cx23885-core.c: cx23885_cancel_buffers()
- remove the following unused EXPORT_SYMBOL's:
  - cx23885-cards.c: cx23885_boards
  - cx23885-i2c.c: cx23885_call_i2c_clients

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Reviewed-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6574): common/ir-functions.c: make a function static
Adrian Bunk [Mon, 5 Nov 2007 17:07:18 +0000 (14:07 -0300)]
V4L/DVB (6574): common/ir-functions.c: make a function static

ir_rc5_decode() can become static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6573): unexport flexcop_reset_block_300
Adrian Bunk [Mon, 5 Nov 2007 17:06:52 +0000 (14:06 -0300)]
V4L/DVB (6573): unexport flexcop_reset_block_300

This patch removes the unused EXPORT_SYMBOL(flexcop_reset_block_300).

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6572): dvb-usb/vp702x.c: cleanups
Adrian Bunk [Mon, 5 Nov 2007 17:06:47 +0000 (14:06 -0300)]
V4L/DVB (6572): dvb-usb/vp702x.c: cleanups

This patch contains the following cleanups:
- make the needlessly global vp702x_usb_out_op() static
- #if 0 the unused vp702x_power_ctrl()

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6571): dvb-usb/gp8psk.c: #if 0 gp8psk_bcm4500_reload()
Adrian Bunk [Mon, 5 Nov 2007 17:06:41 +0000 (14:06 -0300)]
V4L/DVB (6571): dvb-usb/gp8psk.c: #if 0 gp8psk_bcm4500_reload()

This patch #if 0's the unused gp8psk_bcm4500_reload()

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6570): core/dvb_ringbuffer.c: remove unused exports
Adrian Bunk [Mon, 5 Nov 2007 17:06:38 +0000 (14:06 -0300)]
V4L/DVB (6570): core/dvb_ringbuffer.c: remove unused exports

This patch removes the following unused EXPORT_SYMBOL's:
- dvb_ringbuffer_flush
- dvb_ringbuffer_pkt_write
- dvb_ringbuffer_pkt_read
- dvb_ringbuffer_pkt_dispose
- dvb_ringbuffer_pkt_next

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6569): bt8xx/dst.c: make code static
Adrian Bunk [Mon, 5 Nov 2007 17:06:31 +0000 (14:06 -0300)]
V4L/DVB (6569): bt8xx/dst.c: make code static

This patch makes the following needlessly global code static:
- dst_gpio_outb()
- dst_gpio_inb()
- rdc_8820_reset()
- dst_pio_enable()
- dst_command()
- struct tuner_list[]

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6564): Move check before lock
Roel Kluin [Tue, 6 Nov 2007 13:25:16 +0000 (10:25 -0300)]
V4L/DVB (6564): Move check before lock

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
CC: Antti Palosaari <crope@iki.fi>
CC: Carl Lundqvist <comabug@gmail.com>
CC: Aapo Tahkola <aet@rasterburn.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6563): tda8290: optimize for loop in tda829x_probe function
Michael Krufky [Mon, 5 Nov 2007 12:54:42 +0000 (09:54 -0300)]
V4L/DVB (6563): tda8290: optimize for loop in tda829x_probe function

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 (6562): Make HVR900 to use also tveeprom
Mauro Carvalho Chehab [Mon, 5 Nov 2007 12:30:39 +0000 (09:30 -0300)]
V4L/DVB (6562): Make HVR900 to use also tveeprom

Hauppauge firmwares can be decoded using tveeprom. This patch adds HVR-900 as
a tveeprom client. It also adds xc3028 tuner entry to tveeprom.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6561): Fix xc2028 get register functions and calls
Mauro Carvalho Chehab [Mon, 5 Nov 2007 12:07:13 +0000 (09:07 -0300)]
V4L/DVB (6561): Fix xc2028 get register functions and calls

The status registers require a dword for setting register. Fix it on all
occurrences, and at xc3028_get_reg. Also, improves the hardware/firmware
detection printk.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6560): Fix a bug when setting tuner type
Mauro Carvalho Chehab [Mon, 5 Nov 2007 11:42:55 +0000 (08:42 -0300)]
V4L/DVB (6560): Fix a bug when setting tuner type

Tuner-type were correctly filled only by the hint function.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6559): Fix a buffer overflow at xc2028_get_reg
Mauro Carvalho Chehab [Mon, 5 Nov 2007 11:41:50 +0000 (08:41 -0300)]
V4L/DVB (6559): Fix a buffer overflow at xc2028_get_reg

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6557): tea5767: remove unnecessary warning
Hans Verkuil [Thu, 1 Nov 2007 09:19:39 +0000 (06:19 -0300)]
V4L/DVB (6557): tea5767: remove unnecessary warning

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6556): tuner: convert to bus-based I2C API
Hans Verkuil [Sun, 4 Nov 2007 14:03:36 +0000 (11:03 -0300)]
V4L/DVB (6556): tuner: 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 (6555): tuner: reorder functions to prepare for i2c conversion
Hans Verkuil [Sun, 4 Nov 2007 13:53:09 +0000 (10:53 -0300)]
V4L/DVB (6555): tuner: reorder functions to prepare for i2c conversion

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6553): tuner: replace default_mode_mask
Hans Verkuil [Sun, 4 Nov 2007 13:42:42 +0000 (10:42 -0300)]
V4L/DVB (6553): tuner: replace default_mode_mask

The default_mode_mask global is replaced by a list of tuner structs. The
tuner driver now walks that list to see which radio and/or tv tuner
devices are registered to a given i2c adapter.

The default_mode_mask global had to go since this is no longer supported
with the new 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 (6551): tda8290: rule out tda988x before detecting tda8290/tda8295
Michael Krufky [Sun, 4 Nov 2007 14:03:22 +0000 (11:03 -0300)]
V4L/DVB (6551): tda8290: rule out tda988x before detecting tda8290/tda8295

To ensure prevention of detecting a tda9885/6/7 as a tda8290 or tda8295, we
will rule out the tda988x before testing the tda8290 / tda8295 id registers.

We read 8 bytes from the chip.  If they are all equal, then it is not a
tda829x, or some other error has occurred.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6550): tda8290: return -ENODEV on probe failures
Michael Krufky [Sun, 4 Nov 2007 13:51:28 +0000 (10:51 -0300)]
V4L/DVB (6550): tda8290: return -ENODEV on probe failures

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB(6548b) Fix compilation for em28xx
Mauro Carvalho Chehab [Fri, 25 Jan 2008 13:01:41 +0000 (11:01 -0200)]
V4L/DVB(6548b) Fix compilation for em28xx

From: Mauro Carvalho Chehab <mchehab@infradead.org>

In file included from drivers/media/video/em28xx/em28xx-i2c.c:31:
drivers/media/video/tuner-xc2028.h:10:26: error: dvb_frontend.h: No such file or directory

In file included from drivers/media/video/em28xx/em28xx-i2c.c:31:
drivers/media/video/tuner-xc2028.h:32: warning: 'struct dvb_frontend' declared inside parameter list
drivers/media/video/tuner-xc2028.h:32: warning: its scope is only this definition or declaration, which is probably not what you want

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB(6548a) Fix compilation for TDA8290
Mauro Carvalho Chehab [Fri, 25 Jan 2008 13:01:40 +0000 (11:01 -0200)]
V4L/DVB(6548a) Fix compilation for TDA8290

From: Mauro Carvalho Chehab <mchehab@infradead.org>

drivers/media/video/tda8290.c:27:21: error: tda827x.h: No such file or directory
drivers/media/video/tda8290.c:28:22: error: tda18271.h: No such file or directory
drivers/media/video/tda8290.c:52: error: field 'cfg' has incomplete type
drivers/media/video/tda8290.c: In function 'tda829x_find_tuner':
drivers/media/video/tda8290.c:590: error: implicit declaration of function 'tda18271_attach'
drivers/media/video/tda8290.c:598: error: implicit declaration of function 'tda827x_attach'

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6546): Add comments for the hint methods
Mauro Carvalho Chehab [Sun, 4 Nov 2007 11:32:42 +0000 (08:32 -0300)]
V4L/DVB (6546): Add comments for the hint methods

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6545): em28xx: autodetect Cinergy 200 USB and VGear PocketTV
Sascha Sommer [Sun, 4 Nov 2007 11:06:48 +0000 (08:06 -0300)]
V4L/DVB (6545): em28xx: autodetect Cinergy 200 USB and VGear PocketTV

Adds autodetection support for the Cinergy200 USB and the VGear PocketTV.

Whenever a usb device with generic empia em2800 usb ids is detected the device
gets scanned for connected i2c devices. If the device list matches an em2800
device in the device list the model id gets changed accordingly.

Signed-off-by: Sascha Sommer <saschasommer@freenet.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6543): tda8290: enable probing of tda8295
Michael Krufky [Sun, 4 Nov 2007 01:14:54 +0000 (22:14 -0300)]
V4L/DVB (6543): tda8290: enable probing of tda8295

Prevent the tda8295 from falsely being detected as a tda9887

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6541): Add V-Gear PocketTV to Cardlist.em28xx
Mauro Carvalho Chehab [Sun, 4 Nov 2007 01:04:33 +0000 (22:04 -0300)]
V4L/DVB (6541): Add V-Gear PocketTV to Cardlist.em28xx

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6539): em28xx: add support for vgear pockettv
Sascha Sommer [Sat, 3 Nov 2007 18:05:07 +0000 (15:05 -0300)]
V4L/DVB (6539): em28xx: add support for vgear pockettv

attached patch adds support for the vgear pockettv.
It seems to require a write to another register for audio to work.
I checked my old cinergydrv and we did the same register write there. I
therefore enabled it for all em2800 based devices.

Signed-off-by: Sascha Sommer <saschasommer@freenet.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6538): em28xx: fix locking to allow accesses from 2 different threads at...
Sascha Sommer [Sun, 4 Nov 2007 00:22:38 +0000 (21:22 -0300)]
V4L/DVB (6538): em28xx: fix locking to allow accesses from 2 different threads at the same time

The attached patch modifies the em28xx driver so that there can be ioctls from
multiple different threads.

This is necessary for capture apps like MPlayer that use different threads for
capturing and channel tuning.

Now the locking is only done for the ioctls that change properties of the
device or access the i2c bus.

It also removes some locks that look unnecessary:

In em28xx_init_dev:
  the videodevice is not registered yet so nothing can access the hardware
 meanwhile, the device struct is not assigned to the interface yet so no race
 with disconnect is possible

In em28xx_release_resources:
  it gets only called when dev->lock is already held

Signed-off-by: Sascha Sommer <saschasommer@freenet.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6537): Add entry for Pixelview Prolink PlayTV USB 2.0
Mauro Carvalho Chehab [Sun, 4 Nov 2007 00:21:57 +0000 (21:21 -0300)]
V4L/DVB (6537): Add entry for Pixelview Prolink PlayTV USB 2.0

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6536): Add a hint for boards without unique USB ID
Mauro Carvalho Chehab [Sun, 4 Nov 2007 00:20:59 +0000 (21:20 -0300)]
V4L/DVB (6536): Add a hint for boards without unique USB ID

This patch adds a function to allow trying to detect boards that shares
the generic IDs.

The current detection method is based at eeprom checksum.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6535): Fix: Adds the generic PCI IDs for em28xx
Mauro Carvalho Chehab [Sat, 3 Nov 2007 11:07:07 +0000 (08:07 -0300)]
V4L/DVB (6535): Fix: Adds the generic PCI IDs for em28xx

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6519): Fix HVR900/HVR950 entry
Mauro Carvalho Chehab [Fri, 2 Nov 2007 00:52:58 +0000 (21:52 -0300)]
V4L/DVB (6519): Fix HVR900/HVR950 entry

- Television is now default;
- Add HVR950 name at the entry.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6517): CodingStyle fixup
Mauro Carvalho Chehab [Thu, 1 Nov 2007 20:47:42 +0000 (17:47 -0300)]
V4L/DVB (6517): CodingStyle fixup

Used scripts/Lindent + manual check + scripts/checkpatch.pl

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6516): Allow faster loading by using 64 bytes block by em28xx i2c write
Mauro Carvalho Chehab [Thu, 1 Nov 2007 19:56:26 +0000 (16:56 -0300)]
V4L/DVB (6516): Allow faster loading by using 64 bytes block by em28xx i2c write

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6508): ttpci: Rework Kconfig menus and Makefile
Trent Piepho [Thu, 1 Nov 2007 04:16:05 +0000 (01:16 -0300)]
V4L/DVB (6508): ttpci: Rework Kconfig menus and Makefile

The ttpci Kconfig file has bugs that cause it to fail in certain Kconfig
situations.  The basic problem is that it selects certain drivers, but does
not depend on the dependencies of those drivers.

See http://article.gmane.org/gmane.comp.video.video4linux/35072

Using the Kconfig file also has some annoyances.  For instance one can't turn
off AV7110 support unless you go down several options and first turn off
budget-patch support.  Normally user selectable drivers are not forced on like
this.

The "AV7110 cards with Budget Patch" option is disabled if "Budget cards"
isn't on.  Normally a driver appears nested under a driver it depends on, but
since drivers that don't depend on "Budget cards" are between the two options,
the config programs can't display the tree correctly.

The Makefile has an issue too.  Some modules, ttpci-eeprom and budget-core,
appear in the Makefile under several different config symbols.  If more than
one of these symbols is on, they will get added the to list of objects
multiple times.  The normal convention is to have a config symbol just the
common object(s) and have the users of the that object either depend on or
select that config symbol.

This patch fixes all these issues.  ttpci-eepom is under a new config symbol,
and so is the budget-core module.  The four different budget card types appear
as sub-drivers under a main "SAA7146 DVB cards" option.  Turning on
budget-patch doesn't force AV7110.  Drivers using SAA7146_VV have the
necessary VIDEO_DEV dependency, so that it isn't possible to select SAA7146_VV
without V4L being on.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6507): bttv: whitespace cleanup
Trent Piepho [Thu, 1 Nov 2007 04:16:04 +0000 (01:16 -0300)]
V4L/DVB (6507): bttv: whitespace cleanup

Someone wasn't using the v4l-dvb commit scripts and so didn't run the
automatic whitespace cleaner on their code.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6497): saa7146/budget*/dvb-ttpci: Remove V4L1 code
Marco Schluessler [Wed, 31 Oct 2007 04:20:42 +0000 (01:20 -0300)]
V4L/DVB (6497): saa7146/budget*/dvb-ttpci: Remove V4L1 code

Remove V4L1 code.

Signed-off-by: Marco Schluessler <marco@lordzodiac.de>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6496): saa7146_vv.h: remove wrong include <linux/videodev.h>
Marco Schluessler [Wed, 31 Oct 2007 03:44:22 +0000 (00:44 -0300)]
V4L/DVB (6496): saa7146_vv.h: remove wrong include <linux/videodev.h>

remove wrong include <linux/videodev.h>

Signed-off-by: Marco Schluessler <marco@lordzodiac.de>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6492): tuner: improve tuner_foo printk macros consistency
Michael Krufky [Tue, 30 Oct 2007 12:46:10 +0000 (09:46 -0300)]
V4L/DVB (6492): tuner: improve tuner_foo printk macros consistency

Alter the tuner_foo printk macros to indicate which module is
generating the message.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6491): tuner: prevent repeated "type set" message unless debug is enabled
Michael Krufky [Tue, 30 Oct 2007 12:44:12 +0000 (09:44 -0300)]
V4L/DVB (6491): tuner: prevent repeated "type set" message unless debug is enabled

The tuner sub-module will usually log its type during its _attach() function,
then tuner-core reports which type was attached when control is returned.

In most cases, we expect to see the same message reported from both locations.
We only need to see this second message if debug is enabled.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6490): Remove EXPERIMENTAL from several i2c drivers
Hans Verkuil [Tue, 30 Oct 2007 09:00:05 +0000 (06:00 -0300)]
V4L/DVB (6490): Remove EXPERIMENTAL from several i2c drivers

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6489): ivtv: add support for AVerMedia PVR-150 Plus
Hans Verkuil [Tue, 30 Oct 2007 08:55:58 +0000 (05:55 -0300)]
V4L/DVB (6489): ivtv: add support for AVerMedia PVR-150 Plus

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6488): ivtv: add ASUS Falcon2 support
Hans Verkuil [Tue, 30 Oct 2007 08:50:03 +0000 (05:50 -0300)]
V4L/DVB (6488): ivtv: add ASUS Falcon2 support

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6487): i2c-id: add M52790 driver ID
Hans Verkuil [Tue, 30 Oct 2007 08:41:54 +0000 (05:41 -0300)]
V4L/DVB (6487): i2c-id: add M52790 driver ID

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6486): m52790: add new Mitsubishi A/V switch i2c driver
Hans Verkuil [Tue, 30 Oct 2007 08:41:25 +0000 (05:41 -0300)]
V4L/DVB (6486): m52790: add new Mitsubishi A/V switch i2c driver

This driver is used by the ASUS Falcon2 cx23416-based cards.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6483): ivtv-streams: make file_operations const
Douglas Schilling Landgraf [Mon, 29 Oct 2007 03:44:55 +0000 (00:44 -0300)]
V4L/DVB (6483): ivtv-streams: make file_operations const

Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6482): zr364: make file_operations const
Douglas Schilling Landgraf [Mon, 29 Oct 2007 03:37:07 +0000 (00:37 -0300)]
V4L/DVB (6482): zr364: make file_operations const

zr364: make file_operations const

Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6481): radio-gemtek: make file_operations const
Douglas Schilling Landgraf [Mon, 29 Oct 2007 02:41:19 +0000 (23:41 -0300)]
V4L/DVB (6481): radio-gemtek: make file_operations const

make file_operations const

Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6480): bttv: uses input functions, should depend on INPUT
Randy Dunlap [Mon, 29 Oct 2007 18:19:45 +0000 (15:19 -0300)]
V4L/DVB (6480): bttv: uses input functions, should depend on INPUT

Several media drivers use input_(*) functions so they need to depend on
the INPUT config symbol.

drivers/built-in.o: In function `bttv_input_fini':
linux-2.6.24-rc1-git4/drivers/media/video/bt8xx/bttv-input.c:346: undefined reference to `input_unregister_device'
drivers/built-in.o: In function `bttv_input_init':
linux-2.6.24-rc1-git4/drivers/media/video/bt8xx/bttv-input.c:204: undefined reference to `input_allocate_device'
linux-2.6.24-rc1-git4/drivers/media/video/bt8xx/bttv-input.c:335: undefined reference to `input_free_device'
linux-2.6.24-rc1-git4/drivers/media/video/bt8xx/bttv-input.c:321: undefined reference to `input_register_device'
linux-2.6.24-rc1-git4/drivers/media/video/bt8xx/bttv-input.c:335: undefined reference to `input_free_device'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6477): Properly fill MODULE_AUTHOR
Mauro Carvalho Chehab [Tue, 30 Oct 2007 02:44:18 +0000 (23:44 -0300)]
V4L/DVB (6477): Properly fill MODULE_AUTHOR

Most of the driver were written by Mauro Carvalho Chehab.
DTV parts were added by Michel Ludwig.

Reviewed-by: Michel Ludwig <michel.ludwig@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6476): Add support for analog tv on HVR-950
Mauro Carvalho Chehab [Tue, 30 Oct 2007 02:36:12 +0000 (23:36 -0300)]
V4L/DVB (6476): Add support for analog tv on HVR-950

This patch adds USB ID for HVR-950. It also adds the callback for handling
firmware loading.

Thanks to Markus Reichberger for the reset commands.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6475): Fix some troubles at list handling
Mauro Carvalho Chehab [Mon, 29 Oct 2007 20:38:59 +0000 (17:38 -0300)]
V4L/DVB (6475): Fix some troubles at list handling

- priv->count were wrong. Should be incremented since the first usage;
- forgot to use list_del() to remove the driver;
- Release memory if an error occurs during _attach

Thanks to Aidan Thornton <makosoft@googlemail.com> for pointing this.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6474): Add support for tuner-xc2028
Mauro Carvalho Chehab [Mon, 29 Oct 2007 14:33:18 +0000 (11:33 -0300)]
V4L/DVB (6474): Add support for tuner-xc2028

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6473): Prevents double tuner registering
Mauro Carvalho Chehab [Mon, 29 Oct 2007 14:33:18 +0000 (11:33 -0300)]
V4L/DVB (6473): Prevents double tuner registering

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6472): Re-inserts xc2028 attach code, fixing its parameters
Mauro Carvalho Chehab [Mon, 29 Oct 2007 14:33:18 +0000 (11:33 -0300)]
V4L/DVB (6472): Re-inserts xc2028 attach code, fixing its parameters

I2C bus redesign changed i2c parameters. This patch re-adds tuner xc2028
attach function, replacing the parameters to the newer syntax.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6471): tuner: i2c_client cannot be part of the tuner struct
Hans Verkuil [Fri, 14 Sep 2007 08:13:54 +0000 (05:13 -0300)]
V4L/DVB (6471): tuner: i2c_client cannot be part of the tuner struct

The bus-based I2C subsystem allocates the i2c_client struct. So if in order to
be able to convert the tuner to the bus-based I2C API the embedded i2c_client
struct must be removed from the tuner struct and replaced with a pointer.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6470): Avoid breaking compilation
Mauro Carvalho Chehab [Mon, 29 Oct 2007 14:33:18 +0000 (11:33 -0300)]
V4L/DVB (6470): Avoid breaking compilation

The next patchset series will change i2c structs inside tuner. This patch
avoids breaking bissect, by commenting the still unused tuner xc2028.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6469): tuner: remove TUNER_PHILIPS_TDA8295
Michael Krufky [Sat, 27 Oct 2007 16:09:16 +0000 (13:09 -0300)]
V4L/DVB (6469): tuner: remove TUNER_PHILIPS_TDA8295

TUNER_PHILIPS_TDA8290 will autodetect a TDA8290 or a TDA8295,
so we don't need this separate entry anymore.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6468): tda8290: auto-detect tda8290 or tda8295
Michael Krufky [Sat, 27 Oct 2007 05:00:57 +0000 (02:00 -0300)]
V4L/DVB (6468): tda8290: auto-detect tda8290 or tda8295

Consolidate tda8290_attach() and tda8295_attach() into a single function,
tda829x_attach(), which will detect chip combinations tda8290 or tda8295 with
tda8275, tda8275a or tda18271.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6467): v4l2-common: minor cleanups
Hans Verkuil [Tue, 18 Sep 2007 06:22:32 +0000 (03:22 -0300)]
V4L/DVB (6467): v4l2-common: minor cleanups

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6466): v4l2-i2c-drv: first call remove, then detach client
Hans Verkuil [Mon, 17 Sep 2007 08:13:45 +0000 (05:13 -0300)]
V4L/DVB (6466): v4l2-i2c-drv: first call remove, then detach client

The remove driver function expects that the client is still attached
to the driver, so do the detach after calling remove().

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6465): Use correct error codes when chip is not recognized
Hans Verkuil [Sun, 16 Sep 2007 13:47:15 +0000 (10:47 -0300)]
V4L/DVB (6465): Use correct error codes when chip is not recognized

If the chip isn't recognized, then the correct errors should be returned.
The v4l2_i2c_attach() utility function will return 0 for all errors
except -ENOMEM to provide proper compatibility support for the old I2C
probing function.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6464): tlv320aic23b: convert to bus-based I2C API
Hans Verkuil [Fri, 14 Sep 2007 08:03:17 +0000 (05:03 -0300)]
V4L/DVB (6464): tlv320aic23b: 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 (6463): upd64031a: convert to bus-based I2C API
Hans Verkuil [Fri, 14 Sep 2007 07:58:31 +0000 (04:58 -0300)]
V4L/DVB (6463): upd64031a: 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 (6462): upd64083: convert to bus-based I2C API
Hans Verkuil [Fri, 14 Sep 2007 07:58:06 +0000 (04:58 -0300)]
V4L/DVB (6462): upd64083: 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 (6461): tvaudio: convert to bus-based I2C API
Hans Verkuil [Fri, 14 Sep 2007 07:50:44 +0000 (04:50 -0300)]
V4L/DVB (6461): tvaudio: 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 (6460): v4l2-i2c-drv: add legacy_probe function pointer
Hans Verkuil [Fri, 14 Sep 2007 07:49:16 +0000 (04:49 -0300)]
V4L/DVB (6460): v4l2-i2c-drv: add legacy_probe function pointer

Some devices do complicated tests whether the device can be probed or not.
Add a legacy_probe function pointer to support that.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6459): cx25840: convert to bus-based I2C API
Hans Verkuil [Thu, 13 Sep 2007 14:44:47 +0000 (11:44 -0300)]
V4L/DVB (6459): cx25840: 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 (6458): cs53l23a: convert to bus-based I2C API
Hans Verkuil [Thu, 13 Sep 2007 14:30:38 +0000 (11:30 -0300)]
V4L/DVB (6458): cs53l23a: 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 (6457): msp3400: convert to bus-based I2C API
Hans Verkuil [Thu, 13 Sep 2007 14:28:59 +0000 (11:28 -0300)]
V4L/DVB (6457): msp3400: 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 (6456): saa7127: convert to bus-based I2C API
Hans Verkuil [Thu, 13 Sep 2007 14:21:51 +0000 (11:21 -0300)]
V4L/DVB (6456): saa7127: 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 (6455): saa7115: convert to bus-based I2C API
Hans Verkuil [Thu, 13 Sep 2007 14:19:39 +0000 (11:19 -0300)]
V4L/DVB (6455): saa7115: 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 (6454): vp27smpx: convert to bus-based I2C API
Hans Verkuil [Thu, 13 Sep 2007 14:11:44 +0000 (11:11 -0300)]
V4L/DVB (6454): vp27smpx: 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 (6453): wm8739: convert to bus-based I2C API
Hans Verkuil [Thu, 13 Sep 2007 14:10:07 +0000 (11:10 -0300)]
V4L/DVB (6453): wm8739: 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 (6452): wm8775: convert to bus-based I2C API
Hans Verkuil [Thu, 13 Sep 2007 14:08:25 +0000 (11:08 -0300)]
V4L/DVB (6452): wm8775: 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 (6451): v4l2: add support for bus-based I2C drivers
Hans Verkuil [Wed, 12 Sep 2007 11:32:50 +0000 (08:32 -0300)]
V4L/DVB (6451): v4l2: add support for bus-based I2C drivers

Two new headers were added: one for I2C drivers that are only used
by V4L2 drivers converted to the new bus-based I2C API, and one that
can be used by both converted and unconverted drivers (at the expense of
some additional overhead).

To support the legacy I2C API a helper function was added to v4l2-common.c.

These headers take care of all the 'boilerplate' code that all V4L2 I2C drivers
have in common and will automatically support the bus-based I2C API introduced
in kernel 2.6.22.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6450): tda9887: add missing module license
Michael Krufky [Sat, 27 Oct 2007 05:17:19 +0000 (02:17 -0300)]
V4L/DVB (6450): tda9887: add missing module license

This module was always GPL, and will remain GPL

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6449): tda18271: clean up i2c_gate handling
Michael Krufky [Wed, 24 Oct 2007 12:55:54 +0000 (09:55 -0300)]
V4L/DVB (6449): tda18271: clean up i2c_gate handling

Call analog_demod_ops->i2c_gate_ctrl when in analog tuning mode, and
frontend_ops.i2c_gate_ctrl when in digital tuning mode.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6448): tda8290: fill i2c_gate_ctrl callback
Michael Krufky [Wed, 24 Oct 2007 12:30:17 +0000 (09:30 -0300)]
V4L/DVB (6448): tda8290: fill i2c_gate_ctrl callback

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6447): tuner: add i2c_gate_ctrl function to struct analog_tuner_ops
Michael Krufky [Wed, 24 Oct 2007 12:23:17 +0000 (09:23 -0300)]
V4L/DVB (6447): tuner: add i2c_gate_ctrl function to struct analog_tuner_ops

In some designs, the tuner silicon may be on an i2c bus behind an i2c gate,
controlled by the analog demodulator.  We already have a method to control
such i2c gates when they are controlled by the digital demodulator, but in
some hybrid designs, there may be an i2c gate controlled by each demodulator.

For example, when in analog tuning mode, one would access the tuner by opening
the i2c gate controlled by the analog demodulator, while when in digital
tuning mode, one would access the tuner by opening the i2c gate controlled by
the digital demodulator.

We must add this callback function to analog_tuner_ops in order to handle
such configurations.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6446): tda18271: clean up debug macros
Michael Krufky [Wed, 24 Oct 2007 04:00:24 +0000 (01:00 -0300)]
V4L/DVB (6446): tda18271: clean up debug macros

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6445): tuner-core: improve comments inside function fe_release()
Michael Krufky [Mon, 22 Oct 2007 21:15:39 +0000 (18:15 -0300)]
V4L/DVB (6445): tuner-core: improve comments inside function fe_release()

Explain who is responsible for freeing analog_demod_priv

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6444): tuner-core: remove excessive parenthesis
Michael Krufky [Mon, 22 Oct 2007 21:03:29 +0000 (18:03 -0300)]
V4L/DVB (6444): tuner-core: remove excessive parenthesis

Convert all instances of "if ((ops) && (ops->foo))" to "if (ops && ops->foo)"

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6443): make tda9887 build selectable via Kconfig
Michael Krufky [Sun, 21 Oct 2007 23:48:48 +0000 (20:48 -0300)]
V4L/DVB (6443): make tda9887 build selectable via Kconfig

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6442): move std if setting from tda8290 to tda827x
Michael Krufky [Mon, 22 Oct 2007 04:10:39 +0000 (01:10 -0300)]
V4L/DVB (6442): move std if setting from tda8290 to tda827x

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6441): tuner: clean up ops checking in tuner_status function
Michael Krufky [Mon, 22 Oct 2007 04:44:03 +0000 (01:44 -0300)]
V4L/DVB (6441): tuner: clean up ops checking in tuner_status function

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6440): tuner: convert analog tuner demod sub-modules to dvb_frontend interface
Michael Krufky [Sun, 21 Oct 2007 22:39:50 +0000 (19:39 -0300)]
V4L/DVB (6440): tuner: convert analog tuner demod sub-modules to dvb_frontend interface

Convert tda9887 and tda8290/5 to dvb_frontend interface

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6439): dvb_frontend: codingstyle cleanups
Michael Krufky [Mon, 22 Oct 2007 03:12:16 +0000 (00:12 -0300)]
V4L/DVB (6439): dvb_frontend: codingstyle cleanups

thanks to checkpatch.pl

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6438): tuner: move analog_demod_priv into struct dvb_frontend
Michael Krufky [Sun, 21 Oct 2007 18:22:25 +0000 (15:22 -0300)]
V4L/DVB (6438): tuner: move analog_demod_priv into struct dvb_frontend

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6437): tuner: clear analog_demod_ops on release
Michael Krufky [Sun, 21 Oct 2007 17:35:21 +0000 (14:35 -0300)]
V4L/DVB (6437): tuner: clear analog_demod_ops on release

Clear analog_demod_ops on release.
Fix test for analog_demod_ops after tuner attach.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6436): tuner: move analog_tuner_ops into dvb_frontend_ops
Michael Krufky [Sun, 21 Oct 2007 16:40:56 +0000 (13:40 -0300)]
V4L/DVB (6436): tuner: move analog_tuner_ops into dvb_frontend_ops

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6435): tda8290: add support for NXP TDA18271 tuner and TDA8295 analog demod
Michael Krufky [Mon, 22 Oct 2007 12:56:38 +0000 (09:56 -0300)]
V4L/DVB (6435): tda8290: add support for NXP TDA18271 tuner and TDA8295 analog demod

Add basic support for NXP TDA8295 analog demod and TDA18271 tuner silicon.

TDA8295 + TDA8275a not yet tested.
TDA8290 + TDA18271 not yet supported.

Digital mode of TDA18271 not yet tested & needs more work.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6434): tda827x: fix GPL export on attach function
Michael Krufky [Mon, 22 Oct 2007 03:28:50 +0000 (00:28 -0300)]
V4L/DVB (6434): tda827x: fix GPL export on attach function

EXPORT_SYMBOL should have been EXPORT_SYMBOL_GPL

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (6433): Move all tda8275/8275a tuning code from tda8290 module into tda827x...
Michael Krufky [Sat, 25 Aug 2007 22:08:45 +0000 (19:08 -0300)]
V4L/DVB (6433): Move all tda8275/8275a tuning code from tda8290 module into tda827x module

Add analog tuning support to tda827x dvb_frontend tuner module.

Convert tda8290 module back to native tuner interface.

The tda8290 analog demodulator will be handled the same way as tda9887.
The tuner.ko module (tuner-core) will pass commands to tda8290 via the
tuner_operations interface.  tda8290 will communicate with tda827x via
the dvb_frontend interface, while passing a pointer to a private data
structure.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>