]> pilppa.com Git - linux-2.6-omap-h63xx.git/log
linux-2.6-omap-h63xx.git
16 years agoV4L/DVB (8897): pvrusb2: Mark crop window size change as being disruptive to the...
Mike Isely [Sun, 31 Aug 2008 23:50:59 +0000 (20:50 -0300)]
V4L/DVB (8897): pvrusb2: Mark crop window size change as being disruptive to the encoder

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8896): pvrusb2: Implement crop support
vdb128@picaros.org [Sat, 30 Aug 2008 21:26:39 +0000 (18:26 -0300)]
V4L/DVB (8896): pvrusb2: Implement crop support

Implement pvrusb2 driver plumbing to support cropping.  Submitted by a
pvrusb2 user.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8895): pvrusb2: Fail gracefully if an alien USB ID is used
Mike Isely [Sat, 30 Aug 2008 21:11:40 +0000 (18:11 -0300)]
V4L/DVB (8895): pvrusb2: Fail gracefully if an alien USB ID is used

The driver includes an internal table specifying additional
information on a per device-type basis.  This works great until
somebody tries to run-time associate another USB ID with the driver.
This change should hopefully allow the driver to fail gracefully under
such a circumstance.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8894): pvrusb2: Remove BKL
Mike Isely [Sat, 30 Aug 2008 18:11:16 +0000 (15:11 -0300)]
V4L/DVB (8894): pvrusb2: Remove BKL

The earlier change from Hans Verkuil that pushed the BKL from
video_open() down into the drivers should be unneeded for the pvrusb2
driver.  This driver's implementation for open already protects its
internal structures through other means, thus the BKL is not required.
This change reverses Hans' previous change, for the pvrusb2 driver.

It probably would have been a good idea for Hans to previously have
asked for my ack before committing his change.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8893): pvrusb2: Add comment elaborating on direct use of swab32()
Mike Isely [Sat, 30 Aug 2008 18:09:31 +0000 (15:09 -0300)]
V4L/DVB (8893): pvrusb2: Add comment elaborating on direct use of swab32()

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8890): budget: Add callback to load firmware for the TDHD1 tuner
Oliver Endriss [Thu, 4 Sep 2008 23:35:19 +0000 (20:35 -0300)]
V4L/DVB (8890): budget: Add callback to load firmware for the TDHD1 tuner

Supply callback to load firmware for the TDHD1 tuner (using request_firmware).

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8889): dvb-ttpci: Support full-ts hardware modification
Oliver Endriss [Wed, 3 Sep 2008 22:15:27 +0000 (19:15 -0300)]
V4L/DVB (8889): dvb-ttpci: Support full-ts hardware modification

Add support for the 'full-ts' hardware modification.

On full-featured cards the data throughput is limited by the hardware
design. The full-ts mod removes this bottleneck, i.e. the card is able
to deliver the complete transport stream of a transponder.

For details see http://www.escape-edv.de/endriss/dvb-full-ts-mod

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8888): budget: Support Activy DVB-T with TDHD1 tuner
Oliver Endriss [Wed, 3 Sep 2008 21:16:09 +0000 (18:16 -0300)]
V4L/DVB (8888): budget: Support Activy DVB-T with TDHD1 tuner

Support Fujitsu-Siemens Activy DVB-T card rev AL (ALPS TDHD1-204A tuner).

Signed-off-by: Oliver Endriss <o.endriss@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8559): replace __FUNCTION__ with __func__
Alexander Beregalov [Mon, 21 Jul 2008 19:20:32 +0000 (16:20 -0300)]
V4L/DVB (8559): replace __FUNCTION__ with __func__

v4l: replace __FUNCTION__ with __func__

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8879): bttv: Don't unmask VPRES interrupt
Jean Delvare [Sat, 30 Aug 2008 13:18:21 +0000 (10:18 -0300)]
V4L/DVB (8879): bttv: Don't unmask VPRES interrupt

When the input is set to tuner and no antenna is connected, the BT848
can flood VPRES interrupts. So we don't want to enable this type of
interrupts when the input it set to tuner.

As we don't do anything when receiving such an interrupt anyway, the
easiest fix is to simply not unmask this specific interrupt.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8866): Add dummy FE to the Kconfig-file and fix it
Patrick Boettcher [Sat, 30 Aug 2008 15:15:54 +0000 (12:15 -0300)]
V4L/DVB (8866): Add dummy FE to the Kconfig-file and fix it

Reactivated dummy frontend driver which is extremely useful for debugging.

Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8857): v4l2-dev: replace panic with BUG
Hans Verkuil [Sat, 30 Aug 2008 12:40:47 +0000 (09:40 -0300)]
V4L/DVB (8857): v4l2-dev: replace panic with BUG

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8856): v4l: fix assorted compile warnings/errors
Hans Verkuil [Sat, 30 Aug 2008 11:21:13 +0000 (08:21 -0300)]
V4L/DVB (8856): v4l: fix assorted compile warnings/errors

BIT define conflicts on kernels < 2.6.24, byteorder/swab.h doesn't need
to be included at all.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8852): v4l2: use register_chrdev_region instead of register_chrdev
Hans Verkuil [Fri, 29 Aug 2008 20:31:35 +0000 (17:31 -0300)]
V4L/DVB (8852): v4l2: use register_chrdev_region instead of register_chrdev

Replace the old register_chrdev with the more flexible register_chrdev_region.

Ensure that the release() is called when the very last chardev usage was
released, and not when the sysfs devices were removed. This should simplify
hotpluggable drivers considerably.

Tested-by: Mike Isely <isely@isely.net>
Tested-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: David Ellingsworth <david@identd.dyndns.org>
Reviewed-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8850): bt856: fix define conflict
Hans Verkuil [Sat, 30 Aug 2008 09:03:09 +0000 (06:03 -0300)]
V4L/DVB (8850): bt856: fix define conflict

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8847): uvcvideo: Add support for a Bison Electronics webcam found in the...
Laurent Pinchart [Fri, 29 Aug 2008 20:57:10 +0000 (17:57 -0300)]
V4L/DVB (8847): uvcvideo: Add support for a Bison Electronics webcam found in the Fujitsu Amilo SI2636.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8846): uvcvideo: Supress spurious "EOF in empty payload" trace message
Laurent Pinchart [Fri, 29 Aug 2008 20:37:44 +0000 (17:37 -0300)]
V4L/DVB (8846): uvcvideo: Supress spurious "EOF in empty payload" trace message

Pass the payload size instead of the header size to uvc_video_decode_end() to
avoid generating an extra trace message for each frame.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8845): s2255drv: adds JPEG compression quality control
Dean Anderson [Fri, 29 Aug 2008 18:33:19 +0000 (15:33 -0300)]
V4L/DVB (8845): s2255drv: adds JPEG compression quality control

adds VIDIOC_S_JPEGCOMP and VIDIOC_G_JPEGCOMP ioctls for
controlling JPEG compression quality.

Signed-off-by: Dean Anderson <dean@sensoray.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8838): CRED: Wrap task credential accesses in video input drivers
David Howells [Wed, 27 Aug 2008 13:46:39 +0000 (10:46 -0300)]
V4L/DVB (8838): CRED: Wrap task credential accesses in video input drivers

Wrap access to task credentials so that they can be separated more easily from
the task_struct during the introduction of COW creds.

Change most current->(|e|s|fs)[ug]id to current_(|e|s|fs)[ug]id().

Change some task->e?[ug]id to task_e?[ug]id().  In some places it makes more
sense to use RCU directly rather than a convenient wrapper; these will be
addressed by later patches.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: James Morris <jmorris@namei.org>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8807): Add DVB support for the Leadtek Winfast PxDVR3200 H
Steven Toth [Tue, 12 Aug 2008 16:30:03 +0000 (13:30 -0300)]
V4L/DVB (8807): Add DVB support for the Leadtek Winfast PxDVR3200 H

This patch is on behalf of Stephen Backway <stev391@email.com>, and
represents two patches I received (and some subsequent whitespace
cleanup I had due to how I pulled the patches).

From the original author:

a) Add DVB support for the Leadtek Winfast PxDVR3200 H.

b) The tuner callback previously checked the command 3 times:
1) To see if it was the XC2028_RESET_CLK
2) To see if it was not the XC2028_RESET_TUNER
3) To see if it was the XC2028_RESET_TUNER
This patch removes the third check.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Stephen Backway <stev391@email.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8800): [v4l-dvb-maintainer] [PATCH] v4l: mt9m111.c make function static
Harvey Harrison [Wed, 27 Aug 2008 20:20:01 +0000 (17:20 -0300)]
V4L/DVB (8800): [v4l-dvb-maintainer] [PATCH] v4l: mt9m111.c make function static

drivers/media/video/mt9m111.c:758:5: warning: symbol 'mt9m111_restore_state' was not declared. Should it be static?

New warning in next-20080825

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8799): soc-camera: add API documentation
Guennadi Liakhovetski [Fri, 29 Aug 2008 18:16:31 +0000 (15:16 -0300)]
V4L/DVB (8799): soc-camera: add API documentation

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8797): A simple state machine was added to saa7134_ts.
Dmitry Belimov [Tue, 26 Aug 2008 17:16:33 +0000 (14:16 -0300)]
V4L/DVB (8797): A simple state machine was added to saa7134_ts.

A simple state machine was added to saa7134_ts. It has three states:

        SAA7134_TS_STOPPED
        SAA7134_TS_BUFF_DONE
        SAA7134_TS_STARTED

When buffer_setup is run we start the TS initialization: set SAA7134_TS_STOPPED.
When all buffers are prepared we write data into DMA register and set
SAA7134_TS_BUFF_DONE.
When the first buffer is active start TS and set SAA7134_TS_STARTED.
When ts_release is called stop TS and set SAA7134_TS_STOPPED.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8796): saa7134-empress: remove incorrect IRQ defines for TS
Dmitry Belimov [Tue, 26 Aug 2008 16:47:10 +0000 (13:47 -0300)]
V4L/DVB (8796): saa7134-empress: remove incorrect IRQ defines for TS

SAA7134_IRQ1_INTE_RA2_3 and SAA7134_IRQ1_INTE_RA2_2 are used for planar video,
not for TS.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8795): saa7134-empress: insert leading null bytes for Beholder M6 empress...
Dmitry Belimov [Tue, 26 Aug 2008 16:44:40 +0000 (13:44 -0300)]
V4L/DVB (8795): saa7134-empress: insert leading null bytes for Beholder M6 empress cards

Additional code to improve the init sequence and add board type tests
were done by Hans Verkuil.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8791): v4l2-dev: do not clear the driver_data field
Hans Verkuil [Sun, 24 Aug 2008 14:18:47 +0000 (11:18 -0300)]
V4L/DVB (8791): v4l2-dev: do not clear the driver_data field

The driver_data field of the device structure was zeroed, thus losing
this information. Many drivers set this up before calling
video_device_register, so we have to ensure that it isn't lost.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8788): v4l: replace video_get_drvdata(video_devdata(filp)) with video_drvdat...
Hans Verkuil [Sat, 23 Aug 2008 11:32:09 +0000 (08:32 -0300)]
V4L/DVB (8788): v4l: replace video_get_drvdata(video_devdata(filp)) with video_drvdata(filp)

Use the new video_drvdata(filp) function where it is safe to do so.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8787): v4l2-dev: cleanups and add video_drvdata helper function
Hans Verkuil [Sat, 23 Aug 2008 10:48:38 +0000 (07:48 -0300)]
V4L/DVB (8787): v4l2-dev: cleanups and add video_drvdata helper function

Cleanup v4l2-dev.[ch], add/improve comments and add a new helper
function: video_drvdata() that can get the private driver data from
a file struct.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8786): v4l2: remove the priv field, use dev_get_drvdata instead
Hans Verkuil [Sat, 23 Aug 2008 10:24:07 +0000 (07:24 -0300)]
V4L/DVB (8786): v4l2: remove the priv field, use dev_get_drvdata instead

Remove the priv field and let video_get/set_drvdata use dev_get_drvdata
and dev_set_drvdata instead.

Convert all drivers that still used priv directly.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8785): v4l2: add __must_check to v4l2_dev.h
Hans Verkuil [Sat, 23 Aug 2008 09:38:11 +0000 (06:38 -0300)]
V4L/DVB (8785): v4l2: add __must_check to v4l2_dev.h

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8784): v4l2-dev: make the video_device's release callback mandatory
Hans Verkuil [Sat, 23 Aug 2008 09:27:59 +0000 (06:27 -0300)]
V4L/DVB (8784): v4l2-dev: make the video_device's release callback mandatory

Now that all drivers set the release callback in the video_device
struct we can put in a BUG_ON in video_register_device to ensure that
the callback is always there.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8783): v4l: add all missing video_device release callbacks
Hans Verkuil [Sat, 23 Aug 2008 09:23:55 +0000 (06:23 -0300)]
V4L/DVB (8783): v4l: add all missing video_device release callbacks

All drivers that call video_device_register where checked to see if they
set the release callback of struct video_device. Where that callback was
missing it was added.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8782): v4l2-dev: add video_device_release_empty
Hans Verkuil [Sat, 23 Aug 2008 08:47:41 +0000 (05:47 -0300)]
V4L/DVB (8782): v4l2-dev: add video_device_release_empty

Add a second release function: video_device_release_empty
It can be used by drivers that have statically allocated
video_device structs.

Its use usually, but not always, indicates laziness on the
part of the driver programmer.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8781): v4l2-dev: remove obsolete video_exclusive_open/release
Hans Verkuil [Sat, 23 Aug 2008 08:34:55 +0000 (05:34 -0300)]
V4L/DVB (8781): v4l2-dev: remove obsolete video_exclusive_open/release

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8780): v4l: replace the last uses of video_exclusive_open/release
Hans Verkuil [Sat, 23 Aug 2008 08:31:47 +0000 (05:31 -0300)]
V4L/DVB (8780): v4l: replace the last uses of video_exclusive_open/release

Handle the video_exclusive_open/release functionality inside the
driver.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8777): tea575x-tuner: replace video_exclusive_open/release
Hans Verkuil [Sat, 23 Aug 2008 07:52:00 +0000 (04:52 -0300)]
V4L/DVB (8777): tea575x-tuner: replace video_exclusive_open/release

Move the video_exclusive_open/release functionality into the
driver itself.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8776): radio: replace video_exclusive_open/release
Hans Verkuil [Sat, 23 Aug 2008 07:49:13 +0000 (04:49 -0300)]
V4L/DVB (8776): radio: replace video_exclusive_open/release

Move the video_exclusive_open/release functionality into the driver itself.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8774): cx18: Have CX23418 release buffers at end of capture.
Andy Walls [Sat, 23 Aug 2008 21:36:50 +0000 (18:36 -0300)]
V4L/DVB (8774): cx18: Have CX23418 release buffers at end of capture.

cx18: Have CX23418 release buffers at end of capture.  The CX23418 reuses task
handles so we need to have it release the buffers associated with a task handle
at the end of a capture.  If we don't, buffer ids used for one type of stream
in the driver (MPEG, TS, PCM), could be used for another type of stream by the
CX23418, if a previously used handle is assigned to a different type of stream.
The driver would drop valid buffers when this happened.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8773): cx18: Fix cx18_find_handle() and add error checking
Andy Walls [Sat, 23 Aug 2008 19:42:29 +0000 (16:42 -0300)]
V4L/DVB (8773): cx18: Fix cx18_find_handle() and add error checking

cx18: Fix cx18_find_handle() and add error checking.  cx18_find_handle() did
not find a good task handle and would use the invalid task handle under common
conditions.  Added a define for the invalid task handle and added error checking
as well.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8772): cx18: Convert cx18_queue buffers member to atomic_t
Andy Walls [Sat, 23 Aug 2008 00:03:11 +0000 (21:03 -0300)]
V4L/DVB (8772): cx18: Convert cx18_queue buffers member to atomic_t

cx18: Convert cx18_queue buffers member to atomic_t.  This allows safe
concurrent access to check if a queue has data without having to acquire the
queue spinlock.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8771): cx18: Remove redundant struct cx18_queue length member.
Andy Walls [Fri, 22 Aug 2008 23:55:54 +0000 (20:55 -0300)]
V4L/DVB (8771): cx18: Remove redundant struct cx18_queue length member.

cx18: Remove redundant struct cx18_queue length member. It can be trivially
computed from queue->buffers * stream->buf_size, if ever really needed.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8770): cx18: get rid of ununsed buffers stolen field
Andy Walls [Fri, 22 Aug 2008 23:46:43 +0000 (20:46 -0300)]
V4L/DVB (8770): cx18: get rid of ununsed buffers stolen field

cx18: get rid of ununsed buffers stolen field.  It's an unused holdover
from ivtv.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8754): uvcvideo: Implement the USB power management reset_resume method.
Laurent Pinchart [Fri, 22 Aug 2008 20:25:10 +0000 (17:25 -0300)]
V4L/DVB (8754): uvcvideo: Implement the USB power management reset_resume method.

When a suspended device has been reset instead of being resumed, USB core
calls the reset_resume method if available instead of unbinding and rebinding
the device.

This patch implements reset_resume by reusing the current resume
implementation and simplifies the resume method by skipping the controls
restore stage. Resuming from autosuspend should be faster.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8752): s2255drv: firmware improvement patch
Dean Anderson [Mon, 25 Aug 2008 16:58:55 +0000 (13:58 -0300)]
V4L/DVB (8752): s2255drv: firmware improvement patch

Fix for reloading firmware when removing and reloading driver
Handshaking for firmware loading and changing modes.
Removes the restriction of one user per channel at a time.
JPEG capture mode added.

Signed-off-by: Dean Anderson <dean@sensoray.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8750): V4L: check inval in video_register_device_index()
Henrik Kretzschmar [Fri, 22 Aug 2008 19:41:03 +0000 (16:41 -0300)]
V4L/DVB (8750): V4L: check inval in video_register_device_index()

Better check the video_device pointer before using it.

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8748): V4L: fix return value of meye probe callback
Henrik Kretzschmar [Fri, 22 Aug 2008 20:13:05 +0000 (17:13 -0300)]
V4L/DVB (8748): V4L: fix return value of meye probe callback

The return vaule of the probe function should return -ENOMEM instead
of -EBUSY if video_device_alloc() fails.

Signed-off-by: Henrik Kretzschmar <henne@nachtwindheim.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8746): v4l-dvb: fix compile warnings.
Hans Verkuil [Fri, 22 Aug 2008 20:12:08 +0000 (17:12 -0300)]
V4L/DVB (8746): v4l-dvb: fix compile warnings.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8745): v4l2: fix a bunch of compile warnings.
Hans Verkuil [Fri, 22 Aug 2008 20:01:45 +0000 (17:01 -0300)]
V4L/DVB (8745): v4l2: fix a bunch of compile warnings.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8742): pvrusb2: use proper byteorder interface
Harvey Harrison [Mon, 18 Aug 2008 20:38:01 +0000 (17:38 -0300)]
V4L/DVB (8742): pvrusb2: use proper byteorder interface

___swab32 is an internal detail of the implementation.

Acked-by: Mike Isely <isely@pobox.com>
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8739): dtv5100: remove prohibited space...
Antoine Jacquet [Mon, 18 Aug 2008 21:38:51 +0000 (18:38 -0300)]
V4L/DVB (8739): dtv5100: remove prohibited space...

Signed-off-by: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8738): dtv5100: remove old definition from header
Antoine Jacquet [Mon, 18 Aug 2008 21:22:00 +0000 (18:22 -0300)]
V4L/DVB (8738): dtv5100: remove old definition from header

Signed-off-by: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8736): dtv5100: CodingStyle cleanups
Antoine Jacquet [Tue, 12 Aug 2008 19:56:34 +0000 (16:56 -0300)]
V4L/DVB (8736): dtv5100: CodingStyle cleanups

Signed-off-by: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8735): dtv5100: replace dummy frontend by zl10353
Antoine Jacquet [Mon, 11 Aug 2008 22:21:33 +0000 (19:21 -0300)]
V4L/DVB (8735): dtv5100: replace dummy frontend by zl10353

Remove the dtv5100-fe.c dummy frontend and replace it by the real frontend for the chipset.

Signed-off-by: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8734): Initial support for AME DTV-5100 USB2.0 DVB-T
Antoine Jacquet [Mon, 11 Aug 2008 16:12:19 +0000 (13:12 -0300)]
V4L/DVB (8734): Initial support for AME DTV-5100 USB2.0 DVB-T

Basic support for AME DTV-5100 USB2.0 DVB-T using the qt1010 tuner and a dummy frontend.

Signed-off-by: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8732): zr364xx: handle video exclusive open internaly
Antoine Jacquet [Mon, 18 Aug 2008 20:14:30 +0000 (17:14 -0300)]
V4L/DVB (8732): zr364xx: handle video exclusive open internaly

Count the users and do not use video_exclusive_open() anymore.

Signed-off-by: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8731): zr364xx: remove BKL
Antoine Jacquet [Mon, 18 Aug 2008 20:09:53 +0000 (17:09 -0300)]
V4L/DVB (8731): zr364xx: remove BKL

Remove the Big Kernel Lock from zr364xx driver after pushdown.
Now using an internal locking mecanism on open().

Signed-off-by: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8730): drx397xD: fix compilation error caused by changeset 71046dfb0853
Mauro Carvalho Chehab [Fri, 22 Aug 2008 16:31:59 +0000 (13:31 -0300)]
V4L/DVB (8730): drx397xD: fix compilation error caused by changeset 71046dfb0853

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8729): Use DIV_ROUND_UP
Julia Lawall [Wed, 20 Aug 2008 23:44:53 +0000 (20:44 -0300)]
V4L/DVB (8729): Use DIV_ROUND_UP

The kernel.h macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /
(d)) but is perhaps more readable.

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

// <smpl>
@haskernel@
@@

@depends on haskernel@
expression n,d;
@@

(
- (n + d - 1) / d
+ DIV_ROUND_UP(n,d)
|
- (n + (d - 1)) / d
+ DIV_ROUND_UP(n,d)
)

@depends on haskernel@
expression n,d;
@@

- DIV_ROUND_UP((n),d)
+ DIV_ROUND_UP(n,d)

@depends on haskernel@
expression n,d;
@@

- DIV_ROUND_UP(n,(d))
+ DIV_ROUND_UP(n,d)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8725): drx397xD.c sparse annotations
Harvey Harrison [Wed, 20 Aug 2008 23:44:50 +0000 (20:44 -0300)]
V4L/DVB (8725): drx397xD.c sparse annotations

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8724): dvb: drx397xD: checkpatch.pl cleanups
Felipe Balbi [Tue, 19 Aug 2008 23:40:30 +0000 (20:40 -0300)]
V4L/DVB (8724): dvb: drx397xD: checkpatch.pl cleanups

This driver sure needs some rework. For now, let's
try to clean it up a bit before start reimplementing
anything.

checkpatch.pl still not happy with this driver after
this patch, but the most annoying errors are gone,
comments now use C-style only, labels are well placed
and some other minor fixes.

Some more clean up patches will come as I work on this
driver. Please review it carefully.

Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: Henk Vergonet <henk.vergonet@gmail.com>
[mchehab@infradead.org: Manually fixed some conflicts with a previous patch]
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8695): usbvideo: add proper error check and add release function
Hans Verkuil [Mon, 18 Aug 2008 07:48:42 +0000 (04:48 -0300)]
V4L/DVB (8695): usbvideo: add proper error check and add release function

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8691): i2c-id: remove obsolete SAB3036 driver ID
Hans Verkuil [Sat, 16 Aug 2008 11:33:14 +0000 (08:33 -0300)]
V4L/DVB (8691): i2c-id: remove obsolete SAB3036 driver ID

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8690): tuner-3036: remove driver
Hans Verkuil [Sat, 16 Aug 2008 10:56:12 +0000 (07:56 -0300)]
V4L/DVB (8690): tuner-3036: remove driver

This driver is for VERY old i2c-over-parallel port teletext receiver
boxes. Rather then spending effort on converting this driver to V4L2,
and since it is extremely unlikely that anyone still uses one of these
devices, it was decided to drop it (after discussing this as well with
the original author, Phil Blundell).

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Phil Blundell <philb@gnu.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8689): dpc7146: remove dpc7146 demonstration board driver
Hans Verkuil [Sat, 16 Aug 2008 10:50:23 +0000 (07:50 -0300)]
V4L/DVB (8689): dpc7146: remove dpc7146 demonstration board driver

Old driver for the dpc7146 demonstration board that is no longer
relevant. The last time this was tested on actual hardware was
probably around 2002. Since this is a driver for a demonstration
board the decision was made (after discussing this with the original
author, Michael Hunold) to remove it rather than spending a
lot of effort continually updating this driver to stay in sync
with the latest internal V4L2 or I2C API.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Michael Hunold <hunold@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8687): soc-camera: Move .power and .reset from soc_camera host to sensor...
Stefan Herbrechtsmeier [Thu, 14 Aug 2008 15:04:11 +0000 (12:04 -0300)]
V4L/DVB (8687): soc-camera: Move .power and .reset from soc_camera host to sensor driver

Make .power and .reset callbacks per camera instead of per host, also move
their invocation to camera drivers.

.arch/arm/mach-pxa/include/mach/camera.h    |    2 -

Signed-off-by: Stefan Herbrechtsmeier <hbmeier@hni.uni-paderborn.de>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8686): mt9m111: style cleanup
Guennadi Liakhovetski [Thu, 14 Aug 2008 15:03:49 +0000 (12:03 -0300)]
V4L/DVB (8686): mt9m111: style cleanup

Fix a typo in Kconfig, simplify error checking, further minor cleanup.

Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Guennadi Liakhovetski <g.iakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8685): mt9m001, mt9v022: Simplify return code checking
Guennadi Liakhovetski [Thu, 14 Aug 2008 15:03:18 +0000 (12:03 -0300)]
V4L/DVB (8685): mt9m001, mt9v022: Simplify return code checking

i2c_smbus_write_word_data() returns 0 or a negative error, hence no need to
check for "> 0".

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8684): Add support for Micron MT9M111 camera.
Robert Jarzmik [Thu, 14 Aug 2008 15:02:51 +0000 (12:02 -0300)]
V4L/DVB (8684): Add support for Micron MT9M111 camera.

Adds support for Micron MT9M111 camera chip, with basic
features :
 - view rectangle configurable
 - some output formats (bayer8, bayer10, rgb565, rgb555, ycbycr)
 - autoexposure
 - only highpower mode context used (ie. context B)

 create mode 100644 drivers/media/video/mt9m111.c

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8683): Add Micron mt9m111 chip ID in V4L2 identifiers
Robert Jarzmik [Thu, 14 Aug 2008 14:36:37 +0000 (11:36 -0300)]
V4L/DVB (8683): Add Micron mt9m111 chip ID in V4L2 identifiers

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8680): saa7134-core.c: fix warning
Alexander Beregalov [Wed, 20 Aug 2008 23:44:54 +0000 (20:44 -0300)]
V4L/DVB (8680): saa7134-core.c: fix warning

drivers/media/video/saa7134/saa7134-core.c:366: warning:
'saa7134_buffer_requeue' defined but not used

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8658): lgs8gl5: fix build warnings
Michael Krufky [Sat, 9 Aug 2008 18:29:46 +0000 (15:29 -0300)]
V4L/DVB (8658): lgs8gl5: fix build warnings

Fix the following build warnings:

lgs8gl5.c: In function 'lgs8gl5_read_reg':
lgs8gl5.c:95: warning: unused variable 'j'
lgs8gl5.c: In function 'lgs8gl5_update_alt_reg':
lgs8gl5.c:135: warning: unused variable 'j'
lgs8gl5.c: In function 'lgs8gl5_read_ber':
lgs8gl5.c:300: warning: unused variable 'state'
lgs8gl5.c: In function 'lgs8gl5_read_ucblocks':
lgs8gl5.c:332: warning: unused variable 'state'
lgs8gl5.c: At top level:
lgs8gl5.c:181: warning: 'lgs8gl5_set_inversion' defined but not used

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8657): cxusb: add lgs8gl5 and support for Magic-Pro DMB-TH usb stick
Timothy Lee [Sat, 9 Aug 2008 16:36:51 +0000 (13:36 -0300)]
V4L/DVB (8657): cxusb: add lgs8gl5 and support for Magic-Pro DMB-TH usb stick

Add support for Magic-Pro DMB-TH usb stick.  DMB-TH is the HDTV broadcast
standard used in Hong Kong and China.
[...]
I've also attached a second patch against the dvb-apps repository which
adds a DMB-TH scan file for Hong Kong.

Since the ProHDTV stick contains a DMB-TH decoder (lgs8gl5) onboard,
it outputs MPEG-TS to the PC.

Signed-off-by: Timothy Lee <timothy.lee@siriushk.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8656): fix DVB_FE_CUSTOMISE for DVB_DIB7000P and DVB_TUNER_DIB0070 with...
Michael Krufky [Sat, 9 Aug 2008 17:21:58 +0000 (14:21 -0300)]
V4L/DVB (8656): fix DVB_FE_CUSTOMISE for DVB_DIB7000P and DVB_TUNER_DIB0070 with dvb-usb-cxusb

Allow dvb-usb-cxusb to be built without dib7000p or dib0070 selected

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8655): cxusb: fix checkpatch warnings & errors
Michael Krufky [Sat, 9 Aug 2008 16:06:26 +0000 (13:06 -0300)]
V4L/DVB (8655): cxusb: fix checkpatch warnings & errors

Fix the following checkpatch.pl errors and warnings:

ERROR: do not use assignment in if condition
117: FILE: linux/drivers/media/dvb/dvb-usb/cxusb.c:819:
+ if ((adap->fe = dvb_attach(dib7000p_attach,

ERROR: switch and case should be at the same indent
155: FILE: linux/drivers/media/dvb/dvb-usb/cxusb.c:857:
+ switch (band) {
+ case BAND_VHF: offset = 950; break;
+ case BAND_UHF:
+ default: offset = 550; break;

WARNING: line over 80 characters
169: FILE: linux/drivers/media/dvb/dvb-usb/cxusb.c:871:
+ struct i2c_adapter *tun_i2c = dib7000p_get_i2c_master(adap->fe, DIBX000_I2C_INTERFACE_TUNER, 1);

WARNING: line over 80 characters
213: FILE: linux/drivers/media/dvb/dvb-usb/cxusb.c:1342:
+static struct dvb_usb_device_properties cxusb_bluebird_dualdig4_rev2_properties = {

WARNING: line over 80 characters
226: FILE: linux/drivers/media/dvb/dvb-usb/cxusb.c:1355:
+ .size_of_priv     = sizeof(struct dib0700_adapter_state),

total: 2 errors, 3 warnings, 266 lines checked

Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Cc: Anton Blanchard <anton@samba.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8654): cxusb: add support for DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2)
Anton Blanchard [Sat, 9 Aug 2008 15:23:15 +0000 (12:23 -0300)]
V4L/DVB (8654): cxusb: add support for DViCO FusionHDTV DVB-T Dual Digital 4 (rev 2)

Add support for revision 2 of the DViCO FusionHDTV DVB-T Dual Digital 4
which has new tuners and demodulators (2 x DIB7070p). With this patch
both DVB reception and IR works.

The dib7000p driver currently hardwires the output mode to
OUTMODE_MPEG2_SERIAL regardless of what we ask for. Modify it to allow
OUTMODE_MPEG2_PAR_GATED_CLK to be set. Longer term we should remove the
check completely and set the output mode correctly in all the callers.

Add Kconfig bits to ensure the dib7000p and dib0070 modules are enabled.
It would be nice to only do this for the !DVB_FE_CUSTOMISE case, but
this is what the other DIB7070 module does (there are a number of
module dependencies in the attach code).

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8649): v4l2: add AAC bitrate control
Hans Verkuil [Sat, 9 Aug 2008 13:35:29 +0000 (10:35 -0300)]
V4L/DVB (8649): v4l2: add AAC bitrate control

If you can select AAC as audio encoder, then you should also be
able to set the bitrate. Add this missing control.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8646): cx23885: Convert framework to use a single tuner callback function.
Steven Toth [Tue, 5 Aug 2008 01:18:19 +0000 (22:18 -0300)]
V4L/DVB (8646): cx23885: Convert framework to use a single tuner callback function.

Code reduction. Tuner callback now assumes that tsport is passed as the void arg.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8645): Support IR remote on FusionHDTV DVB-T Dual Express
Steven Toth [Tue, 5 Aug 2008 00:41:06 +0000 (21:41 -0300)]
V4L/DVB (8645): Support IR remote on FusionHDTV DVB-T Dual Express

From Chris Pascoe <c.pascoe@itee.uq.edu.au>
Support IR remote on FusionHDTV DVB-T Dual Express

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8644): Add support for DViCO FusionHDTV DVB-T Dual Express
Steven Toth [Tue, 5 Aug 2008 00:39:53 +0000 (21:39 -0300)]
V4L/DVB (8644): Add support for DViCO FusionHDTV DVB-T Dual Express

Add support for the DViCO FusionHDTV DVB-T Dual Express card, based on
work by Chris Pascoe and Stephen Backway.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8643): Switch Hauppauge HVR1400 and HVR1500 to common cx23885 tuner callback
Steven Toth [Tue, 5 Aug 2008 00:38:46 +0000 (21:38 -0300)]
V4L/DVB (8643): Switch Hauppauge HVR1400 and HVR1500 to common cx23885 tuner callback

The Hauppauge HVR1400 and HVR1500 can now use the common cx23885 tuner
callback.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8642): cx23885: Factor out common cx23885 tuner callback
Steven Toth [Tue, 5 Aug 2008 00:36:49 +0000 (21:36 -0300)]
V4L/DVB (8642): cx23885: Factor out common cx23885 tuner callback

Tuners currently hook different things to the private pointer in their
callback function. Longer term we should make that private pointer
consistent, but for now separate out the guts of the cx23885 tuner callback
so we can reuse it.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8641): arv: fix compilation errors/warnings
Hans Verkuil [Fri, 8 Aug 2008 18:47:07 +0000 (15:47 -0300)]
V4L/DVB (8641): arv: fix compilation errors/warnings

- add PCI dependency for btcx
- fix compile errors (doesn't like ';' at the end of a #if 0)

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8640): saa6752hs: add PMT table for AC3
Hans Verkuil [Fri, 8 Aug 2008 16:27:16 +0000 (13:27 -0300)]
V4L/DVB (8640): saa6752hs: add PMT table for AC3

The PMT table for AC3 audio is different.
Thanks to Dmitry Belimov for providing the table data.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8639): saa6752hs: cleanup and add AC-3 support
Hans Verkuil [Fri, 8 Aug 2008 15:43:59 +0000 (12:43 -0300)]
V4L/DVB (8639): saa6752hs: cleanup and add AC-3 support

Cleaned up the saa6752hs i2c driver.
Add AC-3 support.
Add VIDIOC_CHIP_IDENT support.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8637): v4l2: add v4l2_ctrl_query_menu_valid_items support function
Hans Verkuil [Fri, 8 Aug 2008 11:34:19 +0000 (08:34 -0300)]
V4L/DVB (8637): v4l2: add v4l2_ctrl_query_menu_valid_items support function

v4l2_ctrl_query_menu_valid_items() makes it easy to handle control menus
that have a lot of invalid 'holes'. For example, many MPEG encoders only
support a limited subset of audio bitrates. In that case a driver can
specify an array listing the set of valid bitrates and pass that to
this function.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8636): v4l2: add v4l2_ctrl_get_name control support function.
Hans Verkuil [Fri, 8 Aug 2008 10:55:00 +0000 (07:55 -0300)]
V4L/DVB (8636): v4l2: add v4l2_ctrl_get_name control support function.

Add function that returns the control name. Allows this to be used in
places where the normal v4l2_ctrl_query_fill() function cannot be
used (e.g. uvc).

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8635): v4l: add AC-3 audio support to the MPEG Encoding API
Hans Verkuil [Fri, 8 Aug 2008 10:38:07 +0000 (07:38 -0300)]
V4L/DVB (8635): v4l: add AC-3 audio support to the MPEG Encoding API

Some models of the saa6752hs support AC-3. Extend the API with the
necessary controls for AC-3.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8634): v4l2: extend MPEG Encoding API with AVC and AAC
Janne Grunau [Fri, 8 Aug 2008 10:21:00 +0000 (07:21 -0300)]
V4L/DVB (8634): v4l2: extend MPEG Encoding API with AVC and AAC

Adds Advanced Audio Coding (AAC) and MPEG-4 Advanced Video Coding
(AVC/H.264) as audio/video codecs to the extended controls API.
Updates cx2341x driver to the new values.

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8630): First mxb cleanup phase
Hans Verkuil [Fri, 25 Jul 2008 13:31:23 +0000 (10:31 -0300)]
V4L/DVB (8630): First mxb cleanup phase

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8628): bttv: Add support for Encore ENLTV2-FM
Mauro Carvalho Chehab [Tue, 5 Aug 2008 13:14:13 +0000 (10:14 -0300)]
V4L/DVB (8628): bttv: Add support for Encore ENLTV2-FM

Thanks to Sistema Fenix (http://www.sistemafenix.com.br/) and CDI Brasil
(www.cdibrasil.com.br/) for sponsoring this development.

Signed-off-by: Gilberto <gilberto@sistemafenix.com.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (8628a): Remove duplicated include
Mauro Carvalho Chehab [Wed, 6 Aug 2008 23:13:46 +0000 (20:13 -0300)]
V4L/DVB (8628a): Remove duplicated include

Removes duplicated #include <v4l2-ioctl.h>

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
16 years agoV4L/DVB (8627): Fix mute on bttv driver
Mauro Carvalho Chehab [Tue, 5 Aug 2008 13:12:35 +0000 (10:12 -0300)]
V4L/DVB (8627): Fix mute on bttv driver

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8626): Add support for TCL tuner MF02GIP-5N-E
Mauro Carvalho Chehab [Tue, 5 Aug 2008 13:11:25 +0000 (10:11 -0300)]
V4L/DVB (8626): Add support for TCL tuner MF02GIP-5N-E

Thanks to Sistema Fenix (http://www.sistemafenix.com.br/) and CDI Brasil
(www.cdibrasil.com.br/) for sponsoring this development.

Signed-off-by: Gilberto <gilberto@sistemafenix.com.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8625): saa7134: Add NEC prococol IR decoding capability
Mauro Carvalho Chehab [Tue, 5 Aug 2008 13:03:17 +0000 (10:03 -0300)]
V4L/DVB (8625): saa7134: Add NEC prococol IR decoding capability

This patch adds the capability of decoding NEC protocol, received via GPIO18 line.
This GPIO port can trigger saa7134 IRQ.

A future improvement would be to make it a little more generic to work also
with GPIO16 line.

A pure IRQ code didn't work, since some delays were introduced on the tests we
did.

A possible approach would be to use polling at a rate of 2.5 ms or less. If a
new code were taken, a code similar to nec_task() could be used. However, this
would add an extra overhead to kernel, and will consume more power.

Due to that, we took an hybrid approach: an IRQ upper half to trigger when a
new key is received and a bottom half to convert pulse-distance into a keycode.

The bottom half is polling based, to improve performance. During the bottom
half proccess, GPIO18 IRQ line is disabled, preventing IRQ reentrancy and
improving performance a little bit.

Thanks to Sistema Fenix (http://www.sistemafenix.com.br/) for sponsoring this
development.

Signed-off-by: Gilberto <gilberto@sistemafenix.com.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8613): v4l: move BKL down to the driver level.
Hans Verkuil [Wed, 30 Jul 2008 11:43:36 +0000 (08:43 -0300)]
V4L/DVB (8613): v4l: move BKL down to the driver level.

The BKL is now moved from the video_open function in v4l2-dev.c to the
various drivers. It seems about a third of the drivers already has a
lock of some sort protecting the open(), another third uses
video_exclusive_open (yuck!) and the last third required adding the
BKL in their open function.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8561): make ivtv_claim_stream() static
Adrian Bunk [Tue, 22 Jul 2008 17:20:12 +0000 (14:20 -0300)]
V4L/DVB (8561): make ivtv_claim_stream() static

ivtv_claim_stream() can now become static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8560): replace __FUNCTION__ with __func__
Alexander Beregalov [Mon, 21 Jul 2008 19:21:58 +0000 (16:21 -0300)]
V4L/DVB (8560): replace __FUNCTION__ with __func__

v4l/drx397xD: replace __FUNCTION__ with __func__

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB: follow lspci device/vendor style
Bjorn Helgaas [Thu, 4 Sep 2008 20:24:51 +0000 (17:24 -0300)]
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>
16 years agoV4L/DVB (8554): media/video/Kconfig: cosmetic changes and convert select into depends on
Mauro Carvalho Chehab [Mon, 28 Jul 2008 16:07:42 +0000 (13:07 -0300)]
V4L/DVB (8554): media/video/Kconfig: cosmetic changes and convert select into depends on

It seems cosmetically better to let USB drivers be the last one.

Also, two SOC drivers were using select, instead of depends on SOC_CAMERA.

Since select has some drawbacks when checking for dependencies, convert those
two into depends on.

Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 years agoV4L/DVB (8553): media/video/Kconfig: get rid of a select
Mauro Carvalho Chehab [Mon, 28 Jul 2008 15:58:53 +0000 (12:58 -0300)]
V4L/DVB (8553): media/video/Kconfig: get rid of a select

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>