History log of /drivers/media/video/ivtv/ivtv-driver.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3907b019971fdd626b4740664b6bc7ecdedeec54 21-Feb-2012 Santosh Nayak <santoshprasadnayak@gmail.com> [media] Driver: video: Use the macro DMA_BIT_MASK()

Use the macro DMA_BIT_MASK instead of the constant 0xffffffff.

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
0d47bf5585b1240141c8fb84627e5c1a54ab7a6d 04-Mar-2012 Larry Finger <Larry.Finger@lwfinger.net> [media] ivtv: Fix build warning

In driver ivtv, there is a mismatch between the type of the radio module
parameter and the storage variable, which leads to the following
warning:

CC [M] drivers/media/video/ivtv/ivtv-driver.o
drivers/media/video/ivtv/ivtv-driver.c: In function ‘__check_radio’:
drivers/media/video/ivtv/ivtv-driver.c:142: warning: return from incompatible pointer type
drivers/media/video/ivtv/ivtv-driver.c: At top level:
drivers/media/video/ivtv/ivtv-driver.c:142: warning: initialization from incompatible pointer type

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
eb2ba855470797b20dced364f5897cc949e7ade6 02-Mar-2012 Hans Verkuil <hans.verkuil@cisco.com> [media] ivtv: simplify how the decoder controls are set up

The code was unnecessarily complex, introducing a hdl_out handler that was
not needed. Instead just add the controls to the cxhdl.hdl handler directly.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
debf80014fc1e8d02b3fd57e5fae0d315ac2cb04 15-Dec-2011 Hans Verkuil <hans.verkuil@cisco.com> [media] ivtv: implement new decoder controls

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
da8ec560e3b4e25d73c64a9e08f9f90ebfbfbf7c 24-Nov-2011 Hans Verkuil <hans.verkuil@cisco.com> [media] ivtv: implement new decoder command ioctls

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
4a7c1ff2362b7bfbc04990f42c21cefdff57f997 18-Jan-2012 Linus Torvalds <torvalds@linux-foundation.org> Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media

* 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (57 commits)
[media] as3645a: Fix compilation by including slab.h
[media] s5p-fimc: Remove linux/version.h include from fimc-mdevice.c
[media] s5p-mfc: Remove linux/version.h include from s5p_mfc.c
[media] ds3000: using logical && instead of bitwise &
[media] v4l2-ctrls: make control names consistent
[media] DVB: dib0700, add support for Nova-TD LEDs
[media] DVB: dib0700, add corrected Nova-TD frontend_attach
[media] DVB: dib0700, separate stk7070pd initialization
[media] DVB: dib0700, move Nova-TD Stick to a separate set
[media] : add MODULE_FIRMWARE to dib0700
[media] DVB-CORE: remove superfluous DTV_CMDs
[media] s5p-jpeg: adapt to recent videobuf2 changes
[media] s5p-g2d: fixed a bug in controls setting function
[media] s5p-mfc: Fix volatile controls setup
[media] drivers/media/video/s5p-mfc/s5p_mfc.c: adjust double test
[media] drivers/media/video/s5p-fimc/fimc-capture.c: adjust double test
[media] s5p-fimc: Fix incorrect control ID assignment
[media] dvb_frontend: Don't call get_frontend() if idle
[media] DocBook/dvbproperty.xml: Remove DTV_MODULATION from ISDB-T
[media] DocBook/dvbproperty.xml: Fix ISDB-T delivery system parameters
...
61bb725ef5a646d3fc8a64e41b020a65542cdae1 12-Oct-2011 Hans Verkuil <hans.verkuil@cisco.com> [media] ivtv: remove open_id/id from the filehandle code

Instead of messing around with id's it's much easier to just compare
against a filehandle pointer.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
90ab5ee94171b3e28de6bb42ee30b527014e0be7 13-Jan-2012 Rusty Russell <rusty@rustcorp.com.au> module_param: make bool parameters really bool (drivers & misc)

module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.

It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.

Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
/drivers/media/video/ivtv/ivtv-driver.c
8f33450a4c886774345d606d615cf6b50fa193b7 24-Oct-2011 Ian Armstrong <ian@iarmst.demon.co.uk> [media] ivtv: Fix radio support

Although the ivtv driver reports radio support through the V4L2 API, it fails
to actually enable it. This patch fixes that.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
c5874c9245d298c65f81c2f91f89e1da8ea66409 30-May-2011 Ian Armstrong <ian@iarmst.demon.co.uk> [media] ivtv: Internally separate encoder & decoder standard setting

Internally separates the setting of the broadcast standard for the encoder &
decoder. Externally there's no change in functionality.

[awalls@md.metrocast.net: Edited to fix a checkpatch gripe about multiple
assignment and to remove a now unused DEFINE_WAIT() due to this patch]

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
abd34d8d6b213c792c1a06fd75488595c5fb6d3f 21-Mar-2011 Bjørn Mork <bjorn@mork.no> [media] use pci_dev->revision

pci_setup_device() has saved the PCI revision in the pci_dev
struct since Linux 2.6.23. Use it.

Cc: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
fa98447f09641adeeaf02b94133649f03b74d159 11-Dec-2010 Andy Walls <awalls@md.metrocast.net> [media] ivtv, cx18: Make ioremap failure messages more useful for users

The error messages these drivers emitted for ioremap() failures
were misleading and not helpful for users. Reworded those messages
to help the user take action to resolve vmalloc address space
exhaustion.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
f7b80e6919df812b4bed99a927325312a904111b 27-Jun-2010 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB: ivtv: convert to the new control framework

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
2fd781448acd6cbc3ca9d2f48b0e16f67a77bf51 23-Apr-2010 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB: ivtv: convert gpio subdev to new control framework

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
72c851b00f6c86353c54fdd9f1ef88d82e8df6c5 06-Aug-2010 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB: cx25840/ivtv: replace ugly priv control with s_config

The cx25840 used a private control CX25840_CID_ENABLE_PVR150_WORKAROUND
to be told whether to enable a workaround for certain pvr150 cards.

This is really config data that it needs to get at load time.

Implemented this in cx25840 and ivtv.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
3b7433b8a8a83c87972065b1852b7dcae691e464 07-Aug-2010 Linus Torvalds <torvalds@linux-foundation.org> Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq: (55 commits)
workqueue: mark init_workqueues() as early_initcall()
workqueue: explain for_each_*cwq_cpu() iterators
fscache: fix build on !CONFIG_SYSCTL
slow-work: kill it
gfs2: use workqueue instead of slow-work
drm: use workqueue instead of slow-work
cifs: use workqueue instead of slow-work
fscache: drop references to slow-work
fscache: convert operation to use workqueue instead of slow-work
fscache: convert object to use workqueue instead of slow-work
workqueue: fix how cpu number is stored in work->data
workqueue: fix mayday_mask handling on UP
workqueue: fix build problem on !CONFIG_SMP
workqueue: fix locking in retry path of maybe_create_worker()
async: use workqueue for worker pool
workqueue: remove WQ_SINGLE_CPU and use WQ_UNBOUND instead
workqueue: implement unbound workqueue
workqueue: prepare for WQ_UNBOUND implementation
libata: take advantage of cmwq and remove concurrency limitations
workqueue: fix worker management invocation without pending works
...

Fixed up conflicts in fs/cifs/* as per Tejun. Other trivial conflicts in
include/linux/workqueue.h, kernel/trace/Kconfig and kernel/workqueue.c
215659d14f9dbc849ccda1655c94d710f8cc6384 12-Jun-2010 Ian Armstrong <ian@iarmst.demon.co.uk> V4L/DVB: ivtv: Automatic firmware reload

If the firmware has failed, this patch will automatically reload &
restart the card. The previous card state will be restored on a
successful restart. Firmware reload will only happen if neither the
encoder or decoder is active. If the card is busy then behaviour is as
before, returning -EIO on device access until the reload can occur. On
cards that support video output, coloured bars will be displayed during
the reload.

Andy Walls (ivtv maintainer and patch committer) made minor tweaks to
comments and the logged messages, but nothing substantial otherwise.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
914610e8c508224a6fb9fb501ed4bda25b340ba6 12-Jun-2010 Ian Armstrong <ian@iarmst.demon.co.uk> V4L/DVB: ivtv: Add firmare monitoring and debug mode to ignore firmware problems

>From Ian's e-mail:
When a device is opened the firmware state will be checked. If it isn't
responding then the open will fail with -EIO. Due to the nature of the
hardware, a single failed check will block everything since we don't know
exactly what has failed. A side effect of this is the blocking of debug
access, so an additional debug level has been created which allows the block
to be bypassed.

Andy Walls' modifications:
I modified Ian's patch to add a separate fw_debug module parameter to change
the driver's behavior, as opposed to using the normal debug module parameter.
The fw_debug module parameter is only available when CONFIG_VIDEO_ADV_DEBUG
is set.
I also made some minor whitespace adjustments and changed some warning
messages to be a bit more specific. s/happy/glad/g

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
7bc465605ffa90b281d6b774fcb13911636a6d45 29-Jun-2010 Tejun Heo <tj@kernel.org> ivtv: use kthread_worker instead of workqueue

Upcoming workqueue updates will no longer guarantee fixed workqueue to
worker kthread association, so giving RT priority to the irq worker
won't work. Use kthread_worker which guarantees specific kthread
association instead. This also makes setting the priority cleaner.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Andy Walls <awalls@md.metrocast.net>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: ivtv-devel@ivtvdriver.org
Cc: linux-media@vger.kernel.org
/drivers/media/video/ivtv/ivtv-driver.c
2443baeaa01388f56824c55c087510312b8d8197 14-Mar-2010 Ian Armstrong <ian@iarmst.demon.co.uk> V4L/DVB: ivtv: Avoid hard system lock on decoder output mode change

Changing the decoder video standard just prior to, or during, the output of
the lower field may result in a hard system lock. To avoid this, try to ensure
the firmware call occurs only during the first 100 lines of the top field.

(Minor comment addition and a line break added Andy Walls <awalls@radix.net>.)

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
7c12167bae57994e30cc5258e8aaa6fb06258f46 11-Feb-2010 Eric Anderson <rico99@sbcglobal.net> V4L/DVB: ivtv: Add initial entry for Sony VAIO Giga Pocket (Kikyou) cards

This is a slightly modified version of Eric Anderson's original patch
for the Sony Giga Pocket board. It has been updated to apply to the
latest ivtv driver version by Hans Verkuil <hverkuil@xs4all.nl> and
Andy Walls <awalls@radix.net>. Also Andy Walls modified the patch to
use a new Sony BTF-Pnx01Z tuner entry based on Eric Anderson's experimental
findings for the bandswitch.

>From Eric Anderson's original email:

1. The tuner on the card doesn't seem to match any standard
ones. I modified an existing tuner entry. Ideally a new tuner
entry should be created. (The only difference from the one I
modified is that the low-to-mid range frequency cut-off is
slightly different, as are the bit config settings.)

2. It wasn't obvious how to choose a second audio input other
than using "radio" as an option. Basically there's two GPIO
audio inputs. Using radio allowed me to avoid major restructuring
to the code. (perhaps other cards don't have this often...)

3. It's not clear that there's a mute setting that works. Not
sure why.

4. I haven't had a chance to test the two Svideo inputs. I set
them to COMPOSITE1 and SVIDEO2, but I'm not sure those are the
correct settings. The standard composite video inputs seem to work.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
7ce5c41db3672c8b4419b16d9b3ac1ccf11a1445 21-Nov-2009 Andy Walls <awalls@radix.net> V4L/DVB (13446): ivtv: Add more explicit detection of known IR devices for Hauppauge cards

Avoid legacy IR I2C probing for PVR-150, PVR-500, and PVR-350 cards. This
still probes, but restricts the possbile addresses probed per card.
Also removed legacy probe addresses for the KNC and PixelView cards which are
not supported by ivtv as far as I know.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
bfbde8ee56d4a19e2d36a5a24b6dbfd298298bf1 21-Nov-2009 Andy Walls <awalls@radix.net> V4L/DVB (13443): ivtv: Defer legacy I2C IR probing until after setup of known I2C devices

This avoids collisions of legacy IR controller probing with known I2C devices
in the card definitions in ivtv-cards.c. I2C driver modules for device listed
explicitly in a card definition should always take precedence over a probe
guessing where and IR controller may be.

Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
f412d36a8c9f8e40e057b71e80d534ac388e903e 21-Nov-2009 Andy Walls <awalls@radix.net> V4L/DVB (13442): ivtv: Add module parameter to adjust I2C SCL clock period per board

Add a module parameter to adjust I2C SCL clock period per board. This allows
some experimental fine tuning by end users to overcome quirky I2C device
problems.

Reported-by: "Aleksandr V. Piskunov" <aleksandr.v.piskunov@gmail.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
9710e7a77a0a0564a393250d86b8cb3d560bb69f 04-Nov-2009 Peter Huewe <peterhuewe@gmx.de> V4L/DVB (13288): adding __init/__exit macros to various drivers

Trivial patch which adds the __init/__exit macros to the module_init/
module_exit functions of the following drivers in media video:
drivers/media/video/ivtv/ivtv-driver.c
drivers/media/video/cx18/cx18-driver.c
drivers/media/video/davinci/dm355_ccdc.c
drivers/media/video/davinci/dm644x_ccdc.c
drivers/media/video/saa7164/saa7164-core.c
drivers/media/video/saa7134/saa7134-core.c
drivers/media/video/cx23885/cx23885-core.c

Cc: Hermann Pitton <hermann-pitton@arcor.de>
Acked-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Acked-by: Andy Walls <awalls@radix.net>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Muralidharan Karicheri <m-karicheri2@ti.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
581644d9c95dd04aa46267aa0b6b5619d02b02ea 19-Jun-2009 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (12723): ivtv/cx18: replace 'kernel number' with 'device node number'.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
50364593f8d4a5b9c2a025c8acb41dc92f1c901d 03-Jul-2009 Andy Walls <awalls@radix.net> V4L/DVB (12209): ivtv: Add card entry for AVerMedia UltraTV 1500 MCE (M113 variant)

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
ce27cd3bf989fe7187526cb120c69bf33b0b68d0 02-Jul-2009 Joe Perches <joe@perches.com> V4L/DVB (12198): ivtv-driver.c: Remove unnecessary semicolons

Cc: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
7360055aa31f5f732af4d0ed23517f1b6adfa573 23-May-2009 Andy Walls <awalls@radix.net> V4L/DVB (11932): ivtv: Add missing newline

Reported-by: Martin Dauskardt <martin.dauskardt@gmx.de>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
a79b11c025a5757a5129e716e7e66dc36a2dfe21 02-May-2009 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (11672): ivtv: use v4l2_device_set_name.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
34a7864db1bc6d9ceb466251957fccf90c7106f8 02-May-2009 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (11668): ivtv: fix compiler warning.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
3ff4ad815c5824ab35375d72ea8fe14fb3230daa 01-Apr-2009 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (11377): v4l: increase version numbers of drivers converted to v4l2_subdev.

With all the v4l2_subdev changes that were made to these drivers it is a
good idea to increase the version number of each driver.

It's just the patch level that is increased, except for the zoran and saa7146
drivers where the minor number was increased due to the more substantial
changes that were made to those two drivers.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
cc26b076cf8b1040ccc514302ef9a24042272ec3 30-Mar-2009 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (11369): v4l2-subdev: add load_fw and use that instead of abusing core->init.

The init callback was used in several places to load firmware. Make a separate
load_fw callback for that. This makes the code a lot more understandable.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
8ac05ae3192ce8a71fc84e4a88772cce0c09173c 07-Feb-2009 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (10488): ivtv: cleanup naming conventions

Use consistent naming for pci_dev, v4l2_device and video_device.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
2c1a3c979ce66e3073c1b87373c0c01a95f847e6 12-Jan-2009 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (10229): ivtv: fix memory leak

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
aecde8b53b8ee1330a5a8206200f0d6b8845a6e0 30-Dec-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (10141): v4l2: debugging API changed to match against driver name instead of ID.

Since the i2c driver ID will be removed in the near future we have to
modify the v4l2 debugging API to use the driver name instead of driver ID.

Note that this API is not used in applications other than v4l2-dbg.cpp
as it is for debugging and testing only.

Should anyone use the old VIDIOC_G_CHIP_IDENT, then this will be logged
with a warning that it is deprecated and will be removed in 2.6.30.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
67ec09fdf5e05d4670b617256c696348b5df080b 29-Nov-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (9835): ivtv/ivtvfb: convert to v4l2_device/v4l2_subdev.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
58ae1c23184772a7b2d02a4a82f5515a7820a155 03-Nov-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (9506): ivtv/cx18: fix test whether modules should be loaded or not.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
323a491a29d0bb1e91263ca347cb42c4de28adfc 18-Oct-2008 Martin Dauskardt <martin.dauskardt@gmx.de> V4L/DVB (9326): ivtv: avoid green flashing when loading ivtv

When loading ivtv the TV-out of the PVR-350 will flash green since the
saa712x is activated before the MPEG decoder has been initialized.

Deactivate the saa712x until the MPEG decoder has been initialized.

Signed-off-by: Martin Dauskardt <martin.dauskardt@gmx.de>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
a8b864354e060dda1000e62d1fea7c1274581caf 04-Oct-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (9162): ivtv: fix raw/sliced VBI mixup

The service_set field was used in saa7115 and cx25840 to determine
whether raw or sliced VBI was desired. This is incorrect since it is
perfectly valid to select sliced VBI with a service_set of 0.

Instead these drivers should checked on VIDIOC_S_FMT whether the type
field matches the raw or sliced VBI type.

Updated ivtv accordingly.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
dd89601d47e2eeab7c17b25f2549444751bcffe4 04-Oct-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (9133): v4l: disconnect kernel number from minor

The v4l core creates four different video devices (video, vbi, radio, vtx)
and each has its own range of minor numbers. However, modern devices keep
increasing the number of devices that they need so a maximum of 64 video
devices will not be enough in the future. In addition this scheme makes
it very hard to add new device types.

This patch disconnects the kernel number allocation (e.g. video0, video1,
etc.) from the actual minor number (just pick the first free minor).

This allows for much more flexibility in the future. However, it does
require the use of udev. For those who cannot use udev a new CONFIG option
was created that changes the allocation scheme back to the old behavior.

Thanks to Greg KH for suggesting this approach during the 2008 LPC.

In addition, several bugs were fixed in the ivtv and cx18 drivers: these
drivers try to allocate specific kernel numbers but that scheme contained
a bug which caused what should have been e.g. video17 to appear as e.g.
video2.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
29e66a6ce84abe04bc809ddb35634752881dec79 04-Sep-2008 Bjorn Helgaas <bjorn.helgaas@hp.com> V4L/DVB: follow lspci device/vendor style

Use "[%04x:%04x]" for PCI vendor/device IDs to follow the format
used by lspci(8).

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
/drivers/media/video/ivtv/ivtv-driver.c
d526afe06b285006c63ed8f2eba9589f04e3283a 03-Sep-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (8648): ivtv: improve CC support

- change the work-queue to a single threaded high prio workqueue
- use DMA instead of PIO for the sliced VBI data.
- remove some incorrect tests
- increase the internal VBI capture queue size for sliced VBI packets
- ignore duplicate VBI lines

With these changes it should finally be possible to get reliable closed
captions.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
b654fcdc0ea3b6e5724c9873ae062bdfe7f28efe 22-Jul-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (8479): tveeprom/ivtv: fix usage of has_ir field

has_ir was set to and compared to -1 in several cases, even though it is
an u32. ivtv also contained a FIXME for an old kernel that could be
removed.

Thanks to Roel Kluin for creating an initial patch for this. Although
I chose a different solution here it did help in pointing out the problem.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
c3cb4d95ae778dbc6a4be1e74672d645fc75c8a7 28-Jun-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (8164): cx18/ivtv: choose a better initial TV standard for cards without eeprom.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
3f038d80039f60e4340eaedd13369e0d2c758b80 29-May-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (8079): ivtv: Convert to video_ioctl2.

Based on an initial conversion patch from Douglas Landgraf.

Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
d56eebfbdc11d1a3809d8bd793a118da5058ffa8 20-May-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (7926): ivtv: add support for the Buffalo PC-MV5L/PCI card.

Thanks to Peter Brandt for doing the necessary tests to fill out the card
definition!

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
b4ac3c8d8de387366be11c7320693e0b14429a49 13-May-2008 Jean Delvare <khali@linux-fr.org> V4L/DVB (7924): ivtv/cx18: snprintf fixes

snprinf() takes the trailing \0 into account in its length calculations,
so there is no need to subtract 1 to the buffer size.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
3f98387efa9333c5765d36e144c47c107d6ba64a 01-May-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (7854): cx18/ivtv: improve and fix out-of-memory handling

- don't show kernel backtrace when the allocation of the buffers fails: the
normal ivtv/cx18 messages are clear enough and the backtrace scares users.
- fix cleanup after the buffer allocation fails (caused kernel panic).

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
6a4a79355bfa9ae6977556595a68f2e3a0e143f7 01-May-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (7853): ivtv/cx18: fix compile warnings

Fix compile warnings if MODULE is not defined.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
dab2ea48dcd3f75fda7ea25479666693321636be 29-Apr-2008 Robert P. J. Day <rpjday@crashcourse.ca> V4L/DVB (7792): ivtv: correct misspelled "HIMEM4G" to "HIGHMEM4G" in error message

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
149ef72deeba57078216c9fa678baff392295853 30-Apr-2008 Mauro Carvalho Chehab <mchehab@infradead.org> Rename common tuner Kconfig names to use the same
namespace for all of them.
/drivers/media/video/ivtv/ivtv-driver.c
22f23fcc13e34a1efde8e7c37d157516fc1aa24f 26-Apr-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (7757): ivtv: add autodetect for the AVermedia M104 card

Note that this card is only detected and not yet working.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
ecfcc83b8d6ff8ac65b072b309a1774ca52d955e 26-Apr-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (7755): ivtv: add support for card comments and detected but unsupported cards

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
d86e2ee98eeef61bdab8ca1bf4837c5709173790 26-Apr-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (7754): ivtv: change initialization order to fix an oops when device registration failed

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
fb7b37cf913c19dbdbb9bf3e653924e126b4007e 09-Apr-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (7535): saa717x: add new audio/video decoder i2c driver

Added the last remaining out-of-tree kernel driver from the ivtv project.
The saa717x is used in several Japanese cards and a Russian card. The
driver is not complete in that only NTSC is supported and no PAL/SECAM.

Hopefully this will be added in the future.

Signed-off-by: Takahiro Adachi <tadachi@tadachi-net.com>
Signed-off-by: Kyuma Ohta <whatisthis@jcom.home.ne.jp>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
11305d590895f22c30545ee0ff3fb434128fefb0 22-Apr-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (7341): ivtv: rename tunerhz to tunertype

There are two tuner types: those for M/N standards and those for all others.
However, M/N standards are not always 60 Hz (PAL-N/Nc are 50 Hz), so rename
the module option accordingly.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
cd9fa026606848b2238a56e37b2c4aa4f371e152 22-Apr-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (7340): ivtv: fix tunerhz bug: PAL-N(c) is 50 Hz, not 60

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
c0038ce025e1d70076894e6a206a73fd37ad493d 22-Apr-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (7338): ivtv: improve pal/secam module options, add tunerhz module option

Allow options like pal=bgh, improve description of those options.
Add tunerhz option: 50=card has 50Hz tuner, 60=card has 60Hz tuner.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
88ab075aee974f70b7b0273a964810698c8a5b95 22-Apr-2008 Ian Armstrong <ian@iarmst.demon.co.uk> V4L/DVB (7243): ivtv: yuv framebuffer tracking

The existing yuv code limits output to the display area occupied by the
framebuffer. This patch allows the yuv output to be 'detached' via
V4L2_FBUF_FLAG_OVERLAY.

By default, the yuv output window will be restricted to the framebuffer
dimensions and the output position is relative to the top left corner of the
framebuffer. This matches the behaviour of previous versions.

If V4L2_FBUF_FLAG_OVERLAY is cleared, the yuv output will no longer be linked
to the framebuffer. The maximum dimensions are either 720x576 or 720x480
depending on the current broadcast standard, with the output position
relative to the top left corner of the display. The framebuffer itself can be
resized, moved and panned without affecting the yuv output.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
ff699e6bd02eb1c6d02c7c2b576c2ee6caab201c 22-Apr-2008 Douglas Schilling Landgraf <dougsland@gmail.com> V4L/DVB (7094): static memory

- Static memory is always initialized with 0.
- Replaced in some cases C99 comments for /* */

Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
165e1213e13b49761f8b3fd9314701f83cf3db3a 26-Feb-2008 Ian Armstrong <ian@iarmst.demon.co.uk> V4L/DVB (7279): ivtv: Add missing sg_init_table()

If a dma transfer is attempted for either yuv or framebuffer output, a missing
sg_init_table() call causes a kernel BUG in scatterlist.h if CONFIG_DEBUG_SG
is set.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
a54d1dea0071a4f6aa46d8e937428c053732efcb 26-Jan-2008 Ian Armstrong <ian@iarmst.demon.co.uk> V4L/DVB (7242): ivtv: fix for yuv filter table check

As the result of a previous change that delayed the loading of the firmware,
the driver can sometimes report a bogus error regarding the yuv output filter
table not being found in the firmware. This patch moves the filter table
check to ensure it's only done after the firmware has been loaded.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
3e509c76047781525c38fde1e0fa244470c7663c 24-Dec-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6917): ivtv: small textual update

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
0e614cd1a5a09b36a3b6d0fff8a08a97800d3cce 22-Dec-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6896): ivtv: add XC2028 support for Club3D cards

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
14d5deba2737c59444e805c10764d58a3d73e9b2 08-Dec-2007 Richard Knutsson <ricknu-0@student.ltu.se> V4L/DVB (6776): ivtv: Some general fixes

Fix "warning: Using plain integer as NULL pointer".
Convert 'x < y ? x : y' to use min() instead.

Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
d9009201207c4bdce9b95a0bd903b3f087e8eda1 08-Dec-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6765): ivtv: convert to bus-based i2c API

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
e08323f099b5aba28610a856fa7d21d0d86fd4f0 08-Dec-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6763): ivtv: add AVerMedia EZMaker PCI Deluxe support

Add support for the AVerMedia EZMaker PCI Deluxe and update the ivtv cardlist.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
77aded6ba51f01335840ce8e18b413067810b68e 05-Nov-2007 Ian Armstrong <ian@iarmst.demon.co.uk> V4L/DVB (6717): ivtv: Initial merge of video48 yuv handling into the IVTV_IOC_DMA_FRAME framework

Previously, all yuv data written to /dev/video48 had only basic support with
no double buffering to avoid display tearing.

With this patch, yuv frames written to video48 are now handled by the existing
IVTV_IOC_DMA_FRAME framework. As such, the frames are hardware buffered to
avoid tearing, and honour scaling mode & field order options. Unlike the
proprietary IVTV_IOC_DMA_FRAME ioctl, all parameters are controlled by the
V4L2 API.

Due to mpeg & yuv output restrictions being different, their V4L2 output
controls have been separated. To control the yuv output, the V4L2 calls must
be done via video48.

If the ivtvfb module is loaded, there will be one side effect to this merge.
The yuv output window will be constrained to the visible framebuffer area. In
the event that a virtual framebuffer size is being used, the limit to the
output size will be the virtual dimensions, but only the portion that falls
within the currently visible area of the framebuffer will be shown.

Like the IVTV_IOC_DMA_FRAME ioctl, the supplied frames must be padded to 720
pixels wide. However the height must only be padded up the nearest multiple
of 32. This would mean an image of 102 lines must be padded to 128. As long
as the true source image size is given, the padding will not be visible in
the final output.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
a3e5f5e2dfb50bebca24329e5377d804c6e3eb1b 20-Oct-2007 Ian Armstrong <ian@iarmst.demon.co.uk> V4L/DVB (6713): ivtv: ivtv_yuv_prep_frame breakup and yuv hardware buffer changes

ivtv_yuv_prep_frame is split in smaller code blocks.

Modified yuv buffer handling on the PVR350 itself. We now cycle through all 8
hardware buffers.

With this patch in place, driver behaviour should remain unchanged from the
existing release.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
c240ad00af78228726e6301ad6ffc54d3adce2a0 16-Oct-2007 Ian Armstrong <ian@iarmst.demon.co.uk> V4L/DVB (6712): ivtv: ivtv yuv stream handling change

Currently the yuv output stream buffer is divided into blocks whose size
depend on the broadcast standard selected during the driver init phase.
However, the standard can be changed after the init phase. This effectively
breaks the yuv output stream handler, since it relies on the different yuv
planes being block aligned.

This patch changes the setup, so that the block size is always the same. The
decoder dma function has been modified to cope with the fact that the second
yuv plane may no longer be block aligned. The start of the yuv frame must
still be at the beginning of a block, so the stream write function has also
been modified to ensure this is always true.

Also, the stream write function will now initiate a yuv dma transfer as soon
as a full frame is ready. It will not wait until the current write request
has completed, or the stream buffer becomes full.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
fdef464a7fdcc0f5905d380b2065fec7715bc95d 30-Oct-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6489): ivtv: add support for AVerMedia PVR-150 Plus

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
e2a1774d9c8b866db65853fd1a17e5f472dd5cf2 30-Oct-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6488): ivtv: add ASUS Falcon2 support

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
12466577853b0d057f4416f4c7020e544f3a4209 24-Oct-2007 Mauro Carvalho Chehab <mchehab@infradead.org> V4L/DVB (6422): Add the pending entries for xc2028/3028 based boards

Also replaces all occurrences of TUNER_XCEIVE_XC3028 to TUNER_XC2028.

Some work is still may be required to make sure that non-tm6000 drivers will
be capable of using tuner-xc2028.

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
745a4c9f0ba60a414224f2d5e4f0e8e25efd04e8 10-Jan-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6999): ivtv: stick to udelay=10 after all

Using an udelay of 5 seems to result in problems for several people.
For now abandon the udelay value of 5 and stick to 10, even though this
will mean a longer load time of the cx2584x firmware.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
89dab3573aa1d95fd222ee4551f964bfa4c16823 07-Jan-2008 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6916): ivtv: udelay has to be changed *after* the eeprom was read, not before

The eeprom decides which Hauppauge model it is, so the decision whether to
use an udelay of 5 or 10 needs to be taken after reading the eeprom, not
before.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
18e16f9c954c6a931ee97584014c826255e0bdaa 13-Oct-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6342): ivtv: fix circular locking (bug 9037)

If you try to access the video device from within an udev rule,
then you get into a circular locking situation.

Changed the driver to postpone the registration of the devices until
everything else has been fully initialized, so that the newly created
device can be used immediately.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
64a6f9500d8e8a8e1b1adc2120e56cc88df5727f 14-Oct-2007 Al Viro <viro@ftp.linux.org.uk> signedness: module_param_array nump argument

... should be unsigned int

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
/drivers/media/video/ivtv/ivtv-driver.c
7b3a0d49e3e929b810ade38926342faca53e867d 26-Aug-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6120): ivtvfb: rename some missed ivtv-fb references to ivtvfb

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
26e9d599561e9a964bd4d7c2be0029db8aaff852 25-Aug-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6115): ivtv/ivtv-fb: improve locking to avoid initialization problems
ivtv/ivtv-fb: improve locking to prevent ivtv/ivtv-fb initialization problems

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
fd8b281a2809d2bd9119df1fbd717ab2371297cd 23-Aug-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6093): ivtv: reorganized and cleanup ivtv struct

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
33c0fcad2160bc211272295e862c6f708118d006 23-Aug-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6092): ivtv: more cleanups, merged ivtv-audio.c and ivtv-video.c into ivtv-routing.c

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
612570f2c4794bbf4e5bfa8648b61fbfc9cd8501 23-Aug-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6091): ivtv: header cleanup

- add guards
- remove unused header includes
- move card-specific stuff from ivtv-driver.h to ivtv-cards.h
- move YUV-specific stuff from ivtv-driver.h to ivtv-yuv.h

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
1aa32c2ffd146dddd76babf842e998502f1b993a 19-Aug-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6055): ivtv: improve debug messages

- add FILE debug flag for open/close/read/write/poll.
- show cmd for encoder/decoder command ioctl.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
313e91e824c0c595dec3740c0c87f55eea6bdb3f 19-Aug-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6054): ivtv: specify some stream sizes in kB instead of MB

Some streams (PCM, VBI decoding) do not need that much memory, so specify
the allocated memory in kB instead of MB to limit memory usage. E.g. 1 MB
is overkill for the VBI decoding stream, 64 kB is enough.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
2ce55b606b29c6ab0c8583772f6807b49cc89372 19-Aug-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (6053): ivtv: setup TV output standard on init to prevent flicker

The TV output standard was set only on first use, which meant that the saa7127
was set to NTSC until then, leading to flickering on PAL systems.

Since the saa7127 has no firmware it is OK to initialize it immediately.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
372978055dd564d97ca1b4099c99296eaff1fe19 11-Sep-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5995): ivtv: add AverMedia M116

- Split Club3D card from Yuan PG600-2, GotView PCI DVD Lite
(different composite input)
- Add AVerTV MCE 116 Plus (M116) card
- Allow Xceive cards to be used without Xceive support

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
ac247433fe205acf460f05de64a30ee71ea307f2 27-Jul-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5929): Add vp27smpx driver

This device is internal to the Panasonic VP27S tuner and is used to set
the mono/stereo/bilingual setting of the tuner.

It is used by two Japanese cx23416-based cards.

Signed-off-by: Takahiro Adachi <tadachi@tadachi-net.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
469ba047c08669f364c2616967e8494b1f3ef21c 20-Jul-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5927): ivtv: set correct crystal frequency of the GVMVPRX cards

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
6e5eb59102aa6007d3ea2b382a1d3ca4112c272a 25-Jul-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5924): ivtv-fb: initializing the fb should trigger ivtv firmware load


ivtv-fb: initializing the framebuffer should trigger ivtv firmware load

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
c976bc82339437e840f7dbf0b8c89c09d3fcd75e 22-Jul-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5922): ivtv, cx25840: postpone fw load until first use

The firmware is now loaded when the driver is actually used for the first
time. This allows the driver to be compiled in-kernel instead of as a module.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
32db775452818656d5fd8fd8b0f54425f5cfc177 20-Jul-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5902): Add ivtv-fb framebuffer driver.

Add the ivtv-fb framebuffer driver for cx23415 devices (currently
only the Hauppauge PVR-350 cards). This makes it possible to use
the On-Screen Display functionality of these cards, either for menus
during MPEG playback, or as a console or X display.

Signed-off-by: Kevin Thayer <nufan_wfk@yahoo.com>
Signed-off-by: Chris Kennedy <c@groovy.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: John P Harvey <john.p.harvey@btinternet.com>
Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
baa05e4b454fa7d87f9a41a4bbc1f749c113ff3a 20-Jul-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5881): ivtv: init channel for NTSC_M_JP standard.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
201700d3544c653d453716a60976efe1987110af 19-Jul-2007 Mauro Carvalho Chehab <mchehab@infradead.org> V4L/DVB (5865): Remove usage of HZ on ivtv driver, replacing by msecs_to_jiffies

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
ae38d93bd710d8014925f1cb9b689dc89c13d778 17-Jul-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5854): ivtv: cleanup of driver messages

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
4b9bc014bf4c65e1da86fbc9721f04e2763feca9 17-Jul-2007 Alexey Dobriyan <adobriyan@sw.ru> V4L/DVB (5852): ivtv: don't recompile needlessly

Driver prints banner including kernel version. Was a leftover from when
the driver was standalone.

Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
bd58df6d522d5a9c791f6a4820e480e9be60650d 10-Jul-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5844): ivtv: add high volume debugging flag

Add support for high volume debug messages, allowing them to be turned
on selectively.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
f885969196da6ae905162c0d1c5f0553de12cb40 10-Jul-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5842): ivtv: Add locking to ensure stream setup is atomic.

Starting an MPEG and VBI capture simultaneously caused errors in
the VBI setup: this setup was done twice when it should be done
only for the first stream that is opened.
Added a mutex to prevent this from happening.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
27b5a3957a205bcaa07952ed27981f69b2b2f764 16-Jun-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5768): Ivtv: fix converity warning

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
1b9d313c38291c6d60f1fbf6a2bc62c484fdaa21 18-May-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5674): Models 30012-30039 are for a low profile PVR250, not PVR150.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
e80666b87b7f832cad7f824c4ec5799b1c99fa5e 17-May-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5671): Autodetect new PVR150 low profile cards.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
dc02d50a6d71cba2b2edb78377af5a5965879a49 19-May-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5675): Move big PIO accesses from the interrupt handler to a workhandler

Sliced VBI transfers use PIO instead of DMA. This was done inside the
interrupt handler, but since PIO accesses are very slow this meant that
a lot of time was spent inside the interrupt handler. All PIO copies are
now moved to a workqueue. This should fix various issues with missing time
ticks and remote key hits.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
b71ed5cfe651051cd90b0e31c3cdb74953d6416f 01-May-2007 Thomas Gleixner <tglx@linutronix.de> V4L/DVB (5566): MEDIA: Spinlock initializer cleanup

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
9e0df402e695e638dfee94a6e05fca48b15404e6 16-Mar-2007 Ian Armstrong <ian@iarmst.demon.co.uk> V4L/DVB (5438): Fix ivtv yuv threshold handling

Modifies automatic mode selection for yuv playback. Behaviour is now that
source video with a vertical resolution below that of the currently set
broadcast mode will be treated as progressive. Video with a vertical
resolution greater or equal to the current broadcast mode (up to 576 lines)
will be treated as interlaced.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
31a7c549eda6bf0a38d8fc12c903a8535a9f27ca 13-Mar-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5436): Fix TV output initialization

The TV standard should be set AFTER the TV output is fully initialized.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
fee73165ee0ff7cfbffad4233a70f56b821f434e 11-Mar-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5420): Initialize the inputs before registering the devices.

Once the devices have been registered anyone can start changing the inputs or
TV standard before they have been initialized by the driver. This leads to
cases were the input is changed in an udev rule, but after that rule is
triggered the tail-end of the ivtv driver initialization can override
that by selecting the tuner input.
The correct sequence is to first setup the input, initial frequency and TV
standard before finally registering the video devices. This prevents any
udev rules from being triggered prematurely.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
f40a29168475d64d854ef16a9263b24b0b2a9c6e 11-Mar-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5417): First unregister the driver, and then free the memory.

ivtv_remove which is called by pci_unregister_driver was still using
memory that was already freed. Ouch.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
6773c1c24d48f0aa667ba2aff573904a77050f09 11-Mar-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5416): Use pci_register_driver instead of pci_module_init in ivtv.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
d6102900e7e06e1c0c93889d38848a5b2d44e41d 11-Mar-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5413): Use spin_lock_init to fix lockdep warnings.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
b6735ac24ef735532d8f6d71eb30bca365d9307a 10-Mar-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5406): Add comment why the symbols are exported.

It is not immediately obvious why the ivtv symbols are exported
in ivtv-driver.c since both ivtv-fb and the IR-blaster module
are still out-of-tree, currently being ported to be in kernel.

Added a comment so people are aware of these issues.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
1e13f9e3f1501cc167e40a2adf07e6e4705cb331 10-Mar-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5404): Merges VBI & YUV handling into a single work queue.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
31ec13561060b748221f4e0404bcc5bf8078ccd0 03-Mar-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5379): If possible make vars/functions static.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
a51a50bd01e9f45245edd67dad7cef3ddb8452c5 03-Mar-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5377): Replace SA_* with IRQF_*

SA_* interrupt flags are being phased out, update to newer flags.
Thanks to Maarten Maathuis for pointing this out to me.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c
1a0adaf37c30e89e44d1470ef604a930999a5826 27-Apr-2007 Hans Verkuil <hverkuil@xs4all.nl> V4L/DVB (5345): ivtv driver for Conexant cx23416/cx23415 MPEG encoder/decoder

It took three core maintainers, over four years of work, eight new i2c
modules, eleven new V4L2 ioctls, three new DVB video ioctls, a Sliced
VBI API, a new MPEG encoder API, an enhanced DVB video MPEG decoding
API, major YUV/OSD contributions from Ian and John, web/wiki/svn/trac
support from Axel Thimm, (hardware) support from Hauppauge, support and
assistance from the v4l-dvb people and the many, many users of ivtv to
finally make it possible to merge this driver into the kernel.
Thank you all!

Signed-off-by: Kevin Thayer <nufan_wfk@yahoo.com>
Signed-off-by: Chris Kennedy <c@groovy.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: John P Harvey <john.p.harvey@btinternet.com>
Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
/drivers/media/video/ivtv/ivtv-driver.c