platform/kernel/linux-rpi.git
15 years agoV4L/DVB (11808): au0828: get rid of debug printk that was causing compile failures
Devin Heitmueller [Fri, 15 May 2009 02:38:51 +0000 (23:38 -0300)]
V4L/DVB (11808): au0828: get rid of debug printk that was causing compile failures

Remove a debug printk() line I added which is no longer needed, and happened
to be causing compile failures on some earlier kernels in Han's daily
compile report.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11807): cx88: remove xc5000 reset for Pinnacle 800i
Devin Heitmueller [Fri, 15 May 2009 00:50:36 +0000 (21:50 -0300)]
V4L/DVB (11807): cx88: remove xc5000 reset for Pinnacle 800i

According to the engineer at PCTV Systems, the xc5000 reset pin is supposed
to be on GPIO12.  However, despite three nights of effort, pulling that GPIO
low didn't reset the xc5000.  While pulling MO_SRST_IO low does reset the
xc5000, this also resets in the s5h1409 being reset as well.  This causes
tuning to always fail since the internal state of the s5h1409 does not match
the driver's state.

Given that the only two conditions in which the driver performs a reset is
during firmware load and powering down the chip, I am taking out the reset.
We know that the chip is being reset when the cx88 comes online, and not being
able to do power management for this board is better than not having any
tuning at all.

Problem discovered when implementing proper power management for the xc5000,
which results in calls to the reset callback *after* s5h1409 is initialized.

Cc: Steven Toth <stoth@kernellabs.com>
Cc: Chaogui Zhang <czhang1974@gmail.com>
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11806): xc5000: add copyright line
Devin Heitmueller [Fri, 15 May 2009 00:31:11 +0000 (21:31 -0300)]
V4L/DVB (11806): xc5000: add copyright line

Add copyright line for xc5000.c.

Cc: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11805): au0828: send command to power down tuner when done with analog
Devin Heitmueller [Wed, 6 May 2009 23:54:00 +0000 (20:54 -0300)]
V4L/DVB (11805): au0828: send command to power down tuner when done with analog

Make sure the au0828 issues the command to power down the tuner when the
user is done using analog support.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11804): xc5000: poll at 5ms interval for register write command completion
Devin Heitmueller [Tue, 5 May 2009 02:29:17 +0000 (23:29 -0300)]
V4L/DVB (11804): xc5000: poll at 5ms interval for register write command completion

Instead of polling at 100ms intervals for register writes, poll at 5ms
intervals.  This is consistent with the xc5000 specification, and improves
tuning time by up to 500 ms on devices that such as the au0828 which do not
properly implement i2c clock stretching (since the five register writes that
occur for a tuning request often do not complete immediately but do complete
far before 100ms has gone by).

The net amount of time we wait before timing out is unchanged (500ms).

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11803): xc5000: add support for DVB-T tuning
David T.L. Wong [Tue, 5 May 2009 01:59:58 +0000 (22:59 -0300)]
V4L/DVB (11803): xc5000: add support for DVB-T tuning

This patch adds XC5000 supports for DVB-T 6MHz and 8MHz bandwidth.

Signed-off-by: David T.L. Wong <davidtlwong@gmail.com>
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11802): xc5000: switch to new xc5000 firmware 1.6.114 with redistribution...
Devin Heitmueller [Tue, 5 May 2009 01:04:20 +0000 (22:04 -0300)]
V4L/DVB (11802): xc5000: switch to new xc5000 firmware 1.6.114 with redistribution rights

Xceive has graciously allowed us to now freely redistribute the xc5000
firmware, which eliminates the need for users to manually extract the blob
from the Hauppauge driver.

Thanks to Brian Mathews <bmathews@xceive.com> for providing this code

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11801): dib0700: reduce xc5000 sleep time for Pinnacle 801e to 10ms
Devin Heitmueller [Tue, 5 May 2009 00:57:41 +0000 (21:57 -0300)]
V4L/DVB (11801): dib0700: reduce xc5000 sleep time for Pinnacle 801e to 10ms

According to the xc5000 spec, the reset pin only needs to be held low for 10ms.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11800): tuner-xc2028: show the proper module description for no_poweroff...
Devin Heitmueller [Tue, 28 Apr 2009 19:22:47 +0000 (16:22 -0300)]
V4L/DVB (11800): tuner-xc2028: show the proper module description for no_poweroff option

There was a typo in the module description for the "no_poweroff" option, where the
help was being associated with the "debug" option instead.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11799): xc5000: don't load firmware until a tuning request is made
Devin Heitmueller [Tue, 28 Apr 2009 17:07:14 +0000 (14:07 -0300)]
V4L/DVB (11799): xc5000: don't load firmware until a tuning request is made

Defer loading of the xc5000 firmware until it is actually needed.  This helps
on distros that have hald, which results in the device not being available
for use for around ten seconds in cases where the i2c bus is slow (such as
the HVR-950Q).  Also, the firmware load isn't really useful since we
immediately put the device to sleep afterward, which means a firmware reload
will be required anyway.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11798): xc5000: add "no_poweroff" module option
Devin Heitmueller [Tue, 28 Apr 2009 16:53:38 +0000 (13:53 -0300)]
V4L/DVB (11798): xc5000: add "no_poweroff" module option

Provide for the ability for a user to disable putting the tuner to sleep, in
case he doesn't want to incur the cost of reloading the firmware when starting
up his/her application.  The module options are intentionally identical to
xc3028.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11797): xc5000: cleanup firmware loading messages
Devin Heitmueller [Fri, 3 Apr 2009 01:45:17 +0000 (22:45 -0300)]
V4L/DVB (11797): xc5000: cleanup firmware loading messages

Make it a little more obvious in the dmesg output what is going on during
firmware upload.  This is more important for boards like the HVR-950q that
take nearly seven seconds to do the upload.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11796): xc5000: start using the newer "finerfreq" tuning command
Devin Heitmueller [Fri, 3 Apr 2009 01:40:29 +0000 (22:40 -0300)]
V4L/DVB (11796): xc5000: start using the newer "finerfreq" tuning command

Starting in firmware version 1.1.44, Xceive recommends using the FINERFREQ for
all normal tuning (the doc indicates reg 0x03 should only be used for fast
scanning for channel lock)

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11795): xc5000: add build version to debug info
Devin Heitmueller [Fri, 3 Apr 2009 01:24:38 +0000 (22:24 -0300)]
V4L/DVB (11795): xc5000: add build version to debug info

Expose the firmware build number along with the other version info

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11794): au0828: reduce reset time for xc5000 to 10ms
Devin Heitmueller [Fri, 3 Apr 2009 01:14:51 +0000 (22:14 -0300)]
V4L/DVB (11794): au0828: reduce reset time for xc5000 to 10ms

The xc5000 datasheet indicates that the reset pin only needs to be held low
for 10ms.  Reduce the value accordingly, which speeds up the firmware load
time a bit.

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11793): xc5000: Properly support power down for newer firmware
Devin Heitmueller [Fri, 3 Apr 2009 01:02:39 +0000 (22:02 -0300)]
V4L/DVB (11793): xc5000: Properly support power down for newer firmware

Xceive got rid of the XREG_POWER_DOWN register in later firmware revisions.
Their technical support informed me that the correct way to put the tuner
to sleep is to pull the reset pin (but don't reload the firmware).

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11792): xc5000: switch to new version of Xceive firmware
Devin Heitmueller [Fri, 3 Apr 2009 00:50:11 +0000 (21:50 -0300)]
V4L/DVB (11792): xc5000: switch to new version of Xceive firmware

This switches to a new version of the xc5000 firmware, extracted from the
latest Hauppauge driver.  It includes the support for the XREG_BUSY register
(a lack of which was causing tuning to take 3200ms instead of around 300ms).

Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11791): xc5000: do not sleep after digital tuning
Devin Heitmueller [Sun, 16 Nov 2008 23:48:31 +0000 (20:48 -0300)]
V4L/DVB (11791): xc5000: do not sleep after digital tuning

Don't sleep for 400ms polling the tuner's lock if in digital mode (since the
xc5000 lock status registers appear to only be reliable in analog mode)

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11790): xc5000: restore sleep routine
Devin Heitmueller [Sun, 16 Nov 2008 23:41:07 +0000 (20:41 -0300)]
V4L/DVB (11790): xc5000: restore sleep routine

Bring back the code that puts the xc5000 to sleep.  For the Pinnacle 801e
this results in power consumption at idle dropping from 325ma to 124ma.

If there are *actually* any devices that don't work in this configuration,
they should set dvb_frontend.ops.tuner_ops.sleep to NULL (per mkrufky's
suggestion)

Also, had to make sure we were making sure the firmware was loaded in the
digital version of set_params, or else we end up get i2c errors if the
device is asleep

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11789): xc5000: check xc5000_readreg return value for XC_RESULT_SUCCESS
Devin Heitmueller [Sun, 16 Nov 2008 23:23:19 +0000 (20:23 -0300)]
V4L/DVB (11789): xc5000: check xc5000_readreg return value for XC_RESULT_SUCCESS

Make return value checking for calls to i2c routines explicit.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11788): xc5000: cleanup i2c write routines
Devin Heitmueller [Sun, 16 Nov 2008 23:20:06 +0000 (20:20 -0300)]
V4L/DVB (11788): xc5000: cleanup i2c write routines

Cleanup the i2c write routine, getting rid of a passthrough function with only
one caller

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11787): xc5000: cleanup i2c read routines
Devin Heitmueller [Sun, 16 Nov 2008 23:17:14 +0000 (20:17 -0300)]
V4L/DVB (11787): xc5000: cleanup i2c read routines

This patch centralizes the i2c read functions, and eliminates pass-through
function only called by one caller.

Make reading of xc5000 registers an atomic i2c transaction in case we're on a
multi-master bus.

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11786): xc5000: handle tuner reset failures properly
Devin Heitmueller [Sun, 16 Nov 2008 02:29:11 +0000 (23:29 -0300)]
V4L/DVB (11786): xc5000: handle tuner reset failures properly

Properly handle tuner reset failures (before it was always returning success)

Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11775): tuner: add support Philips MK5 tuner
Dmitri Belimov [Mon, 11 May 2009 11:16:06 +0000 (08:16 -0300)]
V4L/DVB (11775): tuner: add support Philips MK5 tuner

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 (11773): cx23885: clean up struct names for Hauppauge WinTV-HVR127X devices
Michael Krufky [Tue, 12 May 2009 21:53:47 +0000 (18:53 -0300)]
V4L/DVB (11773): cx23885: clean up struct names for Hauppauge WinTV-HVR127X devices

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11772): cx23885: update model matrix for "k2c2" retail boards
Michael Krufky [Tue, 12 May 2009 21:37:35 +0000 (18:37 -0300)]
V4L/DVB (11772): cx23885: update model matrix for "k2c2" retail boards

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11771): cx23885: add DVB-T tuning support for Hauppauge WinTV-HVR1210
Michael Krufky [Tue, 12 May 2009 20:32:17 +0000 (17:32 -0300)]
V4L/DVB (11771): cx23885: add DVB-T tuning support for Hauppauge WinTV-HVR1210

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11770): cx23885: add ATSC/QAM tuning support for Hauppauge WinTV-HVR1255
Michael Krufky [Fri, 8 May 2009 19:05:29 +0000 (16:05 -0300)]
V4L/DVB (11770): cx23885: add ATSC/QAM tuning support for Hauppauge WinTV-HVR1255

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11769): cx23885: add ATSC/QAM tuning support for Hauppauge WinTV-HVR1275
Michael Krufky [Sat, 9 May 2009 01:39:24 +0000 (22:39 -0300)]
V4L/DVB (11769): cx23885: add ATSC/QAM tuning support for Hauppauge WinTV-HVR1275

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11768): cx23885: add ATSC/QAM tuning support for Hauppauge WinTV-HVR1270
Michael Krufky [Mon, 4 May 2009 02:27:02 +0000 (23:27 -0300)]
V4L/DVB (11768): cx23885: add ATSC/QAM tuning support for Hauppauge WinTV-HVR1270

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11767): cx23885: Add preliminary support for the HVR1270
Steven Toth [Sat, 2 May 2009 14:39:46 +0000 (11:39 -0300)]
V4L/DVB (11767): cx23885: Add preliminary support for the HVR1270

The patch means the board will be recognised, and the parts brought
out of reset correctly. This patches depends on the centralized GPIO
patch to be merged. What's missing before the HVR-1270 will function
for DTV? The model# needs to be added to avoid 'unknown model'
output and the LG3305/Tuner need to be attached in cx23885-dvb.c

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11766): cx23885: mark functions encoder_on_port[bc] as static inline
Michael Krufky [Mon, 11 May 2009 16:37:26 +0000 (13:37 -0300)]
V4L/DVB (11766): cx23885: mark functions encoder_on_port[bc] as static inline

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11765): cx23885: Add generic functions for driving GPIO's
Steven Toth [Sat, 2 May 2009 14:29:50 +0000 (11:29 -0300)]
V4L/DVB (11765): cx23885: Add generic functions for driving GPIO's

The GPIO's on the product can be in one of three places. To date we've
mainly used the GPIO's on the bridge itself, and once on the encoder.
Rather than having the complexity of multiple GPIO writes/reads from
isolated placed in the driver we'll route them through this function,
so we can make intelligent decisions about 1) Where the GPIO lives
and 2) Whether it conflicts (based on board) with some other function
to avoid bugs.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11763): dvb-ttpci: Some whitespace adjustments
Oliver Endriss [Thu, 30 Apr 2009 02:25:07 +0000 (23:25 -0300)]
V4L/DVB (11763): dvb-ttpci: Some whitespace adjustments

Some whitespace adjustments.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11762): dvb-ttpci: Fixed return code of av7110_av_start_play
Oliver Endriss [Thu, 30 Apr 2009 02:09:44 +0000 (23:09 -0300)]
V4L/DVB (11762): dvb-ttpci: Fixed return code of av7110_av_start_play

av7110_av_start_play() should return 0 on success.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11761): dvb-ttpci: Fixed VIDEO_SLOWMOTION ioctl
Oliver Endriss [Fri, 24 Apr 2009 02:24:33 +0000 (23:24 -0300)]
V4L/DVB (11761): dvb-ttpci: Fixed VIDEO_SLOWMOTION ioctl

Fixed VIDEO_SLOWMOTION ioctl.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11760): dvb-ttpci: Check transport error indicator flag
Oliver Endriss [Sun, 19 Apr 2009 17:47:01 +0000 (14:47 -0300)]
V4L/DVB (11760): dvb-ttpci: Check transport error indicator flag

Discard PES packet if transport error indicator flag is set.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11759): dvb-ttpci: Add TS replay capability
Oliver Endriss [Fri, 10 Apr 2009 13:20:00 +0000 (10:20 -0300)]
V4L/DVB (11759): dvb-ttpci: Add TS replay capability

Implemented TS replay capability.
audio/video devices are able to process PES and TS data now.

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11758): 2: handle unregister for non-I2C builds
Randy Dunlap [Mon, 11 May 2009 16:37:41 +0000 (13:37 -0300)]
V4L/DVB (11758): 2: handle unregister for non-I2C builds

Build fails when CONFIG_I2C=n, so handle that case in the if block:

drivers/built-in.o: In function `v4l2_device_unregister':
(.text+0x157821): undefined reference to `i2c_unregister_device'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11701): pvrusb2: Ensure the PVRUSB2 disabled the i2c gate on the tda10048.
Steven Toth [Tue, 5 May 2009 22:31:42 +0000 (19:31 -0300)]
V4L/DVB (11701): pvrusb2: Ensure the PVRUSB2 disabled the i2c gate on the tda10048.

... else DVB-T tuning will not work.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11700): tda10048: Added option to block i2c gate control from other drivers.
Steven Toth [Tue, 5 May 2009 22:30:27 +0000 (19:30 -0300)]
V4L/DVB (11700): tda10048: Added option to block i2c gate control from other drivers.

Currently, DVB-T is broken and this fixes it.

The PVRUSB2 has an odd I2C bus configuration where opening the i2c gate
on the digital and analog demod causes the tuner to fail. This needs
to be protected against for the PVRUSB2.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11677): radio-fm16: fix g_tuner.
Hans Verkuil [Sat, 2 May 2009 15:06:15 +0000 (12:06 -0300)]
V4L/DVB (11677): radio-fm16: fix g_tuner.

g_tuner handled capability, audmode and rxsubchans incorrectly.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11676): radio-fm16: cleanups
Hans Verkuil [Sat, 2 May 2009 15:04:13 +0000 (12:04 -0300)]
V4L/DVB (11676): radio-fm16: cleanups

Remove bogus flags field

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11756): soc_camera: depends on I2C
Randy Dunlap [Mon, 11 May 2009 17:51:32 +0000 (14:51 -0300)]
V4L/DVB (11756): soc_camera: depends on I2C

soc_camera uses i2c_*() functions and has build errors when CONFIG_I2C=n:

ERROR: "i2c_new_device" [drivers/media/video/soc_camera.ko] undefined!
ERROR: "i2c_get_adapter" [drivers/media/video/soc_camera.ko] undefined!
ERROR: "i2c_put_adapter" [drivers/media/video/soc_camera.ko] undefined!
ERROR: "i2c_unregister_device" [drivers/media/video/soc_camera.ko] undefined!

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11753): tveeprom: Point the TCL MNM05-4 tuner entry to an actual tuner defin...
Andy Walls [Sat, 9 May 2009 03:43:40 +0000 (00:43 -0300)]
V4L/DVB (11753): tveeprom: Point the TCL MNM05-4 tuner entry to an actual tuner definition

The TCL MNM05-04 is used on some HVR-1600 models.  It appears to be
similar to the TCL MFMN05-4 but without FM radio.  The
TUNER_PHILIPS_FM1236_MK3 tuner definition appears to be the proper existing
tuner definition to use for this tuner.

Reported-by: Matt Beadon <matt.beadon@gmail.com>
Tested-by: Matt Beadon <matt.beadon@gmail.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11752): cx18: Add missing newline to tuner detection error message
Andy Walls [Sat, 9 May 2009 03:34:31 +0000 (00:34 -0300)]
V4L/DVB (11752): cx18: Add missing newline to tuner detection error message

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11750): pvrusb2: Allocate a routing ID for future support of Terratec Grabst...
Mike Isely [Sat, 9 May 2009 21:00:23 +0000 (18:00 -0300)]
V4L/DVB (11750): pvrusb2: Allocate a routing ID for future support of Terratec Grabster AV400

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11748): pvrusb2: Don't use the internal i2c client list
Jean Delvare [Sat, 2 May 2009 03:22:27 +0000 (00:22 -0300)]
V4L/DVB (11748): pvrusb2: Don't use the internal i2c client list

The i2c core used to maintain a list of client for each adapter. This
is a duplication of what the driver core already does, so this list
will be removed as part of a future cleanup. Anyone using this list
must stop doing so.

For pvrusb2, I propose the following change, which should lead to an
equally informative output. The only difference is that i2c clients
which are not a v4l2 subdev won't show up, but I guess this case is
not supposed to happen anyway.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11747): pvrusb2: Bump up version advertised through v4l interface
Mike Isely [Sat, 2 May 2009 03:04:35 +0000 (00:04 -0300)]
V4L/DVB (11747): pvrusb2: Bump up version advertised through v4l interface

Kick up the pvrusb2 version number advertised through the v4l
interface.  This value really has almost no meaning because I don't
make a serious attempt to version the driver in this manner (otherwise
this one line becomes a nasty hotspot of changes and merge
conflicts).  The value that is here is really a historical thing.
However Hans Verkuil thought it might be a good idea to bump up the
number anyway right now since the driver's mechanism for communicating
with the v4l core has pretty much completely changed.  Sending out a

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11746): pvrusb2: Set ir_video autoloading to default disabled
Mike Isely [Sat, 2 May 2009 01:33:16 +0000 (22:33 -0300)]
V4L/DVB (11746): pvrusb2: Set ir_video autoloading to default disabled

This sets the disable_autoload_ir_video module option to being set,
which disables any attempt by the driver to autoload IR support.  This
changes preserves previous behavior, for now.  This change can be set
back concurrent with other changes that finally update i2c-kbd-i2c to
use the new i2c binding model.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11745): pvrusb2: Update to work with upcoming ir_video changes in v4l-dvb...
Mike Isely [Sat, 2 May 2009 01:23:39 +0000 (22:23 -0300)]
V4L/DVB (11745): pvrusb2: Update to work with upcoming ir_video changes in v4l-dvb core

The ir-kbd-i2c module is about to be updated to match the new style
i2c binding model.  These pvrusb2 changes maintain compatibility with
that change.  Note that this does not actually break anything even
without the expected ir-kbd-i2c changes yet because previously the
pvrusb2 didn't autoload ir-kbd-i2c anyway.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11744): pvrusb2: Select, track, and report IR scheme in use with the device
Mike Isely [Mon, 6 Apr 2009 04:51:38 +0000 (01:51 -0300)]
V4L/DVB (11744): pvrusb2: Select, track, and report IR scheme in use with the device

This change defines all possible "IR schemes" related to the pvrusb2
driver, on a per-device basis.  That information is then set according
to the hardware in use.  The idea here is to make possible a more
intelligent future decision on which, if any, IR receiver driver might
be loaded during initialization.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11743): Analog Devices ADV7343 video encoder driver
Chaithrika U S [Thu, 7 May 2009 12:30:01 +0000 (09:30 -0300)]
V4L/DVB (11743): Analog Devices ADV7343 video encoder driver

Add ADV7343 I2C based video encoder driver. This follows the
v4l2-subdev framework. This driver has been tested on TI DM646x EVM. It
has been tested for Composite and Component outputs.

Updates as per review by Mauro Chehab, added support for more standards
supported by the encoder. Also adding the missed out signed-offs.Tested
only NTSC and PAL standards.

[hverkuil@xs4all.nl: s_routing API changed, updated driver to use new API]
Signed-off-by: Manjunath Hadli <mrh@ti.com>
Signed-off-by: Brijesh Jadav <brijesh.j@ti.com>
Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11742): TI THS7303 video amplifier driver code
Chaithrika U S [Thu, 7 May 2009 12:29:25 +0000 (09:29 -0300)]
V4L/DVB (11742): TI THS7303 video amplifier driver code

This patch adds driver for TI THS7303 video amplifier. This driver is
implemented as a v4l2 sub device. Tested on TI DM646x EVM.

This version has updates based on review comments by Mauro Chehab.

Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11741): zoran: Fix &&/|| typo
Roel Kluin [Sat, 2 May 2009 20:52:52 +0000 (17:52 -0300)]
V4L/DVB (11741): zoran: Fix &&/|| typo

Fix &&/|| typo. `default_norm' can be 0 (PAL), 1 (NTSC) or 2 (SECAM),
the condition tested was impossible.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB: cleanup redundant tests on unsigned
Roel Kluin [Sat, 2 May 2009 19:38:47 +0000 (16:38 -0300)]
V4L/DVB: cleanup redundant tests on unsigned

Remove redundant tests on unsigned.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11739): remove driver_data direct access of struct device
Greg Kroah-Hartman [Thu, 30 Apr 2009 22:18:08 +0000 (19:18 -0300)]
V4L/DVB (11739): remove driver_data direct access of struct device

In the near future, the driver core is going to not allow direct access
to the driver_data pointer in struct device.  Instead, the functions
dev_get_drvdata() and dev_set_drvdata() should be used.  These functions
have been around since the beginning, so are backwards compatible with
all older kernel versions.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11737): Drop stray references to i2c_probe
Jean Delvare [Thu, 30 Apr 2009 08:40:07 +0000 (05:40 -0300)]
V4L/DVB (11737): Drop stray references to i2c_probe

The new i2c binding model doesn't use i2c_probe.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11736): videobuf: modify return value of VIDIOC_REQBUFS ioctl
Németh Márton [Wed, 29 Apr 2009 18:57:24 +0000 (15:57 -0300)]
V4L/DVB (11736): videobuf: modify return value of VIDIOC_REQBUFS ioctl

The V4L2 ioctls usually return 0 when the operation was successful
and -1 in case of error. Currently VIDIOC_REQBUFS returns the
number of buffers which is redundant because this information is
available in count field of struct v4l2_requestbuffers. The
V4L2 API specification, revision 0.24 [1] explicitly specifies for
VIDIOC_REQBUFS that the return value shall be 0 on success.

The patch was tested with v4l-test 0.13 [2] with vivi driver.

References:
[1] V4L2 API specification, revision 0.24
    http://v4l2spec.bytesex.org/spec/r13696.htm

[2] v4l-test: Test environment for Video For Linux Two API
    http://v4l-test.sourceforge.net/

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11735): Enables the Winfast TV2000 XP Global TV IR
Pieter Van Schaik [Wed, 29 Apr 2009 06:55:31 +0000 (03:55 -0300)]
V4L/DVB (11735): Enables the Winfast TV2000 XP Global TV IR

Adds support to the remote control of the Winfast TV2000 XP Global TV
capture card. A case statement was added in order to initialize the
GPIO data structures as well as a case statement for handling the keys
correctly when pressed.

Thanks to Hermann and Mauro for all the help

Signed-off-by: Pieter C van Schaik <vansterpc@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11734): remove hw reset of MPEG encoder when lost/found seq.
Dmitri Belimov [Tue, 28 Apr 2009 09:46:15 +0000 (06:46 -0300)]
V4L/DVB (11734): remove hw reset of MPEG encoder when lost/found seq.

When we capture signal from composite input offen lost and found syncro
sequence. In this case the MPEG coder hardware reset after each
lost/found event. The image has a lot of artefactes. This patch remove
hardware reset of MPEG encoder.

This is patch from our customer. I checked this.

With my best regards, Dmitry.

Signed-off-by: Alexey Osipov <lion-simba@pridelands.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11733): increase MPEG encoder timout
Dmitri Belimov [Tue, 28 Apr 2009 09:41:08 +0000 (06:41 -0300)]
V4L/DVB (11733): increase MPEG encoder timout

If video has a lot of changes in frame, MPEG encoder need more time for
coding process. Add new bigger timeout for encoder.

This is patch from our customer. I checked this.

Signed-off-by: Alexey Osipov <lion-simba@pridelands.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11732): saa7134: disable not yet existing IR and DVB support on the Compro...
hermann pitton [Tue, 28 Apr 2009 22:44:05 +0000 (19:44 -0300)]
V4L/DVB (11732): saa7134: disable not yet existing IR and DVB support on the Compro T750

The Compro VideoMate T750 has no support for IR and DVB-T yet.
Disable both to avoid fall through and confusing printouts.

Signed-off-by: Hermann Pitton <hermann-pitton@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11731): buf-dma-contig: remove sync operation
Magnus Damm [Tue, 28 Apr 2009 08:45:39 +0000 (05:45 -0300)]
V4L/DVB (11731): buf-dma-contig: remove sync operation

Remove the videobuf-dma-contig sync operation. Sync is only needed
for noncoherent buffers, and since videobuf-dma-contig is built on
coherent memory allocators the memory is by definition always in sync.

Reported-by: Matthieu CASTET <matthieu.castet@parrot.com>
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Reviewed-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11730): af9015: support for KWorld MC810
Wen-chien Jesse Sung [Tue, 28 Apr 2009 04:11:22 +0000 (01:11 -0300)]
V4L/DVB (11730): af9015: support for KWorld MC810

Add USB ID (1b80:c810) for Kworld MC810.

Signed-off-by: Wen-chien Jesse Sung <jesse@cola.voip.idv.tw>
Acked-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB: cx23885/cymax2: binary/logical &/&& typo
Roel Kluin [Sun, 26 Apr 2009 15:31:26 +0000 (12:31 -0300)]
V4L/DVB: cx23885/cymax2: binary/logical &/&& typo

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11724): firedtv: Storage class should be before const qualifier
Tobias Klauser [Sun, 26 Apr 2009 13:03:29 +0000 (10:03 -0300)]
V4L/DVB (11724): firedtv: Storage class should be before const qualifier

The C99 specification states in section 6.11.5:

The placement of a storage-class specifier other than at the beginning
of the declaration specifiers in a declaration is an obsolescent
feature.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11723): Link firmware to physical device
Jean Delvare [Sun, 26 Apr 2009 08:43:59 +0000 (05:43 -0300)]
V4L/DVB (11723): Link firmware to physical device

Use the physical device rather than the i2c adapter as the reference
device when loading firmwares. This will prevent the sysfs name
collision with i2c-dev that has been reported many times.

I may have missed other drivers which need the same fix.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11720): gspca - sonixj: Webcam 06f8:3008 added
Jani Monoses [Thu, 7 May 2009 06:32:27 +0000 (03:32 -0300)]
V4L/DVB (11720): gspca - sonixj: Webcam 06f8:3008 added

Signed-off-by: Jani Monoses <jani@ubuntu.com>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11719): gspca - vc032x: mi1320_soc images are upside-down
Jean-Francois Moine [Tue, 5 May 2009 08:01:11 +0000 (05:01 -0300)]
V4L/DVB (11719): gspca - vc032x: mi1320_soc images are upside-down

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11718): gspca - vc032x: Bad pixelformat for mi1320_soc
Jean-Francois Moine [Tue, 5 May 2009 07:59:45 +0000 (04:59 -0300)]
V4L/DVB (11718): gspca - vc032x: Bad pixelformat for mi1320_soc

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11717): gspca - sonixj: Webcams with bridge sn9c128 added
Jean-Francois Moine [Sat, 9 May 2009 09:21:35 +0000 (06:21 -0300)]
V4L/DVB (11717): gspca - sonixj: Webcams with bridge sn9c128 added

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11716): gspca - sonixj: Adjust some exchanges according to traces
Jean-Francois Moine [Sun, 26 Apr 2009 17:46:12 +0000 (14:46 -0300)]
V4L/DVB (11716): gspca - sonixj: Adjust some exchanges according to traces

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11715): gspca - main: Set the number of packets per ISOC message.
Jean-Francois Moine [Sat, 25 Apr 2009 16:29:01 +0000 (13:29 -0300)]
V4L/DVB (11715): gspca - main: Set the number of packets per ISOC message.

The number of packets per isochronous message may now be set by the subdrivers
(default value 32).

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11714): gspca - spca500 and sunplus: Change the 0x00 insertion mechanism.
Jean-Francois Moine [Thu, 23 Apr 2009 17:33:00 +0000 (14:33 -0300)]
V4L/DVB (11714): gspca - spca500 and sunplus: Change the 0x00 insertion mechanism.

The new mechanism does not use any temporary buffer.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11713): gspca - ov534: Don't discard the images when no UVC EOF
Jean-Francois Moine [Thu, 23 Apr 2009 16:52:27 +0000 (13:52 -0300)]
V4L/DVB (11713): gspca - ov534: Don't discard the images when no UVC EOF

A new image may start without any UVC EOF in the last packet of the
previous image.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11712): gspca - main: Set the current alternate setting only when needed
Jean-Francois Moine [Tue, 21 Apr 2009 17:05:44 +0000 (14:05 -0300)]
V4L/DVB (11712): gspca - main:  Set the current alternate setting only when needed

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11711): gspca - main: Fix a crash when no bandwidth available
Jean-Francois Moine [Tue, 21 Apr 2009 16:57:31 +0000 (13:57 -0300)]
V4L/DVB (11711): gspca - main: Fix a crash when no bandwidth available

When the bandwidth is not wide enough, the transfer endpoint may be set to
the one of the alternate setting 0. This one may be null and this causes a
divide by 0 oops.

Reported-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 (11710): gspca - main: Webcams cannot do both isoc and bulk image transfers.
Jean-Francois Moine [Tue, 21 Apr 2009 16:45:56 +0000 (13:45 -0300)]
V4L/DVB (11710): gspca - main: Webcams cannot do both isoc and bulk image transfers.

Let the subdrivers to set the 'image transfer by bulk' flag.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11709): gspca - zc3xx: Bad debug level in i2c_read
Jean-Francois Moine [Tue, 7 Apr 2009 08:30:31 +0000 (05:30 -0300)]
V4L/DVB (11709): gspca - zc3xx: Bad debug level in i2c_read

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11708): gspca - main: Version change.
Jean-Francois Moine [Tue, 21 Apr 2009 07:17:59 +0000 (04:17 -0300)]
V4L/DVB (11708): gspca - main: Version change.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11705): soc-camera: prepare for the platform driver conversion
Guennadi Liakhovetski [Thu, 7 May 2009 16:25:32 +0000 (13:25 -0300)]
V4L/DVB (11705): soc-camera: prepare for the platform driver conversion

Add a platform driver to soc_camera.c. This way we preserve backwards
compatibility with existing platforms and can start converting them one by one
to the new platform-device soc-camera interface.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11703): cx18: Have audio decoder drive SIF gain control, and rework AFE...
Andy Walls [Sun, 3 May 2009 21:01:57 +0000 (18:01 -0300)]
V4L/DVB (11703): cx18: Have audio decoder drive SIF gain control, and rework AFE config

Ensure the variable gain amplifier gain for SIF is driven by the audio deocder
and not the video decoder.  This forced rework of the analog front end (AFE)
configuration to not rely on autoconfiguration, but instead set up the AFE mux,
AFE parameters, and ADC1 & ADC2 configurations explicitly.

Reported-by: Helen Buus <mythtv@hbuus.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11699): pvrusb2: Ensure we specify the I/F at attach time
Steven Toth [Sat, 2 May 2009 14:09:08 +0000 (11:09 -0300)]
V4L/DVB (11699): pvrusb2: Ensure we specify the I/F at attach time

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11698): cx23885: For tda10048 boards ensure we specify the I/F
Steven Toth [Sat, 2 May 2009 14:08:23 +0000 (11:08 -0300)]
V4L/DVB (11698): cx23885: For tda10048 boards ensure we specify the I/F

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11697): tda10048: Add ability to select I/F at attach time.
Steven Toth [Sat, 2 May 2009 14:07:29 +0000 (11:07 -0300)]
V4L/DVB (11697): tda10048: Add ability to select I/F at attach time.

tda10048: Add ability to select I/F at attach time.

Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11695): gspca - stv06xx-vv6410: Set analog gain at init
Erik Andrén [Sun, 3 May 2009 18:51:36 +0000 (15:51 -0300)]
V4L/DVB (11695): gspca - stv06xx-vv6410: Set analog gain at init

Set the analog gain at sensor init. Also set a sensible default value.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11694): gspca - stv06xx-vv6410: No need to double set gain and exposure
Erik Andrén [Fri, 3 Apr 2009 20:16:42 +0000 (17:16 -0300)]
V4L/DVB (11694): gspca - stv06xx-vv6410: No need to double set gain and exposure

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11693): gspca - stv06xx-vv6410: Add exposure ctrl
Erik Andrén [Sun, 3 May 2009 18:45:48 +0000 (15:45 -0300)]
V4L/DVB (11693): gspca - stv06xx-vv6410: Add exposure ctrl

Add the possibility to control the exposure on the vv6410 sensor

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11692): gspca - m5602: Checkpatch.pl fixes
Erik Andrén [Sun, 3 May 2009 18:31:55 +0000 (15:31 -0300)]
V4L/DVB (11692): gspca - m5602: Checkpatch.pl fixes

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11691): gspca - m5602-ov9650: Add ASUS A6K vflip quirk
Erik Andrén [Tue, 10 Mar 2009 19:45:57 +0000 (16:45 -0300)]
V4L/DVB (11691): gspca - m5602-ov9650: Add ASUS A6K vflip quirk

The ASUS A6K needs the vflip quirk. Thanks to Marco Baldo for reporting
the issue.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11690): gspca - m5602-s5k4aa: Add vflip quirk for the MSI L735
Erik Andrén [Thu, 12 Feb 2009 19:36:05 +0000 (16:36 -0300)]
V4L/DVB (11690): gspca - m5602-s5k4aa: Add vflip quirk for the MSI L735

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11689): gspca - m5602-s5k4aa: Fixup the vflip/hflip
Grégory Lardière [Thu, 12 Feb 2009 06:40:29 +0000 (03:40 -0300)]
V4L/DVB (11689): gspca - m5602-s5k4aa: Fixup the vflip/hflip

Ensure that the hflip and vflip is consistent when the sensor needs to
be vflip quirked or not.

Signed-off-by: Grégory Lardière <spmf2004-m560x@yahoo.fr>
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11688): gspca - m5602-s5k4aa: Fixup SXGA resolution.
Grégory Lardière [Thu, 12 Feb 2009 06:32:52 +0000 (03:32 -0300)]
V4L/DVB (11688): gspca - m5602-s5k4aa: Fixup SXGA resolution.

The SXGA resolution doesn't work unless you first force the VGA resolution.
More investigation is needed in order to fix this the "right" way.

Signed-off-by: Grégory Lardière <spmf2004-m560x@yahoo.fr>
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11687): gspca - m5602-ov9650: Add missing v4l2 ctrl ids
Erik Andrén [Mon, 2 Feb 2009 19:08:06 +0000 (16:08 -0300)]
V4L/DVB (11687): gspca - m5602-ov9650: Add missing v4l2 ctrl ids

Red and blue balance missed their id fields

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11686): gspca - m5602-s5k4aa: Disable SXGA resolution for now
Erik Andrén [Mon, 2 Feb 2009 18:56:39 +0000 (15:56 -0300)]
V4L/DVB (11686): gspca - m5602-s5k4aa: Disable SXGA resolution for now

SXGA resolution needs more testing. Disable it for now

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11685): gspca - gspca-m5602: Constify parameters of two functions
Erik Andrén [Mon, 2 Feb 2009 06:51:20 +0000 (03:51 -0300)]
V4L/DVB (11685): gspca - gspca-m5602: Constify parameters of two functions

A number of parameters to some functions in the m5602 are constant and should be flagged as such.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11684): gspca - m5602-s5k4aa: Add experimental SXGA support
Erik Andrén [Thu, 29 Jan 2009 16:34:41 +0000 (13:34 -0300)]
V4L/DVB (11684): gspca - m5602-s5k4aa: Add experimental SXGA support

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11682): STV0900/STV0903: Add support for Silicon cut >= 3
Manu Abraham [Sat, 2 May 2009 21:26:58 +0000 (18:26 -0300)]
V4L/DVB (11682): STV0900/STV0903: Add support for Silicon cut >= 3

1. Support Silicon Cut >= 3.0
2. Remove support for obsolete cuts: 1.0. 1.1. 1.2
3. Try to catch more error cases

Driver doesn't now attach to obsolete silcon cuts, It just simply quits.
Results in code simplification, with removal of the obsolete cuts.

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11673): v4l2-device: unregister i2c_clients when unregistering the v4l2_device.
Hans Verkuil [Sat, 2 May 2009 13:58:51 +0000 (10:58 -0300)]
V4L/DVB (11673): v4l2-device: unregister i2c_clients when unregistering the v4l2_device.

Until now I relied on i2c_del_adapter to unregister the i2c_clients for
me, however, if the i2c bus is a platform bus then it is never deleted.

So instead I need to unregister i2c clients when unregistering the
v4l2_device.

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