safe/jmp/linux-2.6
14 years agoV4L/DVB (12529): soc-camera: switch to s_crop v4l2-subdev video operation
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:54 +0000 (11:46 -0300)]
V4L/DVB (12529): soc-camera: switch to s_crop v4l2-subdev video operation

Remove set_crop soc-camera device method and switch to s_crop from v4l2-subdev
video operations. Also extend non-i2c drivers to also hold a pointer to their
v4l2-subdev instance in control device driver-data, i.e., in
dev_get_drvdata((struct device *)to_soc_camera_control(icd))

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12528): sh_mobile_ceu_camera: implement host-side image scaling
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:54 +0000 (11:46 -0300)]
V4L/DVB (12528): sh_mobile_ceu_camera: implement host-side image scaling

Use host-side image scaling when the client fails to set the requested format.
We also have to take scaling into account when performing host-side cropping.
Similar to cropping we try to use client-side scaling as much as possible to
preserve bus bandwidth and optimise the frame-rate.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12527): tw9910: do not lie about cropping abilities
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:53 +0000 (11:46 -0300)]
V4L/DVB (12527): tw9910: do not lie about cropping abilities

The current tw9910 driver does not implement cropping correctly. Therefore, and
also because various rectangles in struct soc_camera_device are in user scale,
we cannot and shall not use rect_current as window location.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12526): ov772x: do not use scaling for cropping
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:53 +0000 (11:46 -0300)]
V4L/DVB (12526): ov772x: do not use scaling for cropping

OV772x sensors cannot crop, they only support two fixed formats: VGA and QVGA.
We should not change the format when requested to crop, only S_FMT can do this.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12525): soc-camera: prohibit geometry change with initialised buffers
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:53 +0000 (11:46 -0300)]
V4L/DVB (12525): soc-camera: prohibit geometry change with initialised buffers

Prohibit S_FMT and S_CROP with a different window width or height after video
buffer initialisation. This simplifies the work to be done in specific host and
client drivers, and it doesn't seem to make much sense to allow these changes.
We do however allow S_CROP with equal width and height to just move the window,
this doesn't affect video buffer management and is usually easy enough to
implement.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12524): soc-camera: S_CROP V4L2 API compliance fix
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:52 +0000 (11:46 -0300)]
V4L/DVB (12524): soc-camera: S_CROP V4L2 API compliance fix

V4L2 API mandates, that drivers do not update the argument of the S_CROP
ioctl() with the actual geometry. Comply.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12523): tw9910: return updated geometry on successful S_FMT and S_CROP
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:52 +0000 (11:46 -0300)]
V4L/DVB (12523): tw9910: return updated geometry on successful S_FMT and S_CROP

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12522): sh-mobile-ceu-camera: implement host-side cropping
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:52 +0000 (11:46 -0300)]
V4L/DVB (12522): sh-mobile-ceu-camera: implement host-side cropping

Not all video capture devices can configure arbitrary cropping, whereas the
CEU module on SuperH CPUs can crop with pixel precision. However, we want to
use camera cropping if possible to save bandwidth and increase the frame-rate.
This patch verifies whether the camera managed to crop exactly the requested
rectangle, and if not, uses host-side cropping. To be able to crop on CEU we
have to preserve camera rectangle too, for which the host_priv member in
struct soc_camera_device is used. We now allocate memory dynamically, thus we
have to use the .put_formats() method from struct soc_camera_host_ops to free
it.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12521): soc-camera: use .s_std() from struct v4l2_subdev_core_ops
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:51 +0000 (11:46 -0300)]
V4L/DVB (12521): soc-camera: use .s_std() from struct v4l2_subdev_core_ops

Remove .set_std() method from struct soc_camera_ops, use .s_std() from
struct v4l2_subdev_core_ops instead.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12520): sh-mobile-ceu-camera: do not wait for interrupt when releasing buffers
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:51 +0000 (11:46 -0300)]
V4L/DVB (12520): sh-mobile-ceu-camera: do not wait for interrupt when releasing buffers

Patch

[PATCH] video: use videobuf_waiton() in sh_mobile_ceu free_buffer()

was not quite correct. It closed a race, but introduced a potential
lock-up, if for some reason an interrupt does not come. This has been
observed in tests with tw9910. This patch safely dequeues buffers without
waiting for their completion. It also moves a buffer state assignment
under a spinlock to make it atomic with queuing of the buffer.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12519): soc-camera: put pixel format initialisation back in probe, add ...
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:43 +0000 (11:46 -0300)]
V4L/DVB (12519): soc-camera: put pixel format initialisation back in probe, add .put_formats()

The move of format translation initialisation into soc_camera_open() was
temporary for the soc-camera as platform driver intermediate step, put it back
into soc_camera_probe(). Also add a .put_formats() method to
soc_camera_host_ops to free any resources host driver might have allocated in
.get_formats().

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12518): ov772x: S_CROP must return actually configured geometry
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:42 +0000 (11:46 -0300)]
V4L/DVB (12518): ov772x: S_CROP must return actually configured geometry

V4L2 drivers are allowed to configure a geometry different than what has been
requested by the user with S_CROP, but then they have to adjust the input
rectangle accordingly. Fix ov772x to comply with this requirement.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12517): mt9t031: improve rectangle placement in invalid S_CROP
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:42 +0000 (11:46 -0300)]
V4L/DVB (12517): mt9t031: improve rectangle placement in invalid S_CROP

1. soc-camera always requests a valid rectangle, when calling .s_fmt(), no need
to check and adjust
2. in .s_crop(), if the rectangle exceeds sensor limits, push it to the
respective border instead of centering
3. take into account left and top borders when checking

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12516): ov772x: successful S_FMT and S_CROP must update user-provided rectangle
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:42 +0000 (11:46 -0300)]
V4L/DVB (12516): ov772x: successful S_FMT and S_CROP must update user-provided rectangle

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12515): soc-camera: use struct v4l2_rect in struct soc_camera_device
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:46:17 +0000 (11:46 -0300)]
V4L/DVB (12515): soc-camera: use struct v4l2_rect in struct soc_camera_device

Switch to using struct v4l2_rect in struct soc_camera_device for uniformity and
simplicity.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12514): sh_mobile_ceu_camera: add a control for the camera low-pass filter
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:44:15 +0000 (11:44 -0300)]
V4L/DVB (12514): sh_mobile_ceu_camera: add a control for the camera low-pass filter

Use the V4L2_CID_SHARPNESS control to switch SH-mobile camera low-pass filter.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12513): soc-camera: add support for camera-host controls
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:44:15 +0000 (11:44 -0300)]
V4L/DVB (12513): soc-camera: add support for camera-host controls

Until now soc-camera only supported client (sensor) controls. This patch
enables camera-host drivers to implement their own controls too.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12512): ov772x: implement a band-stop filter support
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:44:14 +0000 (11:44 -0300)]
V4L/DVB (12512): ov772x: implement a band-stop filter support

The V4L2_CID_BAND_STOP_FILTER control is used to switch the "Banding Filter" on
OV772x cameras on and off and to set the minimum AEC value in BDBASE register.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12511): V4L2: add a new V4L2_CID_BAND_STOP_FILTER integer control
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:44:14 +0000 (11:44 -0300)]
V4L/DVB (12511): V4L2: add a new V4L2_CID_BAND_STOP_FILTER integer control

Add a new V4L2_CID_BAND_STOP_FILTER integer control, which either switches the
band-stop filter off, or sets it to a certain strength.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12510): soc-camera: (partially) convert to v4l2-(sub)dev API
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:43:33 +0000 (11:43 -0300)]
V4L/DVB (12510): soc-camera: (partially) convert to v4l2-(sub)dev API

Convert the soc-camera framework to use the v4l2-(sub)dev API. Start using
v4l2-subdev operations. Only a part of the interface between the
soc_camera core, soc_camera host drivers on one side and soc_camera device
drivers on the other side is replaced so far. The rest of the interface
will be replaced in incremental steps, and will require extensions and,
possibly, modifications to the v4l2-subdev code.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12509): sh: prepare board-ap325rxa.c for v4l2-subdev conversion
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:34:18 +0000 (11:34 -0300)]
V4L/DVB (12509): sh: prepare board-ap325rxa.c for v4l2-subdev conversion

We will be registering and unregistering the soc_camera_platform platform
device multiple times, therefore we need a .release() method and have to
nullify the kobj.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12508): soc-camera: remove unused .iface from struct soc_camera_platform_info
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:34:17 +0000 (11:34 -0300)]
V4L/DVB (12508): soc-camera: remove unused .iface from struct soc_camera_platform_info

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12507): sh: soc-camera updates
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:34:17 +0000 (11:34 -0300)]
V4L/DVB (12507): sh: soc-camera updates

Update ap325rxa to specify .bus_id in struct soc_camera_link explicitly, remove
unused .iface from struct soc_camera_platform_info.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12506): soc-camera: convert to platform device
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:28:22 +0000 (11:28 -0300)]
V4L/DVB (12506): soc-camera: convert to platform device

Convert soc-camera core and all drivers to platform device API. We already
converted platforms to register a platform device for each soc-camera client,
now we remove the compatibility code and switch completely to the new scheme.
This is a preparatory step for the v4l2-subdev conversion.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12505): soc_camera_platform: pass device pointer from soc-camera core on...
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:06:22 +0000 (11:06 -0300)]
V4L/DVB (12505): soc_camera_platform: pass device pointer from soc-camera core on .add_device()

Add a struct device pointer to struct soc_camera_platform_info and let the user
(ap325rxa) pass it down to soc_camera_platform.c in its .add_device() method.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12504): soc-camera: prepare soc_camera_platform.c and its users for conversion
Guennadi Liakhovetski [Tue, 25 Aug 2009 14:06:21 +0000 (11:06 -0300)]
V4L/DVB (12504): soc-camera: prepare soc_camera_platform.c and its users for conversion

soc_camera_platform.c is only used by y SuperH ap325rxa board. This patch
converts soc_camera_platform.c and its users for the soc-camera platform-
device conversion and also extends soc-camera core to handle non-I2C cameras.

Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12254): v4l: Makefile and config files for vpfe capture driver
Muralidharan Karicheri [Mon, 6 Jul 2009 18:08:31 +0000 (15:08 -0300)]
V4L/DVB (12254): v4l: Makefile and config files for vpfe capture driver

This adds Makefile and Kconfig changes to build vpfe capture driver.

Reviewed by: Laurent Pinchart <laurent.pinchart@skynet.be>

Signed-off-by: Muralidharan Karicheri <m-karicheri2@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12453a): DaVinci: DM646x: Update the structure name as per header file changes
Chaithrika U S [Mon, 20 Jul 2009 08:03:10 +0000 (05:03 -0300)]
V4L/DVB (12453a): DaVinci: DM646x: Update the structure name as per header file changes

In the platform header file, the subdev_info structure name has been changed
to vpif_subdev_info. Update this change in the driver too.

Applies to v4l-dvb repository.

Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12253): v4l: common vpss module for video drivers
Muralidharan Karicheri [Fri, 19 Jun 2009 12:20:16 +0000 (09:20 -0300)]
V4L/DVB (12253): v4l: common vpss module for video drivers

This is a new module added for vpss library functions that are
used for configuring vpss system module. All video drivers will
include vpss.h header file and call functions defined in this
module to configure vpss system module.

Reviewed by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed by: Laurent Pinchart <laurent.pinchart@skynet.be>
Reviewed by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Muralidharan Karicheri <m-karicheri2@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12252): v4l: ccdc types used across ccdc modules for vpfe capture driver
Muralidharan Karicheri [Fri, 19 Jun 2009 12:19:17 +0000 (09:19 -0300)]
V4L/DVB (12252): v4l: ccdc types used across ccdc modules for vpfe capture driver

common types used across CCDC modules

Reviewed by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed by: Laurent Pinchart <laurent.pinchart@skynet.be>

Signed-off-by: Muralidharan Karicheri <m-karicheri2@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12251): v4l: dm644x ccdc module for vpfe capture driver
Muralidharan Karicheri [Fri, 19 Jun 2009 12:18:14 +0000 (09:18 -0300)]
V4L/DVB (12251): v4l: dm644x ccdc module for vpfe capture driver

This is the hw module for DM644x CCDC. This registers with the
vpfe capture driver and provides a set of hw_ops to configure
CCDC for a specific decoder device connected to the VPFE.

Reviewed by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed by: Laurent Pinchart <laurent.pinchart@skynet.be>

Signed-off-by: Muralidharan Karicheri <m-karicheri2@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12250): v4l: dm355 ccdc module for vpfe capture driver
Muralidharan Karicheri [Fri, 3 Jul 2009 08:23:07 +0000 (05:23 -0300)]
V4L/DVB (12250): v4l: dm355 ccdc module for vpfe capture driver

Adds ccdc hw module for DM355 CCDC. This registers with the bridge
driver a set of hw_ops for configuring the CCDC for a specific
decoder device connected to vpfe.

Reviewed by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed by: Laurent Pinchart <laurent.pinchart@skynet.be>
Reviewed by: Mauro Carvalho Chehab <mchehab@infradead.org>

Signed-off-by: Muralidharan Karicheri <m-karicheri2@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12249): v4l: ccdc hw device header file for vpfe capture
Muralidharan Karicheri [Fri, 19 Jun 2009 12:14:10 +0000 (09:14 -0300)]
V4L/DVB (12249): v4l: ccdc hw device header file for vpfe capture

Adds ccdc hw device header for vpfe capture driver

Reviewed by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed by: Laurent Pinchart <laurent.pinchart@skynet.be>

Signed-off-by: Muralidharan Karicheri <m-karicheri2@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12248): v4l: vpfe capture bridge driver for DM355 and DM6446
Muralidharan Karicheri [Mon, 6 Jul 2009 18:04:12 +0000 (15:04 -0300)]
V4L/DVB (12248): v4l: vpfe capture bridge driver for DM355 and DM6446

This the vpfe capture bridge driver for doing video
capture on DM355 and DM6446 evms. The ccdc hw modules register with the
driver and are used for configuring the CCD Controller for a specific
decoder interface. The driver also registers the sub devices required
for a specific evm. More than one sub devices can be registered.
This allows driver to switch dynamically to capture video from
any sub device that is registered. Currently only one sub device
(tvp5146) is supported. But in future this driver is expected
to do capture from sensor devices such as Micron's MT9T001, MT9T031
and MT9P031 etc. The driver currently supports MMAP based IO.

Reviewed by: Laurent Pinchart <laurent.pinchart@skynet.be>
Reviewed by: Alexey Klimov <klimov.linux@gmail.com>

Signed-off-by: Muralidharan Karicheri <m-karicheri2@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12247): tvp514x: formatting comments as per kernel documentation
Muralidharan Karicheri [Wed, 1 Jul 2009 07:20:43 +0000 (04:20 -0300)]
V4L/DVB (12247): tvp514x: formatting comments as per kernel documentation

Fix documentation style based on comments from Mauro.

Reviewed by: Hans Verkuil <hverkuil@xs4all.nl>

Signed-off-by: Muralidharan Karicheri <m-karicheri2@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12246): tvp514x: Migration to sub-device framework
Muralidharan Karicheri [Fri, 19 Jun 2009 10:13:44 +0000 (07:13 -0300)]
V4L/DVB (12246): tvp514x: Migration to sub-device framework

This patch converts TVP514x driver to sub-device framework
from V4L2-int framework.

[hverkuil@xs4all.nl: remove inline from the dump_reg function]
Signed-off-by: Brijesh Jadav <brijesh.j@ti.com>
Signed-off-by: Hardik Shah <hardik.shah@ti.com>
Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12201): adv7343: remove unused #include <linux/version.h>
Huang Weiyi [Thu, 2 Jul 2009 19:54:14 +0000 (16:54 -0300)]
V4L/DVB (12201): adv7343: remove unused #include <linux/version.h>

Remove unused #include <linux/version.h>'s in drivers/media/video/adv7343.c.

Cc: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12178): vpif_display: Fix compile time warnings for mutex locking
Chaithrika U S [Mon, 22 Jun 2009 12:02:55 +0000 (09:02 -0300)]
V4L/DVB (12178): vpif_display: Fix compile time warnings for mutex locking

mutex_lock_interruptible return value has to be handled properly to indicate
the status to the higher layers of the kernel.

Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12177): dm646x: Add an entry for dm646x EVM card at building system
Chaithrika U S [Tue, 9 Jun 2009 09:38:58 +0000 (06:38 -0300)]
V4L/DVB (12177): dm646x: Add an entry for dm646x EVM card at building system

Makefile and Kconfig changes for DM646x Video Display device, using
davinci/vpif, adv7343 and ths7303 drivers.

Signed-off-by: Manjunath Hadli <mrh@ti.com>
Signed-off-by: Brijesh Jadav <brijesh.j@ti.com>
Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12176): davinci/vpif_display: Add VPIF display driver
Chaithrika U S [Tue, 9 Jun 2009 08:55:37 +0000 (05:55 -0300)]
V4L/DVB (12176): davinci/vpif_display: Add VPIF display driver

Adds the VPIF display driver and the associated header file.

Signed-off-by: Manjunath Hadli <mrh@ti.com>
Signed-off-by: Brijesh Jadav <brijesh.j@ti.com>
Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12175): davinci/vpif: Add Video Port Interface (VPIF) driver
Chaithrika U S [Tue, 9 Jun 2009 08:54:02 +0000 (05:54 -0300)]
V4L/DVB (12175): davinci/vpif: Add Video Port Interface (VPIF) driver

This code be used by the display and capture drivers.

Signed-off-by: Manjunath Hadli <mrh@ti.com>
Signed-off-by: Brijesh Jadav <brijesh.j@ti.com>
Signed-off-by: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12992): gspca - m5602-ov7660: Disable red and blue gain for now
Erik Andrén [Mon, 14 Sep 2009 16:14:41 +0000 (13:14 -0300)]
V4L/DVB (12992): gspca - m5602-ov7660: Disable red and blue gain for now

Red and blue gain isn't handled in conformance with the v4l2 specification. Disable them for now.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12991): gspca - m5602-ov7660: Remove redundant init writes
Erik Andrén [Fri, 26 Jun 2009 12:30:42 +0000 (09:30 -0300)]
V4L/DVB (12991): gspca - m5602-ov7660: Remove redundant init writes

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12990): gspca - m5602-ov7660: Don't set blue and red gain during init
Erik Andrén [Fri, 26 Jun 2009 12:22:59 +0000 (09:22 -0300)]
V4L/DVB (12990): gspca - m5602-ov7660: Don't set blue and red gain during init

Don't set blue and red gain during init as we manuall set it later

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12989): gspca - m5602-ov7660: Don't set gain during init
Erik Andrén [Fri, 26 Jun 2009 12:21:46 +0000 (09:21 -0300)]
V4L/DVB (12989): gspca - m5602-ov7660: Don't set gain during init

We manually set the gain later, no need to do it during init

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12988): gspca - m5602-ov7660: Remove old init
Erik Andrén [Fri, 26 Jun 2009 12:20:04 +0000 (09:20 -0300)]
V4L/DVB (12988): gspca - m5602-ov7660: Remove old init

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12987): gspca - m5602-ov7660: Set the hsync correctly
Erik Andrén [Fri, 26 Jun 2009 07:45:07 +0000 (04:45 -0300)]
V4L/DVB (12987): gspca - m5602-ov7660: Set the hsync correctly

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12986): gspca - m5602-ov7660: Add hflip, vflip controls
Erik Andrén [Fri, 26 Jun 2009 07:35:37 +0000 (04:35 -0300)]
V4L/DVB (12986): gspca - m5602-ov7660: Add hflip, vflip controls

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12985): gspca - m5602-ov7660: Replace magic constants with defines
Erik Andrén [Tue, 23 Jun 2009 05:57:05 +0000 (02:57 -0300)]
V4L/DVB (12985): gspca - m5602-ov7660: Replace magic constants with defines

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12984): gspca - m5602-ov7660: Use a new raw init
Erik Andrén [Sun, 21 Jun 2009 17:58:55 +0000 (14:58 -0300)]
V4L/DVB (12984): gspca - m5602-ov7660: Use a new raw init

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12983): gspca - m5602-ov7660: Add auto exposure ctrl
Erik Andrén [Sat, 20 Jun 2009 16:58:41 +0000 (13:58 -0300)]
V4L/DVB (12983): gspca - m5602-ov7660: Add auto exposure ctrl

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12982): gspca - m5602-ov7660: Add auto gain ctrl
Erik Andrén [Sat, 20 Jun 2009 12:29:00 +0000 (09:29 -0300)]
V4L/DVB (12982): gspca - m5602-ov7660: Add auto gain ctrl

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12981): gspca - m5602-ov7660: Set blue and red gain at init
Erik Andrén [Sat, 20 Jun 2009 11:11:13 +0000 (08:11 -0300)]
V4L/DVB (12981): gspca - m5602-ov7660: Set blue and red gain at init

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12980): gspca - m5602-ov7660: Create auto white balance ctrl
Erik Andrén [Sat, 20 Jun 2009 11:01:27 +0000 (08:01 -0300)]
V4L/DVB (12980): gspca - m5602-ov7660: Create auto white balance ctrl

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12979): gspca - m5602-ov7660: Ensure that the default exposure is set
Erik Andrén [Wed, 17 Jun 2009 16:01:07 +0000 (13:01 -0300)]
V4L/DVB (12979): gspca - m5602-ov7660: Ensure that the default exposure is set

Ensure that the default exposure value is set at startup

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12978): gspca - m5602-ov7660: Add red gain control
Erik Andrén [Wed, 17 Jun 2009 06:14:12 +0000 (03:14 -0300)]
V4L/DVB (12978): gspca - m5602-ov7660: Add red gain control

Hook up the red gain controller

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12977): gspca - m5602-ov7660: Create blue gain control
Erik Andrén [Wed, 17 Jun 2009 06:11:24 +0000 (03:11 -0300)]
V4L/DVB (12977): gspca - m5602-ov7660: Create blue gain control

Hook up a blue gain v4l2 controller

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12976): SAA7164: Removed bus registration messages from driver startup
Steven Toth [Fri, 18 Sep 2009 00:00:40 +0000 (21:00 -0300)]
V4L/DVB (12976): SAA7164: Removed bus registration messages from driver startup

SAA7164: Removed bus registration messages from driver startup

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12975): SAA7164: Remove the i2c client_attach/detach support, no longer...
Steven Toth [Thu, 17 Sep 2009 18:06:45 +0000 (15:06 -0300)]
V4L/DVB (12975): SAA7164: Remove the i2c client_attach/detach support, no longer required.

SAA7164: Remove the i2c client_attach/detach support, no longer required.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12974): SAA7164: Remove the SAA7164 bus id, no longer required.
Steven Toth [Thu, 17 Sep 2009 18:05:38 +0000 (15:05 -0300)]
V4L/DVB (12974): SAA7164: Remove the SAA7164 bus id, no longer required.

SAA7164: Remove the SAA7164 bus id, no longer required.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoDocbook/media: Fix some issues at the docbooks
Mauro Carvalho Chehab [Thu, 17 Sep 2009 16:45:00 +0000 (13:45 -0300)]
Docbook/media: Fix some issues at the docbooks

- Add a few missing entities;
- Some text fixes at remote controllers;
- Add a missing tag at videodev2.h xml version.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12970): saa7164: fix 64bit build warning
Michael Krufky [Sun, 6 Sep 2009 14:13:09 +0000 (11:13 -0300)]
V4L/DVB (12970): saa7164: fix 64bit build warning

Fix the following build warning:

  CC [M]  saa7164-core.o
saa7164-core.c: In function 'saa7164_buffer_deliver':
saa7164-core.c:113: warning: passing argument 2 of 'dvb_dmx_swfilter_packets'
    from incompatible pointer type

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12968): saa7164: fix Kconfig: remove HOTPLUG dependency
Michael Krufky [Sun, 6 Sep 2009 13:59:47 +0000 (10:59 -0300)]
V4L/DVB (12968): saa7164: fix Kconfig: remove HOTPLUG dependency

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12967): saa7164: fix Kconfig: rename DVB_FE_CUSTOMIZE to MEDIA_TUNER_CUSTOMISE
Michael Krufky [Sun, 6 Sep 2009 13:58:42 +0000 (10:58 -0300)]
V4L/DVB (12967): saa7164: fix Kconfig: rename DVB_FE_CUSTOMIZE to MEDIA_TUNER_CUSTOMISE

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12964): tuner-core: add support for NXP TDA18271 without TDA829X demod
Michael Krufky [Wed, 16 Sep 2009 02:04:18 +0000 (23:04 -0300)]
V4L/DVB (12964): tuner-core: add support for NXP TDA18271 without TDA829X demod

Add support for NXP TDA18271 as a standalone tuner, allowing the use of
analog demodulators other than the Philips/NXP TDA829x.

Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12962): ce6230: increase BULK transfer size from 512 to 8192
Antti Palosaari [Wed, 16 Sep 2009 23:21:52 +0000 (20:21 -0300)]
V4L/DVB (12962): ce6230: increase BULK transfer size from 512 to 8192

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12960): anysee: coding style fix
Antti Palosaari [Wed, 16 Sep 2009 22:50:25 +0000 (19:50 -0300)]
V4L/DVB (12960): anysee: coding style fix

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12959): anysee: increase BULK transfer size from 512 to 8192
Antti Palosaari [Wed, 16 Sep 2009 22:47:01 +0000 (19:47 -0300)]
V4L/DVB (12959): anysee: increase BULK transfer size from 512 to 8192

increase BULK transfer size from 512 to 8192 to increase wakeups

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12957): Fix MAC address reading from EEPROM in NetUP Dual DVB-S2 CI card.
Abylay Ospan [Wed, 16 Sep 2009 17:11:15 +0000 (14:11 -0300)]
V4L/DVB (12957): Fix MAC address reading from EEPROM in NetUP Dual DVB-S2 CI card.

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12956): Fix gpio mutex in NetUP Dual DVB-S2 CI card.
Abylay Ospan [Wed, 16 Sep 2009 16:08:06 +0000 (13:08 -0300)]
V4L/DVB (12956): Fix gpio mutex in NetUP Dual DVB-S2 CI card.

The card uses the same cx23885 gpio lines for two adapters.
In case of there is several cards in system we must implement
gpio mutex per cx23885 chip.

Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12954): gspca - gl860: Addition of GL860 based webcams
Olivier Lorin [Tue, 15 Sep 2009 17:17:07 +0000 (14:17 -0300)]
V4L/DVB (12954): gspca - gl860: Addition of GL860 based webcams

- add the Genesys Logic 05e3:0503 and 05e3:f191 webcam

Signed-off-by: Olivier Lorin <o.lorin@laposte.net>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12953): gspca - vc032x: Bad GPIO of the Samsung Q1 on start/stop streaming.
Jean-Francois Moine [Thu, 3 Sep 2009 16:46:59 +0000 (13:46 -0300)]
V4L/DVB (12953): gspca - vc032x: Bad GPIO of the Samsung Q1 on start/stop streaming.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12951): em28xx: add Reddo DVB-C USB TV Box
Antti Palosaari [Tue, 15 Sep 2009 17:42:13 +0000 (14:42 -0300)]
V4L/DVB (12951): em28xx: add Reddo DVB-C USB TV Box

Support for Reddo DVB-C USB TV Box device. Remote is not working yet.
Thanks to Benjamin Larsson <banan@ludd.ltu.se>

Cc: Benjamin Larsson <banan@ludd.ltu.se>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12950): tuner-simple: add Philips CU1216L
Antti Palosaari [Tue, 15 Sep 2009 17:37:20 +0000 (14:37 -0300)]
V4L/DVB (12950): tuner-simple: add Philips CU1216L

add Philips CU1216L NIM

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12948): v4l1-compat: fix VIDIOC_G_STD handling
Hans Verkuil [Tue, 15 Sep 2009 11:08:20 +0000 (08:08 -0300)]
V4L/DVB (12948): v4l1-compat: fix VIDIOC_G_STD handling

The VIDIOC_G_STD ioctl may not be present in the case of radio receivers.
In that case G_STD will return an error. The v4l1-compat layer should not
attempt to propagate that error to the caller, instead it should be
ignored.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12946): SAA7164: Add support for a new HVR-2250 hardware revision
Steven Toth [Fri, 4 Sep 2009 02:46:16 +0000 (23:46 -0300)]
V4L/DVB (12946): SAA7164: Add support for a new HVR-2250 hardware revision

SAA7164: Add support for a new HVR-2250 hardware revision

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12945): SAA7164: Ensure the HVR-2200 second tuner is configured in slave...
Steven Toth [Sat, 29 Aug 2009 17:41:18 +0000 (14:41 -0300)]
V4L/DVB (12945): SAA7164: Ensure the HVR-2200 second tuner is configured in slave mode.

SAA7164: Ensure the HVR-2200 second tuner is configured in slave mode.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12944): SAA7164: Minor i2c assignment cleanup
Steven Toth [Sat, 29 Aug 2009 17:33:06 +0000 (14:33 -0300)]
V4L/DVB (12944): SAA7164: Minor i2c assignment cleanup

SAA7164: Minor i2c assignment cleanup

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12943): SAA7164: Add a warning about addr usage
Steven Toth [Sat, 29 Aug 2009 17:22:05 +0000 (14:22 -0300)]
V4L/DVB (12943): SAA7164: Add a warning about addr usage

SAA7164: Remove meaningless if'0 code

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12942): SAA7164: HVR2250 changes related to attach time tuner configuration
Steven Toth [Thu, 27 Aug 2009 21:08:21 +0000 (18:08 -0300)]
V4L/DVB (12942): SAA7164: HVR2250 changes related to attach time tuner configuration

Ensure that by default all tuners are set correctly to master/slave mode.
For all HVR2250's, ensure slave based tuners are caliberated during attach
to avoid locking problems on tuner# above channel 91.

HVR2200 tuner attach time to be reviewed in a future patch.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12941): SAA7164: Removed spurious debug
Steven Toth [Thu, 13 Aug 2009 00:12:32 +0000 (21:12 -0300)]
V4L/DVB (12941): SAA7164: Removed spurious debug

SAA7164: Removed spurious debug

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12940): SAA7164: IRQ / message timeout related change
Steven Toth [Wed, 12 Aug 2009 15:14:37 +0000 (12:14 -0300)]
V4L/DVB (12940): SAA7164: IRQ / message timeout related change

In some cases we're seeing large timeouts on commands. I'm changing the
implementation so that the deferred worker checks the PCI bus for
any messages and signals the waiting caller accordingly. The previous
mechanism was too unreliable.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12939): SAA7164: Removed a duplicate call to address any PCI quirks.
Steven Toth [Wed, 12 Aug 2009 15:06:27 +0000 (12:06 -0300)]
V4L/DVB (12939): SAA7164: Removed a duplicate call to address any PCI quirks.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12938): SAA7164: Increase the firmware command timeout to avoid firmware...
Steven Toth [Sat, 8 Aug 2009 13:22:02 +0000 (10:22 -0300)]
V4L/DVB (12938): SAA7164: Increase the firmware command timeout to avoid firmware errors.

The firmware typically responds in < 50ms and, via the interrupts and
deferred work queue the caller (blocked in the driver) is signalled very
efficiently. In a highly stressed system this can take many multiples
of seconds. So, we need a larger maximum timeout for busy systems.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12937): SAA7164: Cleanup a printk
Steven Toth [Sat, 8 Aug 2009 13:13:51 +0000 (10:13 -0300)]
V4L/DVB (12937): SAA7164: Cleanup a printk

Cleanup a printk and output two helpful driver params in debug mode.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12936): SAA7164: Added waitsecs module parameter
Steven Toth [Thu, 30 Jul 2009 12:09:30 +0000 (09:09 -0300)]
V4L/DVB (12936): SAA7164: Added waitsecs module parameter

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12935): SAA7164: Ensure we specify I/F's for all bandwidths
Steven Toth [Sat, 16 May 2009 00:13:32 +0000 (21:13 -0300)]
V4L/DVB (12935): SAA7164: Ensure we specify I/F's for all bandwidths

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12934): SAA7164: Fix i2c eeprom read errors during load (some boards).
Steven Toth [Thu, 14 May 2009 04:15:15 +0000 (01:15 -0300)]
V4L/DVB (12934): SAA7164: Fix i2c eeprom read errors during load (some boards).

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12933): SAA7164: Fix IRQ related system hang when firmware is not found.
Steven Toth [Wed, 13 May 2009 05:53:08 +0000 (02:53 -0300)]
V4L/DVB (12933): SAA7164: Fix IRQ related system hang when firmware is not found.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12932): SAA7164: Fixed the missing eeprom parse on a specific board.
Steven Toth [Tue, 12 May 2009 19:20:37 +0000 (16:20 -0300)]
V4L/DVB (12932): SAA7164: Fixed the missing eeprom parse on a specific board.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12931): SAA7164: Fix the 88021 definition to work with production boards.
Steven Toth [Tue, 12 May 2009 01:03:07 +0000 (22:03 -0300)]
V4L/DVB (12931): SAA7164: Fix the 88021 definition to work with production boards.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12930): SAA7164: Removed spurious I2C errors during driver load with DVB...
Steven Toth [Tue, 12 May 2009 13:13:11 +0000 (10:13 -0300)]
V4L/DVB (12930): SAA7164: Removed spurious I2C errors during driver load with DVB-T boards.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12929): SAA7164: OOPS avoidance during interrupt handling
Steven Toth [Tue, 12 May 2009 01:16:05 +0000 (22:16 -0300)]
V4L/DVB (12929): SAA7164: OOPS avoidance during interrupt handling

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12928): SAA7164: Increase firmware load tolerance
Steven Toth [Mon, 11 May 2009 23:42:03 +0000 (20:42 -0300)]
V4L/DVB (12928): SAA7164: Increase firmware load tolerance

It's timing out and aborting firmware load too quickly on some
platforms, this increases the upper limit.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12927): SAA7164: Remove volatiles for PCI writes (coding style violation)
Steven Toth [Sun, 10 May 2009 17:08:27 +0000 (14:08 -0300)]
V4L/DVB (12927): SAA7164: Remove volatiles for PCI writes (coding style violation)

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12926): SAA7164: Email address change
Steven Toth [Sun, 10 May 2009 14:17:58 +0000 (11:17 -0300)]
V4L/DVB (12926): SAA7164: Email address change

SAA7164: Email address change

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12925): SAA7164: Adjust I/F's to the TDA10048 enabling DVB-T lock
Steven Toth [Sun, 10 May 2009 13:25:34 +0000 (10:25 -0300)]
V4L/DVB (12925): SAA7164: Adjust I/F's to the TDA10048 enabling DVB-T lock

SAA7164: Adjust I/F's to the TDA10048 enabling DVB-T lock

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12924): SAA7164: Fix some 32/64bit compile time warnings
Steven Toth [Sun, 10 May 2009 00:30:05 +0000 (21:30 -0300)]
V4L/DVB (12924): SAA7164: Fix some 32/64bit compile time warnings

SAA7164: Fix some 32/64bit compile time warnings

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12923): SAA7164: Add support for the NXP SAA7164 silicon
Steven Toth [Sun, 10 May 2009 00:17:28 +0000 (21:17 -0300)]
V4L/DVB (12923): SAA7164: Add support for the NXP SAA7164 silicon

This patch adds support for all of the known shipping Hauppauge HVR-2200
and HVR-2250 boards. Digital TV ATSC/QAM and DVB-T is enabled at this
time. Both tuners are supported.

Volatiles and typedefs need rework, the rest is coding style compliant.

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (12922): Add the SAA7164 I2C bus identifier
Steven Toth [Sat, 9 May 2009 16:24:12 +0000 (13:24 -0300)]
V4L/DVB (12922): Add the SAA7164 I2C bus identifier

Add the SAA7164 I2C bus identifier

Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>