]> git.proxmox.com Git - mirror_ubuntu-kernels.git/log
mirror_ubuntu-kernels.git
14 years agoV4L/DVB (13535): ir-common: Add a hauppauge new table with the complete RC5 code
Mauro Carvalho Chehab [Sat, 28 Nov 2009 02:25:13 +0000 (23:25 -0300)]
V4L/DVB (13535): ir-common: Add a hauppauge new table with the complete RC5 code

Now that V4L drivers can support more than 7 bits for scan code, let's
add a modified version for the Hauppauge Grey IR containing the full IR
scancode.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13534): ir-common: Remove some unused fields/structs
Mauro Carvalho Chehab [Sat, 28 Nov 2009 01:51:56 +0000 (22:51 -0300)]
V4L/DVB (13534): ir-common: Remove some unused fields/structs

Now that the IR conversion to dynamic tables has finished, we can get
rid of some fields and definitions that aren't used anymore.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13533): ir: use dynamic tables, instead of static ones
Mauro Carvalho Chehab [Sat, 28 Nov 2009 01:40:22 +0000 (22:40 -0300)]
V4L/DVB (13533): ir: use dynamic tables, instead of static ones

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13532): ir-common: Add infrastructure to use a dynamic keycode table
Mauro Carvalho Chehab [Sat, 28 Nov 2009 01:01:23 +0000 (22:01 -0300)]
V4L/DVB (13532): ir-common: Add infrastructure to use a dynamic keycode table

V4L drivers use an static keycode vector with 128 entries, where the scancode
indexes the keycode. While this works, it limits the scancodes to have only
7 bits, not allowing for example full RC5 codes.

Instead of implementing the same code on every V4L driver, provide a common
infrastructure to handle the bigger tables, minimizing the changes inside
each driver.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13531): ir-common: rename the debug routine to allow exporting it
Mauro Carvalho Chehab [Sat, 28 Nov 2009 00:54:41 +0000 (21:54 -0300)]
V4L/DVB (13531): ir-common: rename the debug routine to allow exporting it

As newer IR common code will be added on other files, we need a global
debug var inside the module.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13458): go7007: subdev conversion
Pete Eberlein [Mon, 16 Nov 2009 18:16:00 +0000 (15:16 -0300)]
V4L/DVB (13458): go7007: subdev conversion

Convert the go7007 driver to v4l2 subdev interface, using v4l2 i2c
subdev functions instead of i2c functions directly.  The v4l2 ioctl ops
functions call subdev ops instead of i2c commands.

Signed-off-by: Pete Eberlein <pete@sensoray.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13457): s2250: subdev conversion
Pete Eberlein [Mon, 16 Nov 2009 18:15:07 +0000 (15:15 -0300)]
V4L/DVB (13457): s2250: subdev conversion

Convert the s2250 i2c driver to use v4l2 subdev interface.

Signed-off-by: Pete Eberlein <pete@sensoray.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13456): s2250: Change module structure
Pete Eberlein [Mon, 16 Nov 2009 18:13:51 +0000 (15:13 -0300)]
V4L/DVB (13456): s2250: Change module structure

The s2250-board i2c module was converted to use v4l2-i2c-drv.h in
preparation for its subdev conversion.  This change prevented the
s2250-loader from being initialized within the same module due to
the module_init and module_exit function definitions in v4l2-i2c-drv.h.
Therefore, s2250-loader is now its own module, and the header for
exporting s2250-loader functions is no longer needed.

The s2250 i2c module name was "2220-board" in some places, and was
changed to "s2250".

Signed-off-by: Pete Eberlein <pete@sensoray.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13528): em28xx: add support for em2800 VC211A card
Mauro Carvalho Chehab [Fri, 27 Nov 2009 00:26:13 +0000 (21:26 -0300)]
V4L/DVB (13528): em28xx: add support for em2800 VC211A card

Adds support to VC211A em2800 card. As this board doesn't have eeprom,
and uses a common set of i2c address, it has no way to add any
autodetection for it.

The patch were tested by me and by Raimundo on his board. Thanks to
those tests, several bugs related to em2800 support were corrected.

for producing the usbsnoop dump, used to get the gpio's and allowing me
to remotelly access his machine and to the needed tests.

Thanks-to: Raimundo Eduvirgnes de Oliveira <eduvirgens@yahoo.com.br>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoem28xx: don't reduce scale to half size for em2800
Mauro Carvalho Chehab [Fri, 27 Nov 2009 15:55:21 +0000 (13:55 -0200)]
em28xx: don't reduce scale to half size for em2800

Since em2800 can't support 720x480 / 720x576, the driver used to reduce
the scale to half the size on those chips. As the proper fix were
applied, reducing the maximum horizontal resolution to 640, this hack
can be removed.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoem28xx: don't load audio modules when AC97 is mis-detected
Mauro Carvalho Chehab [Fri, 27 Nov 2009 15:52:54 +0000 (13:52 -0200)]
em28xx: don't load audio modules when AC97 is mis-detected

With em2800 hardware, AC97 hardware can be detected even when it doesn't
exist. If, after probing for AC97, the driver won't find a companion
chip, simply prevents the load of the audio modules.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoem28xx: em2800 chips support max width of 640
Mauro Carvalho Chehab [Fri, 27 Nov 2009 15:49:48 +0000 (13:49 -0200)]
em28xx: em2800 chips support max width of 640

Due to hardware limitation, em2800 chips can't work at resolutions
higher than 640x576, since the URB packet size is not enough.

The effect is that the image looses packages and shows a distortion
along the vertical axes.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13523): dvb-bt8xx: fix compile warning
Hans Verkuil [Wed, 25 Nov 2009 21:48:54 +0000 (18:48 -0300)]
V4L/DVB (13523): dvb-bt8xx: fix compile warning

Fix this compile warning:

v4l/dvb-bt8xx.c: In function 'cx24108_tuner_set_params':
v4l/dvb-bt8xx.c:221: warning: array subscript is above array bounds

Make sure that we never get past the last element in the array.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13522): valj5jf8007s/t: fix compile warnings
Hans Verkuil [Wed, 25 Nov 2009 21:42:42 +0000 (18:42 -0300)]
V4L/DVB (13522): valj5jf8007s/t: fix compile warnings

Trivial fix for these bogus compile warnings:

v4l/va1j5jf8007s.c: In function 'va1j5jf8007s_tune':
v4l/va1j5jf8007s.c:394: warning: 'lock' may be used uninitialized in this function
v4l/va1j5jf8007t.c: In function 'va1j5jf8007t_tune':
v4l/va1j5jf8007t.c:273: warning: 'lock' may be used uninitialized in this function
v4l/va1j5jf8007t.c:273: warning: 'retry' may be used uninitialized in this function

These variables are never used uninitialized, but the compiler couldn't
figure that out unfortunately.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13521): dib8000: fix compile warning
Hans Verkuil [Wed, 25 Nov 2009 21:39:31 +0000 (18:39 -0300)]
V4L/DVB (13521): dib8000: fix compile warning

Trivial fix for this bogus compile warning:

v4l/dib8000.c:958: warning: 'ncoeff' may be used uninitialized in this function

Note: ncoeff is never used uninitialized, but the compiler couldn't
figure that out.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13518): spec: regenerate videodev2.h.xml
Hans Verkuil [Wed, 25 Nov 2009 19:12:01 +0000 (16:12 -0300)]
V4L/DVB (13518): spec: regenerate videodev2.h.xml

After excluding .h.xml from the whitespace to tab conversion I had to
regenerate this xml file. The only changes here are whitespace changes.

If we change videodev2.h in the future, then videodev2.h.xml will only
show that same change and no more unrelated whitespace changes.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13509): pms: convert from V4L1 to V4L2.
Hans Verkuil [Wed, 25 Nov 2009 15:47:02 +0000 (12:47 -0300)]
V4L/DVB (13509): pms: convert from V4L1 to V4L2.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13508): pms: source code cleanup, use struct v4l2_device.
Hans Verkuil [Wed, 25 Nov 2009 15:37:00 +0000 (12:37 -0300)]
V4L/DVB (13508): pms: source code cleanup, use struct v4l2_device.

This prepares the pms driver for the v4l1 -> v4l2 conversion.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13506): uvcvideo: Factorize common field in uvc_entity structure
Laurent Pinchart [Wed, 25 Nov 2009 15:00:30 +0000 (12:00 -0300)]
V4L/DVB (13506): uvcvideo: Factorize common field in uvc_entity structure

The bNrInPins and baSourceID fields are common among all entities (some
of use bSourceID but this is conceptually the same). Move those two
fields out of entity type-specific unions into the uvc_entity structure
top level.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13505): uvcvideo: Refactor chain scan
Laurent Pinchart [Wed, 25 Nov 2009 15:00:29 +0000 (12:00 -0300)]
V4L/DVB (13505): uvcvideo: Refactor chain scan

Don't handle the first output terminal in a chain in a special way. Use
uvc_scan_chain_entity() like for all other entities, making the chain
scan code more generic.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13504): uvcvideo: Fix extension units parsing
Laurent Pinchart [Wed, 25 Nov 2009 15:00:27 +0000 (12:00 -0300)]
V4L/DVB (13504): uvcvideo: Fix extension units parsing

The bNrInPins field is an 8 bit integer, not a 16 bit integer.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13503): uvcvideo: Merge iterms, oterms and units linked lists
Laurent Pinchart [Wed, 25 Nov 2009 15:00:22 +0000 (12:00 -0300)]
V4L/DVB (13503): uvcvideo: Merge iterms, oterms and units linked lists

All terminals and units are now added to a single linked list of
entities per chain. This makes terminals and units handling code more
generic.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13502): uvcvideo: Add support for Genius eFace 2025 webcams
Laurent Pinchart [Wed, 25 Nov 2009 14:15:56 +0000 (11:15 -0300)]
V4L/DVB (13502): uvcvideo: Add support for Genius eFace 2025 webcams

The Genius eFace 2025 (0458:706e) requires the MINMAX quirk. Add a
corresponding entry in the device IDs list.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13500): pvrusb2: Fix lingering 16KB FX2 Firmware issues
Gary Francis [Wed, 25 Nov 2009 06:03:31 +0000 (03:03 -0300)]
V4L/DVB (13500): pvrusb2: Fix lingering 16KB FX2 Firmware issues

These are additional fixes to enable proper pvrusb2 support of 16KB
sized FX2 firmware.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13499): pvrusb2: Cosmetic tweak to minimize size_t exposure
Mike Isely [Wed, 25 Nov 2009 05:59:34 +0000 (02:59 -0300)]
V4L/DVB (13499): pvrusb2: Cosmetic tweak to minimize size_t exposure

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13498): pvrusb2: Bind I2C address 0x71 for Zilog IR devices
Mike Isely [Wed, 25 Nov 2009 05:57:21 +0000 (02:57 -0300)]
V4L/DVB (13498): pvrusb2: Bind I2C address 0x71 for Zilog IR devices

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13497): pvrusb2: Shorten device hardware description text to work around...
Mike Isely [Wed, 25 Nov 2009 05:55:38 +0000 (02:55 -0300)]
V4L/DVB (13497): pvrusb2: Shorten device hardware description text to work around V4L shortcoming

The device text description in pvrusb2-devattr.c get mapped into a V4L
API string field that is unfortunately shorter than I expected.  No
sense fighting City Hall here - this change shortens the descriptions
to fit the limit.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13496): pvrusb2: Support manual extraction of 16KB FX2 firmware
Mike Isely [Wed, 25 Nov 2009 05:52:06 +0000 (02:52 -0300)]
V4L/DVB (13496): pvrusb2: Support manual extraction of 16KB FX2 firmware

This pvrusb2 change is in support of an existing feature used to help
identify and locate newer vendor supplied firmware.  This change makes
the feature work for the newer larger firmware size.

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13495): pvrusb2: Support 16KB FX2 firmware
Mike Isely [Wed, 25 Nov 2009 05:49:21 +0000 (02:49 -0300)]
V4L/DVB (13495): pvrusb2: Support 16KB FX2 firmware

New FX2 firmware from Hauppauge is no longer 8KB in size - it's 16KB.
This is true for HVR-1950 and HVR-1900 devices.  Without this change,
new pvrusb2 users with that hardware are unable to use the driver
(because the CD shipped with the hardware only has the 16KB firmware).

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13493): TeVii S470 and TBS 6920 fixes
Igor M. Liplianin [Tue, 24 Nov 2009 23:16:04 +0000 (20:16 -0300)]
V4L/DVB (13493): TeVii S470 and TBS 6920 fixes

 The new hardware design applied for this cards.
Silicon Labs C8051F300 microcontroller is used for LNB power control.
It connected to cx23885 GPIO pins:
 GPIO0 - P0.3 data
 GPIO1 - P0.2 reset
 GPIO2 - P0.1 clk
 GPIO3 - P0.0 busy
 Tevii S470 based on Montage Technology M88TS2020 digital satellite tuner
and M88DS3000 advanced DVB-S/S2 demodulator.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13491): gspca - vc032x: Avoid crash on querymenu.
Jean-Francois Moine [Tue, 24 Nov 2009 09:13:28 +0000 (06:13 -0300)]
V4L/DVB (13491): gspca - vc032x: Avoid crash on querymenu.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13490): gspca - ov534: Add controls for sensor ov965x.
Jean-Francois Moine [Tue, 24 Nov 2009 08:22:05 +0000 (05:22 -0300)]
V4L/DVB (13490): gspca - ov534: Add controls for sensor ov965x.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13489): gspca - sonixj: Add the sensor po1030.
Jean-Francois Moine [Mon, 23 Nov 2009 09:46:35 +0000 (06:46 -0300)]
V4L/DVB (13489): gspca - sonixj: Add the sensor po1030.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13488): gspca - ov534: Remove extra values at end of ov965x sequences.
Jean-Francois Moine [Sun, 15 Nov 2009 08:21:09 +0000 (05:21 -0300)]
V4L/DVB (13488): gspca - ov534: Remove extra values at end of ov965x sequences.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13487): gspca - ov534: Add svga, xga and sxga modes for ov965x.
Jean-Francois Moine [Sat, 14 Nov 2009 12:45:38 +0000 (09:45 -0300)]
V4L/DVB (13487): gspca - ov534: Add svga, xga and sxga modes for ov965x.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13480): atbm8830: fix compile warning
Hans Verkuil [Wed, 25 Nov 2009 17:30:53 +0000 (14:30 -0300)]
V4L/DVB (13480): atbm8830: fix compile warning

Fix this trivial compile warning:

v4l/atbm8830.c:164: warning: 'set_agc_config' defined but not used

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13479): cxusb: fix compile warning
Hans Verkuil [Wed, 25 Nov 2009 17:29:33 +0000 (14:29 -0300)]
V4L/DVB (13479): cxusb: fix compile warning

Fix this trivial compile warning:

v4l/cxusb.c:1195: warning: unused variable 'n'

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13478): cx18: remove bogus init call.
Hans Verkuil [Wed, 25 Nov 2009 14:55:04 +0000 (11:55 -0300)]
V4L/DVB (13478): cx18: remove bogus init call.

The cx18 av core implemented an init call for no good reason. It's now
turned into an internal function.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13477): v4l2-subdev: remove unnecessary check
Hans Verkuil [Tue, 9 Jun 2009 20:34:01 +0000 (17:34 -0300)]
V4L/DVB (13477): v4l2-subdev: remove unnecessary check

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13476): spec: remove old dvb-spec and v4l2-spec directories
Hans Verkuil [Wed, 25 Nov 2009 14:27:16 +0000 (11:27 -0300)]
V4L/DVB (13476): spec: remove old dvb-spec and v4l2-spec directories

It was really confusing to have media-specs, v4l2-spec and dvb-spec.
So this patch removes v4l2-spec and dvb-spec. The docs in dvb-spec and
the V4L1_API.html file were moved to media-specs/old-docs.

Removed all references to v4l2-spec and dvb-spec.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13471): v4l2 doc: Added FBUF_CAP_SRC_CHROMAKEY/FLAG_SRC_CHROMAKEY
Vaibhav Hiremath [Tue, 10 Nov 2009 16:14:51 +0000 (13:14 -0300)]
V4L/DVB (13471): v4l2 doc: Added FBUF_CAP_SRC_CHROMAKEY/FLAG_SRC_CHROMAKEY

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13470): V4L2: Add Capability and Flag field for Chroma Key
Vaibhav Hiremath [Tue, 10 Nov 2009 16:46:36 +0000 (13:46 -0300)]
V4L/DVB (13470): V4L2: Add Capability and Flag field for Chroma Key

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13469): Davinci VPFE Capture: Add support for Control ioctls
Vaibhav Hiremath [Tue, 10 Nov 2009 16:12:25 +0000 (13:12 -0300)]
V4L/DVB (13469): Davinci VPFE Capture: Add support for Control ioctls

Added support for Control IOCTL,
        - s_ctrl
        - g_ctrl
        - queryctrl

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13468): v4l2 doc: Added ROTATE and BG_COLOR control documentation
Vaibhav Hiremath [Mon, 9 Nov 2009 13:04:06 +0000 (10:04 -0300)]
V4L/DVB (13468): v4l2 doc: Added ROTATE and BG_COLOR control documentation

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13467): V4L2: Added CID's V4L2_CID_ROTATE/BG_COLOR
Vaibhav Hiremath [Tue, 10 Nov 2009 16:32:53 +0000 (13:32 -0300)]
V4L/DVB (13467): V4L2: Added CID's V4L2_CID_ROTATE/BG_COLOR

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13466): Davinci VPFE Capture:Replaced IRQ_VDINT1 with vpfe_dev->ccdc_irq1
Vaibhav Hiremath [Mon, 9 Nov 2009 12:15:07 +0000 (09:15 -0300)]
V4L/DVB (13466): Davinci VPFE Capture:Replaced IRQ_VDINT1 with vpfe_dev->ccdc_irq1

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13465): Davinci VPFE Capture: Take i2c adapter id through platform data
Vaibhav Hiremath [Mon, 9 Nov 2009 12:14:16 +0000 (09:14 -0300)]
V4L/DVB (13465): Davinci VPFE Capture: Take i2c adapter id through platform data

The I2C adapter ID is actually depends on Board and may vary, Davinci
uses id=1, but in case of AM3517 id=3.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13464): Davinci VPFE Capture: add i2c adapter id in platform data
Vaibhav Hiremath [Mon, 9 Nov 2009 12:13:20 +0000 (09:13 -0300)]
V4L/DVB (13464): Davinci VPFE Capture: add i2c adapter id in platform data

The I2C adapter ID is actually depends on Board and may vary, Davinci
uses id=1, but in case of AM3517 id=3.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13463): Davinci VPFE Capture: Specify device pointer in videobuf_queue_dma_c...
Vaibhav Hiremath [Mon, 9 Nov 2009 12:07:36 +0000 (09:07 -0300)]
V4L/DVB (13463): Davinci VPFE Capture: Specify device pointer in videobuf_queue_dma_contig_init

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13460): v4l2-spec: add missing V4L2-PIX-FMT-STV0680 description.
Hans Verkuil [Mon, 23 Nov 2009 17:14:26 +0000 (14:14 -0300)]
V4L/DVB (13460): v4l2-spec: add missing V4L2-PIX-FMT-STV0680 description.

[mchehab@redhat.com: fix the wrong videodev2.h.xml file]
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13455): go7007: Add struct v4l2_device.
Pete Eberlein [Mon, 16 Nov 2009 18:07:42 +0000 (15:07 -0300)]
V4L/DVB (13455): go7007: Add struct v4l2_device.

This adds a struct v4l2_device to the go7007 device struct and registers
it during v4l2 initialization.  The v4l2_device registration overwrites
the go->dev device_data, which is a struct usb_interface with intfdata set
to the struct go7007.  This changes intfdata to point to the struct
v4l2_device inside struct go7007, which is what v4l2_device_register will
also set it to (and warn about non-null drvdata on register.)  Since usb
disconnect can happen any time, this intfdata should always be present.

Signed-off-by: Pete Eberlein <pete@sensoray.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13453): gspca - all subdrivers: Remove the unused frame ptr from pkt_scan().
Jean-Francois Moine [Fri, 13 Nov 2009 12:21:03 +0000 (09:21 -0300)]
V4L/DVB (13453): gspca - all subdrivers: Remove the unused frame ptr from pkt_scan().

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13452): gspca - main: Let the driver scan URB packets when no frame buffer.
Jean-Francois Moine [Fri, 13 Nov 2009 11:16:02 +0000 (08:16 -0300)]
V4L/DVB (13452): gspca - main: Let the driver scan URB packets when no frame buffer.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13451): gspca - main: Memorize the current frame buffer.
Jean-Francois Moine [Fri, 13 Nov 2009 10:38:16 +0000 (07:38 -0300)]
V4L/DVB (13451): gspca - main: Memorize the current frame buffer.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13450): gspca - main: Clear the urb status before resubmit.
Jean-Francois Moine [Fri, 13 Nov 2009 10:15:08 +0000 (07:15 -0300)]
V4L/DVB (13450): gspca - main: Clear the urb status before resubmit.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13449): gspca - ov534: The AWB control works only when autogain is set.
Jean-Francois Moine [Thu, 12 Nov 2009 19:15:44 +0000 (16:15 -0300)]
V4L/DVB (13449): gspca - ov534: The AWB control works only when autogain is set.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13448): gspca - main: Add a gspca flag for inactive controls.
Jean-Francois Moine [Thu, 12 Nov 2009 18:59:27 +0000 (15:59 -0300)]
V4L/DVB (13448): gspca - main: Add a gspca flag for inactive controls.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13446): ivtv: Add more explicit detection of known IR devices for Hauppauge...
Andy Walls [Sat, 21 Nov 2009 19:19:27 +0000 (16:19 -0300)]
V4L/DVB (13446): ivtv: Add more explicit detection of known IR devices for Hauppauge cards

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

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13445): cx18: Use per cx18 instance init data for ir-kbd-i2c instead of...
Andy Walls [Sat, 21 Nov 2009 16:39:28 +0000 (13:39 -0300)]
V4L/DVB (13445): cx18: Use per cx18 instance init data for ir-kbd-i2c instead of const data

This change creates per cx18 instances of IR_i2c_init_data for handing over
initialization data to ir-kbd-i2c, since that module wants non-const data
even though it never modifies the data.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13444): ivtv: Add explicit IR controller initialization for the AVerTV M116
Andy Walls [Sat, 21 Nov 2009 15:52:34 +0000 (12:52 -0300)]
V4L/DVB (13444): ivtv: Add explicit IR controller initialization for the AVerTV M116

Add explicit support for the AVerTV M116 for use with the ir-kbd-i2c module.
This also eases future support for other AVerMedia ivtv boards with the same
microcontroller program at I2C address 0x40.

This is a reworked version of an earlier patch that was...

Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13443): ivtv: Defer legacy I2C IR probing until after setup of known I2C...
Andy Walls [Sat, 21 Nov 2009 14:41:33 +0000 (11:41 -0300)]
V4L/DVB (13443): ivtv: Defer legacy I2C IR probing until after setup of known I2C devices

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

Reviewed-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13442): ivtv: Add module parameter to adjust I2C SCL clock period per board
Andy Walls [Sat, 21 Nov 2009 04:47:45 +0000 (01:47 -0300)]
V4L/DVB (13442): ivtv: Add module parameter to adjust I2C SCL clock period per board

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

Reported-by: "Aleksandr V. Piskunov" <aleksandr.v.piskunov@gmail.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13441): ivtv: Added FM radio support to Avermedia AVerTV MCE 116 Plus card
Aleksandr V. Piskunov [Sat, 21 Nov 2009 03:47:25 +0000 (00:47 -0300)]
V4L/DVB (13441): ivtv: Added FM radio support to Avermedia AVerTV MCE 116 Plus card

Signed-off-by: Aleksandr V. Piskunov <alexandr.v.piskunov@gmail.com>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13440): ivtv: Update the cards definitions to add another AVerMedia M113...
Andy Walls [Sat, 21 Nov 2009 03:08:09 +0000 (00:08 -0300)]
V4L/DVB (13440): ivtv: Update the cards definitions to add another AVerMedia M113 variant

Add an AVerMedia M113 variant that was...

Reported-by: Hiemanshu Sharma <hiemanshu@fedoraproject.org>
Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13438): zr364xx: add support for Trust Powerc@m 910Z
Antoine Jacquet [Fri, 20 Nov 2009 01:35:38 +0000 (22:35 -0300)]
V4L/DVB (13438): zr364xx: add support for Trust Powerc@m 910Z

Tested-by: Enrique Dominguez <enrique.pinos@gmail.com>
Signed-off-by: Antoine Jacquet <royale@zerezo.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13434): cx18: Bump version number due to significant buffer handling changes.
Andy Walls [Wed, 11 Nov 2009 04:18:41 +0000 (01:18 -0300)]
V4L/DVB (13434): cx18: Bump version number due to significant buffer handling changes.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13433): cx18: Remove duplicate list traversal when processing incoming MDLs
Andy Walls [Wed, 11 Nov 2009 03:57:16 +0000 (00:57 -0300)]
V4L/DVB (13433): cx18: Remove duplicate list traversal when processing incoming MDLs

Update the incoming MDL's buffers' bytesused and sync the buffers for the cpu
in one pass instead of two.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13432): cx18: Adjust encoder VBI MDL size to be exactly frame's worth of...
Andy Walls [Wed, 11 Nov 2009 03:22:57 +0000 (00:22 -0300)]
V4L/DVB (13432): cx18: Adjust encoder VBI MDL size to be exactly frame's worth of VBI data

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13431): cx18: Adjust an MDL's final buffer size to force encoder transfer...
Andy Walls [Wed, 11 Nov 2009 02:28:30 +0000 (23:28 -0300)]
V4L/DVB (13431): cx18: Adjust an MDL's final buffer size to force encoder transfer size

The encoder was not honoring the MDL size sent in DE_SET_MDL mailbox commands.
This change adjusts the size of the last buffer in an MDL, as reported to the
firmware, so that the encoder will send the exact amount of bytes we specify
per MDL transfer.  This eliminates tearing in YUV playback when using
non-default YUV buffer sizes.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13430): cx18: Fix YUV capture so that encoder passes a single frame per...
Andy Walls [Tue, 10 Nov 2009 02:55:30 +0000 (23:55 -0300)]
V4L/DVB (13430): cx18: Fix YUV capture so that encoder passes a single frame per transfer

Fix YUV capture such that the encoder will pass one frame per transfer.  This
will allow the application to maintain frame alignment when a transfer from
the encoder is missed due to high system latency in service the CX23418 IRQ.

Also force YUV buffer sizes to be specified in multiples of 33.75 kB, the
smalled amount of buffer sizes need to store a complete set of HM12 4:2:0
macroblocks specifying 32 lines of the frame.  A full 60Hz/525 line
screen requires 15 * 33.75 kB per frame and a full 50Hz/625 line screen
requires 18 * 33.75 kB per frame so the default buffer size is 3 * 33.75 kB,
requiring exactly 5 or 6 buffers per MDL respectively.  The bytes needed per
frame and hence MDL need not be the bytes in an integer number of buffers.
However, if frame artifacts are seen with scaled screen sizes, the YUV buffer
size can be set 34 kB (33.75 kB) to get rid of the artifacts at the cost of more
copies between the kernel and userspace.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13429): cx18: Add Memory Descriptor List (MDL) layer to buffer handling
Andy Walls [Mon, 9 Nov 2009 02:45:24 +0000 (23:45 -0300)]
V4L/DVB (13429): cx18: Add Memory Descriptor List (MDL) layer to buffer handling

Add a Memory Descriptor List (MDL) layer to buffer handling to implement
scatter-gather I/O.  Currently there is still only 1 buffer per MDL.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13428): cx18: Rename mdl_offset to mdl_base_idx or free_mdl_idx as appropriate
Andy Walls [Fri, 6 Nov 2009 00:51:24 +0000 (21:51 -0300)]
V4L/DVB (13428): cx18: Rename mdl_offset to mdl_base_idx or free_mdl_idx as appropriate

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13427): cx18: Rename struct cx18_queue.buffers to struct cx18_queue.depth
Andy Walls [Thu, 5 Nov 2009 02:13:58 +0000 (23:13 -0300)]
V4L/DVB (13427): cx18: Rename struct cx18_queue.buffers to struct cx18_queue.depth

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13426): cx18: Rename struct cx18_mdl to struct cx18_mdl_ent
Andy Walls [Thu, 5 Nov 2009 01:33:33 +0000 (22:33 -0300)]
V4L/DVB (13426): cx18: Rename struct cx18_mdl to struct cx18_mdl_ent

Rename type in anticipation of implementing a struct cx18_mdl type that
actually keeps track of a memory descriptor list.

Signed-off-by: Andy Walls <awalls@radix.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13425): gspca - ov534: Bad name of the ov965x 320x240 resolution.
Jean-Francois Moine [Thu, 12 Nov 2009 09:13:41 +0000 (06:13 -0300)]
V4L/DVB (13425): gspca - ov534: Bad name of the ov965x 320x240 resolution.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13424): gspca - ov534: Fix ov772x brightness and ov965x frame rate.
Jean-Francois Moine [Thu, 12 Nov 2009 09:10:36 +0000 (06:10 -0300)]
V4L/DVB (13424): gspca - ov534: Fix ov772x brightness and ov965x frame rate.

- the ov772x brightness was not setteble (fixed by M. Thrun)
- the set_frame_rate function does not work for ov965x

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13423): gspca - ov534: More ov772x changes from Max Thrun.
Jean-Francois Moine [Wed, 11 Nov 2009 17:28:53 +0000 (14:28 -0300)]
V4L/DVB (13423): gspca - ov534: More ov772x changes from Max Thrun.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13422): gspca - ov534: ov772x changes from Richard Kaswy.
Jean-Francois Moine [Wed, 11 Nov 2009 10:46:28 +0000 (07:46 -0300)]
V4L/DVB (13422): gspca - ov534: ov772x changes from Richard Kaswy.

- 320x240 resolution added
- controls added
- different sd_desc tables

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13421): gspca - main: Clearer message when bandwidth too small.
Jean-Francois Moine [Tue, 10 Nov 2009 17:49:43 +0000 (14:49 -0300)]
V4L/DVB (13421): gspca - main: Clearer message when bandwidth too small.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13420): gspca - doc: Change the name of some webcams.
Jean-Francois Moine [Tue, 10 Nov 2009 09:46:59 +0000 (06:46 -0300)]
V4L/DVB (13420): gspca - doc: Change the name of some webcams.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13419): gspca - pac7302: Add debug register write interface.
Márton Németh [Mon, 9 Nov 2009 10:10:46 +0000 (07:10 -0300)]
V4L/DVB (13419): gspca - pac7302: Add debug register write interface.

Add debug register write interface to pac7302 to be able to set
for example the edge detect mode (bit 2 register 0x55) or the
test pattern (bit 0..3, register 0x72) and test overlay (bit 4,
register 0x72) from the user space. Only write of register
page 0 is supported by this patch.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13418): gspca - pac7311: Stop sending URBs on first error.
Márton Németh [Mon, 9 Nov 2009 10:08:04 +0000 (07:08 -0300)]
V4L/DVB (13418): gspca - pac7311: Stop sending URBs on first error.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13417): Fix videobuf_queue_vmalloc_init() prototype
Jonathan Corbet [Mon, 23 Nov 2009 17:29:35 +0000 (14:29 -0300)]
V4L/DVB (13417): Fix videobuf_queue_vmalloc_init() prototype

For whatever reason, the device structure pointer to
videobuf_queue_vmalloc_init is typed "void *", even though it's passed
right through to videobuf_queue_core_init(), which expects a struct
device pointer.  The other videobuf implementations use struct device *;
I think vmalloc should too.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13416): smssdio: initialize return value
Márton Németh [Sun, 22 Nov 2009 21:52:31 +0000 (18:52 -0300)]
V4L/DVB (13416): smssdio: initialize return value

The return value may be used uninitialized when the size parameter
happens to be 0.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13415): videobuf-core: explicitly cast page count
Márton Németh [Sun, 22 Nov 2009 21:03:05 +0000 (18:03 -0300)]
V4L/DVB (13415): videobuf-core: explicitly cast page count

Explicitly cast page count in the debug message.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13414): ttusb-dec: do not overwrite the first part of phys string
Márton Németh [Sat, 21 Nov 2009 16:46:12 +0000 (13:46 -0300)]
V4L/DVB (13414): ttusb-dec: do not overwrite the first part of phys string

Use strlcat() to append a string to the previously created first part.

The semantic match that finds this kind of problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression dev;
expression phys;
expression str;
expression size;
@@
  usb_make_path(dev, phys, size);
- strlcpy(phys, str, size);
+ strlcat(phys, str, size);
// </smpl>

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13413): introduce missing kfree
Julia Lawall [Sat, 21 Nov 2009 11:49:41 +0000 (08:49 -0300)]
V4L/DVB (13413): introduce missing kfree

Error handling code following a kzalloc should free the allocated data.
Similarly for usb-alloc urb.

The semantic match that finds the first problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@r exists@
local idexpression x;
statement S;
expression E;
identifier f,f1,l;
position p1,p2;
expression *ptr != NULL;
@@

x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
...
if (x == NULL) S
<... when != x
     when != if (...) { <+...x...+> }
(
x->f1 = E
|
 (x->f1 == NULL || ...)
|
 f(...,x->f1,...)
)
...>
(
 return \(0\|<+...x...+>\|ptr\);
|
 return@p2 ...;
)

@script:python@
p1 << r.p1;
p2 << r.p2;
@@

print "* file: %s kmalloc %s return %s" % (p1[0].file,p1[0].line,p2[0].line)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: Fix test in copy_reg_bits()
Roel Kluin [Fri, 20 Nov 2009 18:34:13 +0000 (15:34 -0300)]
V4L/DVB: Fix test in copy_reg_bits()

The reg_pair2[j].reg was tested twice.

Cc: <stable@kernel.org>
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13410): firedtv: remove an unnecessary function argument
Stefan Richter [Wed, 18 Nov 2009 19:01:34 +0000 (16:01 -0300)]
V4L/DVB (13410): firedtv: remove an unnecessary function argument

All read transactions initiated by firedtv are only quadlet-sized, hence
the backend->read call can be simplified a little.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13409): firedtv: packet requeuing is likely to succeed
Stefan Richter [Wed, 18 Nov 2009 19:01:14 +0000 (16:01 -0300)]
V4L/DVB (13409): firedtv: packet requeuing is likely to succeed

Packet DMA buffers are queued either initially all at once (then, a
queueing failure will cause firedtv to release the DMA context as a
whole) or subsequently one by one as they recycled after use (then a
failure is extremely unlikely).  Therefore we can be a little less
cautious when counting at which packet buffer to set the interrupt flag.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13408): firedtv: shrink buffer pointer table
Stefan Richter [Wed, 18 Nov 2009 19:00:55 +0000 (16:00 -0300)]
V4L/DVB (13408): firedtv: shrink buffer pointer table

Cache only addresses of whole pages, not of each buffer chunk.  Besides,
page addresses can be obtained by page_address() instead of kmap() since
they were allocated in lowmem.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13407): Add Prof 7301 PCI DVB-S2 card
Igor M. Liplianin [Tue, 17 Nov 2009 01:22:32 +0000 (22:22 -0300)]
V4L/DVB (13407): Add Prof 7301 PCI DVB-S2 card

Add Prof 7301 PCI DVB-S2 card

The card based on stv0903 demod, stb6100 tuner.

Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB: pt1: remove duplicated #include
Huang Weiyi [Thu, 12 Nov 2009 13:16:09 +0000 (10:16 -0300)]
V4L/DVB: pt1: remove duplicated #include

Remove duplicated #include('s) in
  drivers/media/dvb/pt1/pt1.c

Signed-off-by: Huang Weiyi <weiyi.huang@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13402): radio-mr800 - autosuspend for radio-mr800 driver
Oliver Neukum [Mon, 9 Nov 2009 22:09:49 +0000 (19:09 -0300)]
V4L/DVB (13402): radio-mr800 - autosuspend for radio-mr800 driver

Patch adds autosuspend support for mr800 radio driver.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Acked-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13400): firedtv: port to new firewire core
Stefan Richter [Sun, 8 Nov 2009 21:30:54 +0000 (18:30 -0300)]
V4L/DVB (13400): firedtv: port to new firewire core

The firedtv DVB driver will now work not only on top of the old ieee1394
driver stack but also on the new firewire driver stack.

Alongside to the firedtv-1394.c backend for driver binding and I/O, the
firedtv-fw.c backend is added.  Depending on which of the two 1394
stacks is configured, one or the other or both backends will be built
into the firedtv driver.

This has been tested with a DVB-T and a DVB-C box on x86-64 and x86-32
together with a few different controllers (Agere FW323, a NEC chip, TI
TSB82AA2, TSB43AB22/A, VIA VT6306).

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13399): firedtv: add missing include, rename a constant
Stefan Richter [Sun, 8 Nov 2009 21:29:41 +0000 (18:29 -0300)]
V4L/DVB (13399): firedtv: add missing include, rename a constant

Add #include <dvb_demux.h> for dvb_dmx_swfilter_packets().  This was
already indirectly included via firedtv.h, but don't rely on it.

The 4 bytes which were referred to as FIREWIRE_HEADER_SIZE are actually
the source packet header from IEC 61883-4 (MPEG2-TS data transmission
over 1394), not e.g. the IEEE 1394 isochronous packet header.  So choose
a more precise name.

Also, express the payload size as a preprocessor constant too.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13398): firedtv: reform lock transaction backend call
Stefan Richter [Sun, 8 Nov 2009 21:29:08 +0000 (18:29 -0300)]
V4L/DVB (13398): firedtv: reform lock transaction backend call

Preparation for the port of firedtv to the firewire-core kernel API:
The fdtv->backend->lock() hook and thus the CMP code is slightly changed
to better fit with the new API.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13397): firedtv: move remote control workqueue handling into rc source file
Stefan Richter [Sun, 8 Nov 2009 21:28:45 +0000 (18:28 -0300)]
V4L/DVB (13397): firedtv: move remote control workqueue handling into rc source file

Preparation for the port of firedtv to the firewire-core kernel API:
Canceling of the remote control workqueue job is factored into
firedtv-rc.c.  Plus trivial whitespace change.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13396): correct initialization of audio_mode
Julia Lawall [Sun, 8 Nov 2009 17:49:05 +0000 (14:49 -0300)]
V4L/DVB (13396): correct initialization of audio_mode

This initialization of the value of audio_mode is the one used if nothing
matches in the subsequent switch.  The variable audio_mode is subsequently
assigned to constants such as TUNER_AUDIO_MONO and TUNER_AUDIO_STEREO.
TUNER_AUDIO_STEREO has the same value as V4L2_TUNER_MODE_STEREO, so it
would seem better to use that value here.

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
14 years agoV4L/DVB (13394): pt1: Support FE_READ_SNR
hiranotaka@zng.jp [Sun, 8 Nov 2009 08:42:28 +0000 (05:42 -0300)]
V4L/DVB (13394): pt1: Support FE_READ_SNR

Signed-off-by: HIRANO Takahito <hiranotaka@zng.info>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>