openwrt/staging/blogic.git
16 years agoV4L/DVB (9155): em28xx-dvb: dvb_init() code factorization
Thierry MERLE [Sat, 11 Oct 2008 19:56:13 +0000 (16:56 -0300)]
V4L/DVB (9155): em28xx-dvb: dvb_init() code factorization

In dvb_init(),
        case EM2880_BOARD_TERRATEC_HYBRID_XS:
        case EM2880_BOARD_KWORLD_DVB_310U:
can be put in the same case than EM2880_BOARD_HAUPPAUGE_WINTV_HVR_900
since they do the same thing.

Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9152): radio-zoltrix: Add checking for frequency
Alexey Klimov [Thu, 9 Oct 2008 16:46:59 +0000 (13:46 -0300)]
V4L/DVB (9152): radio-zoltrix: Add checking for frequency

This patch adds printk messages, adds checking if frequency is set,
adds return -EINVAL in right places in zoltrix-radio.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9151): dsbr100: Add returns and fix codingstyle for vidioc_s_ctrl
Alexey Klimov [Thu, 9 Oct 2008 16:42:32 +0000 (13:42 -0300)]
V4L/DVB (9151): dsbr100: Add returns and fix codingstyle for vidioc_s_ctrl

Added return -EBUSY and fixed codingstyle issue

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9149): hvr950q: led feedback based on snr
Michael Krufky [Sat, 5 Apr 2008 23:55:14 +0000 (20:55 -0300)]
V4L/DVB (9149): hvr950q: led feedback based on snr

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9147): af9015: Add USB ID for MSI DIGIVOX mini III
Herbert Graeber [Tue, 7 Oct 2008 13:06:36 +0000 (10:06 -0300)]
V4L/DVB (9147): af9015: Add USB ID for MSI DIGIVOX mini III

- Add USB ID for MSI DIGIVOX mini III (1462:8807)

Signed-off-by: Herbert Graeber <herbert@graeber-clan.de>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9146): af901x: fix some compiler errors and warnings
Antti Palosaari [Mon, 6 Oct 2008 16:57:45 +0000 (13:57 -0300)]
V4L/DVB (9146): af901x: fix some compiler errors and warnings

- cast firmware data to u8
- remove cpu_to_le16 from switch-case label

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9145): af901x: clean-up
Antti Palosaari [Fri, 26 Sep 2008 14:40:53 +0000 (11:40 -0300)]
V4L/DVB (9145): af901x: clean-up

- remove unnecessary #undef's

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9144): af9015: enable Maxlinear mxl5005s tuner RSSI
Antti Palosaari [Mon, 22 Sep 2008 16:59:25 +0000 (13:59 -0300)]
V4L/DVB (9144): af9015: enable Maxlinear mxl5005s tuner RSSI

- enable Maxlinear mxl5005s tuner RSSI

Thaks to Jose Alberto for finding this setting.

Thanks-to: Jose Alberto Reguero <jareguero@telefonica.net>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9143): af9015: fix wrong GPIO
Antti Palosaari [Mon, 22 Sep 2008 16:48:26 +0000 (13:48 -0300)]
V4L/DVB (9143): af9015: fix wrong GPIO

- fix wrong GPIO that causes 2nd FE not to work ater warmboot

Thanks to Andrew Williams <andrew.williams@joratech.com> for reporting this.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9141): anysee: support for Anysee E30 Combo Plus
Antti Palosaari [Mon, 11 Aug 2008 13:54:16 +0000 (10:54 -0300)]
V4L/DVB (9141): anysee: support for Anysee E30 Combo Plus

- add module parameter for selecting DVB-T / DVB-C mode

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9140): anysee: unlock I2C-mutex in error case
Antti Palosaari [Mon, 11 Aug 2008 13:36:43 +0000 (10:36 -0300)]
V4L/DVB (9140): anysee: unlock I2C-mutex in error case

- unlock I2C-mutex also in error case

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9129): zoran: move zoran sources into a zoran subdirectory
Hans Verkuil [Thu, 9 Oct 2008 08:51:22 +0000 (05:51 -0300)]
V4L/DVB (9129): zoran: move zoran sources into a zoran subdirectory

Prevent the zoran driver sources from cluttering the video directory.
This changeset only moves the drivers and it does not fix any of the
checkpatch warnings/errors to keep the changeset clean.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9135): cx88 Dvico FusionHDTV Pro
Tim Farrington [Sat, 11 Oct 2008 15:44:38 +0000 (12:44 -0300)]
V4L/DVB (9135): cx88 Dvico FusionHDTV Pro

Well, one thing you encouraged me to do was re-test some of my cards
which contained the xc3028-zarlink combo.

Which led me to test a Dvico FusionHDTV Pro.

Almost a year ago, Chris Pascoe did a patch for this which can be found
at his ~pascoe/xc-test at Linuxtv.
This worked very well, however that was using his version of firmware.

Alas, someone attempted to use this and patch v4l-dvb, and messed it up.
So I've fixed it.
I enclose the patch against today's tree (containing your latest
tuner-xc2028.c patch).

The card now works very well, well with DVB-T anyway.

Signed-off-by: Tim Farrington <timf@iinet.net.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9133): v4l: disconnect kernel number from minor
Hans Verkuil [Sat, 4 Oct 2008 11:36:54 +0000 (08:36 -0300)]
V4L/DVB (9133): v4l: disconnect kernel number from minor

The v4l core creates four different video devices (video, vbi, radio, vtx)
and each has its own range of minor numbers. However, modern devices keep
increasing the number of devices that they need so a maximum of 64 video
devices will not be enough in the future. In addition this scheme makes
it very hard to add new device types.

This patch disconnects the kernel number allocation (e.g. video0, video1,
etc.) from the actual minor number (just pick the first free minor).

This allows for much more flexibility in the future. However, it does
require the use of udev. For those who cannot use udev a new CONFIG option
was created that changes the allocation scheme back to the old behavior.

Thanks to Greg KH for suggesting this approach during the 2008 LPC.

In addition, several bugs were fixed in the ivtv and cx18 drivers: these
drivers try to allocate specific kernel numbers but that scheme contained
a bug which caused what should have been e.g. video17 to appear as e.g.
video2.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9132): cx18: Fix warning message for DMA done notification for inactive...
Andy Walls [Sat, 4 Oct 2008 22:09:41 +0000 (19:09 -0300)]
V4L/DVB (9132): cx18: Fix warning message for DMA done notification for inactive stream.

cx18: Fix warning message for DMA done notification for inactive stream.  The
warning message would always gripe that the radio stream was to blame, which
was misleading and wrong (/dev/radioN nodes never transfer data).

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9131): cx18: Add entries for the Leadtek PVR2100 and Toshiba Qosmio DVB...
Andy Walls [Sat, 4 Oct 2008 23:28:40 +0000 (20:28 -0300)]
V4L/DVB (9131): cx18: Add entries for the Leadtek PVR2100 and Toshiba Qosmio DVB-T/Analog

cx18: Add entries for the Leadtek PVR2100 and Toshiba Qosmio DVB-T/Analog
capture cards.  Both cards are hybrids cards, but no digital capture
functionality has been added yet.  These entries are a first guess at the card
entries to get analog working, given the information available.  Terry Wu
<terrywu at leadtek.com.tw> provided a pointer to information for the PVR2100.
Martin Juhl <mj at casalogic.dk>, an owner of the Toshiba DVB-T/Analog tuner
card, provided the DDR timing information from his Windows inf file.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9126): gspca: Fix some compilation warnings in m5602.
Jean-Francois Moine [Thu, 9 Oct 2008 06:14:03 +0000 (03:14 -0300)]
V4L/DVB (9126): gspca: Fix some compilation warnings in m5602.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9125): gspca: Big rewrite of t613 driver
Jean-Francois Moine [Wed, 8 Oct 2008 11:06:08 +0000 (08:06 -0300)]
V4L/DVB (9125): gspca: Big rewrite of t613 driver

- separate functions for bridge and sensor exchanges
- delays added after some exchanges
- other sensor type

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9124): gspca: Bad name of the tv8532 subdriver in Kconfig.
Jean-Francois Moine [Tue, 7 Oct 2008 11:42:30 +0000 (08:42 -0300)]
V4L/DVB (9124): gspca: Bad name of the tv8532 subdriver in Kconfig.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9123): gspca: Add some lost controls to the s5k83a sensor.
Erik Andren [Tue, 7 Oct 2008 06:02:59 +0000 (03:02 -0300)]
V4L/DVB (9123): gspca: Add some lost controls to the s5k83a sensor.

Signed-off-by: Erik Andren <erik.andren@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9122): gspca: Bad name of the sunplus subdriver in Kconfig.
Jean-Francois Moine [Mon, 6 Oct 2008 06:16:08 +0000 (03:16 -0300)]
V4L/DVB (9122): gspca: Bad name of the sunplus subdriver in Kconfig.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9121): gspca: Add the subdriver finepix in Kconfig and Makefile.
Jean-Francois Moine [Sun, 5 Oct 2008 07:55:24 +0000 (04:55 -0300)]
V4L/DVB (9121): gspca: Add the subdriver finepix in Kconfig and Makefile.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9120): gspca: sd_desc->start returns a value and static functions in m5602.
Jean-Francois Moine [Sun, 5 Oct 2008 07:46:11 +0000 (04:46 -0300)]
V4L/DVB (9120): gspca: sd_desc->start returns a value and static functions in m5602.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9119): gspca: Don't destroy the URBs on disconnect.
Jean-Francois Moine [Sun, 5 Oct 2008 07:22:10 +0000 (04:22 -0300)]
V4L/DVB (9119): gspca: Don't destroy the URBs on disconnect.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9118): gspca: Set the vertical flip at streamon time in sonixj.
Jean-Francois Moine [Sun, 5 Oct 2008 07:21:24 +0000 (04:21 -0300)]
V4L/DVB (9118): gspca: Set the vertical flip at streamon time in sonixj.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9116): USB: remove info() macro from usb media drivers
Greg Kroah-Hartman [Fri, 10 Oct 2008 08:08:23 +0000 (05:08 -0300)]
V4L/DVB (9116): USB: remove info() macro from usb media drivers

USB should not be having it's own printk macros, so remove info() and
use the system-wide standard of dev_info() wherever possible.

Cc: Douglas Landgraf <dougsland@gmail.com>
Cc: Mike Isely <isely@pobox.com>
Cc: Thierry Merle <thierry.merle@free.fr>
Cc: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9114): dib0700: fix bad assignment of dib0700_xc5000_tuner_callback after...
Devin Heitmueller [Mon, 6 Oct 2008 15:07:48 +0000 (12:07 -0300)]
V4L/DVB (9114): dib0700: fix bad assignment of dib0700_xc5000_tuner_callback after return call

Put callback definition before function return and cleanup callback:

Fix a bug where the xc5000 callback was being set *after* the
return call (essentially resulting in dead code).

Also cleanup the callback function to detect unknown commands.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8904): cx88: add missing unlock_kernel
Hans Verkuil [Tue, 2 Sep 2008 22:00:21 +0000 (19:00 -0300)]
V4L/DVB (8904): cx88: add missing unlock_kernel

sparse found an unbalanced BKL usage.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9113): saa7134: fixes for the Asus Tiger Revision 1.00
Hermann Pitton [Sun, 5 Oct 2008 00:37:36 +0000 (21:37 -0300)]
V4L/DVB (9113): saa7134: fixes for the Asus Tiger Revision 1.00

In opposite to the P7131 Dual this early OEM card has a male
radio antenna connector and also no remote.

We currently switch the DVB-T RF feed to the radio input, like
on the P7131 with female radio connector used also for DVB-T
and should improve this.

Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9111): cx18: Up the version to 1.0.1
Andy Walls [Fri, 3 Oct 2008 16:49:05 +0000 (13:49 -0300)]
V4L/DVB (9111): cx18: Up the version to 1.0.1

cx18: Up the version to 1.0.1.  This will make it easy to tell if retries
of MMIO access are implemented or not in trouble reports.  First course of
action for I2C and other initialization problem reports will be to have user
upgrade to v1.0.1 of driver.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9110): cx18: Add default behavior of checking and retrying PCI MMIO accesses
Andy Walls [Mon, 29 Sep 2008 00:46:02 +0000 (21:46 -0300)]
V4L/DVB (9110): cx18: Add default behavior of checking and retrying PCI MMIO accesses

cx18: Add default behavior of checking and retrying PCI MMIO accesses.
The concept of checking and retrying PCI MMIO accesses for better reliability
in older motherboards was suggested by Steve Toth <stoth@linuxtv.org>.  This
change implements MMIO retries and the retry_mmio module parameter that is
enabled by default.  Limited experiments have shown this is more reliable than
the mmio_ndelay parameter.  mmio_ndelay has insignificant effect with retries
enabled.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9108): cinergyT2: add remote key repeat feature
Thierry MERLE [Fri, 19 Sep 2008 03:24:51 +0000 (00:24 -0300)]
V4L/DVB (9108): cinergyT2: add remote key repeat feature

Implement key repeat feature for the cinergyT2 remote controller.

Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9107): Alternative version of Terratec Cinergy T2 driver
Tomi Orava [Fri, 19 Sep 2008 03:48:31 +0000 (00:48 -0300)]
V4L/DVB (9107): Alternative version of Terratec Cinergy T2 driver

Alternative version of the Terratec Cinergy T2 driver that uses the dvb framework.

Signed-off-by: Tomi Orava <tomimo@ncircle.nullnet.fi>
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
[mchehab@redhat.com: fix dvb Makefile]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9105): correct Makefile symbol for stv0288 frontend
Janne Grunau [Tue, 30 Sep 2008 16:57:42 +0000 (13:57 -0300)]
V4L/DVB (9105): correct Makefile symbol for stv0288 frontend

Signed-off-by: Janne Grunau <janne-dvb@grunau.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9101): radio-mr800: Add driver for AverMedia MR 800 USB FM radio devices
Alexey Klimov [Wed, 1 Oct 2008 12:40:59 +0000 (09:40 -0300)]
V4L/DVB (9101): radio-mr800: Add driver for AverMedia MR 800 USB FM radio devices

This patch creates a new usb-radio driver, radio-mr800.c, that
supports the AverMedia MR 800 USB FM radio devices.
This device plugs into both the USB and an analog audio input, so this
thing only deals with initialization and frequency setting, the audio
data has to be handled by a sound driver.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9098): Whitespace cleanups
Mauro Carvalho Chehab [Sat, 4 Oct 2008 17:18:37 +0000 (14:18 -0300)]
V4L/DVB (9098): Whitespace cleanups

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9097): gspca: Adjust control values and restore compilation of sonixj.
Jean-Francois Moine [Sat, 4 Oct 2008 17:17:02 +0000 (14:17 -0300)]
V4L/DVB (9097): gspca: Adjust control values and restore compilation of sonixj.

- no compilation since last changeset
- brightness is a signed value
- better values of the color matrix

[mchehab@redhat.com: fix a merge conflict]
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9096): gspca: Subdriver selection at config time.
Erik Andren [Fri, 3 Oct 2008 18:47:03 +0000 (15:47 -0300)]
V4L/DVB (9096): gspca: Subdriver selection at config time.

Signed-off-by: Erik Andren <erik.andren@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9095): gspca: Moves some sensor initialization to each sensor in m5602.
Erik Andren [Fri, 3 Oct 2008 18:29:02 +0000 (15:29 -0300)]
V4L/DVB (9095): gspca: Moves some sensor initialization to each sensor in m5602.

Signed-off-by: Erik Andren <erik.andren@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9094): gspca: Frame counter in ALi m5602.
Erik Andren [Fri, 3 Oct 2008 12:28:45 +0000 (09:28 -0300)]
V4L/DVB (9094): gspca: Frame counter in ALi m5602.

Signed-off-by: Erik Andren <erik.andren@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9093): gspca: Cleanup code and small changes.
Erik Andren [Fri, 3 Oct 2008 11:46:50 +0000 (08:46 -0300)]
V4L/DVB (9093): gspca: Cleanup code and small changes.

- convert some #define to enum.
- remove some comments.
- return ENOMEM on memory allocation failure.

Signed-off-by: Erik Andren <erik.andren@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9091): gspca: Subdriver m5602 (ALi) added.
Erik Andren [Wed, 1 Oct 2008 07:51:53 +0000 (04:51 -0300)]
V4L/DVB (9091): gspca: Subdriver m5602 (ALi) added.

This patch adds support for the ALi m5602 usb bridge and is based on
the gspca framework.
It contains code for communicating with 5 different sensors:
OmniVision OV9650, Pixel Plus PO1030, Samsung S5K83A, S5K4AA and
finally Micron MT9M111.

Signed-off-by: Erik Andren <erik.andren@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
[mchehab@redhat.com: fix m5602/Makefile]
[mchehab@redhat.com: extern debug caused conflicts. Renamed to m5602_debug]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9090): gspca: Restart the state machine when no frame buffer in finepix.
Frank Zago [Tue, 30 Sep 2008 06:55:33 +0000 (03:55 -0300)]
V4L/DVB (9090): gspca: Restart the state machine when no frame buffer in finepix.

Signed-off-by: Frank Zago <frank@zago.net>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9089): gspca: Remove the duplicated EOF (ff d9) in t613.
Jean-Francois Moine [Mon, 29 Sep 2008 10:03:06 +0000 (07:03 -0300)]
V4L/DVB (9089): gspca: Remove the duplicated EOF (ff d9) in t613.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9088): gspca: New subdriver 'finepix' added.
Frank Zago [Mon, 29 Sep 2008 09:59:36 +0000 (06:59 -0300)]
V4L/DVB (9088): gspca: New subdriver 'finepix' added.

Signed-off-by: Frank Zago <frank@zago.net>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9087): gspca: Image transfer by bulk uses altsetting 0 with any buffer size.
Jean-Francois Moine [Mon, 29 Sep 2008 08:57:32 +0000 (05:57 -0300)]
V4L/DVB (9087): gspca: Image transfer by bulk uses altsetting 0 with any buffer size.

- gspca_dev field 'bulk_size' added.
- when only one altsetting usable, do image transfer by bulk.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9086): gspca: Use a kref to avoid potentialy blocking forever in disconnect.
Frank Zago [Sun, 28 Sep 2008 11:12:22 +0000 (08:12 -0300)]
V4L/DVB (9086): gspca: Use a kref to avoid potentialy blocking forever in disconnect.

Signed-off-by: Frank Zago <frank@zago.net>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9085): gspca: URB_NO_TRANSFER_DMA_MAP is required for isoc and bulk transfers.
Frank Zago [Sun, 28 Sep 2008 10:43:00 +0000 (07:43 -0300)]
V4L/DVB (9085): gspca: URB_NO_TRANSFER_DMA_MAP is required for isoc and bulk transfers.

Signed-off-by: Frank Zago <frank@zago.net>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9084): gspca: Fixed a few typos in comments.
Frank Zago [Fri, 26 Sep 2008 10:43:54 +0000 (07:43 -0300)]
V4L/DVB (9084): gspca: Fixed a few typos in comments.

Signed-off-by: Frank Zago <frank@zago.net>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9083): gspca: URB_NO_TRANSFER_DMA_MAP is not useful for isoc transfers.
Jean-Francois Moine [Fri, 26 Sep 2008 08:52:52 +0000 (05:52 -0300)]
V4L/DVB (9083): gspca: URB_NO_TRANSFER_DMA_MAP is not useful for isoc transfers.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9082): gspca: Vertical flip the image by default in sonixj.
Jean-Francois Moine [Mon, 22 Sep 2008 06:14:25 +0000 (03:14 -0300)]
V4L/DVB (9082): gspca: Vertical flip the image by default in sonixj.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9081): gspca: Bad webcam name of 046d:092f in documentation.
Jean-Francois Moine [Mon, 22 Sep 2008 05:57:56 +0000 (02:57 -0300)]
V4L/DVB (9081): gspca: Bad webcam name of 046d:092f in documentation.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9079): gspca: Return error code from stream start functions.
Jean-Francois Moine [Sat, 20 Sep 2008 09:39:08 +0000 (06:39 -0300)]
V4L/DVB (9079): gspca: Return error code from stream start functions.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9078): gspca: New exported function to retrieve the current frame buffer.
Jean-Francois Moine [Sat, 20 Sep 2008 08:44:21 +0000 (05:44 -0300)]
V4L/DVB (9078): gspca: New exported function to retrieve the current frame buffer.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9077): gspca: Set the right V4L2_DEBUG values in the main driver.
Frank Zago [Mon, 15 Sep 2008 08:20:38 +0000 (05:20 -0300)]
V4L/DVB (9077): gspca: Set the right V4L2_DEBUG values in the main driver.

Signed-off-by: Frank Zago <frank@zago.net>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9076): gspca: USB direction lacking in spca561.
Shane [Mon, 15 Sep 2008 07:18:51 +0000 (04:18 -0300)]
V4L/DVB (9076): gspca: USB direction lacking in spca561.

Signed-off-by: Shane <gnome42@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9074): gspca: sonixj webcam 0c45:60fe added.
Jean-Francois Moine [Wed, 10 Sep 2008 05:57:09 +0000 (02:57 -0300)]
V4L/DVB (9074): gspca: sonixj webcam 0c45:60fe added.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9072): S2API: Add DTV_API_VERSION command
Steven Toth [Fri, 26 Sep 2008 03:29:49 +0000 (00:29 -0300)]
V4L/DVB (9072): S2API: Add DTV_API_VERSION command

This allows application developers to query the dvb-core API version
dynamically, helping developers understand whether certain features
will be available.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9071): S2API: Implement result codes for individual commands
Steven Toth [Fri, 26 Sep 2008 03:16:25 +0000 (00:16 -0300)]
V4L/DVB (9071): S2API: Implement result codes for individual commands

This allows application developers to determine which particular
command in a sequence is invalid, or failing with error.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9070): S2API: Removed the typedef for the commands, used defines instead.
Steven Toth [Fri, 26 Sep 2008 03:04:52 +0000 (00:04 -0300)]
V4L/DVB (9070): S2API: Removed the typedef for the commands, used defines instead.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9069): cx88: Bugfix: all client disconnects put the frontend to sleep.
Darron Broad [Thu, 25 Sep 2008 19:51:11 +0000 (16:51 -0300)]
V4L/DVB (9069): cx88: Bugfix: all client disconnects put the frontend to sleep.

From the author:

"This fixes the problem where previously all client disconnects
put the analogue frontend into standby.

In the following example, the first command is succesfully
watching TV but the second command which returns EBUSY
detunes the receiver by entering it into the standby state.

tvtime -d /dev/video0 &
cat /dev/video0
"

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Darron Broad <darron@kewl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9068): Kconfig dependency fix for DW2002 card with ST STV0288 demodulator.
Igor M. Liplianin [Thu, 25 Sep 2008 02:18:27 +0000 (23:18 -0300)]
V4L/DVB (9068): Kconfig dependency fix for DW2002 card with ST STV0288 demodulator.

Kconfig dependency fix for DW2002 card with ST STV0288 demodulator.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9067): Kconfig correction for USB card modification with SI2109/2110 demodul...
Igor M. Liplianin [Thu, 25 Sep 2008 01:48:53 +0000 (22:48 -0300)]
V4L/DVB (9067): Kconfig correction for USB card modification with SI2109/2110 demodulator.

Kconfig correction for USB card modification with SI2109/2110 demodulator.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9066): Pinnacle Hybrid PCTV Pro (pctv310c) DVB-T support
Stéphane Voltz [Fri, 5 Sep 2008 17:33:54 +0000 (14:33 -0300)]
V4L/DVB (9066): Pinnacle Hybrid PCTV Pro (pctv310c) DVB-T support

This patch against latest mercurial makes DVB-T working on Pinnacle
Hybrid PCTV Pro (pctv310c).

In cx88-dvb.c, a specific zl10353_config is created with the if2
inferred from the old comment in the currently used config. It is then
used for attach, and i2c_gate_ctrl is set to NULL.

The entry in cx88-cards.c is modified with GPIO gathered from windows
with regspy, and DVB enabled. The frontend is set to
XC3028_FE_ZARLINK456 to match the zl10353_config.

It is working great with the freeview channels I can receive.

Signed-off-by: Stéphane Voltz <stef.dev@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9065): saa7134: fix I2C remote controls on saa7134
Dmitri Belimov [Mon, 29 Sep 2008 05:25:40 +0000 (02:25 -0300)]
V4L/DVB (9065): saa7134: fix I2C remote controls on saa7134

This is patch for solve this regression. Load ir-kbd-i2c module when remote is i2c type.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9063): Add ADS Tech Instant HDTV PCI support
Adam Glover [Tue, 6 May 2008 06:20:27 +0000 (03:20 -0300)]
V4L/DVB (9063): Add ADS Tech Instant HDTV PCI support

Add PCI ID and device specific tables for ADS Tech Instant HDTV.

[mchehab@redhat.com: make checkpatch happy and fix merge conflicts]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9062): Add support for Prolink Pixelview Global Extreme
Mauro Carvalho Chehab [Mon, 29 Sep 2008 15:08:29 +0000 (12:08 -0300)]
V4L/DVB (9062): Add support for Prolink Pixelview Global Extreme

Thanks to Sidney Matias <sidney.matias@gmail.com> for getting GPIO
values and testing on this device.

Cc: Sidney Matias <sidney.matias@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9061): saa7134: Add support for Real Audio 220
Mauro Carvalho Chehab [Thu, 26 Jun 2008 20:03:00 +0000 (17:03 -0300)]
V4L/DVB (9061): saa7134: Add support for Real Audio 220

Thanks to Sistema Fenix (http://www.sistemafenix.com.br/) for sponsoring
this development.

Signed-off-by: Gilberto <gilberto@sistemafenix.com.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9060): saa7134: Add support for Avermedia PCI pure analog (M135A)
Mauro Carvalho Chehab [Thu, 26 Jun 2008 20:03:00 +0000 (17:03 -0300)]
V4L/DVB (9060): saa7134: Add support for Avermedia PCI pure analog (M135A)

Thanks to Sistema Fenix (http://www.sistemafenix.com.br/) for sponsoring
this development.

Signed-off-by: Gilberto <gilberto@sistemafenix.com.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9059): saa7134: Add support for Encore version 5.3 board
Mauro Carvalho Chehab [Thu, 26 Jun 2008 20:03:00 +0000 (17:03 -0300)]
V4L/DVB (9059): saa7134: Add support for Encore version 5.3 board

Thanks to Sistema Fenix (http://www.sistemafenix.com.br/) for sponsoring
this development.

Signed-off-by: Gilberto <gilberto@sistemafenix.com.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9058): spca561: while balance -> white balance typo
Shane [Thu, 11 Sep 2008 19:14:09 +0000 (16:14 -0300)]
V4L/DVB (9058): spca561: while balance -> white balance typo

Cc: Jean-Francois Moine <moinejf@free.fr>
Cc: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9057): saa7134: Hauppauge HVR-1110, support for radio and analog audio in
David Bentham [Sun, 28 Sep 2008 19:29:51 +0000 (16:29 -0300)]
V4L/DVB (9057): saa7134: Hauppauge HVR-1110, support for radio and analog audio in

The audio switch is at 0x100 and radio on gpio 21.

Tested-by: Thomas Genty <tomlohave@gmail.com>
Signed-off-by: David Bentham <db260179@hotmail.com>
Reviewed-by: Hermann Pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9055): tuner-xc2028: Do a better job selecting firmware type
Mauro Carvalho Chehab [Sun, 28 Sep 2008 05:24:44 +0000 (02:24 -0300)]
V4L/DVB (9055): tuner-xc2028: Do a better job selecting firmware type

Firmware selection is very tricky on this device. This patch do a better
selection of the proper firmware type, by using a code to hint if the
firmware to be loaded should be D2620 or D2633.

It also allows overriding the hint at the control structure.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9051): dib0700: use dvb_frontend->callback for xc5000 gpio reset
Michael Krufky [Thu, 25 Sep 2008 12:47:07 +0000 (09:47 -0300)]
V4L/DVB (9051): dib0700: use dvb_frontend->callback for xc5000 gpio reset

The tuner_callback function pointer from struct xc5000_config has been removed.
Use dvb_frontend->callback instead.

Also, mark function dib0700_xc5000_tuner_callback as static int.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9049): convert tuner drivers to use dvb_frontend->callback
Michael Krufky [Fri, 12 Sep 2008 16:31:45 +0000 (13:31 -0300)]
V4L/DVB (9049): convert tuner drivers to use dvb_frontend->callback

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9048): add a general-purpose callback pointer to struct dvb_frontend
Michael Krufky [Wed, 10 Sep 2008 04:39:20 +0000 (01:39 -0300)]
V4L/DVB (9048): add a general-purpose callback pointer to struct dvb_frontend

Remove tuner_callback pointers from tuner driver configuration
and private state structures, replaced with a general-purpose
callback pointer within struct dvb_frontend.

A new parameter is added to the callback function, called
component. This allows us to use this callback pointer by
frontend components other than the tuner, if need be. So
far, this is only used by tuner drivers.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9047): [PATCH] Add remote control support to Nova-TD (52009)
Chris Rankin [Thu, 25 Sep 2008 09:52:24 +0000 (06:52 -0300)]
V4L/DVB (9047): [PATCH] Add remote control support to Nova-TD (52009)

This patch adds remote control support for the Hauppauge WinTV Nova-TD
(Diversity) model. (That's the 52009 version.) It also adds the
key-codes for the credit-card style remote control that comes with
this particular adapter.

Signed-off-by: Chris Rankin <rankincj@yahoo.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9046): Add support for Non-Pro version of Pinnacle PCTV HD USB Stick
Devin Heitmueller [Thu, 25 Sep 2008 09:22:23 +0000 (06:22 -0300)]
V4L/DVB (9046): Add support for Non-Pro version of Pinnacle PCTV HD USB Stick

Add USB ID for Pinnacle PCTV HD USB Stick.  According to the USB trace and
photos, the only difference is the removal of the port for the analog
S-video/audio input.

Thanks to Mike Pringle <oblongd@gmail.com> for providing the USB trace of the
device starting up, and testing the support.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9045): Add Pinnacle 801e dependencies to KConfig
Devin Heitmueller [Thu, 25 Sep 2008 09:21:11 +0000 (06:21 -0300)]
V4L/DVB (9045): Add Pinnacle 801e dependencies to KConfig

Support for the Pinnacle PCTV HD Pro 801e creates a dib0700 dependency on
the xc5000 tuner and s5h1411 demodulator drivers.  Update KConfig accordingly.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9044): Add support for Pinnacle PCTV HD Pro 801e (ATSC only)
Devin Heitmueller [Mon, 8 Sep 2008 08:42:42 +0000 (05:42 -0300)]
V4L/DVB (9044): Add support for Pinnacle PCTV HD Pro 801e (ATSC only)

Add digital support for the Pinnacle PCTV HD Pro 801e (usb id 2304:023a)

Thanks to Patrick Boettcher <patrick.boettcher@desy.de> for providing new
firmware fixing the issue with the i2c that prevented the xc5000 from working.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9042): Add support for Asus My Cinema U3000 Hybrid
Albert Comerma [Sun, 7 Sep 2008 15:43:33 +0000 (12:43 -0300)]
V4L/DVB (9042): Add support for Asus My Cinema U3000 Hybrid

This patch introduces support for dvb-t for the following dibcom based
cards: Asus My Cinema U3000 Hybrid (USB-ID: 0b05:1736)

Signed-off-by: Albert Comerma <albert.comerma@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9041): Add support YUAN High-Tech STK7700D (1164:1f08)
Daniel Oliveira Nascimento [Sun, 7 Sep 2008 15:39:44 +0000 (12:39 -0300)]
V4L/DVB (9041): Add support YUAN High-Tech STK7700D (1164:1f08)

This patch extends the dib0700 driver to support the DVB-part of the Asus notebook M51Sn tv-tunner (USB-ID 1164:1f08).

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9040): TTUSB-DEC DVB-S: claim to have lock
Peter Beutner [Sat, 6 Sep 2008 16:54:06 +0000 (13:54 -0300)]
V4L/DVB (9040): TTUSB-DEC DVB-S: claim to have lock

As reported by BOUWSMA Barry the readout of the signal status doesn't work
on dec3000-s models. Since we don't know how to do it better, revert back
to the old behaviour and always report a signal lock.

Reported by Barry Bouwsma

Signed-off-by: Peter Beutner <p.beutner@gmx.net>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9039): Add support for new i2c API provided in firmware version 1.20
Devin Heitmueller [Sat, 6 Sep 2008 16:45:27 +0000 (13:45 -0300)]
V4L/DVB (9039): Add support for new i2c API provided in firmware version 1.20

The Pinnacle PCTV HD Pro has an xc5000, which exposed a bug in the dib0700's
i2c implementation where it did not properly support a single i2c read request
(sending it as an i2c write request instead).  Version 1.20 of the firmware
added support for a new i2c API which supported such requests.

This change defaults to fw 1.20 for all devices, but does not default to using
the new i2c API (since initial testing suggests problems interacting with the
mt2060).  Maintainers can enable the use of the new i2c API by putting
the following into their frontend initialization:

struct dib0700_state *st = adap->dev->priv;
st->fw_use_new_i2c_api = 1;

Also note that the code expects i2c repeated start to be supported.  If the
i2c slave does not support repeated start, i2c messsages should have the
I2C_M_NOSTART flag set.

Thanks to Patrick Boettcher <patrick.boettcher@desy.de> for providing new
firmware fixing the issue as well as example i2c code utilizing the interface.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9038): Add support for the Gigabyte R8000-HT USB DVB-T adapter.
Finn Thain [Sat, 6 Sep 2008 16:42:47 +0000 (13:42 -0300)]
V4L/DVB (9038): Add support for the Gigabyte R8000-HT USB DVB-T adapter.

Thanks to Ilia Penev for the tip-off that this device is much the same as
(identical to?) a Terratec Cinergy HT USB XE, and for the firmware hints:
http://linuxtv.org/pipermail/linux-dvb/2008-August/028108.html

DVB functionality tested OK with xine using the usual dib0700 firmware.

This diff is based on the latest latest linuxtv.org v4l-dvb mercurial
repo.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9036): uvcvideo: Fix control cache access when setting composite auto-update...
Laurent Pinchart [Sat, 27 Sep 2008 23:54:02 +0000 (20:54 -0300)]
V4L/DVB (9036): uvcvideo: Fix control cache access when setting composite auto-update controls

Auto-update controls are never marked is loaded to prevent uvc_get_ctrl from
loading the control value from the cache. When setting a composite (mapped to
several V4L2 controls) auto-update UVC control, the driver updates the control
cache value before processing each V4L2 control, overwriting the previously
set V4L2 control.

This fixes the problem by marking all controls as loaded in uvc_set_ctrl
regardless of their type and resetting the loaded flag in uvc_commit_ctrl for
auto-update controls.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9035): uvcvideo: Declare missing camera and processing unit controls.
Laurent Pinchart [Mon, 22 Sep 2008 16:14:59 +0000 (13:14 -0300)]
V4L/DVB (9035): uvcvideo: Declare missing camera and processing unit controls.

This declares all missing UVC camera and processing unit controls. V4L2
mappings are not supported yet for those controls.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9034): With the recent patch to v4l2 titled "v4l2: use register_chrdev_region
David Ellingsworth [Sun, 21 Sep 2008 07:12:03 +0000 (04:12 -0300)]
V4L/DVB (9034): With the recent patch to v4l2 titled "v4l2: use register_chrdev_region

instead of register_chrdev", the internal reference count is no longer
necessary in order to free the internal stk_webcam struct. This patch
removes the reference counter from the stk_webcam struct and frees the
struct via the video_device release callback. It also fixes an
associated bug in stk_camera_probe which could result from
video_unregister_device being called before video_register_device.
Lastly, it simplifies access to the stk_webcam struct in several
places. This patch should apply cleanly against the "working" branch
of the v4l-dvb git repository.

This patch is identical to the patch I sent a couple of months back
titled "stk-webcam: Fix video_device handling" except that it has been
rebased against current modifications to stk-webcam and it no longer
depends on any other outstanding patches.

Acked-by: Jaime Velasco Juan <jsagarribay@gmail.com>
Signed-off-by: David Ellingsworth <david@identd.dyndns.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9033): drivers/media/video/tda9840.c: unbreak
Andrew Morton [Fri, 19 Sep 2008 02:26:35 +0000 (23:26 -0300)]
V4L/DVB (9033): drivers/media/video/tda9840.c: unbreak

drivers/media/video/tda9840.c: In function 'tda9840_command':
drivers/media/video/tda9840.c:152: warning: 'result' is used uninitialized in this function

[mchehab@redhat.com: Fix conflict with another patch that were meant to solve the warning]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB:usbvideo:don't use part of buffer for USB transfer #4
Ming Lei [Tue, 16 Sep 2008 06:32:20 +0000 (03:32 -0300)]
V4L/DVB:usbvideo:don't use part of buffer for USB transfer #4

The status[] is part of  uvc_device structure. We can't make sure
the address of status is at a cache-line boundary in all archs,so
status[] might share a cache-line with some fields in uvc_structure.
This can lead to some cache coherence issues(http://lwn.net/Articles/2265/).
Use dynamically allocated buffer instead.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9031): uvcvideo: Fix incomplete frame drop when switching to a variable...
Laurent Pinchart [Tue, 16 Sep 2008 01:24:29 +0000 (22:24 -0300)]
V4L/DVB (9031): uvcvideo: Fix incomplete frame drop when switching to a variable size format.

When streaming in a fixed size format the driver sets a flag in the uvc_queue
structure to drop incomplete incoming frames. The flag wasn't cleared when
switching to a variable size format, which resulted in a broken
'MJPEG after YUV'.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9030): uvcvideo : Add support for Advent 4211 integrated webcam
Laurent Pinchart [Tue, 16 Sep 2008 01:19:46 +0000 (22:19 -0300)]
V4L/DVB (9030): uvcvideo : Add support for Advent 4211 integrated webcam

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9028): saa7134: add support for the triple Asus Tiger 3in1
hermann pitton [Sun, 14 Sep 2008 20:49:14 +0000 (17:49 -0300)]
V4L/DVB (9028): saa7134: add support for the triple Asus Tiger 3in1

after looking it up, all rants about the 80 columns restriction seem to
be in vain. After changing the card's name it are now "only" seven new
lines in the tiny DVB-T/DVB-S switch function.

saa7130/34: v4l2 driver version 0.2.14 loaded
saa7133[0]: found at 0000:02:08.0, rev: 209, irq: 18, latency: 32, mmio: 0xfdef7000
saa7133[0]: subsystem: 1043:4878, board: Asus Tiger 3in1 [card=147,autodetected]
saa7133[0]: board init: gpio is 200000
tuner' 2-004b: chip found @ 0x96 (saa7133[0])
saa7133[0]: i2c eeprom 00: 43 10 78 48 54 20 1c 00 43 43 a9 1c 55 d2 b2 92
saa7133[0]: i2c eeprom 10: ff ff ff 0f ff 20 ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 20: 01 40 01 02 03 01 01 03 08 ff 00 d7 ff ff ff ff
saa7133[0]: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 40: ff 28 00 c2 96 16 03 02 c0 1c ff ff ff ff ff ff
saa7133[0]: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
saa7133[0]: i2c scan: found device @ 0x10  [???]
saa7133[0]: i2c scan: found device @ 0x16  [???]
saa7133[0]: i2c scan: found device @ 0x1c  [???]
saa7133[0]: i2c scan: found device @ 0x96  [???]
saa7133[0]: i2c scan: found device @ 0xa0  [eeprom]
tda829x 2-004b: setting tuner address to 61
tda829x 2-004b: type set to tda8290+75a
saa7133[0]: registered device video0 [v4l2]
saa7133[0]: registered device vbi0
saa7133[0]: registered device radio0

DVB: registering new adapter (saa7133[0])
DVB: registering frontend 0 (Philips TDA10086 DVB-S)...

The board init gpio is 0x0, 0x200000 is from previously unloading with
antenna_switch = 1.

It needs firmware for the tda10046 and analog sound needs saa7134-alsa.

I have support for one more board and need to fix the first revision of
the Asus Tiger DVB-T hybrid. DVB-T currently hangs on the male radio
antenna input, also some small other stuff.

Please report any issues with this patch, the next are depending on this
one.

saa7134: add support for the triple Asus Tiger 3in1

Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9026): Add support for ST STV0288 demodulator and cards with it.
Igor M. Liplianin [Tue, 23 Sep 2008 18:43:57 +0000 (15:43 -0300)]
V4L/DVB (9026): Add support for ST STV0288 demodulator and cards with it.

Add support for ST STV0288 demodulator and cards with it,
such as TeVii S420.
Patch is co-authored with Georg Acher <acher@baycom.de>

Signed-off-by: Georg Acher <acher@baycom.de>
Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9025): S2API: Deactivate the ISDB-T definitions
Steven Toth [Wed, 24 Sep 2008 01:21:26 +0000 (22:21 -0300)]
V4L/DVB (9025): S2API: Deactivate the ISDB-T definitions

We don't want to push the ISDB-T definitions into the kernel until
we have a high level of confidence in the ISDB-T API. More testing
is required before this code is released.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9024): S2API: Cleanup dtv_property remove unwanted fields.
Steven Toth [Wed, 24 Sep 2008 01:14:33 +0000 (22:14 -0300)]
V4L/DVB (9024): S2API: Cleanup dtv_property remove unwanted fields.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9023): cx88: HVR3000 / 4000 GPIO related changes
Steven Toth [Mon, 22 Sep 2008 04:48:13 +0000 (01:48 -0300)]
V4L/DVB (9023): cx88: HVR3000 / 4000 GPIO related changes

Patch by Darron Broad.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9022): cx88: Enable TDA9887 on HVR1300 / 3000 / 4000
Steven Toth [Mon, 22 Sep 2008 04:46:26 +0000 (01:46 -0300)]
V4L/DVB (9022): cx88: Enable TDA9887 on HVR1300 / 3000 / 4000

Patch provided by Darron Broad.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9021): S2API: Add Kconf dependency
Steven Toth [Mon, 22 Sep 2008 04:45:01 +0000 (01:45 -0300)]
V4L/DVB (9021): S2API: Add Kconf dependency

Patch provided by Darron Broad

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9020): Added support for TBS 8920 DVB-S/S2 card
Oleg Roitburd [Wed, 17 Sep 2008 14:58:33 +0000 (11:58 -0300)]
V4L/DVB (9020): Added support for TBS 8920 DVB-S/S2 card

Added support for TBS 8920 DVB-S/S2 card. The card
based on cx24116 demodulator.

Signed-off-by: Oleg Roitburd <oroitburd@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>