pandora-kernel.git
15 years agoV4L/DVB (11412): gspca - m5602-ov9650: Checkpatch fixes
Erik Andr?n [Tue, 30 Dec 2008 18:29:48 +0000 (15:29 -0300)]
V4L/DVB (11412): gspca - m5602-ov9650: Checkpatch fixes

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11411): gspca - m5602: Rework v4l ctrl handling in all sensors
Erik Andr?n [Tue, 30 Dec 2008 18:27:17 +0000 (15:27 -0300)]
V4L/DVB (11411): gspca - m5602: Rework v4l ctrl handling in all sensors

Previously, all sensors allocated a part of a large ctrl vector.
Define this vector separately for each sensor instead.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11410): gspca - m5602-ov9650: Always init the ov9650 before starting a stream
Erik Andr?n [Tue, 30 Dec 2008 10:47:11 +0000 (07:47 -0300)]
V4L/DVB (11410): gspca - m5602-ov9650: Always init the ov9650 before starting a stream

This is a hack preventing a suspend-to-ram/disk regression.

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11409): gspca - m5602-ov9650: Set the ov9650 sensor in soft sleep when inactive.
Erik Andr?n [Mon, 29 Dec 2008 15:49:25 +0000 (12:49 -0300)]
V4L/DVB (11409): gspca - m5602-ov9650: Set the ov9650 sensor in soft sleep when inactive.

In order to save energy, put the sensor in soft sleep mode when not active

Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11408): gspca - m5602-s5k83a: Add led support to the s5k83a sensor.
Lukas Karas [Sun, 28 Dec 2008 17:09:21 +0000 (14:09 -0300)]
V4L/DVB (11408): gspca - m5602-s5k83a: Add led support to the s5k83a sensor.

This patch toggles the led seen on many laptops having a m5602 connected
to a Samsung s5k83a sensor.

Signed-off-by: Lukas Karas <lukas.karas@centrum.cz>
Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11407): gspca - m5602-ov9650: Clean up ov9650_start() function.
Erik Andr?n [Sat, 27 Dec 2008 17:06:06 +0000 (14:06 -0300)]
V4L/DVB (11407): gspca - m5602-ov9650: Clean up ov9650_start() function.

Cleans some unnecessary temporary variable usage in the ov9650 start function.

Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11406): gspca - m5602-ov9650: Add QCIF resolution support
Erik Andr?n [Sat, 27 Dec 2008 16:30:10 +0000 (13:30 -0300)]
V4L/DVB (11406): gspca - m5602-ov9650: Add QCIF resolution support

Adds QCIF support for the ov9650 sensor

Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11405): gspca - m5602: Simplify error handling
Erik Andr?n [Sat, 27 Dec 2008 15:28:00 +0000 (12:28 -0300)]
V4L/DVB (11405): gspca - m5602: Simplify error handling

Simplfy error handling by replacing goto statements with return equivalents.

Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11404): gspca - m5602-s5k4aa: Add start function and VGA resolution init.
Erik Andr?n [Fri, 26 Dec 2008 15:57:42 +0000 (12:57 -0300)]
V4L/DVB (11404): gspca - m5602-s5k4aa: Add start function and VGA resolution init.

Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11403): gspca - m5602-s5k4aa: No more "default" mode
Erik Andr?n [Fri, 26 Dec 2008 14:56:43 +0000 (11:56 -0300)]
V4L/DVB (11403): gspca - m5602-s5k4aa: No more "default" mode

Signed-off-by: Erik Andr?n <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11402): gspca - vc032x: Remove the JPEG tables of mi1320_soc.
Jean-Francois Moine [Thu, 26 Mar 2009 09:03:28 +0000 (06:03 -0300)]
V4L/DVB (11402): gspca - vc032x: Remove the JPEG tables of mi1320_soc.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoRevert "V4L/DVB (10962): fired-avc: fix printk formatting warning."
Stefan Richter [Wed, 1 Apr 2009 20:25:00 +0000 (17:25 -0300)]
Revert "V4L/DVB (10962): fired-avc: fix printk formatting warning."

Commit 34aecd2851bba5c2b7dae2f0dbe8e629b1c5e4ac was made obsolete
and invalid by commit 40cf65d149053889c8876c6c2b4ce204fde55baa.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11398): Support for Legend Silicon LGS8913/LGS8GL5/LGS8GXX China DMB-TH...
David Wong [Wed, 1 Apr 2009 07:35:10 +0000 (04:35 -0300)]
V4L/DVB (11398): Support for Legend Silicon LGS8913/LGS8GL5/LGS8GXX China DMB-TH digital demodulator

This patch contains the unified driver for Legend Silicon LGS8913 and
LGS8GL5. It should replace lgs8gl5.c in media/dvb/frontends in the future.

Signed-off-by: David T.L. Wong <davidtlwong@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11393): radio-si470x: fix possible bug with freeing memory order
Alexey Klimov [Wed, 1 Apr 2009 00:01:04 +0000 (21:01 -0300)]
V4L/DVB (11393): radio-si470x: fix possible bug with freeing memory order

Patch fixes cleanup procedure in si470x_usb_driver_probe. Add new label
err_video and change order of freeing memory.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11392): patch: s2255drv driver removal problem fixed
Dean Anderson [Mon, 30 Mar 2009 14:59:56 +0000 (11:59 -0300)]
V4L/DVB (11392): patch: s2255drv driver removal problem fixed

This patch fixes kfree problem on driver removal, fixes streamoff problem
and removes unnecessary videobuf_waiton from free_buffer function.

Signed-off-by: Dean Anderson <dean@sensoray.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11392a): Remove reference to obsolete linux-dvb@linuxtv.org
Geert Uytterhoeven [Tue, 31 Mar 2009 13:34:10 +0000 (10:34 -0300)]
V4L/DVB (11392a): Remove reference to obsolete linux-dvb@linuxtv.org

linux-dvb@linuxtv.org auto-responds with:

| This ML is deprecated. Please use linux-media@vger.kernel.org instead.
| For more info about linux-media@vger.kernel.org, please read:
| http://vger.kernel.org/vger-lists.html#linux-media

Hence remove it from MAINTAINERS.

There are still a few references to it in various docs and source files
With kind regards,
Geert Uytterhoeven
Software Architect
Sony Techsoft Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
Phone:    +32 (0)2 700 8453
Fax:      +32 (0)2 700 8622
E-mail:   Geert.Uytterhoeven@sonycom.com
Internet: http://www.sony-europe.com/
A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11391): pci-isa radios: remove open and release functions
Alexey Klimov [Sun, 29 Mar 2009 23:19:54 +0000 (20:19 -0300)]
V4L/DVB (11391): pci-isa radios: remove open and release functions

Patch removes empty open and release functions in pci and isa radio
drivers, setting them to NULL. V4L module doesn't call for them due to
previous patch.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11390): 2-dev.c: return 0 for NULL open and release callbacks
Hans Verkuil [Sun, 29 Mar 2009 23:19:38 +0000 (20:19 -0300)]
V4L/DVB (11390): 2-dev.c: return 0 for NULL open and release callbacks

Patch allows v4l2_open and v4l2_release functions return 0 if open and
release driver callbacks set to NULL. This will be used in radio
drivers.

--

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11387): Sensor orientation reporting
Adam Baker [Sun, 29 Mar 2009 22:17:10 +0000 (19:17 -0300)]
V4L/DVB (11387): Sensor orientation reporting

Add support to the SQ-905 driver to pass back to user space the
sensor orientation information obtained from the camera during init.
Modifies gspca and the videodev2.h header to create the necessary
API.

[mchehab@redhat.com: Changed "Output is" to "Frames are" at the comments, as suggested at LMML]
Signed-off-by: Adam Baker <linux@baker-net.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11386): saa7134: Add analog RF tuner support for Avermedia A700 DVB-S Hybrid...
Matthias Schwarzott [Sun, 29 Mar 2009 19:36:02 +0000 (16:36 -0300)]
V4L/DVB (11386): saa7134: Add analog RF tuner support for Avermedia A700 DVB-S Hybrid+FM card

Thanks to panagonov <panagonov@mail.bg> for requesting support and
testing patches.

Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11381): ivtv/cx18: remove VIDIOC_INT_S_AUDIO_ROUTING debug support.
Hans Verkuil [Thu, 2 Apr 2009 14:37:41 +0000 (11:37 -0300)]
V4L/DVB (11381): ivtv/cx18: remove VIDIOC_INT_S_AUDIO_ROUTING debug support.

Remove support for the debug call VIDIOC_INT_S_AUDIO_ROUTING from cx18
and ivtv. These internal ioctls shouldn't be exposed. These were only
used through the cx18-ctl and ivtv-ctl utilities, and only when testing
a new card variant.

This cleanup allows the removal of this ioctl from v4l2-common.h.

Cc: Andy Walls <awalls@radix.net>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11380): v4l2-subdev: change s_routing prototype
Hans Verkuil [Thu, 2 Apr 2009 14:26:22 +0000 (11:26 -0300)]
V4L/DVB (11380): v4l2-subdev: change s_routing prototype

It is no longer needed to use a struct pointer as argument, since v4l2_subdev
doesn't require that ioctl-like approach anymore. Instead just pass the input,
output and config (new!) arguments directly.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11379): mxb: fix copy-and-paste bug in mute.
Hans Verkuil [Wed, 1 Apr 2009 23:22:26 +0000 (20:22 -0300)]
V4L/DVB (11379): mxb: fix copy-and-paste bug in mute.

The line-in was muted twice instead of the line-in and the cd-in.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11377): v4l: increase version numbers of drivers converted to v4l2_subdev.
Hans Verkuil [Wed, 1 Apr 2009 06:15:52 +0000 (03:15 -0300)]
V4L/DVB (11377): v4l: increase version numbers of drivers converted to v4l2_subdev.

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

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

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11376): tvaudio.h: add static inline to retrieve the list of possible i2c...
Hans Verkuil [Wed, 1 Apr 2009 07:00:30 +0000 (04:00 -0300)]
V4L/DVB (11376): tvaudio.h: add static inline to retrieve the list of possible i2c addrs.

Rather than duplicating this list everywhere, just put it in tvaudio.h.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11375): v4l2: use v4l2_i2c_new_probed_subdev_addr where appropriate.
Hans Verkuil [Mon, 30 Mar 2009 14:47:55 +0000 (11:47 -0300)]
V4L/DVB (11375): v4l2: use v4l2_i2c_new_probed_subdev_addr where appropriate.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11373): v4l2-common: add explicit v4l2_device pointer as first arg to new_...
Hans Verkuil [Wed, 1 Apr 2009 06:57:53 +0000 (03:57 -0300)]
V4L/DVB (11373): v4l2-common: add explicit v4l2_device pointer as first arg to new_(probed)_subdev

The functions v4l2_i2c_new_subdev and v4l2_i2c_new_probed_subdev relied on
i2c_get_adapdata to return the v4l2_device. However, this is not always
possible on embedded platforms. So modify the API to pass the v4l2_device
pointer explicitly.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11374): v4l2-common: add v4l2_i2c_new_probed_subdev_addr
Hans Verkuil [Mon, 30 Mar 2009 14:40:54 +0000 (11:40 -0300)]
V4L/DVB (11374): v4l2-common: add v4l2_i2c_new_probed_subdev_addr

Add utility function to probe for a single address, rather than a list
of addresses.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11372): v4l2: use old-style i2c API for kernels < 2.6.26 instead of < 2...
Hans Verkuil [Sun, 29 Mar 2009 23:04:44 +0000 (20:04 -0300)]
V4L/DVB (11372): v4l2: use old-style i2c API for kernels < 2.6.26 instead of < 2.6.22

Originally the intention was to switch to the new style i2c API starting with
the introduction of the API in 2.6.22. However, the i2c_new_probed_device()
function has a lethal bug that wasn't fixed until 2.6.25. Or more accurately,
it was only fixed in the stable series of 2.6.25 and 2.6.26.

Given the fact that the new i2c API also changed starting with 2.6.26 (the
addition of i2c_device_id), it is easiest to switch APIs starting with
2.6.26.

This patch updates all the legacy code accordingly.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11371): v4l2: remove legacy fields in v4l2-i2c-drv.h.
Hans Verkuil [Sun, 29 Mar 2009 22:40:01 +0000 (19:40 -0300)]
V4L/DVB (11371): v4l2: remove legacy fields in v4l2-i2c-drv.h.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11370): v4l2-subdev: move s_std from tuner to core.
Hans Verkuil [Wed, 1 Apr 2009 06:52:39 +0000 (03:52 -0300)]
V4L/DVB (11370): v4l2-subdev: move s_std from tuner to core.

s_std didn't belong in the tuner ops. Stricly speaking it should be part of
the video ops, but it is used by audio and tuner devices as well, so it is
more efficient to make it part of the core ops.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11369): v4l2-subdev: add load_fw and use that instead of abusing core->init.
Hans Verkuil [Sun, 29 Mar 2009 22:20:26 +0000 (19:20 -0300)]
V4L/DVB (11369): v4l2-subdev: add load_fw and use that instead of abusing core->init.

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

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11368): v4l2-subdev: move s_standby from core to tuner.
Hans Verkuil [Wed, 1 Apr 2009 06:49:59 +0000 (03:49 -0300)]
V4L/DVB (11368): v4l2-subdev: move s_standby from core to tuner.

s_standby is only used to put the tuner in powersaving mode, so move it
from core to tuner.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11367): v4l2-common: remove legacy code
Hans Verkuil [Wed, 1 Apr 2009 06:41:09 +0000 (03:41 -0300)]
V4L/DVB (11367): v4l2-common: remove legacy code

Now that all drivers are converted to v4l2_subdev we can remove legacy code
in v4l2-common. Also move the documentation of the internal API to
v4l2-subdev.h where it really belongs.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11366): v4l: remove obsolete header and source
Hans Verkuil [Sun, 29 Mar 2009 21:00:07 +0000 (18:00 -0300)]
V4L/DVB (11366): v4l: remove obsolete header and source

v4l2-subdev.c and v4l2-i2c-drv-legacy.h were used to support the old i2c
API. All v4l drivers are now converted to v4l2_subdev, so these two files
can be removed.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11365): tvaudio: remove i2c legacy code
Hans Verkuil [Sun, 29 Mar 2009 20:56:18 +0000 (17:56 -0300)]
V4L/DVB (11365): tvaudio: remove i2c legacy code

All drivers that use tvaudio now use v4l2_subdev, so we can remove the
legacy code from tvaudio.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11364): tuner: remove i2c legacy code.
Hans Verkuil [Wed, 1 Apr 2009 06:32:22 +0000 (03:32 -0300)]
V4L/DVB (11364): tuner: remove i2c legacy code.

All drivers that use the tuner module now use v4l2_subdev, so we can remove the
legacy code from this module.

Note that TUNER_SET_CONFIG is still called by tuner-simple.c, so we have
to handle it via a .command callback. There must be a better way to do this,
but for now this will work.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11363): tvp5150: remove i2c legacy code.
Hans Verkuil [Sun, 29 Mar 2009 20:34:31 +0000 (17:34 -0300)]
V4L/DVB (11363): tvp5150: remove i2c legacy code.

All drivers that use tvp5150 now use v4l2_subdev, so we can remove the
legacy code from tvp5150.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11362): saa7115: remove i2c legacy code
Hans Verkuil [Sun, 29 Mar 2009 20:32:35 +0000 (17:32 -0300)]
V4L/DVB (11362): saa7115: remove i2c legacy code

All drivers that use saa7115 now use v4l2_subdev, so we can remove the
legacy code from saa7115.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11361): msp3400: remove i2c legacy code
Hans Verkuil [Sun, 29 Mar 2009 20:30:34 +0000 (17:30 -0300)]
V4L/DVB (11361): msp3400: remove i2c legacy code

All drivers that use msp3400 now use v4l2_subdev, so we can remove the
legacy code from msp3400.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11360): em28xx: use usb_interface.dev for v4l2_device_register
Mauro Carvalho Chehab [Sun, 5 Apr 2009 11:02:15 +0000 (08:02 -0300)]
V4L/DVB (11360): em28xx: use usb_interface.dev for v4l2_device_register

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11358): w9968cf: use usb_interface.dev for v4l2_device_register
Janne Grunau [Wed, 1 Apr 2009 11:49:16 +0000 (08:49 -0300)]
V4L/DVB (11358): w9968cf: use usb_interface.dev for v4l2_device_register

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11357): au0828: remove explicitly set v4l2_device.name and unused au0828_ins...
Janne Grunau [Wed, 1 Apr 2009 11:48:29 +0000 (08:48 -0300)]
V4L/DVB (11357): au0828: remove explicitly set v4l2_device.name and unused au0828_instance

Signed-off-by: Janne Grunau <j@jannau.net>
Acked-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11356): au0828: use usb_interface.dev for v4l2_device_register
Janne Grunau [Wed, 1 Apr 2009 11:47:35 +0000 (08:47 -0300)]
V4L/DVB (11356): au0828: use usb_interface.dev for v4l2_device_register

Signed-off-by: Janne Grunau <j@jannau.net>
Acked-by: Devin Heitmueller <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11355): pvrusb2: use usb_interface.dev for v4l2_device_register
Janne Grunau [Wed, 1 Apr 2009 11:46:50 +0000 (08:46 -0300)]
V4L/DVB (11355): pvrusb2: use usb_interface.dev for v4l2_device_register

Signed-off-by: Janne Grunau <j@jannau.net>
Acked-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11354): usbvision: use usb_interface.dev for v4l2_device_register
Janne Grunau [Wed, 1 Apr 2009 11:46:00 +0000 (08:46 -0300)]
V4L/DVB (11354): usbvision: use usb_interface.dev for v4l2_device_register

Signed-off-by: Janne Grunau <j@jannau.net>
Acked-by: Thierry Merle <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11353): cx231xx: remove explicitly set v4l2_device.name
Janne Grunau [Wed, 1 Apr 2009 11:41:13 +0000 (08:41 -0300)]
V4L/DVB (11353): cx231xx: remove explicitly set v4l2_device.name

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11352): cx231xx: use usb_interface.dev for v4l2_device_register
Janne Grunau [Wed, 1 Apr 2009 11:39:29 +0000 (08:39 -0300)]
V4L/DVB (11352): cx231xx: use usb_interface.dev for v4l2_device_register

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11250): cx231xx: Fix Kconfig help items
Mauro Carvalho Chehab [Sat, 28 Mar 2009 09:55:35 +0000 (06:55 -0300)]
V4L/DVB (11250): cx231xx: Fix Kconfig help items

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11135): cx231xx: use usb_make_path() for bus_info
Mauro Carvalho Chehab [Sun, 22 Mar 2009 11:53:36 +0000 (08:53 -0300)]
V4L/DVB (11135): cx231xx: use usb_make_path() for bus_info

VIDIOC_QUERYCAP should return the proper bus info. In the case of USB, this
should be generated by usb_make_path(), being something like:
usb-0000:00:1d.7-2

Cc: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11134): cx231xx: dmesg cleanup
Mauro Carvalho Chehab [Sun, 22 Mar 2009 11:28:30 +0000 (08:28 -0300)]
V4L/DVB (11134): cx231xx: dmesg cleanup

Remove some printk's that were needed only during development phase. Also,
cleans the printed messages to produce a nicer result.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11133): cx231xx: don't print pcb config debug messages by default
Mauro Carvalho Chehab [Sun, 22 Mar 2009 11:02:12 +0000 (08:02 -0300)]
V4L/DVB (11133): cx231xx: don't print pcb config debug messages by default

Cc: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11132): cx231xx: usb probe cleanups
Mauro Carvalho Chehab [Sun, 22 Mar 2009 10:52:02 +0000 (07:52 -0300)]
V4L/DVB (11132): cx231xx: usb probe cleanups

Simplifies the usb probe logic, cleaning the printed messages during the probing
phase.

Cc: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11131): cx231xx: avoid trying to access unfilled dev struct
Mauro Carvalho Chehab [Sun, 22 Mar 2009 08:46:36 +0000 (05:46 -0300)]
V4L/DVB (11131): cx231xx: avoid trying to access unfilled dev struct

cx231xxinfo needs dev->name. However, this is not declared on the time the
check for the max number of supported devices is done.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11130): cx231xx: fix an inverted logic at vidioc_streamoff
Mauro Carvalho Chehab [Sun, 22 Mar 2009 01:16:34 +0000 (22:16 -0300)]
V4L/DVB (11130): cx231xx: fix an inverted logic at vidioc_streamoff

Cc: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11129): cx231xx: Use generic names for each device block
Sri Deevi [Sun, 22 Mar 2009 01:00:20 +0000 (22:00 -0300)]
V4L/DVB (11129): cx231xx: Use generic names for each device block

Signed-off-by: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11128): cx231xx: convert the calls to subdev format
Sri Deevi [Sat, 21 Mar 2009 02:33:48 +0000 (23:33 -0300)]
V4L/DVB (11128): cx231xx: convert the calls to subdev format

This patch converts cx231xx to the new v4l2 dev/subdev, doing:
 - Conversion of i2c calls to subdev calls;
 - all subdev calls to call_all();
 - Corrected the header file order in cx231xx.h;
 - Added tuner frequency setting.

Signed-off-by: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11038): Fix the issue with audio module & correction of Names
Sri Deevi [Fri, 13 Mar 2009 21:35:14 +0000 (18:35 -0300)]
V4L/DVB (11038): Fix the issue with audio module & correction of Names

The audio module requested in driver differs with module
created by Makefile. Makefile is corrected to create the same module name
required by driver. Also, corrected the strings that shows wrong name.

Signed-off-by: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10989): cx25840: cx23885 detection was broken
Hans Verkuil [Fri, 13 Mar 2009 16:36:00 +0000 (13:36 -0300)]
V4L/DVB (10989): cx25840: cx23885 detection was broken

An earlier commit accidentally broke the detection of the cx25837 part of
the cx23885. Reinstated the commented out code.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10982): cx231xx: fix compile warning
Hans Verkuil [Thu, 12 Mar 2009 21:38:40 +0000 (18:38 -0300)]
V4L/DVB (10982): cx231xx: fix compile warning

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10958): cx231xx: some additional CodingStyle and minor fixes
Sri Deevi [Wed, 11 Mar 2009 00:16:26 +0000 (21:16 -0300)]
V4L/DVB (10958): cx231xx: some additional CodingStyle and minor fixes

changed the pcb-config.c/h to pcb-cfg.c/h for short names.

Signed-off-by: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10957): cx231xx: Fix CodingStyle
Sri Deevi [Wed, 4 Mar 2009 20:49:01 +0000 (17:49 -0300)]
V4L/DVB (10957): cx231xx: Fix CodingStyle

Fixes several CodingStyle issues on the driver.

Signed-off-by: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10957a): cx231xx: Fix compilation breakage
Mauro Carvalho Chehab [Fri, 13 Mar 2009 10:41:58 +0000 (07:41 -0300)]
V4L/DVB (10957a): cx231xx: Fix compilation breakage

Only cx231xx-video needs linux/version.h, due to KERNEL_VERSION macro,
that is used by V4L2 API.

This patch moves the KERNEL_VERSION to its proper place and starts with
0,0,1.

There are still much more to be fixed on later patches

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10956): cx231xx: First series of manual CodingStyle fixes
Mauro Carvalho Chehab [Tue, 3 Mar 2009 16:31:36 +0000 (13:31 -0300)]
V4L/DVB (10956): cx231xx: First series of manual CodingStyle fixes

This patch cleans up CodingStyle on the following source files:

There are still much more to be fixed on later patches

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10955): cx231xx: CodingStyle automatic fixes with Lindent
Mauro Carvalho Chehab [Tue, 3 Mar 2009 09:14:34 +0000 (06:14 -0300)]
V4L/DVB (10955): cx231xx: CodingStyle automatic fixes with Lindent

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10954): Add cx231xx USB driver
Sri Deevi [Tue, 3 Mar 2009 17:37:50 +0000 (14:37 -0300)]
V4L/DVB (10954): Add cx231xx USB driver

Signed-off-by: Srinivasa Deevi <srinivasa.deevi@conexant.com>
[mchehab@redhat.com: Remove the Kconfig changes, to avoid git breakages]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10953): cx25840: Fix CodingStyle errors introduced by the last patch
Mauro Carvalho Chehab [Tue, 3 Mar 2009 17:36:55 +0000 (14:36 -0300)]
V4L/DVB (10953): cx25840: Fix CodingStyle errors introduced by the last patch

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (10952): cx25840: prepare it to be used by cx231xx module
Sri Deevi [Tue, 3 Mar 2009 09:07:42 +0000 (06:07 -0300)]
V4L/DVB (10952): cx25840: prepare it to be used by cx231xx module

cx231xx has a cx25840 inside the chip. However, some different
initializations are used for this variant.

Signed-off-by: Srinivasa Deevi <srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11351): v4l: use usb_interface for v4l2_device_register
Janne Grunau [Wed, 1 Apr 2009 11:30:06 +0000 (08:30 -0300)]
V4L/DVB (11351): v4l: use usb_interface for v4l2_device_register

If usb_interface.dev is used as dev parameter for v4l2_device_register
v4l2_dev.name contains the v4l driver/module name and usb device and
interface instead of a simple "usb x-y".
It also matches the recommendation to set the parent devices for usb
drivers.

Signed-off-by: Janne Grunau <j@jannau.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11350): Add camera (CSI) driver for MX1
Paulius Zaleckas [Fri, 3 Apr 2009 13:34:05 +0000 (10:34 -0300)]
V4L/DVB (11350): Add camera (CSI) driver for MX1

Add support for CMOS Sensor Interface on i.MX1 and i.MXL SoCs.

 create mode 100644 arch/arm/mach-mx1/ksym_mx1.c
 create mode 100644 arch/arm/mach-mx1/mx1_camera_fiq.S
 create mode 100644 arch/arm/plat-mxc/include/mach/mx1_camera.h
 create mode 100644 drivers/media/video/mx1_camera.c

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Signed-off-by: Darius Augulis <augulis.darius@gmail.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11349): mx3-camera: adapt the clock definition and the driver to the new...
Guennadi Liakhovetski [Fri, 3 Apr 2009 13:34:02 +0000 (10:34 -0300)]
V4L/DVB (11349): mx3-camera: adapt the clock definition and the driver to the new clock naming

With the i.MX31 transition to clkdev clock names have changed, but mistakenly
the "mx3-camera.0" has been registered with a non-NULL connection ID, which is
not necessary, since this is the only clock, used by the capture interface
driver. Fix the clock definition and the driver to use NULL as a connection ID.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11347): mt9t031: use platform power hook
Guennadi Liakhovetski [Fri, 3 Apr 2009 13:14:02 +0000 (10:14 -0300)]
V4L/DVB (11347): mt9t031: use platform power hook

Use platform power hook to turn the camera on and off.

Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11345): af9015: support for DigitalNow TinyTwin remote
Stuart Hall [Thu, 2 Apr 2009 08:25:09 +0000 (05:25 -0300)]
V4L/DVB (11345): af9015: support for DigitalNow TinyTwin remote

Patch to provide basic support for DigitalNow TinyTwin Remote. It uses
same remote as TwinHan AzureWave AD-TU700(704J).

Signed-off-by: Stuart Hall <mailing-lists@enginuities.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11343): au0828: make i2c clock speed per-board configurable
Devin Heitmueller [Wed, 1 Apr 2009 03:11:31 +0000 (00:11 -0300)]
V4L/DVB (11343): au0828: make i2c clock speed per-board configurable

Setup the i2c clock speed to be definable on a per-board basis.  This allows
us to explicitly set the clock speed to 30 KHz on the 950q, and also gets rid
of code which sets it on a basis of what chip the i2c master is talking to
at any given time (which could have caused issues because i2c slaves should
never receive commands at a clock higher than their supported clock speed).

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11342): au0828: better document i2c registers
Devin Heitmueller [Wed, 1 Apr 2009 02:58:49 +0000 (23:58 -0300)]
V4L/DVB (11342): au0828: better document i2c registers

Change the #define entries for the i2c registers to be more meaningful, and
document the valid values for the registers.  Note that this changeset makes
*no* functional changes to the code.

Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11340): af9015: add support for AverMedia AVerTV Volar Black HD (A850)
Antti Palosaari [Tue, 31 Mar 2009 20:01:02 +0000 (17:01 -0300)]
V4L/DVB (11340): af9015: add support for AverMedia AVerTV Volar Black HD (A850)

Add USB ID (07ca:850a) and configuration hack for AverMedia AVerTV Volar
Black HD (A850) DVB-T USB stick.

Tested-by: Olivier MENUEL <omenuel@laposte.net>
Tested-by: Thomas Renard <threnard@gmail.com>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11339): af9015: remove wrong definitions
Antti Palosaari [Mon, 30 Mar 2009 20:57:51 +0000 (17:57 -0300)]
V4L/DVB (11339): af9015: remove wrong definitions

Remove wrong GPIO definitions. GPIOs used by AF9015 are property of the
AF9013 demodulator and are coming from there.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11338): af9015: add support for TrekStor DVB-T USB Stick
Marc Schneider [Fri, 27 Mar 2009 00:07:18 +0000 (21:07 -0300)]
V4L/DVB (11338): af9015: add support for TrekStor DVB-T USB Stick

Add USB ID (15a4:901b) and remote for TrekStor DVB-T USB Stick.

Signed-off-by: Marc Schneider <macke@macke.org>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11337): af9015: add new USB ID for KWorld USB DVB-T TV Stick II (VS-DVB...
Antti Palosaari [Thu, 26 Mar 2009 23:41:05 +0000 (20:41 -0300)]
V4L/DVB (11337): af9015: add new USB ID for KWorld USB DVB-T TV Stick II (VS-DVB-T 395U)

Add new USB ID (1b80:e395) for KWorld USB DVB-T TV Stick II (VS-DVB-T 395U).
Thanks to Julian Aron Prenner <julian@linux4you.it> for reporting this.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11336): af9015: remove experimental
Antti Palosaari [Thu, 26 Mar 2009 23:27:10 +0000 (20:27 -0300)]
V4L/DVB (11336): af9015: remove experimental

Remove experimental from DVB USB AF9015 device.

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11334): pvrusb2: Fix uninitialized tuner_setup field(s)
Mike Isely [Wed, 1 Apr 2009 04:55:26 +0000 (01:55 -0300)]
V4L/DVB (11334): pvrusb2: Fix uninitialized tuner_setup field(s)

Any time a struct (especially one not defined by this driver) is
allocated, we MUST zero its underlying storage.  This makes our usage
of the struct predictable and robust against future changes where
fields might be added that we don't know about.  Failing to do this
with tuner_setup left the config field uninitialized which then caused
trouble with the tuner type used for HVR-1950 devices.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11333): pvrusb2: Report def_val items in sysfs symbolically, consistent...
Mike Isely [Wed, 1 Apr 2009 04:51:53 +0000 (01:51 -0300)]
V4L/DVB (11333): pvrusb2: Report def_val items in sysfs symbolically, consistent with cur_val

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11332): pvrusb2: Fix incorrect reporting of default value for non-integer...
Mike Isely [Wed, 1 Apr 2009 04:49:57 +0000 (01:49 -0300)]
V4L/DVB (11332): pvrusb2: Fix incorrect reporting of default value for non-integer controls

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11331): em28xx: convert to v4l2_subdev
Douglas Schilling Landgraf [Tue, 31 Mar 2009 20:10:58 +0000 (17:10 -0300)]
V4L/DVB (11331): em28xx: convert to v4l2_subdev

Converted em28xx driver to v4l2_subdev.
Thanks to Hans Verkuil <hverkuil@xs4all.nl> for helping this conversion.

Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11329): Fix buglets in v4l1 compatibility layer
Russell King [Sun, 29 Mar 2009 11:12:27 +0000 (08:12 -0300)]
V4L/DVB (11329): Fix buglets in v4l1 compatibility layer

The following patch fixes a few bugs I've noticed in the V4L1
compatibility layer:
- VIDEO_MODE_AUTO for get/set input ioctls was not being handled
- wrong V4L2 ioctl being used in v4l1_compat_select_tuner

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11328): Add AVerMedia A310 USB IDs to CE6230 driver.
Juan Jesús García de Soria Lucena [Sun, 29 Mar 2009 02:36:18 +0000 (23:36 -0300)]
V4L/DVB (11328): Add AVerMedia A310 USB IDs to CE6230 driver.

The CE6230 DVB USB driver works correctly for the AVerMedia A310 USB2.0
DVB-T tuner. Add the required USB ID's and hardware names so that the
driver will handle it.

Signed-off-by: Juan Jesús García de Soria Lucena <skandalfo@gmail.com>
Acked-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11327): ov772x: add edge contrl support
Kuninori Morimoto [Tue, 31 Mar 2009 06:44:22 +0000 (03:44 -0300)]
V4L/DVB (11327): ov772x: add edge contrl support

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11326): mt9m001: fix advertised pixel clock polarity
Guennadi Liakhovetski [Tue, 31 Mar 2009 06:44:22 +0000 (03:44 -0300)]
V4L/DVB (11326): mt9m001: fix advertised pixel clock polarity

MT9M001 datasheet says, that the data is ready on the falling edge of the pixel
clock, but the driver wrongly sets the SOCAM_PCLK_SAMPLE_RISING flag. Changing
this doesn't seem to produce any visible difference, still, it is better to
comply to the datasheet.

Reported-by: Sascha Oppermann <oppermann@garage-computers.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11325): soc-camera: fix breakage caused by 1fa5ae857bb14f6046205171d98506d81...
Guennadi Liakhovetski [Tue, 31 Mar 2009 06:44:22 +0000 (03:44 -0300)]
V4L/DVB (11325): soc-camera: fix breakage caused by 1fa5ae857bb14f6046205171d98506d8112dd74e

soc-camera re-uses struct devices multiple times in calls to device_register(),
therefore it has to reset the embedded struct kobject to avoid the "tried to
init an initialized object" error, which then also erases its name. Now with
the transition to kobject's name for device names, we have to re-initialise the
name before each call to device_register().

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11324): ov772x: wrong pointer for soc_camera_link is modified
Kuninori Morimoto [Tue, 31 Mar 2009 06:44:22 +0000 (03:44 -0300)]
V4L/DVB (11324): ov772x: wrong pointer for soc_camera_link is modified

priv->client->dev.platrom_data mean ov772x_camera_info in ov772x driver.
So, struct soc_camera_link doesn't exist there.
This patch modify this bug.

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11323): pxa-camera: simplify the .buf_queue path by merging two loops
Guennadi Liakhovetski [Tue, 31 Mar 2009 06:44:22 +0000 (03:44 -0300)]
V4L/DVB (11323): pxa-camera: simplify the .buf_queue path by merging two loops

pxa_dma_update_sg_tail() is called only once, runs exactly the same loop as the
caller and has to recalculate the last element in an sg-list, that the caller
has already calculated. Eliminate redundancy by merging the two loops and
re-using the calculated pointer. This also saves a bit of performance which is
always good during video-capture.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoV4L/DVB (11322): pxa_camera: Fix overrun condition on last buffer
Robert Jarzmik [Tue, 31 Mar 2009 06:44:22 +0000 (03:44 -0300)]
V4L/DVB (11322): pxa_camera: Fix overrun condition on last buffer

The last buffer queued will often overrun, as the DMA chain
is finished, and the time the dma irq handler is activated,
the QCI fifos are filled by the sensor.

The fix is to ignore the overrun condition on the last
queued buffer, and restart the capture only on intermediate
buffers of the chain.

Moreover, a fix was added to the very unlikely condition
where in YUV422P mode, one channel overruns while another
completes at the very same time. The capture is restarted
after the overrun as before, but the other channel
completion is now ignored.

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>
15 years agoV4L/DVB (11321): pxa_camera: Redesign DMA handling
Robert Jarzmik [Tue, 31 Mar 2009 06:44:21 +0000 (03:44 -0300)]
V4L/DVB (11321): pxa_camera: Redesign DMA handling

The DMA transfers in pxa_camera showed some weaknesses in
multiple queued buffers context :
 - poll/select problem
   The bug shows up with capture_example tool from v4l2 hg
   tree. The process just "stalls" on a "select timeout".

 - multiple buffers DMA starting
   When multiple buffers were queued, the DMA channels were
   always started right away. This is not optimal, as a
   special case appears when the first EOF was not yet
   reached, and the DMA channels were prematurely started.

 - Maintainability
   DMA code was a bit obfuscated. Rationalize the code to be
   easily maintainable by anyone.

 - DMA hot chaining
   DMA is not stopped anymore to queue a buffer, the buffer
   is queued with DMA running. As a tribute, a corner case
   exists where chaining happens while DMA finishes the
   chain, and the capture is restarted to deal with the
   missed link buffer.

This patch attemps to address these issues / improvements.

 create mode 100644 Documentation/video4linux/pxa_camera.txt

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>
15 years agoV4L/DVB (11320): pxa_camera: Remove YUV planar formats hole
Robert Jarzmik [Tue, 31 Mar 2009 06:44:21 +0000 (03:44 -0300)]
V4L/DVB (11320): pxa_camera: Remove YUV planar formats hole

All planes were PAGE aligned (ie. 4096 bytes aligned). This
is not consistent with YUV422 format, which requires Y, U
and V planes glued together.  The new implementation forces
the alignement on 8 bytes (DMA requirement), which is almost
always the case (granted by width x height being a multiple
of 8).

The test cases include tests in both YUV422 and RGB565 :
 - a picture of size 111 x 111 (cross RAM pages example)
 - a picture of size 1023 x 4 in (under 1 RAM page)
 - a picture of size 1024 x 4 in (exactly 1 RAM page)
 - a picture of size 1025 x 4 in (over 1 RAM page)
 - a picture of size 1280 x 1024 (many RAM pages)

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>
15 years agoV4L/DVB (11319): pxa_camera: Enforce YUV422P frame sizes to be 16 multiples
Robert Jarzmik [Tue, 31 Mar 2009 06:44:21 +0000 (03:44 -0300)]
V4L/DVB (11319): pxa_camera: Enforce YUV422P frame sizes to be 16 multiples

Due to DMA constraints, the DMA chain always transfers bytes
from the QCI fifos to memory in 8 bytes units. In planar
formats, that could mean 0 padding between Y and U plane
(and between U and V plane), which is against YUV422P
standard.

Therefore, a frame size is required to be a multiple of 16
(so U plane size is a multiple of 8). It is enforced in
try_fmt() and set_fmt() primitives, be aligning height then
width on 4 multiples as need be, to reach a 16 multiple.

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>
15 years agoV4L/DVB (11318): fix misspelling of kconfig option
Kyle McMartin [Tue, 31 Mar 2009 01:36:19 +0000 (22:36 -0300)]
V4L/DVB (11318): fix misspelling of kconfig option

CUSTOMISE appears to be the one actually defined...

Signed-off-by: Kyle McMartin <kyle@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
15 years agoMerge branch 'audit.b62' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit...
Linus Torvalds [Sun, 5 Apr 2009 19:36:11 +0000 (12:36 -0700)]
Merge branch 'audit.b62' of git://git./linux/kernel/git/viro/audit-current

* 'audit.b62' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current:
  Audit: remove spaces from audit_log_d_path
  audit: audit_set_auditable defined but not used
  audit: incorrect ref counting in audit tree tag_chunk
  audit: Fix possible return value truncation in audit_get_context()
  audit: ignore terminating NUL in AUDIT_USER_TTY messages
  Audit: fix handling of 'strings' with NULL characters
  make the e->rule.xxx shorter in kernel auditfilter.c
  auditsc: fix kernel-doc notation
  audit: EXECVE record - removed bogus newline

15 years agoMerge branch 'for-next' of git://git.o-hand.com/linux-mfd
Linus Torvalds [Sun, 5 Apr 2009 18:38:37 +0000 (11:38 -0700)]
Merge branch 'for-next' of git://git.o-hand.com/linux-mfd

* 'for-next' of git://git.o-hand.com/linux-mfd:
  mfd: fix da903x warning
  mfd: fix MAINTAINERS entry
  mfd: Use the value of the final spin when reading the AUXADC
  mfd: Storage class should be before const qualifier
  mfd: PASIC3: supply clock_rate to DS1WM via driver_data
  mfd: remove DS1WM clock handling
  mfd: remove unused PASIC3 bus_shift field
  pxa/magician: remove deprecated .bus_shift from PASIC3 platform_data
  mfd: convert PASIC3 to use MFD core
  mfd: convert DS1WM to use MFD core
  mfd: Support active high IRQs on WM835x
  mfd: Use bulk read to fill WM8350 register cache
  mfd: remove duplicated #include from pcf50633

15 years agoMerge branch 'for-linus' of git://repo.or.cz/cris-mirror
Linus Torvalds [Sun, 5 Apr 2009 18:36:31 +0000 (11:36 -0700)]
Merge branch 'for-linus' of git://repo.or.cz/cris-mirror

* 'for-linus' of git://repo.or.cz/cris-mirror:
  CRISv32: Remove extraneous space between -I and the path.
  cris: convert obsolete hw_interrupt_type to struct irq_chip
  BUG to BUG_ON changes
  cpumask: use mm_cpumask() wrapper: cris
  cpumask: Use accessors code.: cris
  cpumask: prepare for iterators to only go to nr_cpu_ids/nr_cpumask_bits.: cris

15 years agoMerge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux...
Linus Torvalds [Sun, 5 Apr 2009 18:16:25 +0000 (11:16 -0700)]
Merge branch 'release' of git://git./linux/kernel/git/lenb/linux-acpi-2.6

* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (140 commits)
  ACPI: processor: use .notify method instead of installing handler directly
  ACPI: button: use .notify method instead of installing handler directly
  ACPI: support acpi_device_ops .notify methods
  toshiba-acpi: remove MAINTAINERS entry
  ACPI: battery: asynchronous init
  acer-wmi: Update copyright notice & documentation
  acer-wmi: Cleanup the failure cleanup handling
  acer-wmi: Blacklist Acer Aspire One
  video: build fix
  thinkpad-acpi: rework brightness support
  thinkpad-acpi: enhanced debugging messages for the fan subdriver
  thinkpad-acpi: enhanced debugging messages for the hotkey subdriver
  thinkpad-acpi: enhanced debugging messages for rfkill subdrivers
  thinkpad-acpi: restrict access to some firmware LEDs
  thinkpad-acpi: remove HKEY disable functionality
  thinkpad-acpi: add new debug helpers and warn of deprecated atts
  thinkpad-acpi: add missing log levels
  thinkpad-acpi: cleanup debug helpers
  thinkpad-acpi: documentation cleanup
  thinkpad-acpi: drop ibm-acpi alias
  ...