openwrt/staging/blogic.git
15 years agoV4L/DVB (11196): pvrusb2: Define default I2C addresses for msp3400 and saa7115 sub...
Mike Isely [Sat, 7 Mar 2009 05:00:21 +0000 (02:00 -0300)]
V4L/DVB (11196): pvrusb2: Define default I2C addresses for msp3400 and saa7115 sub-devices

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11195): pvrusb2: Issue required core init broadcast to all sub-devices
Mike Isely [Sat, 7 Mar 2009 04:59:34 +0000 (01:59 -0300)]
V4L/DVB (11195): pvrusb2: Issue required core init broadcast to all sub-devices

The v4l2-subdev infrastructure requires that an initialization call
must be issued to all attached sub-devices before normal operation can
start.  This change satisfies that requirement.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11194): pvrusb2: Implement mechanism to force a full sub-device update
Mike Isely [Sat, 7 Mar 2009 04:57:25 +0000 (01:57 -0300)]
V4L/DVB (11194): pvrusb2: Implement mechanism to force a full sub-device update

When a pvrusb2 driver instance first initializes, we need to be sure
to send out a complete state update for everything to all attached
modules.  The old i2c layer did this by keeping a separate mask of
"stale" bits for each attached module - and setting that mask to all
stale when that module attaches.  But the new sub-device adaptation
I've implemented here no longer has per-module stale bits.  So instead
there's now a global "force dirty" bit that is set upon instance
initialization, before the sub-devices are attached.  After the first
update, this bit is cleared, allowing for normal update-on-dirty
behavior.  In this manner, we ensure that all sub-devices have been
properly synchronized at initialization.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11193): pvrusb2: Correct some trace print inaccuracies
Mike Isely [Sat, 7 Mar 2009 04:51:54 +0000 (01:51 -0300)]
V4L/DVB (11193): pvrusb2: Correct some trace print inaccuracies

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11192): pvrusb2: Implement trace print for stream on / off action
Mike Isely [Sat, 7 Mar 2009 04:50:48 +0000 (01:50 -0300)]
V4L/DVB (11192): pvrusb2: Implement trace print for stream on / off action

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11191): pvrusb2: Define default I2C address for cx25840 sub-device
Mike Isely [Sat, 7 Mar 2009 04:49:37 +0000 (01:49 -0300)]
V4L/DVB (11191): pvrusb2: Define default I2C address for cx25840 sub-device

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11190): pvrusb2: Broadcast tuner type change to sub-devices
Mike Isely [Sat, 7 Mar 2009 04:48:42 +0000 (01:48 -0300)]
V4L/DVB (11190): pvrusb2: Broadcast tuner type change to sub-devices

The tuner sub-device isn't going to work very well unless we tell it
the correct tuner type to use...

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11189): pvrusb2: Deal with space-after-comma coding style idiocy
Mike Isely [Sat, 7 Mar 2009 04:46:17 +0000 (01:46 -0300)]
V4L/DVB (11189): pvrusb2: Deal with space-after-comma coding style idiocy

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11188): pvrusb2: Sub-device update must happen BEFORE state dirty bits are...
Mike Isely [Sat, 7 Mar 2009 04:45:10 +0000 (01:45 -0300)]
V4L/DVB (11188): pvrusb2: Sub-device update must happen BEFORE state dirty bits are cleared

The sub-device update mechanism relies on various "dirty" bits in the
driver in order to know what pieces of state need to be propagated out
to the various sub-devices.  But that won't work if the dirty bits are
cleared before the update gets a chance to run.  This change ensures
that the update takes place before the dirty bits are cleared.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11187): pvrusb2: Allow sub-devices to insert correctly
Mike Isely [Sat, 7 Mar 2009 04:42:40 +0000 (01:42 -0300)]
V4L/DVB (11187): pvrusb2: Allow sub-devices to insert correctly

A sub-device won't successfully attach to our I2C adapter if its class
isn't set to zero.  Right the class is still set to
I2C_CLASS_TV_ANALOG in order to allow the old mechanism to still
work.  This change temporarily sets the class to zero during the
interval when the sub-device attaches.  This code will get removed
when the old i2c layer is finally removed from the driver.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11186): pvrusb2: Fix bugs involved in listing of sub-devices
Mike Isely [Sat, 7 Mar 2009 04:39:40 +0000 (01:39 -0300)]
V4L/DVB (11186): pvrusb2: Fix bugs involved in listing of sub-devices

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11185): pvrusb2: Fix uninitialized counter
Mike Isely [Sat, 7 Mar 2009 04:37:58 +0000 (01:37 -0300)]
V4L/DVB (11185): pvrusb2: Fix uninitialized counter

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11184): pvrusb2: Define default i2c address for wm8775 sub-device
Mike Isely [Sat, 7 Mar 2009 03:57:42 +0000 (00:57 -0300)]
V4L/DVB (11184): pvrusb2: Define default i2c address for wm8775 sub-device

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11183): pvrusb2: Implement more sub-device loading trace and improve error...
Mike Isely [Sat, 7 Mar 2009 03:56:52 +0000 (00:56 -0300)]
V4L/DVB (11183): pvrusb2: Implement more sub-device loading trace and improve error handling

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11182): pvrusb2: Tie in cx25840 sub-device support
Mike Isely [Sat, 7 Mar 2009 03:54:02 +0000 (00:54 -0300)]
V4L/DVB (11182): pvrusb2: Tie in cx25840 sub-device support

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11181): pvrusb2: Fix silly 80 column issue
Mike Isely [Sat, 7 Mar 2009 03:52:42 +0000 (00:52 -0300)]
V4L/DVB (11181): pvrusb2: Fix silly 80 column issue

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11180): pvrusb2: Tie in msp3400 sub-device support
Mike Isely [Sat, 7 Mar 2009 03:52:06 +0000 (00:52 -0300)]
V4L/DVB (11180): pvrusb2: Tie in msp3400 sub-device support

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11179): pvrusb2: make sub-device specific update function names uniform
Mike Isely [Sat, 7 Mar 2009 03:49:19 +0000 (00:49 -0300)]
V4L/DVB (11179): pvrusb2: make sub-device specific update function names uniform

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11178): pvrusb2: Make audio sample rate update into a sub-device broadcast
Mike Isely [Sat, 7 Mar 2009 03:48:09 +0000 (00:48 -0300)]
V4L/DVB (11178): pvrusb2: Make audio sample rate update into a sub-device broadcast

The pvrusb2 driver had previously been using i2c module specific calls
to set the sample rate (a long long time ago this was needed).  These
days it is safe to use a broadcast so let's just broadcast this when
communicating audio sample rate to sub-devices.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11177): pvrusb2: Tie in saa7115 sub-device handling
Mike Isely [Sat, 7 Mar 2009 03:43:26 +0000 (00:43 -0300)]
V4L/DVB (11177): pvrusb2: Tie in saa7115 sub-device handling

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11176): pvrusb2: Tie in wm8775 sub-device handling
Mike Isely [Sat, 7 Mar 2009 03:39:34 +0000 (00:39 -0300)]
V4L/DVB (11176): pvrusb2: Tie in wm8775 sub-device handling

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11175): pvrusb2: Implement sub-device specific update framework
Mike Isely [Sat, 7 Mar 2009 03:37:10 +0000 (00:37 -0300)]
V4L/DVB (11175): pvrusb2: Implement sub-device specific update framework

Lay down a foundation whereby it becomes possible to send customized
updates to specific sub-devices.  (This becomes useful for routing
configuration, which is a very sub-device specific operation.)

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11174): pvrusb2: Implement reporting of connected sub-devices
Mike Isely [Sat, 7 Mar 2009 03:28:28 +0000 (00:28 -0300)]
V4L/DVB (11174): pvrusb2: Implement reporting of connected sub-devices

The pvrusb2 driver has a function that reports internal state.  It can
be accessed from either the debug interface or as the result of a v4l
log status request.  This change adds information listing sub-devices
to the report.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11173): pvrusb2: Fix backwards function header comments
Mike Isely [Sat, 7 Mar 2009 03:26:24 +0000 (00:26 -0300)]
V4L/DVB (11173): pvrusb2: Fix backwards function header comments

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11172): pvrusb2: Cause overall initialization to fail if sub-driver(s) fail
Mike Isely [Sat, 7 Mar 2009 03:24:24 +0000 (00:24 -0300)]
V4L/DVB (11172): pvrusb2: Cause overall initialization to fail if sub-driver(s) fail

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11171): pvrusb2: Tie in sub-device decoder start/stop
Mike Isely [Sat, 7 Mar 2009 03:21:30 +0000 (00:21 -0300)]
V4L/DVB (11171): pvrusb2: Tie in sub-device decoder start/stop

Implement code to send appropriate streaming start/stop commands to
attached sub-devices

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11170): pvrusb2: Clean-up / placeholders inserted for additional development
Mike Isely [Sat, 7 Mar 2009 03:19:43 +0000 (00:19 -0300)]
V4L/DVB (11170): pvrusb2: Clean-up / placeholders inserted for additional development

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11169): pvrusb2: Note who our video decoder sub-device is, and set it up
Mike Isely [Sat, 7 Mar 2009 03:17:11 +0000 (00:17 -0300)]
V4L/DVB (11169): pvrusb2: Note who our video decoder sub-device is, and set it up

Other code may need to treat the video decoder sub-device in a special
manner, so this change implements code to recognize when such a
sub-device is connected to the driver, does any special processing for
it, and notes who the device is for future reference.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11168): pvrusb2: Define value for a null sub-device ID
Mike Isely [Sat, 7 Mar 2009 03:14:13 +0000 (00:14 -0300)]
V4L/DVB (11168): pvrusb2: Define value for a null sub-device ID

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11167): pvrusb2: Tie in various v4l2 operations into the sub-device mechanism
Mike Isely [Sat, 7 Mar 2009 03:13:25 +0000 (00:13 -0300)]
V4L/DVB (11167): pvrusb2: Tie in various v4l2 operations into the sub-device mechanism

This is another step in the v42l-subdev assimilation.  This implements
various call-outs to sub-devices based on state changes within the
pvrusb2 driver.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11166): pvrusb2: Implement status fetching from sub-devices
Mike Isely [Sat, 7 Mar 2009 03:08:17 +0000 (00:08 -0300)]
V4L/DVB (11166): pvrusb2: Implement status fetching from sub-devices

Implement status fetching operations in terms of calling out to
sub-device(s).

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11165): pvrusb2: Tie in debug register access to sub-devices
Mike Isely [Sat, 7 Mar 2009 03:05:00 +0000 (00:05 -0300)]
V4L/DVB (11165): pvrusb2: Tie in debug register access to sub-devices

Implement tie-in for v4l2 debug register access such that the
appropriate attached sub-device is handled.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11164): pvrusb2: Tie-in sub-device log requests
Mike Isely [Sat, 7 Mar 2009 03:02:33 +0000 (00:02 -0300)]
V4L/DVB (11164): pvrusb2: Tie-in sub-device log requests

Trigger a broadcast to attached sub-devices when a logging request is made.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11163): pvrusb2: Lay foundation for triggering sub-device updates
Mike Isely [Sat, 7 Mar 2009 03:01:20 +0000 (00:01 -0300)]
V4L/DVB (11163): pvrusb2: Lay foundation for triggering sub-device updates

These changes set up the spot where we'll check for and set general
updates to any attached sub-devices.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11162): pvrusb2: Tie up loose ends with v4l2-subdev setup
Mike Isely [Sat, 7 Mar 2009 02:58:15 +0000 (23:58 -0300)]
V4L/DVB (11162): pvrusb2: Tie up loose ends with v4l2-subdev setup

Tie up loose ends with v4l2-subdev setup.  Set attached module's group
ID to match our internal ID, emit a few useful messages when
sub-devices are dealt with, implement better error legs, and fix an
error in the old i2c layer (caused by changes related to the
v4l2-subdev work here).

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11161): pvrusb2: Set i2c autoprobing to be off by default
Mike Isely [Sat, 7 Mar 2009 02:51:35 +0000 (23:51 -0300)]
V4L/DVB (11161): pvrusb2: Set i2c autoprobing to be off by default

In order to keep a sub-device from promiscuously attaching to the
pvrusb2 driver, the i2c adapter's class must be cleared.  This change
clears that class by default.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11160): pvrusb2: whitespace tweaks
Mike Isely [Sat, 7 Mar 2009 02:48:42 +0000 (23:48 -0300)]
V4L/DVB (11160): pvrusb2: whitespace tweaks

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11159): pvrusb2: Providing means to stop tracking an old i2c module
Mike Isely [Sat, 7 Mar 2009 02:47:10 +0000 (23:47 -0300)]
V4L/DVB (11159): pvrusb2: Providing means to stop tracking an old i2c module

This implements a temporary mechanism to "untrack" an i2c module from
the old i2c layer.  The v4l2-subdev related code in the driver will
use this to remove a sub-device from the old i2c layer.  In the end,
once the old i2c layer is removed, this will also eventually go away.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11158): pvrusb2: New device attribute mechanism to specify sub-devices
Mike Isely [Sat, 7 Mar 2009 02:42:20 +0000 (23:42 -0300)]
V4L/DVB (11158): pvrusb2: New device attribute mechanism to specify sub-devices

Set up new mechanism for declaring and loading appropriate sub-devices
when driver initializes.  This is another part of the v4l2-subdev
adoption.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11157): pvrusb2: whitespace trivial tweaks
Mike Isely [Sat, 7 Mar 2009 02:32:02 +0000 (23:32 -0300)]
V4L/DVB (11157): pvrusb2: whitespace trivial tweaks

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11156): pvrusb2: Changes to further isolate old i2c layer
Mike Isely [Sat, 7 Mar 2009 02:30:37 +0000 (23:30 -0300)]
V4L/DVB (11156): pvrusb2: Changes to further isolate old i2c layer

This introduces some additional isolation in the pvrusb2 from the old
i2c layer, a step along the way to separate the driver from that layer
and to make it easier to introduce the common v4l2-subdev framework as
the eventual replacement.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11155): pvrusb2: Set up v4l2_device instance
Mike Isely [Sat, 7 Mar 2009 02:20:31 +0000 (23:20 -0300)]
V4L/DVB (11155): pvrusb2: Set up v4l2_device instance

Define a v4l2_device instance in the pvrusb2 driver and initialize /
tear it down appropriately.  This is a step in the v4l2-subdev
adoption effort.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11154): pvrusb2: Split i2c module handling from i2c adapter
Mike Isely [Sat, 7 Mar 2009 06:06:09 +0000 (03:06 -0300)]
V4L/DVB (11154): pvrusb2: Split i2c module handling from i2c adapter

This is the first step in the effort to move the pvrusb2 driver over
to using the v4l2-subdev framework.  This commit involves mainly
splitting apart pvrusb2-i2c-core - part of it is the driver's I2C
adapter driver and the rest is the old i2c module handling logic.  The
i2c module handling junk is moved out to pvrusb2-i2c-track and various
header references are correspondingly updated.  Yes, this patch has a
huge pile of checkpatch complaints, but I'm NOT going to fix any of
it.  Why?  First, I'm moving a large chunk of existing code and I'm
not going to spend time adjusting it to match someone's idea of coding
style.  Second, in the end I expect all that moved code to go away by
the time the rework is done so wasting time on it now to adhere to the
standard is in the end a large waste of time.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11152): hdpvr: Fix build with Config_I2C not set
Janne Grunau [Mon, 23 Mar 2009 21:18:54 +0000 (18:18 -0300)]
V4L/DVB (11152): hdpvr: Fix build with Config_I2C not set

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11146): gspca - vc032x: Change the probe sequence.
Jean-Francois Moine [Sun, 22 Mar 2009 19:33:47 +0000 (16:33 -0300)]
V4L/DVB (11146): gspca - vc032x: Change the probe sequence.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11145): gspca - t613: Greater delay after om6802 reset.
Jean-Francois Moine [Sun, 22 Mar 2009 19:31:32 +0000 (16:31 -0300)]
V4L/DVB (11145): gspca - t613: Greater delay after om6802 reset.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11144): gspca - t613: Don't re-read the ID registers at probe time.
Jean-Francois Moine [Sun, 22 Mar 2009 19:30:42 +0000 (16:30 -0300)]
V4L/DVB (11144): gspca - t613: Don't re-read the ID registers at probe time.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11143): gspca - t613: Bad sensor detection.
Jean-Francois Moine [Sun, 22 Mar 2009 19:29:36 +0000 (16:29 -0300)]
V4L/DVB (11143): gspca - t613: Bad sensor detection.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11142): au0828: fix oops on ARM platform when allocating transfer buffers
Devin Heitmueller [Mon, 23 Mar 2009 02:42:26 +0000 (23:42 -0300)]
V4L/DVB (11142): au0828: fix oops on ARM platform when allocating transfer buffers

Add missing URB_NO_TRANSFER_DMA_MAP flag, since the use of consistent memory
is not permitted for DMA on the ARM platform.

Thanks to Paul Thomas <pthomas8589@gmail.com> for providing sample ARM
hardware that was experiencing the oops (tested on the at91rm9200 based
LinuxStamp).

Thanks to David Brownell <david-b@pacbell.net> for providing insight into the
ARM memory architecture.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11141): em28xx: fix oops on ARM platform when allocating transfer buffers
Devin Heitmueller [Mon, 23 Mar 2009 02:41:28 +0000 (23:41 -0300)]
V4L/DVB (11141): em28xx: fix oops on ARM platform when allocating transfer buffers

Add missing URB_NO_TRANSFER_DMA_MAP flag, since the use of consistent memory
is not permitted for DMA on the ARM platform.

Thanks to Paul Thomas <pthomas8589@gmail.com> for providing sample ARM
hardware that was experiencing the oops (tested on the at91rm9200 based
LinuxStamp).

Thanks to David Brownell <david-b@pacbell.net> for providing insight into the
ARM memory architecture.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11140): usbvision: fix oops on ARM platform when allocating transfer buffers
Devin Heitmueller [Mon, 23 Mar 2009 02:39:12 +0000 (23:39 -0300)]
V4L/DVB (11140): usbvision: fix oops on ARM platform when allocating transfer buffers

Add missing URB_NO_TRANSFER_DMA_MAP flag, since the use of consistent memory
is not permitted for DMA on the ARM platform.

Thanks to Paul Thomas <pthomas8589@gmail.com> for providing sample ARM hardware
that was experiencing the oops (tested on the at91rm9200 based LinuxStamp).

Thanks to David Brownell <david-b@pacbell.net> for providing insight into the
ARM memory architecture.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11139): em28xx: add remote control definition for HVR-900 (both versions)
Devin Heitmueller [Mon, 23 Mar 2009 01:58:46 +0000 (22:58 -0300)]
V4L/DVB (11139): em28xx: add remote control definition for HVR-900 (both versions)

The HVR-900 did not have a remote control defined, so it would not work.  Add
the line for both versions of the product.

Thanks to Jens-Michael Hoffmann (#linuxtv user "jmho") for pointing out the
issue and testing the patch.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11138): get_dvb_firmware: add support for downloading the cx2584x firmware...
Mauro Carvalho Chehab [Mon, 23 Mar 2009 15:35:03 +0000 (12:35 -0300)]
V4L/DVB (11138): get_dvb_firmware: add support for downloading the cx2584x firmware for pvrusb2

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11137): get_dvb_firmware: add cx23885 firmwares
Mauro Carvalho Chehab [Mon, 23 Mar 2009 14:46:19 +0000 (11:46 -0300)]
V4L/DVB (11137): get_dvb_firmware: add cx23885 firmwares

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11136): get_dvb_firmware: Add download code for cx18 firmwares
Mauro Carvalho Chehab [Mon, 23 Mar 2009 13:57:15 +0000 (10:57 -0300)]
V4L/DVB (11136): get_dvb_firmware: Add download code for cx18 firmwares

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11127): Kconfig: replace all occurrences of CUSTOMIZE to CUSTOMISE
Mauro Carvalho Chehab [Fri, 20 Mar 2009 22:33:59 +0000 (19:33 -0300)]
V4L/DVB (11127): Kconfig: replace all occurrences of CUSTOMIZE to CUSTOMISE

There are several Kconfig items using CUSTOMIZE. Yet, most use the English
writing CUSTOMISE. This generates lots of trouble, because people sometimes type
the Kbuild item different.

Let's standardise every occurrence using the same syntax.

The changes were generated by this small shell script:

for i in `find linux -type f`; do sed s,CUSTOMIZE,CUSTOMISE,g $i >/tmp/a && mv /tmp/a $i; done

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11125): fix mispelled Hauppauge in HD PVR and PVR USB2 driver comments
Janne Grunau [Thu, 19 Mar 2009 22:00:35 +0000 (19:00 -0300)]
V4L/DVB (11125): fix mispelled Hauppauge in HD PVR and PVR USB2 driver comments

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11124): Add support for ProVideo PV-183 to bttv
Alan McIvor [Fri, 13 Mar 2009 00:43:34 +0000 (21:43 -0300)]
V4L/DVB (11124): Add support for ProVideo PV-183 to bttv

Add support for ProVideo PV-183 to bttv

This patch adds support for the ProVideo PV-183 card to the bttv
device driver. The PV-183 is a PCI card with 8 BT878 devices plus a Hint
Corp HiNT HB4 PCI-PCI Bridge. Each BT878 has two composite input channels
available. There are no tuners on this card.

Signed-off-by: Alan McIvor <alan.mcivor@reveal.co.nz>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11120): cafe_ccic: stick in a comment with a request for test results
Hans Verkuil [Wed, 18 Mar 2009 16:31:56 +0000 (13:31 -0300)]
V4L/DVB (11120): cafe_ccic: stick in a comment with a request for test results

Due to lack of hardware this conversion to v4l2_device/v4l2_subdev is
untested. If all goes well I should be able to test it in about a month,
but just in case I can't manage that it should be made clear in the code
that this isn't tested.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11118): cafe_ccic: replace debugfs with g/s_register ioctls.
Hans Verkuil [Wed, 18 Mar 2009 16:25:54 +0000 (13:25 -0300)]
V4L/DVB (11118): cafe_ccic: replace debugfs with g/s_register ioctls.

Using VIDIOC_DBG_S/G_REGISTER is the standard way of reading/writing register
for advanced debugging under v4l2. In addition, using this means that the
cafe_ccic driver doesn't need to have knowledge about the used sensor: the
debug ioctl can be passed on to the sensor if it isn't for the host.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11117): ov7670: add support to get/set registers
Hans Verkuil [Wed, 18 Mar 2009 16:24:05 +0000 (13:24 -0300)]
V4L/DVB (11117): ov7670: add support to get/set registers

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11116): ov7670: cleanup and remove legacy code.
Hans Verkuil [Wed, 18 Mar 2009 16:23:13 +0000 (13:23 -0300)]
V4L/DVB (11116): ov7670: cleanup and remove legacy code.

v4l2-i2c-drv-legacy.h and ov7670_command are no longer needed after the
cafe driver is converted to use v4l2_subdev.

Rather than using a large ov7670_control array, just call the handlers
via a simple switch and use v4l2_ctrl_query_fill() to handle queryctrl.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11115): cafe_ccic: use v4l2_subdev to talk to the ov7670 sensor.
Hans Verkuil [Wed, 18 Mar 2009 16:16:44 +0000 (13:16 -0300)]
V4L/DVB (11115): cafe_ccic: use v4l2_subdev to talk to the ov7670 sensor.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11114): cafe_ccic: convert to v4l2_device.
Hans Verkuil [Wed, 18 Mar 2009 16:13:09 +0000 (13:13 -0300)]
V4L/DVB (11114): cafe_ccic: convert to v4l2_device.

Convert this driver to v4l2_device and removed the unnecessary cafe_dev_list.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11113): ov7670: convert to v4l2_subdev
Hans Verkuil [Wed, 18 Mar 2009 16:01:06 +0000 (13:01 -0300)]
V4L/DVB (11113): ov7670: convert to v4l2_subdev

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11112): v4l2-subdev: add support for TRY_FMT, ENUM_FMT and G/S_PARM.
Hans Verkuil [Fri, 6 Feb 2009 21:59:35 +0000 (18:59 -0300)]
V4L/DVB (11112): v4l2-subdev: add support for TRY_FMT, ENUM_FMT and G/S_PARM.

These ops are used by the ov7670 driver, so these need to be added.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11111a): MAINTAINERS: Drop references to deprecated video4linux list
Jean Delvare [Sat, 14 Mar 2009 18:21:24 +0000 (15:21 -0300)]
V4L/DVB (11111a): MAINTAINERS: Drop references to deprecated video4linux list

Mailing list video4linux-list@redhat.com is deprecated, so drop
references to it in MAINTAINERS.

MAINTAINERS |    2 --

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11111): dvb_dummy_fe: Fix compilation breakage
Mauro Carvalho Chehab [Fri, 20 Mar 2009 00:41:08 +0000 (21:41 -0300)]
V4L/DVB (11111): dvb_dummy_fe: Fix compilation breakage

As reported by Randy Dunlap <randy.dunlap@oracle.com>:
ERROR: "dvb_dummy_fe_ofdm_attach" [drivers/media/video/cx231xx/cx231xx-dvb.ko] undefined!

This happens since cx231xx DVB part still misses the frontend modules.
So, the dummy frontend were used for development. The proper fix is to
implement the DVB modules there, as they will be required.

While this won't happen, lets allow the compilation with or without the
dummy FE testing module.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11110): au8522/au0828: Fix Kconfig dependencies
Mauro Carvalho Chehab [Fri, 20 Mar 2009 00:03:09 +0000 (21:03 -0300)]
V4L/DVB (11110): au8522/au0828: Fix Kconfig dependencies

au8522 is now dependent of V4L2, as reported by Randy Dunlap
<randy.dunlap@oracle.com>:

au8522_decoder.c:(.text+0x199898): undefined reference to `v4l2_ctrl_query_fill'
au8522_decoder.c:(.text+0x1998b3): undefined reference to `v4l2_ctrl_query_fill'
au8522_decoder.c:(.text+0x199944): undefined reference to `v4l2_device_unregister_subdev'
au8522_decoder.c:(.text+0x19997c): undefined reference to `v4l2_chip_ident_i2c_client'
au8522_decoder.c:(.text+0x199f1e): undefined reference to `v4l2_i2c_subdev_init'

Cc: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11109): au0828: Fix compilation when VIDEO_ADV_DEBUG = n
Mauro Carvalho Chehab [Thu, 19 Mar 2009 22:26:23 +0000 (19:26 -0300)]
V4L/DVB (11109): au0828: Fix compilation when VIDEO_ADV_DEBUG = n

As reported by Kyle McMartin and Randy Dunlap:

drivers/media/video/au0828/au0828-video.c:1438: error: 'const struct v4l2_subdev_core_ops' has no member named 'g_register'
drivers/media/video/au0828/au0828-video.c:1453: error: 'const struct v4l2_subdev_core_ops' has no member named 's_register'

This patch properly implements those two API ioctls only when debug is
enabled.

Cc: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11108): get_dvb_firmware: Add option to download firmware for cx231xx
Mauro Carvalho Chehab [Thu, 19 Mar 2009 15:10:00 +0000 (12:10 -0300)]
V4L/DVB (11108): get_dvb_firmware: Add option to download firmware for cx231xx

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11106): gspca - ov534: New sensor ov965x and re-enable the webcam 06f8:3003
Jean-Francois Moine [Thu, 19 Mar 2009 09:15:21 +0000 (06:15 -0300)]
V4L/DVB (11106): gspca - ov534: New sensor ov965x and re-enable the webcam 06f8:3003

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11105): gspca - ov534: Adjust the packet scan function
Jean-Francois Moine [Thu, 19 Mar 2009 09:12:59 +0000 (06:12 -0300)]
V4L/DVB (11105): gspca - ov534: Adjust the packet scan function

- change max payload size to 2040 bytes (was 2048)
- optimize

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11104): gspca - ov534: Bad frame pointer after adding the last packet
Jean-Francois Moine [Thu, 19 Mar 2009 09:05:06 +0000 (06:05 -0300)]
V4L/DVB (11104): gspca - ov534: Bad frame pointer after adding the last packet

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11103): gspca - main: May have isochronous transfers on altsetting 0
Jean-Francois Moine [Thu, 19 Mar 2009 08:55:22 +0000 (05:55 -0300)]
V4L/DVB (11103): gspca - main: May have isochronous transfers on altsetting 0

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11100): au8522: fix compilation warning.
Hans Verkuil [Wed, 18 Mar 2009 19:39:07 +0000 (16:39 -0300)]
V4L/DVB (11100): au8522: fix compilation warning.

normal_i2c and I2C_CLIENT_INSMOD are only necessary for kernels < 2.6.22.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11098): v4l2-common: remove incorrect MODULE test
Hans Verkuil [Wed, 18 Mar 2009 18:48:01 +0000 (15:48 -0300)]
V4L/DVB (11098): v4l2-common: remove incorrect MODULE test

v4l2-common doesn't have to be a module for it to call request_module().
Just remove that test.

Thanks-to: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11097): use video_ioctl2 as ioctl handler directly
Janne Grunau [Wed, 18 Mar 2009 23:57:04 +0000 (20:57 -0300)]
V4L/DVB (11097): use video_ioctl2 as ioctl handler directly

The encoder commands ioctls are available in v4l2_ioctl_ops. Use them
and get rid of the custom ioctl handler and use video_ioctl2.

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11096): V4L2 Driver for the Hauppauge HD PVR usb capture device
Janne Grunau [Wed, 18 Mar 2009 21:10:04 +0000 (18:10 -0300)]
V4L/DVB (11096): V4L2 Driver for the Hauppauge HD PVR usb capture device

The device encodes component video up to 1080i to a MPEG-TS stream with
H.264 video and stereo AAC audio. Newer firmwares accept also AC3
(up to 5.1) audio over optical SPDIF without reencoding.
Firmware upgrade is unimplemeted but rather unimportant since
the firmware sits on a flash chip.

The I2C adapter to drive the integrated infrared receiver/sender is
currently disabled due to a conflict with cx18-based devices.

Tested-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11095): adds V4L2_CID_SHARPNESS to v4l2_ctrl_query_fill()
Janne Grunau [Wed, 18 Mar 2009 20:00:39 +0000 (17:00 -0300)]
V4L/DVB (11095): adds V4L2_CID_SHARPNESS to v4l2_ctrl_query_fill()

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11092): cx18: Optimize processing of VBI buffers from the capture unit
Andy Walls [Sun, 15 Mar 2009 02:20:49 +0000 (23:20 -0300)]
V4L/DVB (11092): cx18: Optimize processing of VBI buffers from the capture unit

Removed some unnecessary memcpy()'s by reworking the compress_*_vbi_buf()
functions.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11091): cx18, ivtv: Ensure endianess for linemasks in VBI embedded in MPEG...
Andy Walls [Sat, 14 Mar 2009 23:03:26 +0000 (20:03 -0300)]
V4L/DVB (11091): cx18, ivtv: Ensure endianess for linemasks in VBI embedded in MPEG stream

The sliced VBI payloads that cx18 and ivtv would insert in the MPEG stream
did not have consistent endianess for the linemasks in the payload (a big
endian platform would write them out big endian).  This change ensures the
linemasks are always stored as little-endian in the MPEG stream to ensure
cross platform consistency in parsing the generated MPEG stream.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11089): au8522: finish conversion to v4l2_device/subdev
Devin Heitmueller [Sun, 15 Mar 2009 23:05:51 +0000 (20:05 -0300)]
V4L/DVB (11089): au8522: finish conversion to v4l2_device/subdev

Per Hans Verkuil <hverkuil@xs4all.nl> instruction, remove the au8522_command
and replace v4l2-i2c-drv-legacy.h with v4l2-i2c-drv.h

Thanks to Hans Verkuil <hverkuil@xs4all.nl> for reviewing the au8522 analog
support.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11088): au0828: finish videodev/subdev conversion
Devin Heitmueller [Sun, 15 Mar 2009 23:01:53 +0000 (20:01 -0300)]
V4L/DVB (11088): au0828: finish videodev/subdev conversion

Per Hans Verkuil <hverkuil@xs4all.nl> instruction, remove the deprecated
attach_inform/detach_inform routines, and convert over the i2c calls to
subdev calls.

Thanks to Hans Verkuil <hverkuil@xs4all.nl> for providing feedback on the
au0828 analog support.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Devin Heitmueller [Sun, 15 Mar 2009 21:52:10 +0000 (18:52 -0300)]
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support

The VBI support or the au0828 has the framework written but it does not yet
work.  Rename the macro per Mauro's request.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11085): au0828/au8522: Codingstyle fixes
Devin Heitmueller [Sun, 15 Mar 2009 21:48:52 +0000 (18:48 -0300)]
V4L/DVB (11085): au0828/au8522: Codingstyle fixes

Take a pass over all of the au0828/au8522 files and cleanup all the codingstyle
issues.  This patch does not make *any* functional change to the code.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11084): au0828: add entry for undefined input type
Devin Heitmueller [Sun, 15 Mar 2009 20:48:26 +0000 (17:48 -0300)]
V4L/DVB (11084): au0828: add entry for undefined input type

For the sake of completeness, include the "undefined" input type enumeration,
even though there is no path that can actually call it.

Thanks to Mauro Carvalho Chehab <mchehab@infradead.org> for pointing this out.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11083): au0828: remove some unneeded braces
Devin Heitmueller [Sun, 15 Mar 2009 20:43:13 +0000 (17:43 -0300)]
V4L/DVB (11083): au0828: remove some unneeded braces

There were some braces left behind from when there was more code in the block.
Remove it.

Thanks to Mauro Carvalho Chehab <mchehab@infradead.org> for pointing this out.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11082): au0828: remove memset calls in v4l2 routines.
Devin Heitmueller [Sun, 15 Mar 2009 20:38:47 +0000 (17:38 -0300)]
V4L/DVB (11082): au0828: remove memset calls in v4l2 routines.

The userland callers are responsible for clearing the output buffers, so
remove the unneeded memset calls.

Thanks to Mauro Carvalho Chehab <mchehab@infradead.org> for pointing this out.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11081): au0828: make sure v4l2_device name is unique
Devin Heitmueller [Thu, 12 Mar 2009 00:58:04 +0000 (21:58 -0300)]
V4L/DVB (11081): au0828: make sure v4l2_device name is unique

Make sure newly created v4l2 devices have a unique name, modeling the logic
after the cx18 driver.

Thanks to Andy Walls <awalls@radix.net> for pointing out the issue.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11080): au0828: Convert to use v4l2_device/subdev framework
Devin Heitmueller [Wed, 11 Mar 2009 06:01:04 +0000 (03:01 -0300)]
V4L/DVB (11080): au0828: Convert to use v4l2_device/subdev framework

Convert over to using the new subdev framework for the au0828 bridge.  This
includes using the new i2c probing mechanism.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11079): au0828: fix panic on disconnect if analog initialization failed
Devin Heitmueller [Wed, 11 Mar 2009 06:01:02 +0000 (03:01 -0300)]
V4L/DVB (11079): au0828: fix panic on disconnect if analog initialization failed

If the analog initialization failed to create the video device, we never
actually add the entry to the au0828_devlist.  Therefore a panic occurs when
unregistering the analog subsystem.

Make it so we only remove the entry from the list if we added it to the list
in the first place.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11078): au0828: properly handle non-existent analog inputs
Devin Heitmueller [Wed, 11 Mar 2009 06:01:01 +0000 (03:01 -0300)]
V4L/DVB (11078): au0828: properly handle non-existent analog inputs

It is not valid to look for dev->board.input == NULL to detect an undefined
analog configuration section, since it is a member of the struct and not a
pointer (hence it will *always* be non-NULL).  Do the check based on whether
the first input is actually a valid input type instead.

Thanks to Michael Krufky <mkrufky@linuxtv.org> for providing sample hardware
of various configurations to test with.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11077): au0828: properly handle missing analog USB endpoint
Devin Heitmueller [Wed, 11 Mar 2009 06:01:00 +0000 (03:01 -0300)]
V4L/DVB (11077): au0828: properly handle missing analog USB endpoint

Move the setup of the analog isoc handler into au0828-video.c, so it does not
occur if there is not an .input section defined for the board.  Also fixes a
case where if there is an input section but the board does not actually have
analog support, the digital support will continue to work as expected.

Thanks to Michael Krufky <mkrufky@linuxtv.org> for providing sample hardware
of various configurations to test with.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11076): au0828: make g_chip_ident call work properly
Devin Heitmueller [Wed, 11 Mar 2009 06:00:58 +0000 (03:00 -0300)]
V4L/DVB (11076): au0828: make g_chip_ident call work properly

Make the g_chip_ident call work for the au0828/au8522.  Discovered when testing
with the v4l2_compliance tool

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
[mchehab@redhat.com: fix merge conflict, due to a path change for analog demod]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11075): au0828: make register debug lines easier to read
Devin Heitmueller [Wed, 11 Mar 2009 06:00:57 +0000 (03:00 -0300)]
V4L/DVB (11075): au0828: make register debug lines easier to read

Make it a little easier to read the debug messages for register read/write
operations

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11074): au0828: fix i2c enumeration bug
Devin Heitmueller [Wed, 11 Mar 2009 06:00:56 +0000 (03:00 -0300)]
V4L/DVB (11074): au0828: fix i2c enumeration bug

There was a bug where enumerating the i2c for devices would result in false
positives.  The root of the issue was the scanning was using SMBUS_QUICK
messages, which are zero length write requests (which our i2c adapter
implementation didn't handle).  Because we never strobed any bytes onto the
bus, the status register would still contain the value from the previous
request.

Thanks to Michael Krufky <mkrufky@linuxtv.org> and Steven Toth
<stoth@linuxtv.org> for providing sample hardware, engineering level support,
and testing.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11073): au0828: disable VBI code since it doesn't yet work
Devin Heitmueller [Wed, 11 Mar 2009 06:00:55 +0000 (03:00 -0300)]
V4L/DVB (11073): au0828: disable VBI code since it doesn't yet work

Since the VBI support is not yet working for the au0828, don't advertise the
capability or create the /dev/vbi device.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11072): au0828: advertise only NTSC-M (as opposed to all NTSC standards)
Devin Heitmueller [Wed, 11 Mar 2009 06:00:53 +0000 (03:00 -0300)]
V4L/DVB (11072): au0828: advertise only NTSC-M (as opposed to all NTSC standards)

We don't now how to make any variant of NTSC work other than NTSC-M, so don't
advertise that we support the other variants.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11071): tveeprom: add the xc5000 tuner to the tveeprom definition
Devin Heitmueller [Wed, 11 Mar 2009 06:00:49 +0000 (03:00 -0300)]
V4L/DVB (11071): tveeprom: add the xc5000 tuner to the tveeprom definition

Prior to now, we never relied on the Hauppauge tveeprom to identify which
tuner is associated with the board.  Now that the HVR-950q determines what
the tuner is based on the eeprom, set the tuner ID appropriately.

Thanks to Michael Krufky <mkrufky@linuxtv.org> for providing information on
the tveeprom organization.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>