]> git.karo-electronics.de Git - mv-sheeva.git/log
mv-sheeva.git
13 years ago[media] staging: usbvideo/vicam depends on USB
Randy Dunlap [Thu, 30 Dec 2010 18:23:38 +0000 (15:23 -0300)]
[media] staging: usbvideo/vicam depends on USB

Fix build errors by adding "depends on USB":

ERROR: "usb_register_driver" [drivers/staging/usbvideo/vicam.ko] undefined!
ERROR: "usb_bulk_msg" [drivers/staging/usbvideo/vicam.ko] undefined!
ERROR: "usb_control_msg" [drivers/staging/usbvideo/vicam.ko] undefined!
ERROR: "usb_deregister" [drivers/staging/usbvideo/vicam.ko] undefined!
ERROR: "usb_get_dev" [drivers/staging/usbvideo/usbvideo.ko] undefined!
ERROR: "usb_put_dev" [drivers/staging/usbvideo/usbvideo.ko] undefined!
ERROR: "usb_free_urb" [drivers/staging/usbvideo/usbvideo.ko] undefined!
ERROR: "usb_submit_urb" [drivers/staging/usbvideo/usbvideo.ko] undefined!
ERROR: "usb_set_interface" [drivers/staging/usbvideo/usbvideo.ko] undefined!
ERROR: "usb_kill_urb" [drivers/staging/usbvideo/usbvideo.ko] undefined!
ERROR: "usb_register_driver" [drivers/staging/usbvideo/usbvideo.ko] undefined!
ERROR: "usb_deregister" [drivers/staging/usbvideo/usbvideo.ko] undefined!
ERROR: "usb_alloc_urb" [drivers/staging/usbvideo/usbvideo.ko] undefined!

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] soc_camera: Add the ability to bind regulators to soc_camedra devices
Alberto Panizzo [Thu, 2 Dec 2010 10:43:37 +0000 (07:43 -0300)]
[media] soc_camera: Add the ability to bind regulators to soc_camedra devices

In certain machines, camera devices are supplied directly
by a number of regulators. This patch add the ability to drive
these regulators directly by the soc_camera driver.

Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] V4L2: Add a v4l2-subdev (soc-camera) driver for OmniVision OV2640 sensor
Alberto Panizzo [Thu, 2 Dec 2010 14:53:28 +0000 (11:53 -0300)]
[media] V4L2: Add a v4l2-subdev (soc-camera) driver for OmniVision OV2640 sensor

Signed-off-by: Alberto Panizzo <maramaopercheseimorto@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] v4l: soc-camera: switch to .unlocked_ioctl
Guennadi Liakhovetski [Sat, 25 Dec 2010 20:40:26 +0000 (17:40 -0300)]
[media] v4l: soc-camera: switch to .unlocked_ioctl

Use the V4L mutex infrastructure in soc-camera core and drivers and switch to
.unlocked_ioctl.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] v4l: ov772x: simplify pointer dereference
Guennadi Liakhovetski [Thu, 30 Dec 2010 11:37:06 +0000 (08:37 -0300)]
[media] v4l: ov772x: simplify pointer dereference

Use a more direct way to obtain a pointer to struct ov772x_priv, where the
subdevice is available.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] ov9640: fix OmniVision OV9640 sensor driver's priv data retrieving
David Cohen [Wed, 8 Dec 2010 12:13:59 +0000 (09:13 -0300)]
[media] ov9640: fix OmniVision OV9640 sensor driver's priv data retrieving

OmniVision OV9640 driver wasn't requesting properly its private data
on I2C remove and video_probe functions. It was retrieving the V4L2
subdev struct address instead of priv struct's one. This patch fixes
such problem.

Signed-off-by: David Cohen <dacohen@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] ov9640: use macro to request OmniVision OV9640 sensor private data
David Cohen [Wed, 8 Dec 2010 12:13:58 +0000 (09:13 -0300)]
[media] ov9640: use macro to request OmniVision OV9640 sensor private data

This cleanup patch creates macro to request OmniVision OV9640 private
data, which increases readability.

Signed-off-by: David Cohen <dacohen@gmail.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] ivtv-i2c: Fix two warnings
Mauro Carvalho Chehab [Thu, 30 Dec 2010 14:58:37 +0000 (11:58 -0300)]
[media] ivtv-i2c: Fix two warnings

Fix two gcc warnings:

drivers/media/video/ivtv/ivtv-i2c.c:170: warning: cast from pointer to integer of different size
drivers/media/video/ivtv/ivtv-i2c.c:171: warning: cast from pointer to integer of different size
$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)

They seem bogus, but, as the original code also has problems with
LE/BE, just change its implementation to be clear.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] staging/lirc: Update lirc TODO files
Mauro Carvalho Chehab [Thu, 30 Dec 2010 12:51:19 +0000 (09:51 -0300)]
[media] staging/lirc: Update lirc TODO files

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] cx88: Remove the obsolete i2c_adapter.id field
Mauro Carvalho Chehab [Thu, 30 Dec 2010 12:05:12 +0000 (09:05 -0300)]
[media] cx88: Remove the obsolete i2c_adapter.id field

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] lirc_zilog: Remove use of deprecated struct i2c_adapter.id field
Andy Walls [Wed, 29 Dec 2010 01:49:50 +0000 (22:49 -0300)]
[media] lirc_zilog: Remove use of deprecated struct i2c_adapter.id field

Remove use of deprecated struct i2c_adapter.id field.  In the process,
perform different detection of the HD PVR's Z8 IR microcontroller versus
the other Hauppauge cards with the Z8 IR microcontroller.

Also added a comment about probe() function behavior that needs to be
fixed.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] ir-kbd-i2c: Add HD PVR IR Rx support to ir-kbd-i2c
Andy Walls [Wed, 29 Dec 2010 01:47:46 +0000 (22:47 -0300)]
[media] ir-kbd-i2c: Add HD PVR IR Rx support to ir-kbd-i2c

Add HD PVR IR Rx support to ir-kbd-i2c

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] hdpvr: Add I2C and ir-kdb-i2c registration of the Zilog Z8 IR chip
Andy Walls [Wed, 29 Dec 2010 01:46:13 +0000 (22:46 -0300)]
[media] hdpvr: Add I2C and ir-kdb-i2c registration of the Zilog Z8 IR chip

Adds I2C registration of the Zilog Z8F0811 IR microcontroller for either
lirc_zilog or ir-kbd-i2c to use.  This is a required step in removing
lirc_zilog's use of the deprecated struct i2c_adapter.id field.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] Remove staging/lirc/lirc_i2c driver
Mauro Carvalho Chehab [Thu, 30 Dec 2010 11:37:33 +0000 (08:37 -0300)]
[media] Remove staging/lirc/lirc_i2c driver

This driver duplicates the same functionality found at ir-kbd-i2c.
There were a few missing key parsers that were added by the previous
patches. The only thing left on lirc_i2c driver is the IR parsing
for Asus TV-Box and Creative/VisionTek BreakOut-Box.
Those devices use pcf8574 chip for IR.

They are old video adapters with TV tuners. Their code were never
merged upstream, and they are not chipped anymore. So, it is very
unlikely that someone would have interests on porting them to the
Linux Kernel.

Due to that, let's remove lirc_i2c, as all the remaining functionality
are already mapped via ir-kbd-i2c.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] ivtv-i2c: Don't use IR legacy mode for Zilog IR
Mauro Carvalho Chehab [Thu, 30 Dec 2010 13:25:12 +0000 (10:25 -0300)]
[media] ivtv-i2c: Don't use IR legacy mode for Zilog IR

The Zilog IR entries are already handled by IR new code. So,
remove its usage from the legacy IR support.

Acked-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] ivtv: Add Adaptec Remote Controller
Mauro Carvalho Chehab [Thu, 30 Dec 2010 11:31:10 +0000 (08:31 -0300)]
[media] ivtv: Add Adaptec Remote Controller

lirc-i2c implements a get key logic for the Adaptec Remote
Controller, at address 0x6b. The only driver that seems to have
an Adaptec device is ivtv:

$ git grep -i adaptec drivers/media
drivers/media/video/cs53l32a.c: * cs53l32a (Adaptec AVC-2010 and AVC-2410) i2c ivtv driver.
drivers/media/video/cs53l32a.c: * Audio source switching for Adaptec AVC-2410 added by Trev Jackson
drivers/media/video/cs53l32a.c:   /* Set cs53l32a internal register for Adaptec 2010/2410 setup */
drivers/media/video/ivtv/ivtv-cards.c:/* Adaptec VideOh! AVC-2410 card */
drivers/media/video/ivtv/ivtv-cards.c:    { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_ADAPTEC, 0x0093 },
drivers/media/video/ivtv/ivtv-cards.c:    .name = "Adaptec VideOh! AVC-2410",
drivers/media/video/ivtv/ivtv-cards.c:/* Adaptec VideOh! AVC-2010 card */
drivers/media/video/ivtv/ivtv-cards.c:    { PCI_DEVICE_ID_IVTV16, IVTV_PCI_ID_ADAPTEC, 0x0092 },
drivers/media/video/ivtv/ivtv-cards.c:    .name = "Adaptec VideOh! AVC-2010",
drivers/media/video/ivtv/ivtv-cards.h:#define IVTV_CARD_AVC2410         7 /* Adaptec AVC-2410 */
drivers/media/video/ivtv/ivtv-cards.h:#define IVTV_CARD_AVC2010         8 /* Adaptec AVD-2010 (No Tuner) */
drivers/media/video/ivtv/ivtv-cards.h:#define IVTV_PCI_ID_ADAPTEC                 0x9005
drivers/media/video/ivtv/ivtv-driver.c:            "\t\t\t 8 = Adaptec AVC-2410\n"
drivers/media/video/ivtv/ivtv-driver.c:            "\t\t\t 9 = Adaptec AVC-2010\n"
drivers/media/video/ivtv/ivtv-i2c.c:              0x6b,   /* Adaptec IR */

There are two Adaptec cards defined there, but AVC-2010 doesn't have a
remote controller. So, the logic at lirc_i2c seems to be for Adaptec AVC-2410.

As we'll remove lirc_i2c from kernel, move the getkey code to ivtv driver, and
use it for AVC-2410.

Reviewed-by: Andy Walls <awalls@md.metrocast.net>
Acked-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] cx88: Add RC logic for Leadtek PVR 2000
Mauro Carvalho Chehab [Thu, 30 Dec 2010 11:02:51 +0000 (08:02 -0300)]
[media] cx88: Add RC logic for Leadtek PVR 2000

Currently, lirc-i2c has a decoding logic for Leadtek Remote
Control. Move it to cx88, as we intend to remove lirc-i2c.

For now, initialize LIRC remote keytable with RC_MAP_EMPTY, as
we don't know its keymap yet. It would be nice to later check
if is there any file on LIRC userspace with that keytable.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] bttv-input: Add a note about PV951 RC
Mauro Carvalho Chehab [Thu, 30 Dec 2010 11:01:01 +0000 (08:01 -0300)]
[media] bttv-input: Add a note about PV951 RC

When comparing lirc-i2c and ir-kbd-i2c/bttv-input logic, a difference
was noticed. As lirc-i2c will be removed soon, store the difference on
a comment inside ir-kbd-i2c, in order to preserve the knowledge we
have about that remote controller.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] timblogiw: fix compile warning
Hans Verkuil [Wed, 29 Dec 2010 17:38:44 +0000 (14:38 -0300)]
[media] timblogiw: fix compile warning

Fix 64-bit compile warning:

drivers/media/video/timblogiw.c: In function ‘timblogiw_dma_filter_fn’:
drivers/media/video/timblogiw.c:151: warning: cast from pointer to integer of different size
drivers/media/video/timblogiw.c: In function ‘timblogiw_open’:
drivers/media/video/timblogiw.c:670: warning: cast to pointer from integer of different size

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Richard Rojförs <richard.rojfors@pelagicore.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] v4l: fix handling of v4l2_input.capabilities
Hans Verkuil [Wed, 29 Dec 2010 17:29:55 +0000 (14:29 -0300)]
[media] v4l: fix handling of v4l2_input.capabilities

The v4l core sets the v4l2_input.capabilities field based on the supplied
v4l2_ioctl_ops. However, several drivers do a memset or memcpy of the v4l2_input
struct, thus overwriting that field incorrectly.

Either remove the memset (which is already done by the v4l core), or add the
proper capabilities field in case of a memcpy.

The same is also true for v4l2_output, but that only affected the ivtv driver.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] em28xx: fix incorrect s_ctrl error code and wrong call to res_free
Hans Verkuil [Wed, 29 Dec 2010 17:28:13 +0000 (14:28 -0300)]
[media] em28xx: fix incorrect s_ctrl error code and wrong call to res_free

Calling subdevs to handle s_ctrl returned a non-zero return code even if
everything went fine.

Calling STREAMOFF if no STREAMON happened earlier would hit a BUG_ON
in res_free.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] v4l2-ctrls: only check def for menu, integer and boolean controls
Hans Verkuil [Wed, 29 Dec 2010 17:27:05 +0000 (14:27 -0300)]
[media] v4l2-ctrls: only check def for menu, integer and boolean controls

The 'def' field is only valid for menus, integers and booleans.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] v4l2-ctrls: use const char * const * for the menu arrays
Hans Verkuil [Wed, 29 Dec 2010 17:25:52 +0000 (14:25 -0300)]
[media] v4l2-ctrls: use const char * const * for the menu arrays

This prevents checkpatch warnings generated when defining
'static const char *foo[]' arrays. It makes sense to use
const char * const * anyway since the pointers in the array
are indeed const.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] usbvision: coding style
Hans Verkuil [Wed, 29 Dec 2010 16:53:21 +0000 (13:53 -0300)]
[media] usbvision: coding style

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] usbvision: convert // to /* */
Hans Verkuil [Sun, 19 Dec 2010 23:33:51 +0000 (20:33 -0300)]
[media] usbvision: convert // to /* */

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] usbvision: get rid of camelCase
Hans Verkuil [Sun, 19 Dec 2010 23:21:36 +0000 (20:21 -0300)]
[media] usbvision: get rid of camelCase

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] usbvision: convert to unlocked_ioctl
Hans Verkuil [Sat, 18 Dec 2010 14:06:09 +0000 (11:06 -0300)]
[media] usbvision: convert to unlocked_ioctl

Convert driver to use core-assisted locking.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] tm6000: Fix mutex unbalance
Dmitri Belimov [Wed, 29 Dec 2010 00:49:07 +0000 (21:49 -0300)]
[media] tm6000: Fix mutex unbalance

Hi

Fix never unlocked mutex. No more crash after removing USB stick.

With my best regards, Dmitry.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - sonixj: Bad clock for om6802 in 640x480
Jean-François Moine [Tue, 28 Dec 2010 10:39:13 +0000 (07:39 -0300)]
[media] gspca - sonixj: Bad clock for om6802 in 640x480

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - stv06xx/st6422: Use the new video control mechanism
Jean-François Moine [Tue, 28 Dec 2010 10:35:27 +0000 (07:35 -0300)]
[media] gspca - stv06xx/st6422: Use the new video control mechanism

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - vc032x: Cleanup source
Jean-François Moine [Tue, 28 Dec 2010 10:24:18 +0000 (07:24 -0300)]
[media] gspca - vc032x: Cleanup source

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - zc3xx: The sensor of the VF0250 is a GC0303
Jean-François Moine [Tue, 28 Dec 2010 10:17:40 +0000 (07:17 -0300)]
[media] gspca - zc3xx: The sensor of the VF0250 is a GC0303

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - zc3xx: Use the new video control mechanism
Jean-François Moine [Tue, 28 Dec 2010 10:09:34 +0000 (07:09 -0300)]
[media] gspca - zc3xx: Use the new video control mechanism

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - zc3xx: Keep sorted the device table
Jean-François Moine [Tue, 28 Dec 2010 10:02:32 +0000 (07:02 -0300)]
[media] gspca - zc3xx: Keep sorted the device table

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca: Bad comment
Jean-François Moine [Tue, 28 Dec 2010 10:01:04 +0000 (07:01 -0300)]
[media] gspca: Bad comment

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - pac7302/pac7311: Fix some warnings
Jean-François Moine [Tue, 28 Dec 2010 09:59:04 +0000 (06:59 -0300)]
[media] gspca - pac7302/pac7311: Fix some warnings

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - main: Fix some warnings
Jean-François Moine [Tue, 28 Dec 2010 09:55:01 +0000 (06:55 -0300)]
[media] gspca - main: Fix some warnings

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] bt819: the ioctls in the header are internal to the kernel
Hans Verkuil [Mon, 27 Dec 2010 15:27:50 +0000 (12:27 -0300)]
[media] bt819: the ioctls in the header are internal to the kernel

Remove bt819.h from ioctl-number.txt and make a note in the header
that these ioctls are for internal use only.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] saa6588: rename rds.h to saa6588.h
Hans Verkuil [Mon, 27 Dec 2010 15:22:46 +0000 (12:22 -0300)]
[media] saa6588: rename rds.h to saa6588.h

The naming of the media/rds.h header suggested that it was a generic
RDS header, when in fact it is just a saa6588 module API that is
internal to the kernel.

Rename the header and the struct and defines in it to make this clear.

Also removed the header include in radio-si470x.h (not used anymore)
and from ioctl-number.txt (it's internal to the kernel and never called
from userspace).

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] media: video: pvrusb2: fix memory leak
Vasiliy Kulikov [Fri, 19 Nov 2010 18:41:49 +0000 (15:41 -0300)]
[media] media: video: pvrusb2: fix memory leak

Use put_device() instead of kfree() because of device name leak.

Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Acked-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] support of GoTView PCI-E X5 3D Hybrid in cx23885
Alexey Chernov [Mon, 6 Dec 2010 20:09:53 +0000 (17:09 -0300)]
[media] support of GoTView PCI-E X5 3D Hybrid in cx23885

Some comments:
1. Everything initialize properly except radio.
2. All analog inputs (TV, composite, S-Video) are tested by myself in several
TV norms (SECAM-D, PAL, NTSC), everything work fine.

So the patch adds general support/detection of the card with working analog
part, DVB part is not supported for now.

Signed-off-by: Alexey Chernov <4ernov@gmail.com>
Reviewed-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] cx231xx: use bitwise negate instead of logical
Dan Carpenter [Tue, 28 Dec 2010 00:04:58 +0000 (21:04 -0300)]
[media] cx231xx: use bitwise negate instead of logical

Bitwise negate was intended here.  INPUT_SEL_MASK is 0x30.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] em28xx: Fix audio input for Terratec Grabby
Mauro Carvalho Chehab [Mon, 25 Oct 2010 20:51:15 +0000 (17:51 -0300)]
[media] em28xx: Fix audio input for Terratec Grabby

The audio input line was wrong. Fix it.

Cc: stable@kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] cardlist: Update lists for em28xx and saa7134
Mauro Carvalho Chehab [Tue, 28 Dec 2010 11:13:50 +0000 (08:13 -0300)]
[media] cardlist: Update lists for em28xx and saa7134

PS.: The cardlists are auto-generated via scripts.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] saa7134: Add support for Compro VideoMate Vista M1F
Ramiro Morales [Sun, 26 Dec 2010 21:13:30 +0000 (18:13 -0300)]
[media] saa7134: Add support for Compro VideoMate Vista M1F

Signed-off-by: Pavel Osnova <pvosnova@gmail.com>
Signed-off-by: Ramiro Morales <ramiro@rmorales.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] cx88-dvb.c: DVB net latency using Hauppauge HVR4000
Ang Way Chuang [Fri, 24 Dec 2010 05:40:46 +0000 (02:40 -0300)]
[media] cx88-dvb.c: DVB net latency using Hauppauge HVR4000

A Hauppauge HVR 4000 is used on a School On Internet Asia (SOI Asia)
project in order to carry IP traffic over ULE. However, there is an
issue with high latency jitter.

My boss, Husni, identified the problem and provided a patch for it.

The default buffer size of 32 TS frames on cx88 causes the high latency,
so our deployment changes that to 6 TS frames. This patch made the
buffer size tunable, while keeping the default buffer size of 32 TS
frames unchanged.

Signed-off-by: Achmad Husni Thamrin <husni@ai3.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] cx231xxx: fix typo in saddr_len check
Dan Carpenter [Thu, 23 Dec 2010 19:38:53 +0000 (16:38 -0300)]
[media] cx231xxx: fix typo in saddr_len check

The original code compared "saddr_len" with zero twice in a nonsensical
way.  I asked the list, and Andy Walls and Sri Deevi say that the second
check should be if "saddr_len == 1".

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Srinivasa Deevi <Srinivasa.deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] fsl_viu: add VIDIOC_QUERYSTD and VIDIOC_G_STD support
Anatolij Gustschin [Wed, 22 Dec 2010 20:31:59 +0000 (17:31 -0300)]
[media] fsl_viu: add VIDIOC_QUERYSTD and VIDIOC_G_STD support

VIDIOC_QUERYSTD and VIDIOC_G_STD ioctls are currently not
supported in the FSL VIU driver. The decoder subdevice
driver saa7115 extended by previous patch supports QUERYSTD
for saa711x, so we add the appropriate ioctls to the VIU
driver to be able to determine the video input's standard.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] saa7115: allow input standard autodetection for more chips
Anatolij Gustschin [Wed, 22 Dec 2010 20:31:58 +0000 (17:31 -0300)]
[media] saa7115: allow input standard autodetection for more chips

Autodetect input's standard using field frequency detection
feature (FIDT in status byte at 0x1F) of the chips saa7111/
saa7111a/saa7113/saa7114/saa7118.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] tm6000: rework and fix IR
Dmitri Belimov [Wed, 22 Dec 2010 08:57:46 +0000 (05:57 -0300)]
[media] tm6000: rework and fix IR

Hi

This patch didn't kill Stefan's remotes and just for upload my good part of code.
1. Add some code for show IR activity
2. Add filter for IR remotes
3. Split remotes to different types.
4. Fix stop interrupt pipe when isoc pipe started.

When we decide general way of IR I'll add support our remotes.
For our customers I'll made custom temporary patch without this part.

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] MEDIA: RC: Provide full scancodes for TT-1500 remote control
David Henningsson [Mon, 27 Dec 2010 18:45:19 +0000 (15:45 -0300)]
[media] MEDIA: RC: Provide full scancodes for TT-1500 remote control

Add 0x15 prefix to scancodes for TT-1500 remote control.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] DVB: Set scanmask for Budget/SAA7146 cards
David Henningsson [Mon, 27 Dec 2010 18:41:58 +0000 (15:41 -0300)]
[media] DVB: Set scanmask for Budget/SAA7146 cards

These devices do not return the full command+address, so set
scanmask accordingly.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] dabusb: Move it to staging to be deprecated
Mauro Carvalho Chehab [Mon, 27 Dec 2010 21:17:12 +0000 (18:17 -0300)]
[media] dabusb: Move it to staging to be deprecated

dabusb driver were conceived as an experimental driver for a test
device. The driver never supported any shipped product, and, while
there were some updates on it in 2003, for an ancient product,
those changes were never submitted upstream.

Also, there's no DocBook for its API, nor any upstream discussion.

So, better to remove it, on .39. If later needed, we may rescue it
from git logs. For now, let's move it to staging.

Acked-by: Deti Fliegl <deti@fliegl.de>
Cc: Deti Fliegl <deti@fliegl.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] streamzap: Fix a compilation warning when compiled builtin
Mauro Carvalho Chehab [Mon, 27 Dec 2010 16:00:04 +0000 (13:00 -0300)]
[media] streamzap: Fix a compilation warning when compiled builtin

drivers/media/rc/streamzap.c: In function ‘streamzap_probe’:
drivers/media/rc/streamzap.c:460:2: warning: statement with no effect

Cc: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] af9013: Fix a compilation warning
Mauro Carvalho Chehab [Mon, 27 Dec 2010 15:58:02 +0000 (12:58 -0300)]
[media] af9013: Fix a compilation warning

drivers/media/dvb/frontends/af9013.c: In function ‘af9013_update_signal_strength.clone.0’:
drivers/media/dvb/frontends/af9013.c:967:6: warning: ‘ret’ may be used uninitialized in this function

Cc: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] stv090x: Fix some compilation warnings
Mauro Carvalho Chehab [Mon, 27 Dec 2010 15:16:47 +0000 (12:16 -0300)]
[media] stv090x: Fix some compilation warnings

A few typos at the driver are causing the following warnings:

drivers/media/dvb/frontends/stv090x.c: In function ‘stv090x_start_search’:
drivers/media/dvb/frontends/stv090x.c:1486:27: warning: comparison between ‘enum stv090x_search’ and ‘enum stv090x_delsys’
drivers/media/dvb/frontends/stv090x.c:1487:24: warning: comparison between ‘enum stv090x_search’ and ‘enum stv090x_delsys’
drivers/media/dvb/frontends/stv090x.c: In function ‘stv090x_optimize_track’:
drivers/media/dvb/frontends/stv090x.c:2943:2: warning: case value ‘4’ not in enumerated type ‘enum stv090x_delsys’

The first two are due to the lack of using the delsys types
STV090x_DVBS1/STV090x_DSS
instead of
STV090x_SEARCH_DVBS1/STV090x_SEARCH_DSS

The second one is due to the usage of STV090x_UNKNOWN (enum stv090x_modulation)
instead of STV090x_ERROR (enum stv090x_delsys).

Cc: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca: Fix a warning for using len before filling it
Mauro Carvalho Chehab [Mon, 27 Dec 2010 15:00:03 +0000 (12:00 -0300)]
[media] gspca: Fix a warning for using len before filling it

The check for status errors is now before the check for len. That's
ok. However, the error printk's for the status error prints the URB
length. This generates this error:

drivers/media/video/gspca/gspca.c: In function ‘fill_frame’:
drivers/media/video/gspca/gspca.c:305:9: warning: ‘len’ may be used uninitialized in this function

The fix is as simple as moving the len init to happen before the checks.

Cc: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] dib7000m/dib7000p: Add support for TRANSMISSION_MODE_4K
Mauro Carvalho Chehab [Mon, 27 Dec 2010 14:55:07 +0000 (11:55 -0300)]
[media] dib7000m/dib7000p: Add support for TRANSMISSION_MODE_4K

Fixes several warnings:

drivers/media/dvb/frontends/dib7000m.c: In function ‘dib7000m_set_channel’:
drivers/media/dvb/frontends/dib7000m.c:808:3: warning: case value ‘255’ not in enumerated type ‘fe_transmit_mode_t’
drivers/media/dvb/frontends/dib7000m.c:869:3: warning: case value ‘255’ not in enumerated type ‘fe_transmit_mode_t’
drivers/media/dvb/frontends/dib7000m.c: In function ‘dib7000m_tune’:
drivers/media/dvb/frontends/dib7000m.c:1023:3: warning: case value ‘255’ not in enumerated type ‘fe_transmit_mode_t’
drivers/media/dvb/frontends/dib7000m.c:1033:3: warning: case value ‘255’ not in enumerated type ‘fe_transmit_mode_t’
drivers/media/dvb/frontends/dib7000m.c:1043:3: warning: case value ‘255’ not in enumerated type ‘fe_transmit_mode_t’
drivers/media/dvb/frontends/dib7000p.c: In function ‘dib7000p_set_channel’:
drivers/media/dvb/frontends/dib7000p.c:720:3: warning: case value ‘255’ not in enumerated type ‘fe_transmit_mode_t’
drivers/media/dvb/frontends/dib7000p.c:773:3: warning: case value ‘255’ not in enumerated type ‘fe_transmit_mode_t’
drivers/media/dvb/frontends/dib7000p.c: In function ‘dib7000p_tune’:
drivers/media/dvb/frontends/dib7000p.c:997:3: warning: case value ‘255’ not in enumerated type ‘fe_transmit_mode_t’
drivers/media/dvb/frontends/dib7000p.c:1007:3: warning: case value ‘255’ not in enumerated type ‘fe_transmit_mode_t’
drivers/media/dvb/frontends/dib7000p.c:1017:3: warning: case value ‘255’ not in enumerated type ‘fe_transmit_mode_t’

The drivers were prepared to support 4K carriers, but as the define were added
later, they were using a "magic" value of 255.

Cc: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] lirc_zilog: Fix a warning
Mauro Carvalho Chehab [Mon, 27 Dec 2010 14:47:17 +0000 (11:47 -0300)]
[media] lirc_zilog: Fix a warning

drivers/staging/lirc/lirc_zilog.c: In function ‘send_code’:
drivers/staging/lirc/lirc_zilog.c:886:1: warning: label ‘done’ defined but not used

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] radio-wl1273: Fix two warnings
Mauro Carvalho Chehab [Mon, 27 Dec 2010 14:44:50 +0000 (11:44 -0300)]
[media] radio-wl1273: Fix two warnings

drivers/media/radio/radio-wl1273.c: In function ‘wl1273_fm_upload_firmware_patch’:
drivers/media/radio/radio-wl1273.c:675:2: warning: ‘n’ may be used uninitialized in this function
drivers/media/radio/radio-wl1273.c:675:2: warning: ‘i’ may be used uninitialized in this function

Those vars are never initialized, and the debug message makes no sense, as it
will show just two random values.

Cc: Matti J. Aaltonen <matti.j.aaltonen@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] dmxdev: Fix a compilation warning due to a bad type
Mauro Carvalho Chehab [Mon, 27 Dec 2010 14:41:14 +0000 (11:41 -0300)]
[media] dmxdev: Fix a compilation warning due to a bad type

drivers/media/dvb/dvb-core/dmxdev.c: In function ‘dvb_dmxdev_start_feed’:
drivers/media/dvb/dvb-core/dmxdev.c:583:13: warning: comparison between ‘enum dmx_ts_pes’ and ‘enum <anonymous>’

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] feature_removal_schedule.txt: mark VIDIOC_*_OLD ioctls to die
Mauro Carvalho Chehab [Mon, 27 Dec 2010 14:14:52 +0000 (11:14 -0300)]
[media] feature_removal_schedule.txt: mark VIDIOC_*_OLD ioctls to die

There are some old broken definitions of ioctl's, where the
read/write arguments were marked wrong. The last one were added
on 2.6.6 kernel. Remove them, in order to cleanup some
copy_from_user/copy_to_user logic done inside V4L core.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] staging/lirc: Fix compilation when LIRC=m
Mauro Carvalho Chehab [Mon, 27 Dec 2010 12:41:05 +0000 (09:41 -0300)]
[media] staging/lirc: Fix compilation when LIRC=m

drivers/staging/lirc/lirc_bt829.c:141: undefined reference to `lirc_register_driver'
drivers/built-in.o:(.rodata+0x20f68): undefined reference to `lirc_dev_fop_read'
drivers/built-in.o:(.rodata+0x20f7c): undefined reference to `lirc_dev_fop_poll'
drivers/built-in.o:(.rodata+0x20f8c): undefined reference to `lirc_dev_fop_open'
drivers/built-in.o:(.rodata+0x20f94): undefined reference to `lirc_dev_fop_close'
drivers/built-in.o:(.rodata+0x21030): undefined reference to `lirc_dev_fop_open'
drivers/built-in.o:(.rodata+0x21038): undefined reference to `lirc_dev_fop_close'

This happens when .config is like:
CONFIG_LIRC=m
CONFIG_IR_LIRC_CODEC=m
CONFIG_LIRC_STAGING=y
CONFIG_LIRC_BT829=y

Don't allow that.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] omap_vout: Remove an obsolete comment
Mauro Carvalho Chehab [Mon, 27 Dec 2010 11:30:34 +0000 (08:30 -0300)]
[media] omap_vout: Remove an obsolete comment

This comment mentions a field that doesn't exist, and talks about
videodev.h that got removed. So, it doesn't make any sense to keep
it.

Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] Remove the old V4L1 v4lgrab.c file
Mauro Carvalho Chehab [Mon, 27 Dec 2010 11:27:05 +0000 (08:27 -0300)]
[media] Remove the old V4L1 v4lgrab.c file

This example file uses the old V4L1 API. It also doesn't use libv4l.
So, it is completely obsolete. A good example already exists at
v4l-utils (v4l2grab.c):
http://git.linuxtv.org/v4l-utils.git

Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] Fix videodev.h references at the V4L DocBook
Mauro Carvalho Chehab [Mon, 27 Dec 2010 11:24:58 +0000 (08:24 -0300)]
[media] Fix videodev.h references at the V4L DocBook

Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] Documentation/ioctl/ioctl-number.txt: Remove some now freed ioctl ranges
Mauro Carvalho Chehab [Mon, 27 Dec 2010 11:13:12 +0000 (08:13 -0300)]
[media] Documentation/ioctl/ioctl-number.txt: Remove some now freed ioctl ranges

The V4L1 removal patches removed a few ioctls. Update it at the docspace.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] V4L1 removal: Remove linux/videodev.h
Mauro Carvalho Chehab [Mon, 27 Dec 2010 10:47:54 +0000 (07:47 -0300)]
[media] V4L1 removal: Remove linux/videodev.h

There's no sense on keeping it on 2.6.38, as nobody is using it
anymore, at the kernel tree, and installing it at the userspace
API.

As two deprecated drivers still need it, move it to their internal
directories.

Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] Remove VIDEO_V4L1 Kconfig option
Mauro Carvalho Chehab [Mon, 27 Dec 2010 10:38:48 +0000 (07:38 -0300)]
[media] Remove VIDEO_V4L1 Kconfig option

There's no sense on keeping VIDEO_V4L1 Kconfig option just because of
two deprecated drivers moved to staging scheduled to die on 2.6.39.

Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] staging: Add TODO files for se401 and usbvideo/vicam
Mauro Carvalho Chehab [Mon, 27 Dec 2010 10:33:41 +0000 (07:33 -0300)]
[media] staging: Add TODO files for se401 and usbvideo/vicam

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] ivtv: Return EFAULT when copy_from_user() fails in ivtv_write_vbi_from_user()
Andy Walls [Mon, 20 Dec 2010 00:59:56 +0000 (21:59 -0300)]
[media] ivtv: Return EFAULT when copy_from_user() fails in ivtv_write_vbi_from_user()

If write() on a VBI device node fails due to a bad buffer pointer from
userspace, we should notify the application properly with EFAULT, per the
V4L2 API spec.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] ivtv: ivtv_write_vbi() should use copy_from_user() for user data buffers
Andy Walls [Sat, 18 Dec 2010 13:48:17 +0000 (10:48 -0300)]
[media] ivtv: ivtv_write_vbi() should use copy_from_user() for user data buffers

ivtv_write_vbi() is used for both VBI data that came from the
driver internally and VBI data that came from the user.  However,
it did not use copy_from_user() for reading the VBI data from the
user buffers.

This change adds a new version of the function,
ivtv_write_vbi_from_user(), that uses copy_from_user() to read the VBI
data provided via user buffers.

This should resolve a sparse build warning reported by Dave Gilbert.

Reported-by: Dr. David Alan Gilbert <linux at treblig.org>
Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] cx18: Only allocate a struct cx18_dvb for the DVB TS stream
Andy Walls [Sat, 11 Dec 2010 23:38:20 +0000 (20:38 -0300)]
[media] cx18: Only allocate a struct cx18_dvb for the DVB TS stream

The cx18_stream struct contained a struct cx18_dvb for
every stream object, most of which were for analog capture.
Now we only allocate the cx18_dvb object for the DTV TS stream.

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] ivtv, cx18: Make ioremap failure messages more useful for users
Andy Walls [Sat, 11 Dec 2010 15:31:45 +0000 (12:31 -0300)]
[media] ivtv, cx18: Make ioremap failure messages more useful for users

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

Signed-off-by: Andy Walls <awalls@md.metrocast.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] stk-webcam: remove V4L1 compatibility code, replace with V4L2 controls
Hans Verkuil [Sat, 25 Dec 2010 11:01:38 +0000 (08:01 -0300)]
[media] stk-webcam: remove V4L1 compatibility code, replace with V4L2 controls

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] feature-removal: update V4L1 removal status
Hans Verkuil [Sat, 25 Dec 2010 10:46:56 +0000 (07:46 -0300)]
[media] feature-removal: update V4L1 removal status

While the V4L1 compatibility module has been removed, we still have
two V4L1 drivers that prevent full V4L1 removal.

Those drivers have been moved to staging and will be removed in 2.6.39,
together with the last V4L1 support.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] cpia, stradis: remove deprecated V4L1 drivers
Hans Verkuil [Sat, 25 Dec 2010 10:44:33 +0000 (07:44 -0300)]
[media] cpia, stradis: remove deprecated V4L1 drivers

Nobody stepped in to convert these drivers to V4L2, so they are now
removed from the kernel.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] se401: deprecate driver, move to staging
Hans Verkuil [Sat, 25 Dec 2010 10:36:55 +0000 (07:36 -0300)]
[media] se401: deprecate driver, move to staging

The se401 driver is deprecated and is moved to staging. If no one will
convert this driver to V4L2, then it will be removed in 2.6.39.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] usbvideo: deprecate the vicam driver
Hans Verkuil [Sat, 25 Dec 2010 10:27:47 +0000 (07:27 -0300)]
[media] usbvideo: deprecate the vicam driver

Move usbvideo to staging and mark it deprecated.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] usbvideo: remove deprecated drivers
Hans Verkuil [Sat, 25 Dec 2010 10:20:34 +0000 (07:20 -0300)]
[media] usbvideo: remove deprecated drivers

Remove ibmcam, konicawc and ultracam drivers. There are replaced by
gspca drivers.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] documentation: update some files to reflect the V4L1 compat removal
Hans Verkuil [Sat, 25 Dec 2010 10:15:22 +0000 (07:15 -0300)]
[media] documentation: update some files to reflect the V4L1 compat removal

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] videobuf-dma-sg: remove obsolete comments
Hans Verkuil [Sat, 25 Dec 2010 10:04:16 +0000 (07:04 -0300)]
[media] videobuf-dma-sg: remove obsolete comments

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] zoran: remove V4L1 compat code and zoran custom ioctls
Hans Verkuil [Sat, 25 Dec 2010 09:58:01 +0000 (06:58 -0300)]
[media] zoran: remove V4L1 compat code and zoran custom ioctls

All the functionality is now handled through V4L2.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] V4L: remove V4L1 compatibility mode
Hans Verkuil [Fri, 24 Dec 2010 13:33:19 +0000 (10:33 -0300)]
[media] V4L: remove V4L1 compatibility mode

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - ov534_9: Remove an useless instruction
Jean-François Moine [Sat, 25 Dec 2010 17:01:42 +0000 (14:01 -0300)]
[media] gspca - ov534_9: Remove an useless instruction

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - ov519: Bad detection of some ov7670 sensors
Jean-François Moine [Sat, 25 Dec 2010 16:58:45 +0000 (13:58 -0300)]
[media] gspca - ov519: Bad detection of some ov7670 sensors

Tested-by: jim smyth <jsmyth1969@gmail.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca: Use the global error status for get/set streamparm
Jean-François Moine [Sat, 25 Dec 2010 16:46:14 +0000 (13:46 -0300)]
[media] gspca: Use the global error status for get/set streamparm

Also, in ov534, don't check the parm type.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - main: Check the isoc packet status before its length
Jean-François Moine [Sat, 25 Dec 2010 16:22:21 +0000 (13:22 -0300)]
[media] gspca - main: Check the isoc packet status before its length

When an error is set for an isochronous packet, the length of the packet
may be null. In this case, the error was not detected and the image
was not discarded as it should be.

Reported-by: Franck Bourdonnec <fbourdonnec@chez.com>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - sq930x: Fix a bad comment
Jean-François Moine [Sat, 25 Dec 2010 16:19:59 +0000 (13:19 -0300)]
[media] gspca - sq930x: Fix a bad comment

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - sq930x: Some detected sensors are not handled yet
Jean-François Moine [Sat, 25 Dec 2010 16:11:54 +0000 (13:11 -0300)]
[media] gspca - sq930x: Some detected sensors are not handled yet

These are OmniVision's OV7660 and OV9630.
Don't register the webcam when they are found.

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - sq930x: Don't register a webcam when there are USB errors
Jean-François Moine [Sat, 25 Dec 2010 16:07:57 +0000 (13:07 -0300)]
[media] gspca - sq930x: Don't register a webcam when there are USB errors

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] gspca - sq905c: Adds the Lego Bionicle
Theodore Kilgore [Fri, 24 Dec 2010 20:06:04 +0000 (17:06 -0300)]
[media] gspca - sq905c: Adds the Lego Bionicle

This patch adds the Vendor:Product number of the Lego Bionicle camera to
the existing gspca/sq905c.c and also a line for the camera in gspca.txt.
The camera works "out of the box" with these small changes. So this is
just in time for Christmas. Think of the children.

Signed-off-by: Theodore Kilgore <kilgota@auburn.edu>
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] s2255drv: remove BKL
Pete Eberlein [Mon, 20 Dec 2010 22:18:59 +0000 (19:18 -0300)]
[media] s2255drv: remove BKL

Remove BKL ioctl and use unlocked_ioctl with core-assisted locking instead.

Signed-off-by: Pete Eberlein <pete@sensoray.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] v4l: mem2mem_testdev: remove BKL usage
Marek Szyprowski [Mon, 20 Dec 2010 17:39:25 +0000 (14:39 -0300)]
[media] v4l: mem2mem_testdev: remove BKL usage

Remove usage of BKL by usign per-device mutex.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
CC: Pawel Osciak <pawel@osciak.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] timblogiw: too large value for strncpy()
Dan Carpenter [Mon, 20 Dec 2010 12:53:16 +0000 (09:53 -0300)]
[media] timblogiw: too large value for strncpy()

This is a copy and paste error.  It should be using sizeof(cap->driver)
instead of sizeof(cap->card).

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: Richard Rojförs <richard.rojfors@pelagicore.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] saa7164: Remove pointless conditional and save a few bytes in saa7164_downloa...
Jesper Juhl [Sat, 18 Dec 2010 22:05:02 +0000 (19:05 -0300)]
[media] saa7164: Remove pointless conditional and save a few bytes in saa7164_downloadfirmware()

Hi,

release_firmware() just does nothing if passed a NULL pointer. So there's
no reason to test before the call in
saa7164-fw.c::saa7164_downloadfirmware().

Removing the pointless conditional also saves a few bytes.
before:
   text    data     bss     dec     hex filename
   7943     112    2144   10199    27d7 drivers/media/video/saa7164/saa7164-fw.o
after:
   text    data     bss     dec     hex filename
   7931     112    2136   10179    27c3 drivers/media/video/saa7164/saa7164-fw.o

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Cc: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] drivers:media:dvb: add USB PIDs for Elgato EyeTV Sat
Sam Doshi [Sat, 18 Dec 2010 15:58:54 +0000 (12:58 -0300)]
[media] drivers:media:dvb: add USB PIDs for Elgato EyeTV Sat

Adds USB PIDs for the Elgato EyeTV Sat device.
This device is a clone of the Terratec S7.

Signed-off-by: Sam Doshi <sam@metal-fish.co.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] media: fsl-viu: fix support for streaming with mmap method
Anatolij Gustschin [Fri, 17 Dec 2010 09:40:50 +0000 (06:40 -0300)]
[media] media: fsl-viu: fix support for streaming with mmap method

Streaming using mmap didn't work in the VIU driver. We need to
start/stop DMA in streamon/streamoff and free the buffers on
release. Add appropriate driver extension now.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] zoran: bit-wise vs logical and
Dan Carpenter [Fri, 10 Dec 2010 12:39:34 +0000 (09:39 -0300)]
[media] zoran: bit-wise vs logical and

zr->frame_num is a counter and && was intended here instead of &.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
13 years ago[media] DM04/QQBOX Frontend attach change
Malcolm Priestley [Tue, 7 Dec 2010 22:49:24 +0000 (19:49 -0300)]
[media] DM04/QQBOX Frontend attach change

On Fri, 2010-12-03 at 09:32 -0200, Mauro Carvalho Chehab wrote:
> Em 27-11-2010 11:13, Malcolm Priestley escreveu:
> > Driver Version v1.73 - Frontend attach change.
> > To stop double rc registration in multi tuner environment or firmware change.
> >
> > Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
> >
> >
> > +static int lme_name(struct dvb_usb_adapter *adap)
> > +{
> > + struct lme2510_state *st = adap->dev->priv;
> > + const char *desc = adap->dev->desc->name;
> > + char *fe_name[] = {"", " LG TDQY-P001F", " SHARP:BS2F7HZ7395"};
> > + char *name = adap->fe->ops.info.name;
> > +
> > + strcpy(name, desc);
> > + strcat(name, fe_name[st->tuner_config]);
>
> Please use, instead, strlcpy/strlcat, to avoid writing outside the buffer size.
>

Driver Version v1.74
Amended patch with change to strlcpy/strlcat.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>