GitHub/LineageOS/android_kernel_motorola_exynos9610.git
16 years agoV4L/DVB (9172): S2API: Bugfix related to DVB-S / DVB-S2 tuning for the legacy API.
Darron Broad [Fri, 3 Oct 2008 14:53:18 +0000 (11:53 -0300)]
V4L/DVB (9172): S2API: Bugfix related to DVB-S / DVB-S2 tuning for the legacy API.

Fixes switching from S2API to legacy where legacy params given to S2API
aware demods are cached ones and not those implied in the legacy API.

It was found (on an S2API aware demod at least) that after using
an S2API aware application and then switching to a legacy application
that prior S2API params were in effect were legacy has only
implied values. This fixes this.

Signed-off-by: Darron Broad <darron@kewl.org>
Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9171): S2API: Stop an OOPS if illegal commands are dumped in S2API.
Darron Broad [Fri, 3 Oct 2008 14:50:00 +0000 (11:50 -0300)]
V4L/DVB (9171): S2API: Stop an OOPS if illegal commands are dumped in S2API.

Quick fix to stop an OOPS if illegal commands are dumped in S2API.

Signed-off-by: Darron Broad <darron@kewl.org>
Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9170): cx24116: Sanity checking to data input via S2API to the cx24116 demod.
Darron Broad [Fri, 3 Oct 2008 14:47:46 +0000 (11:47 -0300)]
V4L/DVB (9170): cx24116: Sanity checking to data input via S2API to the cx24116 demod.

Add some sanity checking to data input via S2API to the cx24116 demod.
This patch is valid for both s2-mfe and s2.

It was found when testing KAFFEINE with S2API support that invalid
modulation modes amongst other parameters were being delivered to
the demod. In order to debug this sanity checking has been added.

An example session would involve kaffeine setting QAM_AUTO when
querying DVB-T, then later when trying to tune to DVB-S this
cached value would be presented in error.

Signed-off-by: Darron Broad <darron@kewl.org>
Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9169): uvcvideo: Support two new Bison Electronics webcams.
Laurent Pinchart [Sun, 21 Sep 2008 12:06:29 +0000 (09:06 -0300)]
V4L/DVB (9169): uvcvideo: Support two new Bison Electronics webcams.

This adds required quirks for the Compaq Presario B1200 and Acer Travelmate
7720 integrated webcams.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9168): Add support for MSI TV@nywhere Plus remote
Brian Rogers [Mon, 13 Oct 2008 11:37:06 +0000 (08:37 -0300)]
V4L/DVB (9168): Add support for MSI TV@nywhere Plus remote

The IR controller has a couple quirks. It won't respond until some other
device on the bus is probed. To work around that, probe 0x50 first.
Then, since it won't respond to a zero-byte read, probe with a one-byte
read.

Signed-off-by: Brian Rogers <brian_rogers@comcast.net>
[mchehab.redhat.com: Fix merge conflicts and remove an unused var]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB: v4l2-dev: remove duplicated #include
Huang Weiyi [Sun, 12 Oct 2008 12:23:29 +0000 (09:23 -0300)]
V4L/DVB: v4l2-dev: remove duplicated #include

Removed duplicated include "media/cx2341x.h" in
drivers/media/video/cx23885/cx23885-417.c.

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9166): ivtv - Fix potential race condition in yuv handler
Ian Armstrong [Thu, 9 Oct 2008 15:04:23 +0000 (12:04 -0300)]
V4L/DVB (9166): ivtv - Fix potential race condition in yuv handler

Modified yuv register update handling to remove a potential race condition
which could occur with the first video frame.

Also removed a forced yuv position update, since changing the source video
dimensions or interlace settings doesn't affect the frame already being
displayed.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9165): ivtv: V4L2_FBUF_FLAG_OVERLAY status fix
Ian Armstrong [Mon, 6 Oct 2008 06:06:08 +0000 (03:06 -0300)]
V4L/DVB (9165): ivtv: V4L2_FBUF_FLAG_OVERLAY status fix

When the framebuffer format was queried via VIDIOC_G_FBUF,
V4L2_FBUF_FLAG_OVERLAY would only be correctly returned for certain screen
depths.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9164): ivtvfb: a small cosmetic change
Ian Armstrong [Mon, 6 Oct 2008 06:03:18 +0000 (03:03 -0300)]
V4L/DVB (9164): ivtvfb: a small cosmetic change

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9163): ivtvfb: fix sparse warnings and improve write function
Ian Armstrong [Sat, 4 Oct 2008 13:28:24 +0000 (10:28 -0300)]
V4L/DVB (9163): ivtvfb: fix sparse warnings and improve write function

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9162): ivtv: fix raw/sliced VBI mixup
Hans Verkuil [Sat, 4 Oct 2008 11:05:30 +0000 (08:05 -0300)]
V4L/DVB (9162): ivtv: fix raw/sliced VBI mixup

The service_set field was used in saa7115 and cx25840 to determine
whether raw or sliced VBI was desired. This is incorrect since it is
perfectly valid to select sliced VBI with a service_set of 0.

Instead these drivers should checked on VIDIOC_S_FMT whether the type
field matches the raw or sliced VBI type.

Updated ivtv accordingly.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9160): v4l: remove vidioc_enum_fmt_vbi_cap
Hans Verkuil [Fri, 3 Oct 2008 14:42:07 +0000 (11:42 -0300)]
V4L/DVB (9160): v4l: remove vidioc_enum_fmt_vbi_cap

Remove the vidioc_enum_fmt_vbi_cap ops: it was scheduled for removal in
2.6.28 since the v4l2 specification says that V4L2_BUF_TYPE_VBI_CAPTURE should
not support VIDIOC_ENUM_FMT. It's also pretty pointless.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9159): saa5249: fix compile errors
Hans Verkuil [Tue, 30 Sep 2008 06:14:02 +0000 (03:14 -0300)]
V4L/DVB (9159): saa5249: fix compile errors

Add missing include.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (9157): cx18/ivtv: add 'PCI:' prefix to bus_info.
Hans Verkuil [Mon, 8 Sep 2008 19:59:02 +0000 (16:59 -0300)]
V4L/DVB (9157): cx18/ivtv: add 'PCI:' prefix to bus_info.

Suggested by Martin Dauskardt. This is conform what the other drivers do.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
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>