]> bbs.cooldavid.org Git - net-next-2.6.git/log
net-next-2.6.git
14 years agoV4L/DVB (11837): uvcvideo: Start status polling on device open
Laurent Pinchart [Tue, 19 May 2009 13:08:03 +0000 (10:08 -0300)]
V4L/DVB (11837): uvcvideo: Start status polling on device open

Most UVC camera include an interrupt endpoint to report control value changes,
video streaming errors and camera button events. The USB controller
continuously polls the interrupt endpoint to retrieve such events. This
prevents the device from being auto-suspended, and thus consumes power.

Reporting video streaming errors don't make sense when the V4L2 device is
closed. Control value changes are probably useless as well if nobody listens to
the events, although caching will probably have to be completely disabled then.
No polling is thus be required when /dev/videoX is not opened.

To enable auto-suspend and save power do not poll the interrupt endpoint until
the device is open. We lose the ability to detect button events if no
application is using the camera.

http://bugzilla.kernel.org/show_bug.cgi?id=11948

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (11836): uvcvideo: Add missing whitespaces to multi-line format strings.
Laurent Pinchart [Wed, 6 May 2009 15:37:44 +0000 (12:37 -0300)]
V4L/DVB (11836): uvcvideo: Add missing whitespaces to multi-line format strings.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (11835): uvcvideo: Parse frame descriptors with non-continuous indexes.
Laurent Pinchart [Wed, 6 May 2009 15:30:30 +0000 (12:30 -0300)]
V4L/DVB (11835): uvcvideo: Parse frame descriptors with non-continuous indexes.

The UVC specification requires frame descriptors indexes to range from 1 to
the number of frame descriptors. At least some Hercules Dualpix Infinite
webcams erroneously use non-continuous index ranges. Make the driver support
them.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (11833): dvb-usb: Remove support for Genpix-CW3K (damages hardware)
Alan Nisota [Wed, 20 May 2009 08:52:13 +0000 (05:52 -0300)]
V4L/DVB (11833): dvb-usb: Remove support for Genpix-CW3K (damages hardware)

I have been informed by the manufacturer that the patch currently in the v4l tree to support the Genpix-CW3K version of the hardware will actually
damage the firmware on recent units.  As he seems to not want this hardware supported in Linux, and I do not know how to detect the difference between
affected and not-affected units, I am requesting the immediate removal of support for this device.  This patch removes a portion of the changeset
dce7e08ed2b1 applied 2007-08-18 relating to this specific device.

Adapted patch to not remove code, but to only to comment it out.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (11832): dibusb_mc: fix i2c to not corrupt eeprom in case of strange read...
matthieu castet [Wed, 20 May 2009 08:42:33 +0000 (05:42 -0300)]
V4L/DVB (11832): dibusb_mc: fix i2c to not corrupt eeprom in case of strange read pattern

dibusb_i2c_xfer seems to do things very dangerous :
it assumes that it get only write/read request or write request.

That means that read can be understood as write. For example a program
doing
file = open("/dev/i2c-x", O_RDWR);
    ioctl(file, I2C_SLAVE, 0x50)
read(file, data, 10)
    will corrupt the eeprom as it will be understood as a write.

Signed-off-by: Matthieu CASTET <castet.matthieu@free.fr>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (11831): dib0700: added USB IDs for Terratec T3 and T5
Patrick Boettcher [Wed, 20 May 2009 08:35:02 +0000 (05:35 -0300)]
V4L/DVB (11831): dib0700: added USB IDs for Terratec T3 and T5

This patch adds the USB IDs for the Terratec devices T3 and T5.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (11830): dib0700: add support for Leadtek WinFast DTV Dongle H
tomas petr [Wed, 20 May 2009 08:28:05 +0000 (05:28 -0300)]
V4L/DVB (11830): dib0700: add support for Leadtek WinFast DTV Dongle H

"Leadtek WinFast DTV Dongle H" is a hybrid digital/analog USB-stick TV
receiver. The code below allows the digital part to work with dvb_usb
in linux.

Signed-off-by: tomas petr <tom-petr@seznam.cz>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (11829): Rewrote frontend-attach mechanism to gain noise-less deactivation...
Patrick Boettcher [Wed, 20 May 2009 08:08:26 +0000 (05:08 -0300)]
V4L/DVB (11829): Rewrote frontend-attach mechanism to gain noise-less deactivation of submodules

This patch is reorganizing the frontend-attach mechanism in order to
gain noise-less (superflous prints) deactivation of submodules.

Credits go to Uwe Bugla for helping to clean and test the code.

Signed-off-by: Uwe Bugla <uwe.bugla@gmx.de>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (11828): Reducing print-level of I2C error prints
Matthias Schwarzott [Wed, 20 May 2009 07:57:10 +0000 (04:57 -0300)]
V4L/DVB (11828): Reducing print-level of I2C error prints

Reducing the print-levle of I2C error prints cleans some unwanted but
unavoidable errors from default syslog-level.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (11827): Add support for Terratec Grabster AV350
Mauro Carvalho Chehab [Sun, 24 May 2009 03:46:01 +0000 (00:46 -0300)]
V4L/DVB (11827): Add support for Terratec Grabster AV350

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (11825): em28xx: add Terratec Grabby
Mauro Carvalho Chehab [Sat, 23 May 2009 12:58:52 +0000 (09:58 -0300)]
V4L/DVB (11825): em28xx: add Terratec Grabby

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (11810): em28xx: properly set packet size based on the device's eeprom config...
Devin Heitmueller [Sat, 16 May 2009 20:09:28 +0000 (17:09 -0300)]
V4L/DVB (11810): em28xx: properly set packet size based on the device's eeprom configuration.

The em28xx actually has a register that tells the driver what the maximum
packet size is (based on a value programmed into the eeprom).  Make use of
that register instead of assuming a hardcoded value of 564 (since 564 is not
correct for devices that do QAM such as the KWorld 340u).

Note that for now the em2874 code isn't there, falling back to the 564 value,
however this is not a problem since there are not any em2874 based devices in
the current v4l-dvb tree).

Thanks to Jarod Wilson for detecting the initial problem and figuring out that
the isoc configuration was wrong for his device.

Cc: Jarod Wilson <jarod@wilsonet.com>
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>