GitHub/MotorolaMobilityLLC/kernel-slsi.git
15 years agoV4L/DVB (10944): Conceptronic CTVFMI2 PCI Id
Robert Millan [Wed, 11 Mar 2009 11:18:53 +0000 (08:18 -0300)]
V4L/DVB (10944): Conceptronic CTVFMI2 PCI Id

My BTTV_BOARD_CONCEPTRONIC_CTVFMI2 card wasn't auto-detected, here's a patch
that adds its PCI id.

lspci -nnv output:

05:06.0 Multimedia video controller [0400]: Brooktree Corporation Bt878 Video Capture [109e:036e] (rev 11)
05:06.1 Multimedia controller [0480]: Brooktree Corporation Bt878 Audio Capture [109e:0878] (rev 11)

Press <break> within 3 seconds if this is wrong.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10943): cx88: Prevent general protection fault on rmmod
Jean Delvare [Sat, 7 Mar 2009 10:42:12 +0000 (07:42 -0300)]
V4L/DVB (10943): cx88: Prevent general protection fault on rmmod

When unloading the cx8800 driver I sometimes get a general protection
fault. Analysis revealed a race in cx88_ir_stop(). It can be solved by
using a delayed work instead of a timer for infrared input polling.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10940): saa6588: Prevent general protection fault on rmmod
Jean Delvare [Sat, 7 Mar 2009 10:44:12 +0000 (07:44 -0300)]
V4L/DVB (10940): saa6588: Prevent general protection fault on rmmod

The removal of the timer which polls the infrared input is racy.
Replacing the timer with a delayed work solves the problem.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10939): ir-kbd-i2c: Prevent general protection fault on rmmod
Jean Delvare [Sat, 7 Mar 2009 10:43:43 +0000 (07:43 -0300)]
V4L/DVB (10939): ir-kbd-i2c: Prevent general protection fault on rmmod

The removal of the timer which polls the infrared input is racy.
Replacing the timer with a delayed work solves the problem.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10938): em28xx: Prevent general protection fault on rmmod
Jean Delvare [Sat, 7 Mar 2009 10:43:01 +0000 (07:43 -0300)]
V4L/DVB (10938): em28xx: Prevent general protection fault on rmmod

The removal of the timer which polls the infrared input is racy.
Replacing the timer with a delayed work solves the problem.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10934): zoran: replace functions names in strings with __func__
Trent Piepho [Wed, 11 Mar 2009 02:28:33 +0000 (23:28 -0300)]
V4L/DVB (10934): zoran: replace functions names in strings with __func__

It reduces the size of the driver over all, and the function names in
strings need to be manually kept up to date while __func__ doesn't.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10933): zoran: Pass zoran_fh pointers instead of file pointers
Trent Piepho [Wed, 11 Mar 2009 02:28:31 +0000 (23:28 -0300)]
V4L/DVB (10933): zoran: Pass zoran_fh pointers instead of file pointers

Many functions had a struct file pointer argument, but all they wants is
the struct zoran_fh pointer from the file's private data.  Since every
caller of those functions already has the zoran_fh, just pass the that
instead.  This saves a dereference in each function change.

While I'm at it, change the code formatting of affected functions to be
kernel standard style.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10932): zoran: Don't frighten users with failed buffer allocation
Jean Delvare [Wed, 11 Mar 2009 02:28:20 +0000 (23:28 -0300)]
V4L/DVB (10932): zoran: Don't frighten users with failed buffer allocation

kmalloc() can fail for large video buffers. By default the kernel
complains loudly about allocation failures, but we don't want to
frighten the user, so ask kmalloc() to keep quiet on such failures.

Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10931): zoran: Drop the lock_norm module parameter
Jean Delvare [Wed, 11 Mar 2009 02:28:17 +0000 (23:28 -0300)]
V4L/DVB (10931): zoran: Drop the lock_norm module parameter

The lock_norm module parameter doesn't look terribly useful. If you
don't want to change the norm, just don't change it. As a matter of
fact, no other v4l driver has such a parameter.

Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10930): zoran: Unify buffer descriptors
Trent Piepho [Wed, 11 Mar 2009 02:28:16 +0000 (23:28 -0300)]
V4L/DVB (10930): zoran: Unify buffer descriptors

The zoran driver had two kinds of buffer descriptors, one for jpg buffers
and one for raw buffers.  They were mostly the same with only a couple

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10927): dib0700: add support for Hauppauge ATSC MiniCard
Michael Krufky [Mon, 19 Jan 2009 04:12:55 +0000 (01:12 -0300)]
V4L/DVB (10927): dib0700: add support for Hauppauge ATSC MiniCard

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10926): saa7134: enable digital tv support for Hauppauge WinTV-HVR1120
Michael Krufky [Mon, 19 Jan 2009 04:10:49 +0000 (01:10 -0300)]
V4L/DVB (10926): saa7134: enable digital tv support for Hauppauge WinTV-HVR1120

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10925): add support for LG Electronics LGDT3305 ATSC/QAM-B Demodulator
Michael Krufky [Tue, 13 Jan 2009 07:40:36 +0000 (04:40 -0300)]
V4L/DVB (10925): add support for LG Electronics LGDT3305 ATSC/QAM-B Demodulator

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10924): saa7134: enable serial transport streaming interface
Michael Krufky [Tue, 13 Jan 2009 07:03:26 +0000 (04:03 -0300)]
V4L/DVB (10924): saa7134: enable serial transport streaming interface

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10923): saa7134: fix typo in product name
Michael Krufky [Tue, 10 Mar 2009 20:02:07 +0000 (17:02 -0300)]
V4L/DVB (10923): saa7134: fix typo in product name

replace occurances of "HVR1150" with "HVR1120" - this was a typo.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10921): msp3400: remove obsolete V4L1 code
Hans Verkuil [Tue, 10 Mar 2009 13:42:44 +0000 (10:42 -0300)]
V4L/DVB (10921): msp3400: remove obsolete V4L1 code

There are no drivers left that call msp3400 with V4L1 commands. Remove it
from this driver.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10920): v4l2-ioctl: fix partial-copy code.
Hans Verkuil [Sun, 8 Mar 2009 13:35:23 +0000 (10:35 -0300)]
V4L/DVB (10920): v4l2-ioctl: fix partial-copy code.

The code to optimize the usercopy only checked the ioctl NR field. However,
this code is also called for non-V4L2 ioctls (either private or ioctls from
linux/dvb/audio.h and linux/dvb/video.h for decoder drivers like ivtv).

If such an ioctl has the same NR as a V4L2 ioctl, then disaster strikes.

Modified the code to check on the full command ID.

Thanks to Martin Dauskardt for tracing the ivtv breakage to this particular
change.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10919): tlv320aic23b: use v4l2-i2c-drv.h instead of drv-legacy.h
Hans Verkuil [Sat, 7 Mar 2009 16:10:43 +0000 (13:10 -0300)]
V4L/DVB (10919): tlv320aic23b: use v4l2-i2c-drv.h instead of drv-legacy.h

This driver isn't used in any legacy mode, so no need for v4l2-i2c-drv-legacy.h.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10914): v4l2: fix compile warnings when printing u64 value.
Hans Verkuil [Fri, 6 Mar 2009 13:15:01 +0000 (10:15 -0300)]
V4L/DVB (10914): v4l2: fix compile warnings when printing u64 value.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10912): vivi: fix compile warning.
Hans Verkuil [Fri, 6 Mar 2009 12:58:12 +0000 (09:58 -0300)]
V4L/DVB (10912): vivi: fix compile warning.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10910): videodev2.h: remove deprecated VIDIOC_G_CHIP_IDENT_OLD
Hans Verkuil [Fri, 6 Mar 2009 12:55:42 +0000 (09:55 -0300)]
V4L/DVB (10910): videodev2.h: remove deprecated VIDIOC_G_CHIP_IDENT_OLD

As announced VIDIOC_G_CHIP_IDENT_OLD is now removed for 2.6.30.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10909): tvmixer: remove last remaining references to this deleted module.
Hans Verkuil [Fri, 6 Mar 2009 12:29:09 +0000 (09:29 -0300)]
V4L/DVB (10909): tvmixer: remove last remaining references to this deleted module.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10907): avoid loading the entire videodev.h header on V4L2 drivers
Mauro Carvalho Chehab [Tue, 10 Mar 2009 08:31:34 +0000 (05:31 -0300)]
V4L/DVB (10907): avoid loading the entire videodev.h header on V4L2 drivers

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10870a): remove all references for video_decoder.h
Mauro Carvalho Chehab [Tue, 10 Mar 2009 08:02:28 +0000 (05:02 -0300)]
V4L/DVB (10870a): remove all references for video_decoder.h

changeset 04934e44e3784a1b969582e2d59afcec278470c6 removed the last implementation
that were still using the V4L1 obsoleted header.
Now, video_decoder.h is not used anymore by any driver.

Let's remove it and all references for it in Kernel.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10905): dib0700: enable DVB_FE_CUSTOMISE for dibcom frontends
Michael Krufky [Tue, 10 Mar 2009 04:21:14 +0000 (01:21 -0300)]
V4L/DVB (10905): dib0700: enable DVB_FE_CUSTOMISE for dibcom frontends

There was never any build-time dependency of the dib0700 usb module on the
dib0070 tuner module. Now that the build-time dependencies of dib0700 on
dib3000mc, dib7000p and dib7000m have been removed in the previous changesets,
we can enable DVB_FE_CUSTOMISE for these modules under config DVB_USB_DIB0700

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10904): remove dib0070_ctrl_agc_filter from dib0070.h
Michael Krufky [Mon, 9 Mar 2009 05:39:58 +0000 (02:39 -0300)]
V4L/DVB (10904): remove dib0070_ctrl_agc_filter from dib0070.h

This function prototype is defined but the function itself does not exist.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10903): cleanup linewraps in dib3000mc.h
Michael Krufky [Tue, 10 Mar 2009 03:53:57 +0000 (00:53 -0300)]
V4L/DVB (10903): cleanup linewraps in dib3000mc.h

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10902): cleanup linewraps in dib7000m.h
Michael Krufky [Mon, 9 Mar 2009 05:37:55 +0000 (02:37 -0300)]
V4L/DVB (10902): cleanup linewraps in dib7000m.h

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10901): cleanup linewraps in dib7000p.h
Michael Krufky [Mon, 9 Mar 2009 05:29:01 +0000 (02:29 -0300)]
V4L/DVB (10901): cleanup linewraps in dib7000p.h

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10900): remove build-time dependencies on dib3000mc
Michael Krufky [Mon, 9 Mar 2009 03:59:09 +0000 (00:59 -0300)]
V4L/DVB (10900): remove build-time dependencies on dib3000mc

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10899): remove build-time dependencies on dib7000p
Michael Krufky [Mon, 9 Mar 2009 03:04:17 +0000 (00:04 -0300)]
V4L/DVB (10899): remove build-time dependencies on dib7000p

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10898): remove build-time dependencies on dib7000m
Michael Krufky [Mon, 9 Mar 2009 03:03:25 +0000 (00:03 -0300)]
V4L/DVB (10898): remove build-time dependencies on dib7000m

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10897): Fix Kbuild MEDIA_TUNER_CUSTOMIZE dependencies
Mauro Carvalho Chehab [Tue, 10 Mar 2009 05:30:23 +0000 (02:30 -0300)]
V4L/DVB (10897): Fix Kbuild MEDIA_TUNER_CUSTOMIZE dependencies

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10896): /frontends/Kconfig: Move af9013 Kconfig option to its proper place
Mauro Carvalho Chehab [Tue, 10 Mar 2009 03:49:58 +0000 (00:49 -0300)]
V4L/DVB (10896): /frontends/Kconfig: Move af9013 Kconfig option to its proper place

af9013 is not a development tool. It is, instead, a DVB-T module.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10894): ISA radio drivers: improve kernel log message
Hans Verkuil [Mon, 9 Mar 2009 11:11:21 +0000 (08:11 -0300)]
V4L/DVB (10894): ISA radio drivers: improve kernel log message

It's much nicer if the log message tells you which io ports are possible,
rather than having to run modinfo or look it up in the source or manual.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10893): radio-zoltrix: convert to v4l2_device.
Hans Verkuil [Fri, 6 Mar 2009 16:55:34 +0000 (13:55 -0300)]
V4L/DVB (10893): radio-zoltrix: convert to v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10892): radio-typhoon: convert to v4l2_device.
Hans Verkuil [Fri, 6 Mar 2009 16:54:52 +0000 (13:54 -0300)]
V4L/DVB (10892): radio-typhoon: convert to v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10891): radio-trust: convert to v4l2_device.
Hans Verkuil [Fri, 6 Mar 2009 16:54:23 +0000 (13:54 -0300)]
V4L/DVB (10891): radio-trust: convert to v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10890): radio-terratec: convert to v4l2_device.
Hans Verkuil [Fri, 6 Mar 2009 16:53:58 +0000 (13:53 -0300)]
V4L/DVB (10890): radio-terratec: convert to v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10889): radio-sf16fmr2: convert to v4l2_device.
Hans Verkuil [Fri, 6 Mar 2009 16:53:26 +0000 (13:53 -0300)]
V4L/DVB (10889): radio-sf16fmr2: convert to v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10888): radio-sf16fmi: convert to v4l2_device.
Hans Verkuil [Fri, 6 Mar 2009 16:52:34 +0000 (13:52 -0300)]
V4L/DVB (10888): radio-sf16fmi: convert to v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10887): radio-rtrack2: convert to v4l2_device.
Hans Verkuil [Fri, 6 Mar 2009 16:52:06 +0000 (13:52 -0300)]
V4L/DVB (10887): radio-rtrack2: convert to v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10886): radio-maxiradio: convert to v4l2_device.
Hans Verkuil [Fri, 6 Mar 2009 16:51:33 +0000 (13:51 -0300)]
V4L/DVB (10886): radio-maxiradio: convert to v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10885): radio-maestro: convert to v4l2_device.
Hans Verkuil [Fri, 6 Mar 2009 16:51:08 +0000 (13:51 -0300)]
V4L/DVB (10885): radio-maestro: convert to v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10884): radio-gemtek: convert to v4l2_device.
Hans Verkuil [Fri, 6 Mar 2009 16:50:42 +0000 (13:50 -0300)]
V4L/DVB (10884): radio-gemtek: convert to v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10883): radio-gemtek-pci: convert to v4l2_device.
Hans Verkuil [Fri, 6 Mar 2009 16:50:07 +0000 (13:50 -0300)]
V4L/DVB (10883): radio-gemtek-pci: convert to v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10882): radio-cadet: convert to v4l2_device.
Hans Verkuil [Fri, 6 Mar 2009 16:48:47 +0000 (13:48 -0300)]
V4L/DVB (10882): radio-cadet: convert to v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10881): radio-aztech: convert to v4l2_device.
Hans Verkuil [Fri, 6 Mar 2009 16:48:18 +0000 (13:48 -0300)]
V4L/DVB (10881): radio-aztech: convert to v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10880): radio-aimslab: convert to v4l2_device.
Hans Verkuil [Fri, 6 Mar 2009 16:45:27 +0000 (13:45 -0300)]
V4L/DVB (10880): radio-aimslab: convert to v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10877): saa7134: add analog support for Hauppauge HVR1110r3 boards
Michael Krufky [Sat, 28 Feb 2009 20:45:17 +0000 (17:45 -0300)]
V4L/DVB (10877): saa7134: add analog support for Hauppauge HVR1110r3 boards

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10876): tda18271: add support for AGC configuration via tuner callback
Michael Krufky [Wed, 4 Mar 2009 22:42:06 +0000 (19:42 -0300)]
V4L/DVB (10876): tda18271: add support for AGC configuration via tuner callback

The tda827x driver supports a feature that the tda18271 driver was lacking
until now.  This patch adds support for device-level configuration via the
tuner callback configuration interface.

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10874): w9968cf/ovcamchip: convert to v4l2_subdev.
Hans Verkuil [Sun, 8 Mar 2009 13:19:44 +0000 (10:19 -0300)]
V4L/DVB (10874): w9968cf/ovcamchip: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10873): w9968cf: add v4l2_device.
Hans Verkuil [Sun, 8 Mar 2009 09:56:19 +0000 (06:56 -0300)]
V4L/DVB (10873): w9968cf: add v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10871): stv0900: delete debug messages not related to stv0900 tuning algorythm
Igor M. Liplianin [Fri, 6 Mar 2009 22:32:54 +0000 (19:32 -0300)]
V4L/DVB (10871): stv0900: delete debug messages not related to stv0900 tuning algorythm

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10870): v4l2-ioctl: get rid of video_decoder.h
Mauro Carvalho Chehab [Tue, 10 Mar 2009 01:16:42 +0000 (22:16 -0300)]
V4L/DVB (10870): v4l2-ioctl: get rid of video_decoder.h

The V4L1 obsoleted header video_decoder.h is not used anymore by any driver. Only
a name decoding function at v4l2-ioctl still implements it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10868): vino: add note that this conversion is untested.
Hans Verkuil [Fri, 6 Mar 2009 15:15:08 +0000 (12:15 -0300)]
V4L/DVB (10868): vino: add note that this conversion is untested.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10867): vino: fold i2c-algo-sgi code into vino.
Jean Delvare [Fri, 6 Mar 2009 15:05:43 +0000 (12:05 -0300)]
V4L/DVB (10867): vino: fold i2c-algo-sgi code into vino.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10866): saa7191, indycam: remove compat code.
Hans Verkuil [Wed, 18 Feb 2009 22:23:43 +0000 (19:23 -0300)]
V4L/DVB (10866): saa7191, indycam: remove compat code.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10865): vino: convert to v4l2_subdev.
Hans Verkuil [Wed, 18 Feb 2009 22:18:26 +0000 (19:18 -0300)]
V4L/DVB (10865): vino: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10864): vino: introduce v4l2_device.
Hans Verkuil [Wed, 18 Feb 2009 21:53:47 +0000 (18:53 -0300)]
V4L/DVB (10864): vino: introduce v4l2_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10863): saa7191: convert to v4l2_subdev.
Hans Verkuil [Fri, 13 Feb 2009 22:58:12 +0000 (19:58 -0300)]
V4L/DVB (10863): saa7191: convert to v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10862): indycam: convert to v4l2_subdev
Hans Verkuil [Fri, 13 Feb 2009 22:38:10 +0000 (19:38 -0300)]
V4L/DVB (10862): indycam: convert to v4l2_subdev

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10861): vino/indycam/saa7191: convert to i2c modules to V4L2.
Hans Verkuil [Fri, 27 Feb 2009 12:05:10 +0000 (09:05 -0300)]
V4L/DVB (10861): vino/indycam/saa7191: convert to i2c modules to V4L2.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10860): saa7191: convert to v4l2-i2c-drv-legacy.h
Hans Verkuil [Fri, 13 Feb 2009 10:31:05 +0000 (07:31 -0300)]
V4L/DVB (10860): saa7191: convert to v4l2-i2c-drv-legacy.h

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10859): vino: minor renames
Hans Verkuil [Thu, 12 Feb 2009 14:31:13 +0000 (11:31 -0300)]
V4L/DVB (10859): vino: minor renames

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10858): vino: convert to video_ioctl2.
Hans Verkuil [Thu, 12 Feb 2009 13:32:50 +0000 (10:32 -0300)]
V4L/DVB (10858): vino: convert to video_ioctl2.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10856): cx18: Add interlock so sliced VBI insertion only happens for an...
Andy Walls [Mon, 2 Mar 2009 02:10:07 +0000 (23:10 -0300)]
V4L/DVB (10856): cx18: Add interlock so sliced VBI insertion only happens for an MPEG PS

The cx18 private packet insertion code only expects to operate on an MPEG PS
when inserting private packets of sliced VBI data.  This patch keeps the cx18
driver from corrupting the MPEG TS or other non-PS stream types, in case the
user enables sliced VBI insertion for these MPEG stream types.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10855): cx18: Fix VPS service register codes
Andy Walls [Sun, 1 Mar 2009 02:06:08 +0000 (23:06 -0300)]
V4L/DVB (10855): cx18: Fix VPS service register codes

Based on a documentation clarification from Conexant, fix the register code
used for sliced VBI VPS service.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10854): cx18: Correct comments about vertical and horizontal blanking timings
Andy Walls [Sat, 28 Feb 2009 23:13:50 +0000 (20:13 -0300)]
V4L/DVB (10854): cx18: Correct comments about vertical and horizontal blanking timings

This change only affects comments.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10853): cx18: Fix s-parse warnings and a logic error about extracting the...
Andy Walls [Sat, 28 Feb 2009 21:48:27 +0000 (18:48 -0300)]
V4L/DVB (10853): cx18: Fix s-parse warnings and a logic error about extracting the VBI PTS

My s-parse builds never griped about be32_to_cpu() casting to __be32, but Hans'
builds did.  This change explictly declares the pointer into the VBI buffer
header as __be32, which is the correct thing to do as the data is always
big endian when we go to fetch it.  Hopefully this will quiet s-parse warnings.
Also corrected a misplaced parenthesis logic error in checking for the VBI
header magic number.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10852): cx18: Include cx18-audio.h in cx18-audio.c to eliminate s-parse...
Andy Walls [Sat, 28 Feb 2009 19:42:51 +0000 (16:42 -0300)]
V4L/DVB (10852): cx18: Include cx18-audio.h in cx18-audio.c to eliminate s-parse warning

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10851): cx18: Fix a video scaling check problem introduced by sliced VBI...
Andy Walls [Sat, 28 Feb 2009 17:51:47 +0000 (14:51 -0300)]
V4L/DVB (10851): cx18: Fix a video scaling check problem introduced by sliced VBI changes

Fix a scaling check that was failing, due to a magic number I missed fixing
during previous slice VBI changes.  Now

  $ v4l2-ctl -v width=480,height=480,pixelformat=MPEG

yields proper visual results again.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10850): cx18: Use strlcpy() instead of strncpy() for temp eeprom i2c_client...
Andy Walls [Sat, 28 Feb 2009 16:19:45 +0000 (13:19 -0300)]
V4L/DVB (10850): cx18: Use strlcpy() instead of strncpy() for temp eeprom i2c_client setup

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10848): zoran: Change first argument to zoran_v4l2_buffer_status
Trent Piepho [Thu, 5 Mar 2009 11:02:05 +0000 (08:02 -0300)]
V4L/DVB (10848): zoran: Change first argument to zoran_v4l2_buffer_status

It was a struct file *, but all that function wants is the struct zoran_fh
from the file's private data.  Since every caller already has this, just
pass the zoran_fh instead.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10846): dvb/frontends: fix duplicate 'debug' symbol
Randy Dunlap [Mon, 9 Mar 2009 02:01:08 +0000 (23:01 -0300)]
V4L/DVB (10846): dvb/frontends: fix duplicate 'debug' symbol

Fix dvb frontend debug variable to be static, to avoid linker
errors:

drivers/built-in.o:(.data+0xf4b0): multiple definition of `debug'
arch/x86/kernel/built-in.o:(.kprobes.text+0x90): first defined here
ld: Warning: size of symbol `debug' changed from 85 in arch/x86/kernel/built-in.o to 4 in drivers/built-in.o

It would also be Good if arch/x86/kernel/entry_32.S didn't have a
non-static 'debug' symbol.  OTOH, it helps catch things like this one.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10843): saa7146: Clean-up i2c error handling
Oliver Endriss [Sat, 28 Feb 2009 13:35:48 +0000 (10:35 -0300)]
V4L/DVB (10843): saa7146: Clean-up i2c error handling

saa7146: Clean-up i2c error handling

Simplify i2c error handling and fix incorrect handling of
address errors in poll mode.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10842): Adds some missing frontend selects for saa7134 and dvb-usb
Mauro Carvalho Chehab [Sun, 8 Mar 2009 16:11:31 +0000 (13:11 -0300)]
V4L/DVB (10842): Adds some missing frontend selects for saa7134 and dvb-usb

Some dvb frontends are required on some boards, but those dependencies
were missed.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10840): em28xx-dvb: Remove an unused header
Mauro Carvalho Chehab [Sun, 8 Mar 2009 15:55:29 +0000 (12:55 -0300)]
V4L/DVB (10840): em28xx-dvb: Remove an unused header

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10838): get rid of the other occurrences of DVB_FE_CUSTOMIZE typo
Mauro Carvalho Chehab [Sun, 8 Mar 2009 11:02:53 +0000 (08:02 -0300)]
V4L/DVB (10838): get rid of the other occurrences of DVB_FE_CUSTOMIZE typo

There are still more places where DVB_FE_CUSTOMIZE is used, instead of
DVB_FE_CUSTOMISE.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10837): Kconfig: only open the customise menu if selected
Mauro Carvalho Chehab [Fri, 6 Mar 2009 11:31:39 +0000 (08:31 -0300)]
V4L/DVB (10837): Kconfig: only open the customise menu if selected

Instead of asking a lot of questions for the poor users, let's just hide
the frontend customise menu, if the user doesn't want to customise.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10836): Kconfig: replace DVB_FE_CUSTOMIZE to DVB_FE_CUSTOMISE
Mauro Carvalho Chehab [Fri, 6 Mar 2009 11:25:35 +0000 (08:25 -0300)]
V4L/DVB (10836): Kconfig: replace DVB_FE_CUSTOMIZE to DVB_FE_CUSTOMISE

The name of the option is DVB_FE_CUSTOMISE. However, on a few places, a wrong
name were used, due to a typo (DVB_FE_CUSTOMIZE).

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10835): Kconfig: Add some missing selects for a required frontends
Mauro Carvalho Chehab [Fri, 6 Mar 2009 11:06:24 +0000 (08:06 -0300)]
V4L/DVB (10835): Kconfig: Add some missing selects for a required frontends

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10833): em28xx: enable Compro VideoMate ForYou sound
Vitaly Wool [Wed, 4 Mar 2009 11:27:52 +0000 (08:27 -0300)]
V4L/DVB (10833): em28xx: enable Compro VideoMate ForYou sound

Compro VideoMate uses an external audio DSP chip, controlled via tvaudio
module (tda9874a). This patch improves em28xx infrastructure to support
an external audio processor and fixes the Compro VideoMate entry to work
with it.

Signed-off-by: Vitaly Wool <vital@embeddedalley.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10830): dm1105: uses ir_* functions, select VIDEO_IR
Randy Dunlap [Wed, 4 Mar 2009 16:57:04 +0000 (13:57 -0300)]
V4L/DVB (10830): dm1105: uses ir_* functions, select VIDEO_IR

dm1105 uses the ir_*() functions, so it needs to select VIDEO_IR
to avoid build errors:

dm1105.c:(.text+0x26b7ac): undefined reference to `ir_input_keydown'
dm1105.c:(.text+0x26b7bc): undefined reference to `ir_input_nokey'
(.devinit.text+0x29982): undefined reference to `ir_codes_dm1105_nec'
(.devinit.text+0x2998a): undefined reference to `ir_input_init'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10829): Support alternate resolutions for sq905
Adam Baker [Tue, 3 Mar 2009 23:20:47 +0000 (20:20 -0300)]
V4L/DVB (10829): Support alternate resolutions for sq905

Add support for the alternate resolutions offered by SQ-905 based cameras. As
well as 320x240 all cameras can do 160x120 and some can do 640x480.

Signed-off-by: Adam Baker <linux@baker-net.org.uk>
Signed-off-by: Theodore Kilgore <kilgota@auburn.edu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10827): Add support for GeoVision GV-800(S)
Bruno Christo [Tue, 3 Mar 2009 01:38:59 +0000 (22:38 -0300)]
V4L/DVB (10827): Add support for GeoVision GV-800(S)

I have a GeoVision GV-800(S) card, it has 4 CONEXANT BT878A chips.
It has 16 video inputs and 4 audio inputs, and it is almost identical
to the GV-800, as seen on http://bttv-gallery.de .
The only difference appears to be the analog mux, it has a CD22M3494
in place of the MT8816AP. The card has a blue PCB, as seen in this
picture: http://www.gsbr.com.br/imagem/kits/GeoVision%20GV%20800.jpg .

This card wasn't originally supported, and it was detected as
UNKNOWN/GENERIC. The video inputs weren't working, so I tried
"forcing" a few cards like the GeoVision GV-600, but there was still
no video. So I made a patch to support this card, based on the Kodicom
4400r.

The GV-800(S) is identified as follows:

...
02:00.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:00.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:04.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:04.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:08.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:08.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)
02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio
Capture (rev 11)

...
02:00.0 0400: 109e:036e (rev 11)
       Subsystem: 800a:763d
       Flags: bus master, medium devsel, latency 32, IRQ 10
       Memory at cdfff000 (32-bit, prefetchable) [size=4K]
       Capabilities: [44] Vital Product Data <?>
       Capabilities: [4c] Power Management version 2
       Kernel modules: bttv

02:00.1 0480: 109e:0878 (rev 11)
       Subsystem: 800a:763d
       Flags: bus master, medium devsel, latency 32, IRQ 10
       Memory at cdffe000 (32-bit, prefetchable) [size=4K]
       Capabilities: [44] Vital Product Data <?>
       Capabilities: [4c] Power Management version 2

02:04.0 0400: 109e:036e (rev 11)
       Subsystem: 800b:763d
       Flags: bus master, medium devsel, latency 32, IRQ 10
       Memory at cdffd000 (32-bit, prefetchable) [size=4K]
       Capabilities: [44] Vital Product Data <?>
       Capabilities: [4c] Power Management version 2
       Kernel modules: bttv

02:04.1 0480: 109e:0878 (rev 11)
       Subsystem: 800b:763d
       Flags: bus master, medium devsel, latency 32, IRQ 10
       Memory at cdffc000 (32-bit, prefetchable) [size=4K]
       Capabilities: [44] Vital Product Data <?>
       Capabilities: [4c] Power Management version 2

02:08.0 0400: 109e:036e (rev 11)
       Subsystem: 800c:763d
       Flags: bus master, medium devsel, latency 32, IRQ 10
       Memory at cdffb000 (32-bit, prefetchable) [size=4K]
       Capabilities: [44] Vital Product Data <?>
       Capabilities: [4c] Power Management version 2
       Kernel modules: bttv

02:08.1 0480: 109e:0878 (rev 11)
       Subsystem: 800c:763d
       Flags: bus master, medium devsel, latency 32, IRQ 10
       Memory at cdffa000 (32-bit, prefetchable) [size=4K]
       Capabilities: [44] Vital Product Data <?>
       Capabilities: [4c] Power Management version 2

02:0c.0 0400: 109e:036e (rev 11)
       Subsystem: 800d:763d
       Flags: bus master, medium devsel, latency 32, IRQ 10
       Memory at cdff9000 (32-bit, prefetchable) [size=4K]
       Capabilities: [44] Vital Product Data <?>
       Capabilities: [4c] Power Management version 2
       Kernel modules: bttv

02:0c.1 0480: 109e:0878 (rev 11)
       Subsystem: 800d:763d
       Flags: bus master, medium devsel, latency 32, IRQ 10
       Memory at cdff8000 (32-bit, prefetchable) [size=4K]
       Capabilities: [44] Vital Product Data <?>
       Capabilities: [4c] Power Management version 2

As you can see, the GV-800(S) card is almost identical to the GV-800
on bttv-gallery, so this patch might also work for that card. If not,
only a few changes should be required on the gv800s_write() function.

After this patch, the video inputs work correctly on linux 2.6.24 and
2.6.27 using the software 'motion'. The input order may seem a little
odd, but it's the order the original software/driver uses, and I decided
to keep that order to get the most out of the card.

I tried to get the audio working with the snd-bt87x module, but I only
get noise from every audio input, even after selecting a different mux
with alsamixer. Also, after trying to play sound from those sources, I
randomly get a RISC error about an invalid RISC opcode, and then that
output stops working. I also can't change the sampling rate when
recording. Any pointers to adding audio support are welcome.

Signed-off-by: Bruno Christo <bchristo@inf.ufsm.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10826): cx88: Add IR support to pcHDTV HD3000 & HD5500
Erik S. Beiser [Sun, 1 Mar 2009 01:29:20 +0000 (22:29 -0300)]
V4L/DVB (10826): cx88: Add IR support to pcHDTV HD3000 & HD5500

cx88: Add IR support to pcHDTV HD3000 & HD5500

Signed-off-by: Erik S. Beiser <erikb@bu.edu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10825): Add ids for Yuan PD378S DVB adapter
Pascal Terjan [Thu, 26 Feb 2009 13:31:41 +0000 (10:31 -0300)]
V4L/DVB (10825): Add ids for Yuan PD378S DVB adapter

Signed-off-by: Arnaud Patard <apatard@mandriva.com>
Signed-off-by: Pascal Terjan <pterjan@mandriva.com>
Cc: Patrick Boettcher <patrick.boettcher@desy.de>
[mchehab@redhat.com: Fixed a small merge conflict]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10824): Add "Sony PlayTV" to dibcom driver
sebastian.blanes@gmail.com [Tue, 24 Feb 2009 17:51:43 +0000 (14:51 -0300)]
V4L/DVB (10824): Add "Sony PlayTV" to dibcom driver

This patch introduces support for DVB-T for the following dibcom based card:
  Sony PlayTV (USB-ID: 1415:0003)

Signed-off-by: Sebastián Blanes <sebastian.blanes@gmail.com>
Cc: Patrick Boettcher <patrick.boettcher@desy.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10823): saa7134: add DVB support for Avermedia A700 cards
Matthias Schwarzott [Tue, 24 Feb 2009 15:35:16 +0000 (12:35 -0300)]
V4L/DVB (10823): saa7134: add DVB support for Avermedia A700 cards

Add DVB support for Avermedia DVB-S Pro and
Avermedia DVB-S Hybrid+FM card both labled A700.

They use zl10313 demod (driver mt312) and zl10036 tuner.

[mchehab@redhat.com: change __FUNCTION__ into __func__]
Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10822): Add support for Zarlink ZL10036 DVB-S tuner.
Matthias Schwarzott [Tue, 24 Feb 2009 15:35:15 +0000 (12:35 -0300)]
V4L/DVB (10822): Add support for Zarlink ZL10036 DVB-S tuner.

This driver is based on initial work by Tino Reichardt and was heavily changed.
The datasheet of the zl10036 can be found here and on other places on the net:

http://www.mcmilk.de/projects/dvb-card/datasheets/ZL10036.pdf

The zl10038 is similar to the zl10036, so it is maybe possible to write a common
driver of necessary.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10820): meye: Don't need to zero ioctl parameter fields
Trent Piepho [Wed, 4 Mar 2009 04:21:03 +0000 (01:21 -0300)]
V4L/DVB (10820): meye: Don't need to zero ioctl parameter fields

The v4l2 core code in v4l2_ioctl will zero out the structure the driver is
supposed to fill in for read-only ioctls.  For read/write ioctls, all the
fields which aren't supplied from userspace will be zeroed out.

Zeroing code is removed from querycap, enum_input, enum_fmt_vid_cap, and
g_fmt_vid_cap.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10819): gspca: Don't need to zero ioctl parameter fields
Trent Piepho [Wed, 4 Mar 2009 04:21:03 +0000 (01:21 -0300)]
V4L/DVB (10819): gspca: Don't need to zero ioctl parameter fields

The v4l2 core code in v4l2_ioctl will zero out the structure the driver is
supposed to fill in for read-only ioctls.  For read/write ioctls, all the
fields which aren't supplied from userspace will be zeroed out.

Zeroing code is removed from g_audio, enum_input, g_parm and gmbuf.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10818): usbvision: Don't need to zero ioctl parameter fields
Trent Piepho [Wed, 4 Mar 2009 04:21:03 +0000 (01:21 -0300)]
V4L/DVB (10818): usbvision: Don't need to zero ioctl parameter fields

The v4l2 core code in v4l2_ioctl will zero out the structure the driver is
supposed to fill in for read-only ioctls.  For read/write ioctls, all the
fields which aren't supplied from userspace will be zeroed out.

Zeroing code is removed from g_audio, queryctrl, and enum_fmt_vid_cap.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10817): stkwebcam: Don't need to zero ioctl parameter fields
Trent Piepho [Wed, 4 Mar 2009 04:21:03 +0000 (01:21 -0300)]
V4L/DVB (10817): stkwebcam: Don't need to zero ioctl parameter fields

The v4l2 core code in v4l2_ioctl will zero out the structure the driver is
supposed to fill in for read-only ioctls.  For read/write ioctls, all the
fields which aren't supplied from userspace will be zeroed out.

Zeroing code is removed from enum_fmt_vid_cap, g_fmt_vid_cap, and g_parm.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10816): cx88: Don't need to zero ioctl parameter fields
Trent Piepho [Wed, 4 Mar 2009 04:21:03 +0000 (01:21 -0300)]
V4L/DVB (10816): cx88: Don't need to zero ioctl parameter fields

The v4l2 core code in v4l2_ioctl will zero out the structure the driver is
supposed to fill in for read-only ioctls.  For read/write ioctls, all the
fields which aren't supplied from userspace will be zeroed out.

Zeroing code is removed from enum_input and g_tuner.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10815): bttv: Don't need to zero ioctl parameter fields
Trent Piepho [Wed, 4 Mar 2009 04:21:03 +0000 (01:21 -0300)]
V4L/DVB (10815): bttv: Don't need to zero ioctl parameter fields

The v4l2 core code in v4l2_ioctl will zero out the structure the driver is
supposed to fill in for read-only ioctls.  For read/write ioctls, all the
fields which aren't supplied from userspace will be zeroed out.

Zeroing code is removed from enum_input and g_tuner.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10814): saa7146: some small fixes
Trent Piepho [Wed, 4 Mar 2009 04:21:03 +0000 (01:21 -0300)]
V4L/DVB (10814): saa7146: some small fixes

vidioc_enum_fmt_vid_overlay() did nothing but call
vidioc_enum_fmt_vid_cap(), so just make
saa7146_video_ioctl_ops.vidioc_enum_fmt_vid_overlay point to
vidioc_enum_fmt_vid_cap() and get ride of vidioc_enum_fmt_vid_overlay().

Have gparm use v4l2_video_std_frame_period to fill in the frame period
instead of just assuming PAL.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10813): v4l2: New function v4l2_video_std_frame_period
Trent Piepho [Wed, 4 Mar 2009 04:21:02 +0000 (01:21 -0300)]
V4L/DVB (10813): v4l2: New function v4l2_video_std_frame_period

Some code was calling v4l2_video_std_construct() when all it cared about
was the frame period.  So make a function that just returns that and have
v4l2_video_std_construct() use it.

At this point there are no users of v4l2_video_std_construct() left outside
of v4l2-ioctl, so it could be un-exported and made static.

Change v4l2_video_std_construct() so that it doesn't zero out the struct
v4l2_standard passed in.  It's already been zeroed out in the common ioctl
code.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10812): v4l2: Zero out read-only ioctls in one place
Trent Piepho [Wed, 4 Mar 2009 04:21:02 +0000 (01:21 -0300)]
V4L/DVB (10812): v4l2: Zero out read-only ioctls in one place

If an ioctl is read-only then the driver fills in all the fields.  Lots of
times drivers only care about some fields so it's best if video_ioctl2
takes care of zeroing out the entire structure before handing it to the
driver.  This saves code in each driver to do it and driver authors often
forget.

The existing memset code in some of the read-only ioctl handlers
can be deleted.

Convert a case statement to a single if statement.

Deleted a debug line from ENUMAUDOUT that was copy-and-pasted to G_AUDOUT
by mistake.

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