firefly-linux-kernel-4.4.55.git
15 years agoV4L/DVB (12584): Support for Kaiser Baas ExpressCard Dual HD Tuner
James A Webb [Tue, 4 Aug 2009 05:38:05 +0000 (02:38 -0300)]
V4L/DVB (12584): Support for Kaiser Baas ExpressCard Dual HD Tuner

The card is reported as YUAN High-Tech Development Co., Ltd STK7700D

[mchehab@redhat.com: fix merge conflicts and properly name USB PID]
Cc: Patrick Boettcher <patrick.boettcher@desy.de>
Signed-off-by: James A Webb <jamesawebb@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12583): firedtv: combine some debug logging code
Stefan Richter [Sat, 1 Aug 2009 11:05:16 +0000 (08:05 -0300)]
V4L/DVB (12583): firedtv: combine some debug logging code

Shrinks source and kernel object size a bit.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12582): The current AVC debugging can clog the log down a lot since many
Henrik Kurelid [Sat, 1 Aug 2009 11:04:06 +0000 (08:04 -0300)]
V4L/DVB (12582): The current AVC debugging can clog the log down a lot since many

applications tend to check the signal strength very often.  This patch
enables users to select which AVC messages to log using a bitmask.  In
addition, it also enables the possibility to debug application PMTs sent
to the driver.  This will be usable since the CA support is still poorly
tested for lots of CAMs and CA systems.

Signed-off-by: Henrik Kurelid <henrik@kurelid.se>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12578): tda18271: allow drivers to request RF tracking filter calibration...
Michael Krufky [Thu, 27 Aug 2009 19:58:06 +0000 (16:58 -0300)]
V4L/DVB (12578): tda18271: allow drivers to request RF tracking filter calibration during attach

On certain master / slave dual tuner configurations, tuning performance
improves when the RF tracking filter calibration is performed sequentially.

This patch allows for the bridge driver to specify this behavior in the
configuration structure at attach-time.

The "cal" module option will continue to override this attach-time
configuration: set cal=0 to prevent RF tracking filter calibration
on startup, and set cal=1 to force it.

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Reviewed-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12577): tda18271: remove excess whitespace from tda_foo printk macros
Michael Krufky [Thu, 27 Aug 2009 01:43:16 +0000 (22:43 -0300)]
V4L/DVB (12577): tda18271: remove excess whitespace from tda_foo printk macros

remove excess spacing from the tda_foo printk macros & line things up better

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12576): tda18271: simplify debug printk macros
Michael Krufky [Thu, 27 Aug 2009 01:43:16 +0000 (22:43 -0300)]
V4L/DVB (12576): tda18271: simplify debug printk macros

Rename dprintk to tda_dprintk to be consistent with the other tda_foo macros.

Move KERN_DEBUG facility level to tda_dprintk.

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12575): Fix test of bandwidth range in cx22700_set_tps()
Roel Kluin [Thu, 27 Aug 2009 01:13:43 +0000 (22:13 -0300)]
V4L/DVB (12575): Fix test of bandwidth range in cx22700_set_tps()

For the bandwidth to be less than 8 MHZ and greater than 6 MHZ is logically
impossible.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12574): support AverMedia Studio 505
Vasiliy Temnikov [Thu, 27 Aug 2009 01:10:55 +0000 (22:10 -0300)]
V4L/DVB (12574): support AverMedia Studio 505

Added support to AverMedia Studio 505

[dougsland@redhat.com: fixed rejects and removed the change to add dk as default secam variant]
[mchehab@redhat.com: fix a few CodingStyle issues]
Signed-off-by: Vasiliy Temnikov <vaka@newmail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12573): FM1216MK5 FM radio
Dmitri Belimov [Thu, 27 Aug 2009 01:06:28 +0000 (22:06 -0300)]
V4L/DVB (12573): FM1216MK5 FM radio

Implement Philips FM1216MK5.

1. Implement get_stereo function.
2. Add correct data byte for FM radio mode

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12567): ir-keymaps: use KEY_CAMERA for snapshots
Mauro Carvalho Chehab [Sat, 29 Aug 2009 12:48:21 +0000 (09:48 -0300)]
V4L/DVB (12567): ir-keymaps: use KEY_CAMERA for snapshots

KEY_CAMERA is already used for a long time with webcam drivers to take a picture.
On other media drivers, due to the lack of a snapshot button, random KEY codes
were sent, being KEY_SHUFFLE the most used one, probably due to cut-and-paste
from other remotes, since one of them uses the same key for snapshot and shuffle.

The better is to use KEY_CAMERA on all drivers solving this issue. This
follows the IR standard map as defined at:
http://linuxtv.org/wiki/index.php/Remote_Controllers

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12566): ir-keymaps: Fix IR mappings for channel and volume +/- keys
Mauro Carvalho Chehab [Sat, 29 Aug 2009 12:37:00 +0000 (09:37 -0300)]
V4L/DVB (12566): ir-keymaps: Fix IR mappings for channel and volume +/- keys

Use standard definitions for channel controls, as defined at:
http://linuxtv.org/wiki/index.php/Remote_Controllers

While here, fix a few broken up/down/left/right mappings

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12565): ir-keymaps: standardize timeshift key
Mauro Carvalho Chehab [Sat, 29 Aug 2009 12:06:07 +0000 (09:06 -0300)]
V4L/DVB (12565): ir-keymaps: standardize timeshift key

Each remote were using a different keycode for timeshift. Use the same
keycode for all of them, using the map as defined at:
http://linuxtv.org/wiki/index.php/Remote_Controllers

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12564): ir-keymaps: Replace most KEY_[A-Z] to the proper definitions
Mauro Carvalho Chehab [Sat, 29 Aug 2009 12:01:54 +0000 (09:01 -0300)]
V4L/DVB (12564): ir-keymaps: Replace most KEY_[A-Z] to the proper definitions

There are several IR's that were using IR to type a letter that it is
known by some random application. Instead, the better is to use
the standard definitions found at:
http://linuxtv.org/wiki/index.php/Remote_Controllers

And, if needed, submit a patch for the application to understand the
media keys.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12563): ir-keymaps: add a link to the IR standard layout page
Mauro Carvalho Chehab [Sat, 29 Aug 2009 11:43:20 +0000 (08:43 -0300)]
V4L/DVB (12563): ir-keymaps: add a link to the IR standard layout page

While we're still discussing it, let's point to the wiki page. In
the future, this should be added at V4L2 API spec DocBooks.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12562): ir-keymaps: replace KEY_KP[0-9] to KEY_[0-9]
Mauro Carvalho Chehab [Sat, 29 Aug 2009 11:37:58 +0000 (08:37 -0300)]
V4L/DVB (12562): ir-keymaps: replace KEY_KP[0-9] to KEY_[0-9]

This is needed to match the standard mapping defined at:
http://linuxtv.org/wiki/index.php/Remote_Controllers#Remote_Controllers

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12560): Fix a number of EXPORT_SYMBOL warnings
Mauro Carvalho Chehab [Thu, 27 Aug 2009 12:54:44 +0000 (09:54 -0300)]
V4L/DVB (12560): Fix a number of EXPORT_SYMBOL warnings

Make Checkpatch tool happy:

-:2349: WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable

On all cases, it were just a blank line at the wrong place. Yet, fixing it is trivial

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12559): Properly indent comments with tabs
Mauro Carvalho Chehab [Thu, 27 Aug 2009 12:50:21 +0000 (09:50 -0300)]
V4L/DVB (12559): Properly indent comments with tabs

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12558): CodingStyle: Use [0x0f] instead of [ 0x0f ]
Mauro Carvalho Chehab [Thu, 27 Aug 2009 12:31:30 +0000 (09:31 -0300)]
V4L/DVB (12558): CodingStyle: Use [0x0f] instead of [ 0x0f ]

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12557): Use C99 comment CodingStyle
Mauro Carvalho Chehab [Thu, 27 Aug 2009 12:28:48 +0000 (09:28 -0300)]
V4L/DVB (12557): Use C99 comment CodingStyle

The ir-keymaps.c has frequent additions. As people tend to copy an old
keyboard entry, a bad CodingStyle at an ancient entry may result on a
freshly bad CodingStyle patch.

So, better to fix the CodingStyle for the entire file.

This patch is the first of a series of patches fixing it, generated by
some perl magic plus manual handling.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12554): FM TX: si4713: Add document file
Eduardo Valentin [Sat, 8 Aug 2009 12:01:34 +0000 (09:01 -0300)]
V4L/DVB (12554): FM TX: si4713: Add document file

This patch adds a document file for si4713 device driver.
It describes the driver interfaces and organization.

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12553): FM TX: si4713: Add Kconfig and Makefile entries
Hans Verkuil [Sat, 8 Aug 2009 12:00:37 +0000 (09:00 -0300)]
V4L/DVB (12553): FM TX: si4713: Add Kconfig and Makefile entries

Simply add Makefile and Kconfig entries.

[hverkuil@xs4all.nl: auto-select I2C_SI4713]
Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12552): FM TX: si4713: Add files to handle si4713 i2c device
Eduardo Valentin [Sat, 8 Aug 2009 11:46:53 +0000 (08:46 -0300)]
V4L/DVB (12552): FM TX: si4713: Add files to handle si4713 i2c device

This patch adds files to control si4713 devices.
Internal functions to control device properties
and initialization procedures are into these files.
Also, a v4l2 subdev interface is also exported.
This way other drivers can use this as v4l2 i2c subdevice.

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12551): FM TX: si4713: Add files to add radio interface for si4713
Eduardo Valentin [Sat, 8 Aug 2009 11:45:49 +0000 (08:45 -0300)]
V4L/DVB (12551): FM TX: si4713: Add files to add radio interface for si4713

This patch adds files which creates the radio interface
for si4713 FM transmitter (modulator) devices.

In order to do the real access to device registers, this
driver uses the v4l2 subdev interface exported by si4713 i2c driver.

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12549): v4l2: video device: Add FM TX controls default configurations
Eduardo Valentin [Tue, 11 Aug 2009 21:49:12 +0000 (18:49 -0300)]
V4L/DVB (12549): v4l2: video device: Add FM TX controls default configurations

This patch adds basic configurations for FM TX extended controls.
That includes controls names, menu strings, pointer identification,
type classification and flags configuration.

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12548): v4l2: video device: Add V4L2_CTRL_CLASS_FM_TX controls
Eduardo Valentin [Sat, 8 Aug 2009 11:38:58 +0000 (08:38 -0300)]
V4L/DVB (12548): v4l2: video device: Add V4L2_CTRL_CLASS_FM_TX controls

This patch adds a new class of extended controls. This class
is intended to support FM Radio Modulators properties such as:
rds, audio limiters, audio compression, pilot tone generation,
tuning power levels and preemphasis properties.

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12547): v4l2-subdev.h: Add g/s_modulator callbacks to subdev api
Eduardo Valentin [Sat, 8 Aug 2009 11:34:18 +0000 (08:34 -0300)]
V4L/DVB (12547): v4l2-subdev.h: Add g/s_modulator callbacks to subdev api

Signed-off-by: Eduardo Valentin <eduardo.valentin@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12543): v4l: introduce string control support.
Hans Verkuil [Tue, 11 Aug 2009 21:47:18 +0000 (18:47 -0300)]
V4L/DVB (12543): v4l: introduce string control support.

The upcoming RDS encoder needs support for string controls. This patch
implements the core implementation.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12492): saa7134-input: don't probe for the Pinnacle remotes anymore
hermann pitton [Thu, 20 Aug 2009 01:30:58 +0000 (22:30 -0300)]
V4L/DVB (12492): saa7134-input: don't probe for the Pinnacle remotes anymore

With the recent improvements we don't need to probe anymore, if we know
the i2c address of the receiver.

The address of the receiver for the remote with the gray buttons is not
confirmed anywhere, but it is very unlikely to see it on something else.

We want to have that information anyway.

BTW, those remaining still probing, please join.

Signed-off-by: hermann pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12491): remove unnecessary power management primitive in stk-webcam
Oliver Neukum [Wed, 19 Aug 2009 19:41:59 +0000 (16:41 -0300)]
V4L/DVB (12491): remove unnecessary power management primitive in stk-webcam

This patch removes an unneeded power management primitive.
Power management is automatically enabled as probe ends.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12490): Report only 32kHz for ALSA
Oldřich Jedlička [Tue, 18 Aug 2009 19:24:54 +0000 (16:24 -0300)]
V4L/DVB (12490): Report only 32kHz for ALSA

There are several reasons:

 - SAA7133/35 uses DDEP (DemDec Easy Programming mode), which works in 32kHz
   only
 - SAA7134 for TV mode uses DemDec mode (32kHz)
 - Radio works in 32kHz only
 - When recording 48kHz from Line1/Line2, switching of capture source to TV
   means switching to 32kHz without any frequency translation

Signed-off-by: Oldřich Jedlička <oldium.pro@seznam.cz>
Acked-by: hermann pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12489): pwc - fix few use-after-free and memory leaks
Dmitry Torokhov [Fri, 14 Aug 2009 05:22:52 +0000 (02:22 -0300)]
V4L/DVB (12489): pwc - fix few use-after-free and memory leaks

I just happen to peek inside the PWC driver and did not like what I saw
there. Please consider applying the patch below.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12488): Add RDS config for BeholdTV cards
Dmitri Belimov [Tue, 11 Aug 2009 00:47:29 +0000 (21:47 -0300)]
V4L/DVB (12488): Add RDS config for BeholdTV cards

Add config of RDS part for the BeholdTV tuners.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12487): Fix control AC-3 of the 6752HS
Dmitri Belimov [Mon, 10 Aug 2009 07:48:16 +0000 (04:48 -0300)]
V4L/DVB (12487): Fix control AC-3 of the 6752HS

Fix error for AC-3 control of the 6752HS MPEG-2 coder.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12486): cx88: fix TBS 8920 card support
Igor M. Liplianin [Wed, 29 Jul 2009 22:18:28 +0000 (19:18 -0300)]
V4L/DVB (12486): cx88: fix TBS 8920 card support

It does matter to set explicitly gpio0 value in
cx88_board structure for TBS 8920 card.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12485): zl10353: correct implementation of FE_READ_UNCORRECTED_BLOCKS
Aleksandr V. Piskunov [Sun, 2 Aug 2009 19:01:19 +0000 (16:01 -0300)]
V4L/DVB (12485): zl10353: correct implementation of FE_READ_UNCORRECTED_BLOCKS

Makes zl10353 a bit more DVB API compliant:
FE_READ_UNCORRECTED_BLOCKS - keep a counter of UNC blocks
FE_GET_FRONTEND - return last set frequency instead of zero

Signed-off-by: Aleksandr V. Piskunov <alexandr.v.piskunov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12483): Use DIV_ROUND_CLOSEST
Julia Lawall [Sat, 1 Aug 2009 19:48:41 +0000 (16:48 -0300)]
V4L/DVB (12483): Use DIV_ROUND_CLOSEST

The kernel.h macro DIV_ROUND_CLOSEST performs the computation (x + d/2)/d
but is perhaps more readable.

The semantic patch that makes this change is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@haskernel@
@@

@depends on haskernel@
expression x,__divisor;
@@

- (((x) + ((__divisor) / 2)) / (__divisor))
+ DIV_ROUND_CLOSEST(x,__divisor)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12482): firedtv: add PID filtering for SW zigzag retune
Henrik Kurelid [Sat, 1 Aug 2009 11:02:38 +0000 (08:02 -0300)]
V4L/DVB (12482): firedtv: add PID filtering for SW zigzag retune

The AVC protocol uses the same command for tuning and PID filtering and
since dvb-core uses a software zigzagging to do automatic retuning this
could cause all PID filters to be cleared.  PID filter information is
now included in all DSD commands to the card.

Background:

There is a problem in the firedtv driver that causes recordings to stop
if the SW zigzag algorithm in dvb-core kicks in with a retune after the
application has set up the PID filters.  Since tuning and setting PID
filters uses the same AVC command (DSD) and only the replace subfunction
is supported by the card, it is not possible to do a retune without
setting the PID filters.  This means that the PID filtering has to be
sent in each tune.

This problem applies to C and T cards since S and S2 cards tune using a
vendor specific command.  The patch corrects the problem by sending the
PID list in each tune.  I have tested it on my T card with a good
result.

How to trigger problem:  Zap to a channel and output AV to a file, e.g.
"tzap -c channels.conf SVT1 -r -o SVT1.ts".  After a short while, pull
the antenna cable from the card.  The lock on the channel will disappear
and the TS file will stop increasing in size. Wait a couple of seconds.
Replug the cable again.  You will get a lock on the channel again, but
the TS file will never increase in size agains sinze no PIDS are
filtered.

Tested with kaffeine with DVB-T and DVB-C:  Fixes retuning after antenna
was plugged out and back in with DVB-T.  Does not fix this with DVB-C,
but also doesn't regress on DVB-C.

Signed-off-by: Henrik Kurelid <henrik@kurelid.se>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12481): Fix lowband tuning with tda8261
Julian Scheel [Fri, 31 Jul 2009 16:40:43 +0000 (13:40 -0300)]
V4L/DVB (12481): Fix lowband tuning with tda8261

Attached is a patch which fixes tuning to low frequency channels with
stb0899+tda8261 cards like the KNC TV-Station DVB-S2.
The cause of the issue was a broken if construct, which should have been
an if/else if, so that the setting for the lowest matching frequency is
applied.

Without this patch for example tuning to "arte" on Astra 19.2, 10744MHz
SR22000 failed most times and when it failed the communication between
driver and tda8261 was completely broken.
This problem disappears with the attached patch.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB: af9015: add new USB ID for KWorld PlusTV Dual DVB-T Stick (DVB-T 399U)
Mart Raudsepp [Fri, 24 Jul 2009 16:45:41 +0000 (13:45 -0300)]
V4L/DVB: af9015: add new USB ID for KWorld PlusTV Dual DVB-T Stick (DVB-T 399U)

Add new USB ID (1b80:e400) for KWorld PlusTV Dual DVB-T Stick (DVB-T 399U).
The model number on the devices sticker label is "KW-DVB-T 399UR".

Signed-off-by: Mart Raudsepp <mart.raudsepp@artecdesign.ee>
Acked-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12478): ARRAY_SIZE changes
Mauro Carvalho Chehab [Wed, 22 Jul 2009 03:02:29 +0000 (00:02 -0300)]
V4L/DVB (12478): ARRAY_SIZE changes

These changes were a direct result of using a semantic patch
More information can be found at http://www.emn.fr/x-info/coccinelle/

[mchehab@redhat.com: fix a merge conflict]
Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12477): Use dst_type field instead of type_flags
Julia Lawall [Tue, 21 Jul 2009 16:47:46 +0000 (13:47 -0300)]
V4L/DVB (12477): Use dst_type field instead of type_flags

It seems from other code that it is the dst_type field rather than the
type_flags field that contains values of the form DST_TYPE_IS...
The type_flags field contains values of the form DST_TYPE_HAS...

The semantic match that finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@ struct dst_state E; @@

(
*E.type_flags ==
  \( DST_TYPE_IS_SAT\|DST_TYPE_IS_TERR\|DST_TYPE_IS_CABLE\|DST_TYPE_IS_ATSC \)
|
*E.type_flags !=
  \( DST_TYPE_IS_SAT\|DST_TYPE_IS_TERR\|DST_TYPE_IS_CABLE\|DST_TYPE_IS_ATSC \)
)
// </smpl>

Cc: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12475): Add support for Humax/Coex DVB-T USB Stick 2.0 High Speed
Nam Phạm Thành [Sun, 12 Jul 2009 14:51:10 +0000 (11:51 -0300)]
V4L/DVB (12475): Add support for Humax/Coex DVB-T USB Stick 2.0 High Speed

This patch adds support for Humax/Coex DVB-T USB Stick 2.0 High Speed
which is a very popular tuner sold in Vietnam.
Tested with at least 3 tuners.

Cc: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Pham Thanh Nam <phamthanhnam.ptn@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12472): hdpvr-control: fix bad whitespaces
Mauro Carvalho Chehab [Thu, 20 Aug 2009 13:20:06 +0000 (10:20 -0300)]
V4L/DVB (12472): hdpvr-control: fix bad whitespaces

It were using 7 spaces instead of tab for indent.

Cc: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12471): stv06xx: fix bad whitespaces
Mauro Carvalho Chehab [Thu, 20 Aug 2009 13:18:29 +0000 (10:18 -0300)]
V4L/DVB (12471): stv06xx: fix bad whitespaces

It were using 7 spaces instead of tab for indent.

Cc: Erik Andren <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12470): cx231xx/cx231xx-conf-reg.h: fix bad whitespaces
Mauro Carvalho Chehab [Thu, 20 Aug 2009 13:15:48 +0000 (10:15 -0300)]
V4L/DVB (12470): cx231xx/cx231xx-conf-reg.h: fix bad whitespaces

It were using 7 spaces instead of tab for indent.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12468): saa7134: Fix bad whitespacing
Mauro Carvalho Chehab [Thu, 20 Aug 2009 13:13:40 +0000 (10:13 -0300)]
V4L/DVB (12468): saa7134: Fix bad whitespacing

The changeset 0b17d0ed that aded ASUSTeK P7131 Analog were using
7 spaces instead of tab, probably due to some bad cut-and-paste.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12466): Kconfig files: Fix improper use of whitespaces
Mauro Carvalho Chehab [Thu, 20 Aug 2009 12:38:44 +0000 (09:38 -0300)]
V4L/DVB (12466): Kconfig files: Fix improper use of whitespaces

On VIDEO_M52790 and USB_GSPCA_SN9C20X, instead of tab, it were
using 7 whitespaces at the beginning, probably due to some
cut-and-paste trouble.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12465): cx88: High resolution timer for Remote Controls
Andrzej Hajda [Thu, 2 Jul 2009 14:50:35 +0000 (11:50 -0300)]
V4L/DVB (12465): cx88: High resolution timer for Remote Controls

Patch solves problem of missed keystrokes on some remote controls,
as reported on http://bugzilla.kernel.org/show_bug.cgi?id=9637 .

Signed-off-by: Andrzej Hajda <andrzej.hajda@wp.pl>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12463): Add support for Compro VideoMate S350 DVB-S PCI card.
Igor M. Liplianin [Fri, 14 Aug 2009 00:42:21 +0000 (21:42 -0300)]
V4L/DVB (12463): Add support for Compro VideoMate S350 DVB-S PCI card.

Add Compro VideoMate S350 DVB-S driver.
The card uses zl10313, zl10039, saa7130 integrated circuits.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12462): Add TeVii S630 USB DVB-S card support.
Igor M. Liplianin [Sat, 20 Jun 2009 12:54:18 +0000 (09:54 -0300)]
V4L/DVB (12462): Add TeVii S630 USB DVB-S card support.

The card includes Intel ce5039(Zarlink zl10039) tuner
and Intel ce6313 (Zarlink zl10313) demod.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12461): Add ce5039(zl10039) tuner support.
Igor M. Liplianin [Sat, 20 Jun 2009 12:51:48 +0000 (09:51 -0300)]
V4L/DVB (12461): Add ce5039(zl10039) tuner support.

The code from Jan D. Louw with some minor changes.
http://article.gmane.org/gmane.linux.drivers.dvb/38163
Tested with TeVii S630 DVB-S USB card by me (Igor)

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12459): gspca - jeilinj: New subdriver for Jeilin chip.
Theodore Kilgore [Mon, 3 Aug 2009 07:13:23 +0000 (04:13 -0300)]
V4L/DVB (12459): gspca - jeilinj: New subdriver for Jeilin chip.

Signed-off-by: Theodore Kilgore <kilgota@auburn.edu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12455): radio-typhoon: remove obsolete RADIO_TYPHOON_PROC_FS config option
Hans Verkuil [Wed, 12 Aug 2009 13:10:20 +0000 (10:10 -0300)]
V4L/DVB (12455): radio-typhoon: remove obsolete RADIO_TYPHOON_PROC_FS config option

Thanks to Robert P.J. Day for finding this.

Thanks-to: Robert P.J. Day <rpjday@crashcourse.ca>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12452): gspca/Kconfig: Fix bad identation for USB_GSPCA_SN9C20X_EVDEV
Mauro Carvalho Chehab [Fri, 14 Aug 2009 04:45:57 +0000 (01:45 -0300)]
V4L/DVB (12452): gspca/Kconfig: Fix bad identation for USB_GSPCA_SN9C20X_EVDEV

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12444): em28xx: add support for Terratec Cinergy Hybrid T USB XS remote...
Devin Heitmueller [Tue, 4 Aug 2009 02:56:51 +0000 (23:56 -0300)]
V4L/DVB (12444): em28xx: add support for Terratec Cinergy Hybrid T USB XS remote control

Add support for the remote control that comes with the Cinergy Hybrid T USB XS

Thanks to Jelle de Jong for providing sample hardware to test with.

Cc: Jelle de Jong <jelledejong@powercraft.nl>
Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12439): cx88: add support for WinFast DTV2000H rev. J
Vlastimil Labsky [Tue, 11 Aug 2009 01:15:54 +0000 (22:15 -0300)]
V4L/DVB (12439): cx88: add support for WinFast DTV2000H rev. J

I updated and simplyfied patch from Zbynek Hrabovsky for recent kernel.
It enables autodetection of card, sound in analog TV , sound in FM radio
and switching between antenna and cable RF input.  Radio tuner still
doesn't work, I don't even know how it works.  Some guys wrote me that FM
radio works with TV tuner used instead of radio part (symlink video0 ->
radio0).

Cc: Gerd Knorr <kraxel@bytesex.org>
Signed-off-by: Vlastimil Labsky <vlasta.labsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12435): strlcpy() will always null terminate the string.
Roel Kluin [Sat, 8 Aug 2009 15:58:52 +0000 (12:58 -0300)]
V4L/DVB (12435): strlcpy() will always null terminate the string.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12434): em28xx: fix empire auto-detect
Douglas Schilling Landgraf [Thu, 6 Aug 2009 15:52:11 +0000 (12:52 -0300)]
V4L/DVB (12434): em28xx: fix empire auto-detect

Fixed eeprom hash table

Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12427): cx24113: fix mips compiler warning
Hans Verkuil [Fri, 7 Aug 2009 08:50:02 +0000 (05:50 -0300)]
V4L/DVB (12427): cx24113: fix mips compiler warning

do_div requires an u64 as the first argument, not a s64.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12426): pvrusb2: fix compile warning
Hans Verkuil [Fri, 7 Aug 2009 08:32:20 +0000 (05:32 -0300)]
V4L/DVB (12426): pvrusb2: fix compile warning

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12423): cxusb, d680 dmbth use unified lgs8gxx code instead of lgs8gl5
David T.L. Wong [Wed, 5 Aug 2009 16:07:10 +0000 (13:07 -0300)]
V4L/DVB (12423): cxusb, d680 dmbth use unified lgs8gxx code instead of lgs8gl5

Use unified lgs8gxx frontend instead of reverse engineered lgs8gl5 frontend.
After this patch, lgs8gl5 frontend could be mark as deprecated.
Future development should base on unified lgs8gxx frontend.

Signed-off-by: David T.L. Wong <davidtlwong@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12421): drivers/media/video/gspca: introduce missing kfree
Julia Lawall [Wed, 5 Aug 2009 01:00:24 +0000 (22:00 -0300)]
V4L/DVB (12421): drivers/media/video/gspca: introduce missing kfree

Error handling code following a kmalloc should free the allocated data.

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12420): saa7134: fix the radio on Avermedia GO 007 FM
hermann pitton [Tue, 4 Aug 2009 23:11:43 +0000 (20:11 -0300)]
V4L/DVB (12420): saa7134: fix the radio on Avermedia GO 007 FM

We have support for radio on saa7133/35/31e cards with tda8290/8275(a)
and 5.5MHz ceramic filter on the bridge chips since a while.

It was previously not tested, if this card supports it too, but the old
"ghost" radio with wrong filters doesn't work anymore.

Thanks go to Pham Thanh Nam and Laszlo Kustan for reporting it working
on that input.

Signed-off-by: hermann pitton <hermann-pitton@arcor.de>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12419): Fix incorrect type of tuner for the BeholdTV H6 card
Beholder Intl. Ltd. Dmitry Belimov [Tue, 4 Aug 2009 23:07:42 +0000 (20:07 -0300)]
V4L/DVB (12419): Fix incorrect type of tuner for the BeholdTV H6 card

Define correct tuner in config. Radio now works fine

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12417): I2C cleanups and version checks
Tobias Lorenz [Mon, 10 Aug 2009 21:44:14 +0000 (18:44 -0300)]
V4L/DVB (12417): I2C cleanups and version checks

The structure and comments of the I2C part have been adopted to fit to the
USB part.

Some additional cleanups and precisements have been made to the version
detection and checking functionality to clearly separate HW/SW/FW version.

Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12416): radio-si470x: add i2c driver for si470x
Joonyoung Shim [Sun, 9 Aug 2009 17:23:35 +0000 (14:23 -0300)]
V4L/DVB (12416): radio-si470x: add i2c driver for si470x

This patch supports i2c interface of si470x. The i2c specific part
exists in radio-si470x-i2c.c file and the common part uses
radio-si470x-common.c file. The '#if defined' is inserted inevitably
because of parts used only si470x usb in the common file.

The current driver version doesn't support the RDS.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12415): radio-si470x: add disconnect check function
Joonyoung Shim [Sun, 9 Aug 2009 17:23:02 +0000 (14:23 -0300)]
V4L/DVB (12415): radio-si470x: add disconnect check function

The si470x_disconnect_check is function to check disconnect state of
radio in common file. The function is implemented in each interface
file.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12414): radio-si470x: change to dev_* macro from printk
Joonyoung Shim [Sun, 9 Aug 2009 17:22:41 +0000 (14:22 -0300)]
V4L/DVB (12414): radio-si470x: change to dev_* macro from printk

This patch is for using dev_* macro instead of printk.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12413): radio-si470x: separate common and usb code
Joonyoung Shim [Sun, 9 Aug 2009 17:22:20 +0000 (14:22 -0300)]
V4L/DVB (12413): radio-si470x: separate common and usb code

This patch is a preceding work to add the i2c interface of si470x.
The si470x directory includes a common file and usb specific file and
header file.
The part unrelated with usb interface and i2c interface exists in
radio-si470x-common.c file, and The usb specific part exists in
radio-si470x-usb.c file.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
[tobias.lorenz@gmx.net: Small changes, due to new include "linux/smp_lock.h"]
Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12408): em28xx: Implement g/s_register via address match
Mauro Carvalho Chehab [Sun, 9 Aug 2009 22:39:23 +0000 (19:39 -0300)]
V4L/DVB (12408): em28xx: Implement g/s_register via address match

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12396): [patch] Added Support for STK7700D (DVB)
Pete Hildebrandt [Wed, 5 Aug 2009 14:46:38 +0000 (11:46 -0300)]
V4L/DVB (12396): [patch] Added Support for STK7700D (DVB)

This patch adds support for the STK7700D USB-DVB-Device.

lsusb identifies it as:
idVendor           0x1164 YUAN High-Tech Development Co., Ltd
idProduct          0x1efc
 iProduct                2 STK7700D

The device is build into a Samsung R55-T5500 notebook.

Signed-off-by: Pete Hildebrandt <send2ph@googlemail.com>
Signed-off-by: Patrick Boettcher <pboettcher@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12388): dvb-usb: fix tuning with Cinergy T2
Eberhard Mattes [Sun, 2 Aug 2009 18:44:37 +0000 (15:44 -0300)]
V4L/DVB (12388): dvb-usb: fix tuning with Cinergy T2

cinergyInitialize param.flags.

Signed-off-by: Eberhard Mattes <eberhard.mattes@web.de>
Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12383): gspca - vc032x: Bad h/v flip controls when inverted by default.
Jean-Francois Moine [Sun, 2 Aug 2009 09:56:47 +0000 (06:56 -0300)]
V4L/DVB (12383): gspca - vc032x: Bad h/v flip controls when inverted by default.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12382): gspca - main: Remove vidioc_s_std().
Marton Nemeth [Wed, 29 Jul 2009 08:01:54 +0000 (05:01 -0300)]
V4L/DVB (12382): gspca - main: Remove vidioc_s_std().

The vidioc_s_std() is not necessary when vdev->tvnorms == 0.

Signed-off-by: Marton Nemeth <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12379): uvcvideo: Multiple streaming interfaces support
Laurent Pinchart [Wed, 1 Jul 2009 23:24:47 +0000 (20:24 -0300)]
V4L/DVB (12379): uvcvideo: Multiple streaming interfaces support

Restructure the UVC descriptors parsing code to handle multiple streaming
interfaces. The driver now creates a uvc_video_chain instance for each chain
detected in the UVC control interface descriptors, and tries to register one
video device per streaming endpoint.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12378): uvcvideo: Restructure the driver to support multiple simultaneous...
Laurent Pinchart [Sun, 28 Jun 2009 11:37:50 +0000 (08:37 -0300)]
V4L/DVB (12378): uvcvideo: Restructure the driver to support multiple simultaneous streams.

As a first step towards multiple streaming interfaces support, reorganize the
driver's data structures to cleanly separate video control and video streaming
data.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12376): em28xx: fix V4L2 API compliance: don't expose audio inputs for devic...
Mauro Carvalho Chehab [Tue, 4 Aug 2009 22:52:37 +0000 (19:52 -0300)]
V4L/DVB (12376): em28xx: fix V4L2 API compliance: don't expose audio inputs for devices without it

V4L2 API (chapter 1.5) states that:

Drivers must implement all input ioctls when the device has one
or more inputs, all output ioctls when the device has one or more outputs.
When the device has any audio inputs or outputs the driver must set the
V4L2_CAP_AUDIO flag in the struct v4l2_capability returned by the
VIDIOC_QUERYCAP ioctl.

So, devices without audio input should return -EINVAL.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12373): hdpvr: fix lock imbalances
Jiri Slaby [Thu, 30 Jul 2009 23:00:44 +0000 (20:00 -0300)]
V4L/DVB (12373): hdpvr: fix lock imbalances

There are many lock imbalances in this driver. Fix all found.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12372): saa7134: fix lock imbalance
Jiri Slaby [Tue, 28 Jul 2009 14:56:33 +0000 (11:56 -0300)]
V4L/DVB (12372): saa7134: fix lock imbalance

There seems to be one superfluos unlock in a poll function. Remove it.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12370): v4l doc: fix cqcam source code path
Mhayk Whandson [Tue, 28 Jul 2009 14:53:20 +0000 (11:53 -0300)]
V4L/DVB (12370): v4l doc: fix cqcam source code path

Fixed the c-qcam source code path in the linux kernel tree.

Signed-off-by: Mhayk Whandson <eu@mhayk.com.br>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12369): stv680: kfree called before usb_kill_urb
Oliver Neukum [Tue, 28 Jul 2009 14:52:10 +0000 (11:52 -0300)]
V4L/DVB (12369): stv680: kfree called before usb_kill_urb

The irq handler will touch memory. Even in the error case some URBs may
complete. Thus no memory must be kfreed before all URBs are killed.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12368): ir-kbd-i2c: Add support for Z8F0811/Hauppage IR transceivers
Andy Walls [Tue, 28 Jul 2009 14:50:14 +0000 (11:50 -0300)]
V4L/DVB (12368): ir-kbd-i2c: Add support for Z8F0811/Hauppage IR transceivers

This patch adds support for Zilog Z8F0811 IR transceiver chips on
CX2341[68] based boards to ir-kbd-i2c for both the old i2c binding model
and the new i2c binding model.

Signed-off-by: Andy Walls <awalls@radix.net>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12367): cx18: Add i2c initialization for Z8F0811/Hauppage IR transceivers
Andy Walls [Tue, 28 Jul 2009 14:48:18 +0000 (11:48 -0300)]
V4L/DVB (12367): cx18: Add i2c initialization for Z8F0811/Hauppage IR transceivers

This patch add support to the cx18 driver for setting up the
Z8F0811/Hauppauge IR Tx/Rx chip with the i2c binding model in newer
kernels.

Signed-off-by: Andy Walls <awalls@radix.net>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12366): ir-kbd-i2c: Allow use of ir-kdb-i2c internal get_key funcs and set...
Andy Walls [Tue, 28 Jul 2009 14:44:05 +0000 (11:44 -0300)]
V4L/DVB (12366): ir-kbd-i2c: Allow use of ir-kdb-i2c internal get_key funcs and set ir_type

This patch augments the init data passed by bridge drivers to
ir-kbd-i2c, so that the ir_type can be set explicitly, and so
ir-kbd-i2c internal get_key functions can be reused without
requiring symbols from ir-kbd-i2c in the bridge driver.

Signed-off-by: Andy Walls <awalls@radix.net>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12365): ir-kbd-i2c: Remove superfulous inlines
Jean Delvare [Tue, 28 Jul 2009 14:41:35 +0000 (11:41 -0300)]
V4L/DVB (12365): ir-kbd-i2c: Remove superfulous inlines

Functions which are referenced by their address can't be inlined by
definition.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12360): au0828: fix typo: dvb uses bulk xfer, dont say isoc in debug
Michael Krufky [Mon, 27 Jul 2009 20:35:59 +0000 (17:35 -0300)]
V4L/DVB (12360): au0828: fix typo: dvb uses bulk xfer, dont say isoc in debug

The au0828-dvb driver uses bulk usb transfers for digital transport,
but the debug reports, "iso xfer already running!\n".

Fix this to report bulk instead of isoc.

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12358): gspca - main: Memorize the current alt before setting it
Jean-Francois Moine [Tue, 28 Jul 2009 07:38:25 +0000 (04:38 -0300)]
V4L/DVB (12358): gspca - main: Memorize the current alt before setting it

This prevents a loop if a permanent error occurs in usb_set_interface().

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12357): gspca - tv8532: Bad ISOC packet scan
Hans de Goede [Tue, 28 Jul 2009 07:28:45 +0000 (04:28 -0300)]
V4L/DVB (12357): gspca - tv8532: Bad ISOC packet scan

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12356): gspca - sonixj: Webcam 0c45:6148 added
Denis Loginov [Tue, 28 Jul 2009 06:39:10 +0000 (03:39 -0300)]
V4L/DVB (12356): gspca - sonixj: Webcam 0c45:6148 added

Signed-off-by: Denis Loginov <dinvlad@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12355): gspca - vc032x: Cleanup source
Jean-Francois Moine [Mon, 27 Jul 2009 09:28:37 +0000 (06:28 -0300)]
V4L/DVB (12355): gspca - vc032x: Cleanup source

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12354): gspca - vc032x: H and V flip controls added for mi13x0_soc sensors
Jean-Francois Moine [Mon, 27 Jul 2009 09:00:03 +0000 (06:00 -0300)]
V4L/DVB (12354): gspca - vc032x: H and V flip controls added for mi13x0_soc sensors

Also, H/V flip default values adjusted according to the webcam IDs.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12353): gspca - vc032x: Add the 1280x960 resolution for sensor mi1310_soc
Jean-Francois Moine [Mon, 27 Jul 2009 08:52:27 +0000 (05:52 -0300)]
V4L/DVB (12353): gspca - vc032x: Add the 1280x960 resolution for sensor mi1310_soc

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12352): gspca - vc032x: Fix mi1310_soc preview and LED
AceLan Kao [Mon, 27 Jul 2009 08:43:55 +0000 (05:43 -0300)]
V4L/DVB (12352): gspca - vc032x: Fix mi1310_soc preview and LED

The patches
gspca - vc032x: Add resolution 1280x1024 for sensor mi1310_soc.
gspca - vc032x: Webcam 041e:405b added and mi1310_soc updated.
will make the preview function not work, so I disable the 1280x1024 resolution
and revert back to the origin mi1310_soc settings.
And, using USB snoop tool on Windows to get the correct i2c commands to
turn on/off the LED flash.

Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12351): gspca - sn9c20x: Misc fixes
Brian Johnson [Thu, 23 Jul 2009 08:55:43 +0000 (05:55 -0300)]
V4L/DVB (12351): gspca - sn9c20x: Misc fixes

* use i2c_w instead of reg_w
* return error on failure
* read the correct number of bytes

Signed-off-by: Brian Johnson <brijohn@gmail.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12347): cx25840: Bugfix for no DVB-T on the Hauppauge HVR-1700
Steven Toth [Thu, 23 Jul 2009 15:18:54 +0000 (12:18 -0300)]
V4L/DVB (12347): cx25840: Bugfix for no DVB-T on the Hauppauge HVR-1700

After the i2c subdev changes the ordering of initialization changed,
causing a total loss of previous GPIO settings and a loss of DTV.
The generic firmware loading routine has now changed to preserve
GPIO values if the device is cx23885 based (safety) and I've
moved the GPIO configuration from probe() into the cx23885 init
func which is a little clearer and fixes the bug.

Tested-by: Sohail Syyed <linuxtv@hubstar.net>
Reviewed-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12345): em28xx: fix audio VIDIOC_S_CTRL adjustments on devices without ac97
Mauro Carvalho Chehab [Wed, 29 Jul 2009 04:42:02 +0000 (01:42 -0300)]
V4L/DVB (12345): em28xx: fix audio VIDIOC_S_CTRL adjustments on devices without ac97

Even devices without ac97 needs to call analog audio setup function, to
properly set xclk and mute/unmute.

Thanks to Angelo Cano <acano@fastmail.fm> for reporting and testing it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12343): Stop defining I2C adapter IDs nobody uses
Jean Delvare [Fri, 19 Jun 2009 19:56:56 +0000 (16:56 -0300)]
V4L/DVB (12343): Stop defining I2C adapter IDs nobody uses

There is no point in defining I2C adapter IDs when no code is using
them. As this field might go away in the future, stop using it when
we don't need to.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12342): af9015: avoid magically sized temporary buffer in eeprom_dump
Jan Nikitenko [Mon, 27 Jul 2009 22:05:19 +0000 (19:05 -0300)]
V4L/DVB (12342): af9015: avoid magically sized temporary buffer in eeprom_dump

Replace printing to magically sized temporary buffer with use
of KERN_CONT for continual printing of eeprom registers dump.

Since deb_info is defined as dprintk, which is conditionally defined
to printk without additional parameters, meaning that deb_info is equivalent
to direct printk (without adding KERN_ facility), we can use KERN_DEBUG and
KERN_CONT in there, eliminating the need for sprintf into temporary buffer
with not easily readable/magical size.

Though it's strange, that deb_info definition uses printk without KERN_
facility and callers don't use it either.

Signed-off-by: Jan Nikitenko <jan.nikitenko@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12336): ivtv: Fix improper GPIO audio mux input switch on video standard...
Andy Walls [Thu, 23 Jul 2009 00:24:53 +0000 (21:24 -0300)]
V4L/DVB (12336): ivtv: Fix improper GPIO audio mux input switch on video standard change

Remove the subdev_s_std() method from the GPIO subdev.  It appears it was
used in the past to effect the switch back from radio mode to tuner mode,
but it had a side effect that is improper and against the V4L2 spec, when
you were not in radio mode.  Whenever the video stanadrd was changed, the
GPIO audio mux was set back to the tuner audio input, even if you were set
to a Line In input.

Thanks to Ravi A. for doing the troubleshooting to point me right to the
problem.

Reported-by: Ravi A <asvravi@gmail.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (12335): ivtv: Fix errors in AVerTV M113 card definitions and add a new M113...
Andy Walls [Thu, 23 Jul 2009 00:15:58 +0000 (21:15 -0300)]
V4L/DVB (12335): ivtv: Fix errors in AVerTV M113 card definitions and add a new M113 card

Tested-by: Ravi A. <asvravi@gmail.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>