13 years agoV4L/DVB (6198): add CARDLIST.cx23885 to Documentation/
Michael Krufky [Sat, 8 Sep 2007 18:58:45 +0000]
V4L/DVB (6198): add CARDLIST.cx23885 to Documentation/

Cardlist generated by cx23885.pl

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6196): cx23885: add support for DViCO FusionHDTV 5 Express
Michael Krufky [Sat, 8 Sep 2007 18:17:13 +0000]
V4L/DVB (6196): cx23885: add support for DViCO FusionHDTV 5 Express

This patch adds digital ATSC / QAM support for the DViCO FusionHDTV5 Express.
Remote control is supported by ir-kbd-i2c, RTC is supported by rtc-isl1208.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6195): Changes to support MPEG TS on VIDB
Steven Toth [Sat, 8 Sep 2007 18:07:02 +0000]
V4L/DVB (6195): Changes to support MPEG TS on VIDB

Changes to support MPEG TS on VIDB

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6194): Changes to support interrupts on VIDB
Steven Toth [Sat, 8 Sep 2007 17:21:03 +0000]
V4L/DVB (6194): Changes to support interrupts on VIDB

Changes to support interrupts on VIDB

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6193): cx23885: define Video B Interrupt Status register bit values
Michael Krufky [Sat, 8 Sep 2007 14:25:37 +0000]
V4L/DVB (6193): cx23885: define Video B Interrupt Status register bit values

- define missing register bit values for VID_B
- corrected VID/VBI_B_GPCNT_CTL register addresses

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6192): Ensure start_dma() is capable of starting dma on port VIDB
Steven Toth [Thu, 6 Sep 2007 19:07:49 +0000]
V4L/DVB (6192): Ensure start_dma() is capable of starting dma on port VIDB

start_dma() would fail to start dma if a device used VIDB (portb).

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6191): Removed a redundant switch()
Steven Toth [Thu, 6 Sep 2007 18:50:31 +0000]
V4L/DVB (6191): Removed a redundant switch()

The switch() statement is no longer required.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6190): cx23885: GPIO fix for non HVR1800lp boards
Steven Toth [Sat, 8 Sep 2007 22:08:17 +0000]
V4L/DVB (6190): cx23885: GPIO fix for non HVR1800lp boards

The HVR1250 and HVR1800 boards need the s5h1409 demod GPIO enabled.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Reviewed-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6186): cx88-alsa: Remove some unused fields in card state struct
Trent Piepho [Fri, 7 Sep 2007 02:02:24 +0000]
V4L/DVB (6186): cx88-alsa: Remove some unused fields in card state struct

Not sure why they are there, but they don't do anything now.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6184): cx88-alsa: Make volume control stereo
Trent Piepho [Fri, 7 Sep 2007 02:02:23 +0000]
V4L/DVB (6184): cx88-alsa: Make volume control stereo

Use the balance control to make the mono volume control stereo.

Note that full range isn't supported.  The balance control attenuates one
channel by 0 to -63 dB, and the volume control provides additional attenuation
to both channels by another 0 to -63 dB.

So the channel with the most attenuation has a range of 0 to -126 dB, while
the other channel only has a range of 0 to -63 dB.  ALSA volume controls don't
appear to support this concept.  I just limited the range to 0 to -63 total.
Once you get to -63 dB, you're already at silence, so additional attenuation
is pretty much pointless anyway.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6181): cx88: auto-load rtc and ir receiver i2c modules for FusionHDTV5 RT...
Michael Krufky [Fri, 24 Aug 2007 04:32:31 +0000]
V4L/DVB (6181): cx88: auto-load rtc and ir receiver i2c modules for FusionHDTV5 RT Gold

Auto-load ir-kbd-i2c for ir receiver support, and rtc-isl1208 for rtc
support for the FusionHDTV5 RT Gold.

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

13 years agoV4L/DVB (6180): tuner: don't probe 0x6b or 0x6f on cx88 boards
Michael Krufky [Fri, 24 Aug 2007 04:13:07 +0000]
V4L/DVB (6180): tuner: don't probe 0x6b or 0x6f on cx88 boards

Ignore 0x6b and 0x6f on cx88 boards. Some FusionHDTV cards
have an ir receiver at 0x6b and an RTC at 0x6f which can
get corrupted if probed.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6179): Clean up FusionHDTV ir code
Michael Krufky [Fri, 24 Aug 2007 04:07:12 +0000]
V4L/DVB (6179): Clean up FusionHDTV ir code

- fixed missing buttons in keymap.

- make function names & descriptions more generic,
  since this same ir receiver and remote is used in
  many FusionHDTV products.

- miscellaneous cleanups.

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

13 years agoV4L/DVB (6178): add IR remote support for FusionHDTV 5 RT Gold
Chaogui Zhang [Fri, 24 Aug 2007 04:02:32 +0000]
V4L/DVB (6178): add IR remote support for FusionHDTV 5 RT Gold

This patch adds support for the built-in IR receiver of the DViCO
Fusion HDTV5 RT GOLD PCI card, using FusionHDTV MCE remote controller.

Signed-off-by: Chaogui Zhang <czhang1974@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6173): cx23885: Minor cleanup and important NMI comment placed in code
Steven Toth [Wed, 5 Sep 2007 00:50:49 +0000]
V4L/DVB (6173): cx23885: Minor cleanup and important NMI comment placed in code

I wanted to document the NMI assert issue inside the code, even though
it's already documented in the patch history. If/when the next cx23887
revision appears, is may need to be enabled on that also.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6172): cx23885: Removing duplicate tuner and demod definitions
Steven Toth [Wed, 5 Sep 2007 00:40:47 +0000]
V4L/DVB (6172): cx23885: Removing duplicate tuner and demod definitions

A number of Hauppauge boards share the same tuner and demod
configurations. This patch removes duplicate structures.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6171): cx23885: Cleaning up defines
Steven Toth [Wed, 5 Sep 2007 00:36:32 +0000]
V4L/DVB (6171): cx23885: Cleaning up defines

Moving some defines into the correct header file.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6170): cx23885: General cleanup of old code
Steven Toth [Wed, 5 Sep 2007 00:32:41 +0000]
V4L/DVB (6170): cx23885: General cleanup of old code

Removed unused code.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6169): Removed unused function mt2131_set_gpo()
Steven Toth [Wed, 5 Sep 2007 00:15:46 +0000]
V4L/DVB (6169): Removed unused function mt2131_set_gpo()

Unused code is removed.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6168): cx23885: Added HVR1250 ATSC support
Steven Toth [Thu, 23 Aug 2007 00:01:20 +0000]
V4L/DVB (6168): cx23885: Added HVR1250 ATSC support

Adding support for the Hauppauge HVR1250 PCIe ATSC board.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6167): cx23885: Changed PCI quirks to after bridge detech
Steven Toth [Wed, 22 Aug 2007 23:52:21 +0000]
V4L/DVB (6167): cx23885: Changed PCI quirks to after bridge detech

Changed the pci_quirks function to detech the bridge type before setting
the NMI clear bit, rather than detecting based on unique board id.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6166): cx23885: Ensure pci_quirks is called after board identification
Steven Toth [Wed, 15 Aug 2007 02:35:16 +0000]
V4L/DVB (6166): cx23885: Ensure pci_quirks is called after board identification

The pci_quirks function was being called too early during initialisation,
it needs to be called after the board has been identified.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6165): cx23885: fix Kconfig dependencies
Michael Krufky [Thu, 22 Mar 2007 04:01:53 +0000]
V4L/DVB (6165): cx23885: fix Kconfig dependencies

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

13 years agoV4L/DVB (6164): cx23885: turn off i2c_debug by default
Michael Krufky [Wed, 21 Mar 2007 02:18:04 +0000]
V4L/DVB (6164): cx23885: turn off i2c_debug by default

Turn off i2c_debug by default, to make the driver less verbose.

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

13 years agoV4L/DVB (6163): cx23885: remove old comments
Michael Krufky [Wed, 21 Mar 2007 02:03:52 +0000]
V4L/DVB (6163): cx23885: remove old comments

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

13 years agoV4L/DVB (6162): cx23885: whitespace cleanups
Michael Krufky [Wed, 21 Mar 2007 02:00:18 +0000]
V4L/DVB (6162): cx23885: whitespace cleanups

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

13 years agoV4L/DVB (6161): cx23885-dvb.c doesnt need to include dvb-pll.h
Michael Krufky [Wed, 21 Mar 2007 00:32:12 +0000]
V4L/DVB (6161): cx23885-dvb.c doesnt need to include dvb-pll.h

The dvb-pll module is not being used by this driver.
Remove the unneeded #include.

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

13 years agoV4L/DVB (6159): General code cleanup
Steven Toth [Tue, 20 Mar 2007 18:33:53 +0000]
V4L/DVB (6159): General code cleanup

Removed if 0'd code, removed cx88 references.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6158): Fix MT2131 tuner lock status problem
Steven Toth [Tue, 20 Mar 2007 18:27:53 +0000]
V4L/DVB (6158): Fix MT2131 tuner lock status problem

The mt2131 tuner reports lock even when the hardware should not
lock. This patch allows the s5h1409 demodulator to be configured to query
either the tuner driver for status, or the demodulator status when the
application requests lock status. This avoids returning false CARRIER
and/or SIGNAL lock status.

S5H1409 and MT2131 drivers.  This is the remainder of the changeset, which
only touches cx23885-dvb.c

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6157): Removed the need to manually define .bridge for each card
Steven Toth [Mon, 19 Mar 2007 22:22:41 +0000]
V4L/DVB (6157): Removed the need to manually define .bridge for each card

Moved the field from cx23885_board to cx23885_dev and added code to
iautomatically set the bridge type based on the pci device id.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6156): Added the I2C_FUNC_I2C support to the cx23885 i2c algo definition
Steven Toth [Mon, 19 Mar 2007 21:03:03 +0000]
V4L/DVB (6156): Added the I2C_FUNC_I2C support to the cx23885 i2c algo definition

This is required to support the cx258xx family of audio and video decoders.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6155): Cleanup/remove code to access the sram memory maps
Steven Toth [Mon, 19 Mar 2007 21:01:07 +0000]
V4L/DVB (6155): Cleanup/remove code to access the sram memory maps

The cx23885 and cx23887 family use two different memory maps which govern
how the internal SRAM is configured. This patch streamlines the access to those
structures.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6154): NMI hang and corrupt transport packet fixes
Steven Toth [Mon, 19 Mar 2007 20:46:03 +0000]
V4L/DVB (6154): NMI hang and corrupt transport packet fixes

The sram allocations for the cx23887 differ slightly from the cx23885.
This patch modifies the cx23887 specific sram memory map to reflect this.
As a result, interrupts and DMA handling have also been enabled in
cx23885_start_dma() for 887 specific boards.

ATSC streaming is now available on cx23885 and cx23887 bridges.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6153): I2C bus 3 register was incorrect
Steven Toth [Fri, 16 Mar 2007 14:48:33 +0000]
V4L/DVB (6153): I2C bus 3 register was incorrect

I2C bus 3 was being initialised with the incorrect address register.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6152): cx23885: forward compatibility fixes for recent kernels
Michael Krufky [Sun, 11 Mar 2007 23:57:52 +0000]
V4L/DVB (6152): cx23885: forward compatibility fixes for recent kernels

- fix #include for <media/video-buf-dvb.h>
- fix cx23885_irq declaration for 2.6.19 and later

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

13 years agoV4L/DVB (6151): include drivers/media/video/cx23885/Kconfig
Michael Krufky [Sun, 11 Mar 2007 23:55:18 +0000]
V4L/DVB (6151): include drivers/media/video/cx23885/Kconfig

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

13 years agoV4L/DVB (6150): Add CX23885/CX23887 PCIe bridge driver
Steven Toth [Sun, 11 Mar 2007 23:44:05 +0000]
V4L/DVB (6150): Add CX23885/CX23887 PCIe bridge driver

This is a new framework to support boards based on the CX23885/7 PCIe
bridge. The framework supports digital (no analog yet)

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6149): Add I2C_HW_B_CX23885 for Conexant 23885/23887 PCIe bridge
Steven Toth [Sun, 11 Mar 2007 23:44:05 +0000]
V4L/DVB (6149): Add I2C_HW_B_CX23885 for Conexant 23885/23887 PCIe bridge

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6142): cx25840: fix build warning
Michael Krufky [Sat, 1 Sep 2007 05:02:51 +0000]
V4L/DVB (6142): cx25840: fix build warning

Fix the following build warning:

CC [M] cx25840-core.o

cx25840-core.c: In function 'init_dll1':
cx25840-core.c:147: warning: implicit declaration of function 'udelay'

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

13 years agoV4L/DVB (6141): tuner: use get_rf_strength instead of get_status to determine signal...
Michael Krufky [Fri, 31 Aug 2007 20:38:02 +0000]
V4L/DVB (6141): tuner: use get_rf_strength instead of get_status to determine signal strength

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

13 years agoV4L/DVB (6140): tda8290: add get_rf_strength and improve status reading efficiency
Michael Krufky [Fri, 31 Aug 2007 20:53:00 +0000]
V4L/DVB (6140): tda8290: add get_rf_strength and improve status reading efficiency

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

13 years agoV4L/DVB (6139): tea5767: add get_rf_strength and improve status reading efficiency
Michael Krufky [Fri, 31 Aug 2007 19:40:14 +0000]
V4L/DVB (6139): tea5767: add get_rf_strength and improve status reading efficiency

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

13 years agoV4L/DVB (6138): tea5761: add get_rf_strength and improve status reading efficiency
Michael Krufky [Fri, 31 Aug 2007 19:39:57 +0000]
V4L/DVB (6138): tea5761: add get_rf_strength and improve status reading efficiency

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

13 years agoV4L/DVB (6137): tuner-simple: add get_rf_strength and improve status reading efficiency
Michael Krufky [Fri, 31 Aug 2007 19:39:39 +0000]
V4L/DVB (6137): tuner-simple: add get_rf_strength and improve status reading efficiency

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

13 years agoV4L/DVB (6136): dvb_frontend: add get_rf_strength function pointer to dvb_tuner_ops
Michael Krufky [Fri, 31 Aug 2007 02:00:43 +0000]
V4L/DVB (6136): dvb_frontend: add get_rf_strength function pointer to dvb_tuner_ops

Add get_rf_strength function pointer to dvb_tuner_ops, so that rf signal
strength can be read directly from the tuner driver by the dvb demodulator
driver and / or the analog tuning system.

This is an internal api addition -- userspace is not affected.

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

13 years agoV4L/DVB (6134): tuner: alter build to produce separate modules
Michael Krufky [Tue, 28 Aug 2007 00:59:35 +0000]
V4L/DVB (6134): tuner: alter build to produce separate modules

Break tuner.ko into separate modules. This was a quick change -
Tuner sub-drivers are still static-linked to tuner.ko, this will
change after using dvb_attach and removing the probing functions.

After this change, one can deselect undesired tuner sub-drivers via Kconfig.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Acked-by: Steven Toth <stoth@hauppauge.com>
Acked-by: Patrick Boettcher <pb@linuxtv.org>
Acked-by: Jarod Wilson <jwilson@redhat.com>
Acked-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6133): tuner-simple: convert from tuner sub-driver into dvb_frontend module
Michael Krufky [Tue, 28 Aug 2007 00:59:08 +0000]
V4L/DVB (6133): tuner-simple: convert from tuner sub-driver into dvb_frontend module

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Acked-by: Steven Toth <stoth@hauppauge.com>
Acked-by: Patrick Boettcher <pb@linuxtv.org>
Acked-by: Jarod Wilson <jwilson@redhat.com>
Acked-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6132): tea5767: convert from tuner sub-driver into dvb_frontend module
Michael Krufky [Tue, 28 Aug 2007 00:24:27 +0000]
V4L/DVB (6132): tea5767: convert from tuner sub-driver into dvb_frontend module

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Acked-by: Steven Toth <stoth@hauppauge.com>
Acked-by: Patrick Boettcher <pb@linuxtv.org>
Acked-by: Jarod Wilson <jwilson@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6131): tea5761: convert from tuner sub-driver into dvb_frontend module
Michael Krufky [Tue, 28 Aug 2007 00:23:40 +0000]
V4L/DVB (6131): tea5761: convert from tuner sub-driver into dvb_frontend module

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Acked-by: Steven Toth <stoth@hauppauge.com>
Acked-by: Patrick Boettcher <pb@linuxtv.org>
Acked-by: Jarod Wilson <jwilson@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6130): mt20xx: convert from tuner sub-driver into dvb_frontend module
Michael Krufky [Tue, 28 Aug 2007 00:23:08 +0000]
V4L/DVB (6130): mt20xx: convert from tuner sub-driver into dvb_frontend module

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Acked-by: Steven Toth <stoth@hauppauge.com>
Acked-by: Patrick Boettcher <pb@linuxtv.org>
Acked-by: Jarod Wilson <jwilson@redhat.com>
Acked-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6129): tda8290: convert from tuner sub-driver into dvb_frontend module
Michael Krufky [Tue, 28 Aug 2007 00:22:20 +0000]
V4L/DVB (6129): tda8290: convert from tuner sub-driver into dvb_frontend module

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Acked-by: Steven Toth <stoth@hauppauge.com>
Acked-by: Patrick Boettcher <pb@linuxtv.org>
Acked-by: Jarod Wilson <jwilson@redhat.com>
Acked-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6128): hybrid tuner refactoring core changes, phase 1
Michael Krufky [Tue, 21 Aug 2007 04:25:48 +0000]
V4L/DVB (6128): hybrid tuner refactoring core changes, phase 1

Prepare tuner-core for conversion of tuner sub-drivers into
dvb_frontend modules

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Acked-by: Steven Toth <stoth@hauppauge.com>
Acked-by: Patrick Boettcher <pb@linuxtv.org>
Acked-by: Jarod Wilson <jwilson@redhat.com>
Acked-by: Oliver Endriss <o.endriss@gmx.de>
Acked-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6127): tuner: kill i2c_client interface to tuner sub-drivers
Michael Krufky [Tue, 21 Aug 2007 04:24:42 +0000]
V4L/DVB (6127): tuner: kill i2c_client interface to tuner sub-drivers

To ease the conversion of the analog tuner sub-drivers into dvb_frontend
style tuner modules, we must remove the i2c_client interface.

dvb_frontend style tuner modules use i2c_transfer directly on the i2c_adapter.

This change only alters the interface between tuner.ko and the tuner
sub-drivers. The v4l2 / i2c_client interface to tuner.ko remains intact.

This patch adds inline functions tuner_i2c_xfer_send, and tuner_i2c_xfer_recv,
to replace i2c_master_send and i2c_master_recv inside the tuner sub-drivers.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Acked-by: Steven Toth <stoth@hauppauge.com>
Acked-by: Patrick Boettcher <pb@linuxtv.org>
Acked-by: Jarod Wilson <jwilson@redhat.com>
Acked-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6126): tuner: add warning for obsolete i2c address range 0x64 thru 0x6f
Michael Krufky [Tue, 28 Aug 2007 20:20:42 +0000]
V4L/DVB (6126): tuner: add warning for obsolete i2c address range 0x64 thru 0x6f

The tuner module has a rather aggressive range of possible i2c addresses.

As per the specs available, it appears as if there are no 4-byte tuners that
actually use i2c addresses in the range 0x64 thru 0x6f, yet, tuner-core claims
the address range 0x60 thru 0x6f.

Allowing tuner.ko to probe these addresses can cause potential damage to
certain IR receivers, RTC chips or any other IC's that might otherwise reside
on the i2c bus using one of these addresses.

The plan is to remove these i2c addresses from the i2c address range of the
tuner module. If any devices are discovered that actually do have tuners at
one of these addresses, the newer i2c probing methods will be used to handle
those cases.

In order to collect this information and avoid any potential regressions,
the following warning has been added upon successful detection of a tuner
using an i2c address in the range 0x64 thru 0x6f:

====================== WARNING! ======================
Support for tuners in i2c address range 0x64 thru 0x6f
will soon be dropped. This message indicates that your
hardware has a {tuner name} tuner at i2c address {addr}.
To ensure continued support for your device, please
send a copy of this message, along with full dmesg
output to v4l-dvb-maintainer@linuxtv.org
Please use subject line: "obsolete tuner i2c address."
====================== WARNING! ======================

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

13 years agoV4L/DVB (6125): whitespace cleanup: replace leading spaces with tabs
Michael Krufky [Mon, 27 Aug 2007 21:16:54 +0000]
V4L/DVB (6125): whitespace cleanup: replace leading spaces with tabs

There were many instances of 7-space indents spread throughout
the v4l-dvb tree.

This patch replaces the 7-space indents with tabs.  The whitespace cleaner
script doesn't catch these, because it assumes that all indents are 8-space.

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

13 years agoV4L/DVB (6124): cx25840: add a few 10 microsecond delays
Tyler Trafford [Tue, 28 Aug 2007 20:56:47 +0000]
V4L/DVB (6124): cx25840: add a few 10 microsecond delays

There were a couple of places in the cx25840 initialization where the
datasheet called for a 10 microsecond delay, which we ignored because
of the 10 usec I2C delay. Put them in anyway now that the I2C delay
was decreased to 5 usec.

Signed-off-by: Tyler Trafford <ttrafford@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6123): ivtv: move ivtv.h public header to include/linux
Hans Verkuil [Sun, 26 Aug 2007 09:13:04 +0000]
V4L/DVB (6123): ivtv: move ivtv.h public header to include/linux

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

13 years agoV4L/DVB (6122): ivtvfb: fix an obvious bug in ivtvfb_release_buffers()
Adrian Bunk [Tue, 28 Aug 2007 06:28:04 +0000]
V4L/DVB (6122): ivtvfb: fix an obvious bug in ivtvfb_release_buffers()

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6121): ivtvfb: replace ivtv_fb prefix to ivtvfb
Hans Verkuil [Tue, 28 Aug 2007 06:24:31 +0000]
V4L/DVB (6121): ivtvfb: replace ivtv_fb prefix to ivtvfb

ivtvfb: replace ivtv_fb prefix to ivtvfb, change warning to info message

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

13 years agoV4L/DVB (6120): ivtvfb: rename some missed ivtv-fb references to ivtvfb
Hans Verkuil [Sun, 26 Aug 2007 09:11:07 +0000]
V4L/DVB (6120): ivtvfb: rename some missed ivtv-fb references to ivtvfb

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

13 years agoV4L/DVB (6119): ivtvfb: renamed ivtv-fb to ivtvfb, move header to include/linux
Hans Verkuil [Sun, 26 Aug 2007 09:04:10 +0000]
V4L/DVB (6119): ivtvfb: renamed ivtv-fb to ivtvfb, move header to include/linux

The convention for framebuffer devices is to call them xxxfb, not xxx-fb.
Conform to this. Also move the ivtvfb.h header to include/linux: it is a
public header. The FBIO_WAITFORVSYNC ioctl is now also defined in the
ivtvfb.h header, no more need to include matroxfb.h for just this ioctl.

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

13 years agoV4L/DVB (6118): ivtv-fb: add missing FBIO_WAITFORVSYNC ioctl define
Hans Verkuil [Sun, 26 Aug 2007 08:45:48 +0000]
V4L/DVB (6118): ivtv-fb: add missing FBIO_WAITFORVSYNC ioctl define

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

13 years agoV4L/DVB (6117): ivtv: finish VBI related cleanup
Hans Verkuil [Sat, 25 Aug 2007 18:09:52 +0000]
V4L/DVB (6117): ivtv: finish VBI related cleanup

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

13 years agoV4L/DVB (6116): ivtv: VBI cleanups and fixes
Hans Verkuil [Sat, 25 Aug 2007 17:11:23 +0000]
V4L/DVB (6116): ivtv: VBI cleanups and fixes

Besides some VBI cleanups this patch also fixes a subtle problem with the
VBI re-insertion stream where the PIO work handler wasn't called quickly
enough, resulting in occasional corrupt data.

Furthermore the CC output didn't disable CC correctly and at the right time,
causing duplicates to be sent.

An saa7127 fix for VPS output was also added: the wrong data was sent.

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

13 years agoV4L/DVB (6115): ivtv/ivtv-fb: improve locking to avoid initialization problems
Hans Verkuil [Sat, 25 Aug 2007 08:41:52 +0000]
V4L/DVB (6115): ivtv/ivtv-fb: improve locking to avoid initialization problems
ivtv/ivtv-fb: improve locking to prevent ivtv/ivtv-fb initialization problems

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

13 years agoV4L/DVB (6113): ivtv: udelay for the i2c bus was set too high
Hans Verkuil [Sun, 26 Aug 2007 13:54:14 +0000]
V4L/DVB (6113): ivtv: udelay for the i2c bus was set too high

An udelay of 5 is sufficient for standard speed i2c busses, 10 make it
too slow.

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

13 years agoV4L/DVB (6112): cx25840: use a workqueue to load the firmware
Hans Verkuil [Sun, 26 Aug 2007 13:53:16 +0000]
V4L/DVB (6112): cx25840: use a workqueue to load the firmware

Loading the firmware using the i2c bit-banging code blocks the kernel.
Move the firmware load code into a workqueue so that it plays well with
other processes.

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

13 years agoV4L/DVB (6111): Fix a warning when compiling on x86_64
Mauro Carvalho Chehab [Mon, 27 Aug 2007 15:05:18 +0000]
V4L/DVB (6111): Fix a warning when compiling on x86_64

tcm825x.c: In function 'ioctl_try_fmt_cap':
tcm825x.c:639: warning: format '%d' expects type 'int', but argument 4
                                        has type 'long unsigned int'

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6109): ivtv: use new videodev2.h pixel formats
Hans Verkuil [Sat, 25 Aug 2007 18:19:18 +0000]
V4L/DVB (6109): ivtv: use new videodev2.h pixel formats

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

13 years agoV4L/DVB (6108): videodev2.h: add new pixel formats for the cx23415 OSD
Hans Verkuil [Sat, 25 Aug 2007 18:16:37 +0000]
V4L/DVB (6108): videodev2.h: add new pixel formats for the cx23415 OSD

The Conexant cx23415 MPEG encoder/decoder supports some unusual pixelformats
for the On-Screen Display. Add new defines to videodev2.h for these formats.

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

13 years agoV4L/DVB (6107): dvb_frontend: clean-up shutdown handling
Oliver Endriss [Sat, 25 Aug 2007 16:17:53 +0000]
V4L/DVB (6107): dvb_frontend: clean-up shutdown handling

Now dvb_powerdown_on_sleep controls whether
- whether LNB power is turned off
- whether the tuner/frontend enters sleep mode

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6106): dvb_frontend: Default for dvb_shutdown_timeout set to 0
Oliver Endriss [Sat, 25 Aug 2007 15:22:16 +0000]
V4L/DVB (6106): dvb_frontend: Default for dvb_shutdown_timeout set to 0

Default for dvb_shutdown_timeout set to 0.
dvb_shutdown_timeout > 0 is used for debugging only.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6105): dvb_frontend: ts_bus_ctrl() handling fixed
Oliver Endriss [Sat, 25 Aug 2007 15:00:23 +0000]
V4L/DVB (6105): dvb_frontend: ts_bus_ctrl() handling fixed

ts_bus_ctrl() should only be called by
- the first open
- the last release call.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6104): dvb_ca_en50221: decrement module use count on error
Marco Schluessler [Sat, 25 Aug 2007 14:46:07 +0000]
V4L/DVB (6104): dvb_ca_en50221: decrement module use count on error

decrement module use count on error

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>

13 years agoV4L/DVB (6103): dvb_ca_en50221: return correct error code value
Marco Schluessler [Sat, 25 Aug 2007 14:36:39 +0000]
V4L/DVB (6103): dvb_ca_en50221: return correct error code value

return correct error code value

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>

13 years agoV4L/DVB (6102): dvb: remove some unneeded vmalloc() return value casts from av7110
Jesper Juhl [Sat, 25 Aug 2007 14:23:54 +0000]
V4L/DVB (6102): dvb: remove some unneeded vmalloc() return value casts from av7110

vmalloc() returns void * - no need to cast it.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6100): dvb_net: whitespace cleanup
Michael Krufky [Fri, 24 Aug 2007 01:33:28 +0000]
V4L/DVB (6100): dvb_net: whitespace cleanup

Clean whitespace brain-damage caused by previous patch,
"Fix a warning at dvb_net"

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

13 years agoV4L/DVB (6098): ivtv: kzalloc() returns void pointer, no need to cast
Jesper Juhl [Fri, 24 Aug 2007 08:28:54 +0000]
V4L/DVB (6098): ivtv: kzalloc() returns void pointer, no need to cast

Since kzalloc() returns a void pointer, we don't need to cast the
return value in drivers/media/video/ivtv/ivtv-queue.c

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6097): ivtv: set correct pixel format and alpha properties
Hans Verkuil [Fri, 24 Aug 2007 00:15:24 +0000]
V4L/DVB (6097): ivtv: set correct pixel format and alpha properties

ivtv: set correct pixel format and alpha properties in VIDIOC_G_FBUF

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

13 years agoV4L/DVB (6096): ivtv: fix V4L2_ENC_CMD_STOP_AT_GOP_END support
Hans Verkuil [Thu, 23 Aug 2007 20:51:07 +0000]
V4L/DVB (6096): ivtv: fix V4L2_ENC_CMD_STOP_AT_GOP_END support

Support for V4L2_ENC_CMD_STOP_AT_GOP_END was broken. While the driver
correctly waited for the card to capture until the GOP was complete,
afterwards the driver buffers were just flushed instead of waiting
for the application to read all the pending data.

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

13 years agoV4L/DVB (6094): ivtv: more ivtv-driver.h cleanups
Hans Verkuil [Thu, 23 Aug 2007 14:31:57 +0000]
V4L/DVB (6094): ivtv: more ivtv-driver.h cleanups

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

13 years agoV4L/DVB (6093): ivtv: reorganized and cleanup ivtv struct
Hans Verkuil [Thu, 23 Aug 2007 13:13:15 +0000]
V4L/DVB (6093): ivtv: reorganized and cleanup ivtv struct

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

13 years agoV4L/DVB (6092): ivtv: more cleanups, merged ivtv-audio.c and ivtv-video.c into ivtv...
Hans Verkuil [Thu, 23 Aug 2007 09:32:46 +0000]
V4L/DVB (6092): ivtv: more cleanups, merged ivtv-audio.c and ivtv-video.c into ivtv-routing.c

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

13 years agoV4L/DVB (6091): ivtv: header cleanup
Hans Verkuil [Thu, 23 Aug 2007 08:42:59 +0000]
V4L/DVB (6091): ivtv: header cleanup

- add guards
- remove unused header includes
- move card-specific stuff from ivtv-driver.h to ivtv-cards.h
- move YUV-specific stuff from ivtv-driver.h to ivtv-yuv.h

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

13 years agoV4L/DVB (6090): ivtv-fb: correct transparency bit reporting
Hans Verkuil [Wed, 22 Aug 2007 11:58:47 +0000]
V4L/DVB (6090): ivtv-fb: correct transparency bit reporting

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

13 years agoV4L/DVB (6089): ivtv: log in status if framebuffer uses YUV instead of RGB
Hans Verkuil [Wed, 22 Aug 2007 11:43:34 +0000]
V4L/DVB (6089): ivtv: log in status if framebuffer uses YUV instead of RGB

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

13 years agoV4L/DVB (6088): cx2341x: some controls can't be changed while the device is busy
Hans Verkuil [Tue, 21 Aug 2007 21:32:42 +0000]
V4L/DVB (6088): cx2341x: some controls can't be changed while the device is busy

The driver should now pass the 'busy' state of the device to the cx2341x
module whenever controls are set or tried. -EBUSY will be returned if
the device is busy and the user attempts to modify certain 'dangerous'
controls. It concerns controls that change the audio or video
compression mode and bitrates.

The cx88-blackbird and pvrusb2 drivers currently always pass '0' (not busy)
to the cx2341x, effectively keeping the old behavior for now.

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

13 years agoV4L/DVB (6087): ivtv: prevent changing VBI format while capture is in progress
Hans Verkuil [Mon, 20 Aug 2007 19:26:40 +0000]
V4L/DVB (6087): ivtv: prevent changing VBI format while capture is in progress

Changing the VBI format requires a CX2341X_ENC_INITIALIZE_INPUT firmware
call. This can only be done if no capture is in progress. So return
-EBUSY if the encoder is busy.

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

13 years agoV4L/DVB (6086): ivtv: fix output mode processing: UDMA_YUV wasn't cleared
Hans Verkuil [Mon, 20 Aug 2007 19:01:58 +0000]
V4L/DVB (6086): ivtv: fix output mode processing: UDMA_YUV wasn't cleared

- Always clear when stopping the decoder
- Clear if the filehandle that is being close was used for UDMA_YUV output.

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

13 years agoV4L/DVB (6085): cx88-alsa: Fix mmap support
Trent Piepho [Fri, 24 Aug 2007 04:06:36 +0000]
V4L/DVB (6085): cx88-alsa: Fix mmap support

The driver has long claimed to support mmap, but it didn't work at all.  Some
of the dma buffer parameters weren't set, and since video_buf uses vmalloc to
allocate the buffer, a page callback is needed too.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6084): cx88-alsa: Eliminate snd_cx88_cards
Trent Piepho [Fri, 24 Aug 2007 04:06:35 +0000]
V4L/DVB (6084): cx88-alsa: Eliminate snd_cx88_cards

The driver kepts a static global array of snd_card pointers for each card
probed, which was never used.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6083): cx88-alsa: Rework buffer handling
Trent Piepho [Fri, 24 Aug 2007 04:06:34 +0000]
V4L/DVB (6083): cx88-alsa: Rework buffer handling

Rework the way the DMA buffer is handled and IRQs are generated.

ALSA uses a ring-buffer of multiple periods.  Each period is supposed to
corrispond to one IRQ.

The existing driver was generating one interrupt per ring-buffer, as opposed
to per period.  This meant that as soon as the IRQ was generated, the hardware
was already starting to re-write the beginning of the buffer.  Since the DMA
happens on a per-line basis, there was only a narrow window to copy the data
out before the buffer was overwritten.

The cx88 core RISC program generator is modified so that it can set the IRQ
and counter flags to count every X lines of DMA transfer.  This way we can
generate an interrupt every period instead of every full ring-buffer.  Right
now only period of one line are supported, but it should be possible to
support longer periods.  Note that a WRITE instruction generates an IRQ when
it starts, not when the transfer is finished.  Thus to generate an IRQ when
line X is done, one must set the IRQ flag on the instruction that starts line
X+1, not the one that ends line X.

Change the line size so that there are four lines in the SRAM FIFO.  If there
are not four lines, the analog output from the cx88's internal DACs is full of
clicks and pops.

Try to handle FIFO sync errors.  Sometimes the chip generates many of these
errors before audio data starts.  Up to 50 sync errors will be ignored and the
counter reset.

Have the IRQ handler save the RISC counter to the chip struct, and then have
the pointer callback use this to calculate the pointer position.  We could
read the counter from the pointer callback, but sometimes the sync errors on
start up cause the counter to go crazy.  ALSA sees this and thinks there has
been an overrun.  The IRQ hander can avoid saving the counter position on
sync errors.

The chip "opened" flag wasn't necessary.  ALSA won't try to open the same
substream multiple times.  Probably this code was cut&pasted from the bt87x
driver, which has multiple sub-streams for one chip.

Do error checking for the videobuf mapping functions.

snd_card_cx88_runtime_free() is useless and can be deleted.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6082): cx88: Improve risc instruction printing in sram channel dump
Trent Piepho [Tue, 21 Aug 2007 11:19:16 +0000]
V4L/DVB (6082): cx88: Improve risc instruction printing in sram channel dump

When the risc instrunctions from the CMDS were printed, instruction arguments
weren't taken into account.

This changes output like:
cx88[0]:   risc0: 0x1d010400 [ write sol eol irq1 cnt0 count=1024 ]
cx88[0]:   risc1: 0x0cac2800 [ INVALID sol eol 23 21 19 18 13 count=2048 ]
cx88[0]:   risc2: 0x1d010400 [ write sol eol irq1 cnt0 count=1024 ]
cx88[0]:   risc3: 0x0cac2c00 [ INVALID sol eol 23 21 19 18 13 count=3072 ]

cx88[0]:   risc0: 0x1d010400 [ write sol eol irq1 cnt0 count=1024 ]
cx88[0]:   risc1: 0x0cac2800 [ arg #1 ]
cx88[0]:   risc2: 0x1d010400 [ write sol eol irq1 cnt0 count=1024 ]
cx88[0]:   risc3: 0x0cac2c00 [ arg #1 ]

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6081): ivtv: Fix static structure initialization
Jean Delvare [Thu, 23 Aug 2007 18:45:41 +0000]
V4L/DVB (6081): ivtv: Fix static structure initialization

Convert the initialization of ivtv_i2c_algo_template to C99-style.
Otherwise a future change to struct i2c_algo_bit_data would break
this code.

Also declared that structure const - it's a template after all.

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>

13 years agoV4L/DVB (6079): Cleanup: remove linux/moduleparam.h from drivers/media files
Mauro Carvalho Chehab [Tue, 21 Aug 2007 15:38:39 +0000]
V4L/DVB (6079): Cleanup: remove linux/moduleparam.h from drivers/media files

Since at least kernel 2.6.12-rc2, module.h includes moduleparm.h. This
patch removes all occurences of moduleparm.h from drivers/media files.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6078): Coding style fix drivers/media/video/zr36016.c
Michal Piotrowski [Tue, 21 Aug 2007 15:36:51 +0000]
V4L/DVB (6078): Coding style fix drivers/media/video/zr36016.c

Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6077): Coding style fix drivers/media/video/zr36050.c
Michal Piotrowski [Tue, 21 Aug 2007 15:34:48 +0000]
V4L/DVB (6077): Coding style fix drivers/media/video/zr36050.c

Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6076): Coding style fix drivers/media/video/zr36060.c
Michal Piotrowski [Tue, 21 Aug 2007 15:34:36 +0000]
V4L/DVB (6076): Coding style fix drivers/media/video/zr36060.c

Signed-off-by: Michal Piotrowski <michal.k.k.piotrowski@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

13 years agoV4L/DVB (6075): tuner: kernel headers go above subsystem headers
Michael Krufky [Tue, 21 Aug 2007 04:14:12 +0000]
V4L/DVB (6075): tuner: kernel headers go above subsystem headers

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

13 years agoV4L/DVB (6074): tuner: fix ifdef tags to match actual file name
Michael Krufky [Tue, 21 Aug 2007 00:04:44 +0000]
V4L/DVB (6074): tuner: fix ifdef tags to match actual file name

The file, tuner-driver.h was originally named tuner-hw.h, but we decided to
rename it.  At the time, I had forgotten to change the #ifdef __TUNER_HW_H__
to #ifdef __TUNER_DRIVER_H__ .  This patch corrects that.

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