[PATCH] media:adv7180: Use dev_pm_ops

2013-04-13 Thread Lars-Peter Clausen
Use dev_pm_ops instead of the deprecated legacy suspend/resume callbacks. Signed-off-by: Lars-Peter Clausen l...@metafoo.de --- drivers/media/i2c/adv7180.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers/media/i2c/adv7180.c

[patch] [media] media: info leak in __media_device_enum_links()

2013-04-13 Thread Dan Carpenter
These structs have holes and reserved struct members which aren't cleared. I've added a memset() so we don't leak stack information. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c index 99b80b6..450c0d1 100644 ---

[PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Frank Schäfer
Patch 1 removes the unneeded and broken gpio register caching code. Patch 2 adds the gpio register defintions for the em25xx/em276x/7x/8x and patch 3 finally adds a new helper function for gpio ports with separate registers for read and write access. Frank Schäfer (3): em28xx: give up GPIO

[PATCH 2/3] em28xx: add register defines for em25xx/em276x/7x/8x GPIO registers

2013-04-13 Thread Frank Schäfer
em25xx/em276x/7x/8x provides 3 GPIO register sets, each of them consisting of separate read and a write registers. Signed-off-by: Frank Schäfer fschaefer@googlemail.com --- drivers/media/usb/em28xx/em28xx-reg.h |8 1 Datei geändert, 8 Zeilen hinzugefügt(+) diff --git

[PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Frank Schäfer
The GPIO register tracking/caching code is partially broken, because newer devices provide more than one GPIO register and some of them are even using separate registers for read and write access. Making it work would be too complicated. It is also used nowhere and doesn't make sense in cases

[PATCH 3/3] em28xx: add helper function for handling the GPIO registers of newer devices

2013-04-13 Thread Frank Schäfer
The current code provides a helper function em28xx_write_reg_bits() that reads the current state/value of a GPIO register, modifies only the bits specified with the value and bitmask parmaters and writes the new value back to the register. Newer devices (em25xx, em276x/7x/8x) are using separate

[PATCH] em28xx: add basic support for the SpeedLink Vicious And Devine Laplace webcam

2013-04-13 Thread Frank Schäfer
The SpeedLink Vicious And Devine Laplace webcam uses an EM2765 bridge and an OV2640 sensor which allows capturing at a max. resoultion of 1600x1200 at max. 7-8 fps. It has a built-in microphone (USB standard device class) and provides 3 buttons (snapshot, mute, illumination) and 2 LEDs

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Antti Palosaari
On 04/13/2013 12:48 PM, Frank Schäfer wrote: Patch 1 removes the unneeded and broken gpio register caching code. Patch 2 adds the gpio register defintions for the em25xx/em276x/7x/8x and patch 3 finally adds a new helper function for gpio ports with separate registers for read and write access.

[PATCH 6/7] backports: add media subsystem drivers

2013-04-13 Thread Luis R. Rodriguez
From: Luis R. Rodriguez mcg...@do-not-panic.com This adds backport support for all media subsystem drivers. This is enabled only for = 3.2. Some media drivers rely on the new probe deferrral mechanism (-EPROBE_DEFER see commit d1c3414c), those are only enabled for kernels = 3.4. Some media

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Mauro Carvalho Chehab
Em Sat, 13 Apr 2013 16:15:39 +0300 Antti Palosaari cr...@iki.fi escreveu: On 04/13/2013 12:48 PM, Frank Schäfer wrote: Patch 1 removes the unneeded and broken gpio register caching code. Patch 2 adds the gpio register defintions for the em25xx/em276x/7x/8x and patch 3 finally adds a new

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Antti Palosaari
On 04/13/2013 05:25 PM, Mauro Carvalho Chehab wrote: Em Sat, 13 Apr 2013 16:15:39 +0300 Antti Palosaari cr...@iki.fi escreveu: On 04/13/2013 12:48 PM, Frank Schäfer wrote: Patch 1 removes the unneeded and broken gpio register caching code. Patch 2 adds the gpio register defintions for the

Re: [PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Mauro Carvalho Chehab
Em Sat, 13 Apr 2013 11:48:39 +0200 Frank Schäfer fschaefer@googlemail.com escreveu: The GPIO register tracking/caching code is partially broken, because newer devices provide more than one GPIO register and some of them are even using separate registers for read and write access. Making

[PATCH] Add support for Delock 61959 and its remote control

2013-04-13 Thread Jakob Haufe
This time for real with all bells and whistles: Delock 61959 is a relabeled MexMedia UB-425TC with a different USB ID and a different remote. Patch 1 adds the keytable for the remote control and patch 2 adds support for the device itself. I'm reusing maxmedia_ub425_tc as I didn't want to

[PATCH 1/2] rc: Add rc-delock-61959

2013-04-13 Thread Jakob Haufe
This adds the keytable for the remote that comes with the Delock 61959. NEC protocol with address 0x866b. Signed-off-by: Jakob Haufe su...@sur5r.net --- drivers/media/rc/keymaps/Makefile |1 + drivers/media/rc/keymaps/rc-delock-61959.c | 83

[PATCH 2/2] em28xx: Add support for 1b80:e1cc Delock 61959

2013-04-13 Thread Jakob Haufe
Hardware is the same as MaxMedia UB425-TC but ships with a different remote. Signed-off-by: Jakob Haufe su...@sur5r.net --- drivers/media/usb/em28xx/em28xx-cards.c | 16 drivers/media/usb/em28xx/em28xx-dvb.c |5 +++-- drivers/media/usb/em28xx/em28xx.h |1 + 3

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Frank Schäfer
Am 13.04.2013 16:25, schrieb Mauro Carvalho Chehab: Em Sat, 13 Apr 2013 16:15:39 +0300 Antti Palosaari cr...@iki.fi escreveu: On 04/13/2013 12:48 PM, Frank Schäfer wrote: Patch 1 removes the unneeded and broken gpio register caching code. Patch 2 adds the gpio register defintions for the

Re: [PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Frank Schäfer
Am 13.04.2013 16:41, schrieb Mauro Carvalho Chehab: Em Sat, 13 Apr 2013 11:48:39 +0200 Frank Schäfer fschaefer@googlemail.com escreveu: The GPIO register tracking/caching code is partially broken, because newer devices provide more than one GPIO register and some of them are even using

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Devin Heitmueller
On Sat, Apr 13, 2013 at 11:30 AM, Frank Schäfer fschaefer@googlemail.com wrote: I've checked the documentation about the gpio and led frameworks a few weeks ago to find out if it makes sense to use them for the gpio/buttons/led stuff of the VAD Laplace webcam. AFAICS, there are no benfits

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Antti Palosaari
On 04/13/2013 06:34 PM, Devin Heitmueller wrote: On Sat, Apr 13, 2013 at 11:30 AM, Frank Schäfer fschaefer@googlemail.com wrote: I've checked the documentation about the gpio and led frameworks a few weeks ago to find out if it makes sense to use them for the gpio/buttons/led stuff of the

Re: [PATCH] Add support for Delock 61959 and its remote control

2013-04-13 Thread Antti Palosaari
On 04/13/2013 06:03 PM, Jakob Haufe wrote: This time for real with all bells and whistles: Delock 61959 is a relabeled MexMedia UB-425TC with a different USB ID and a different remote. Patch 1 adds the keytable for the remote control and patch 2 adds support for the device itself. I'm reusing

Re: [PATCH 1/2] rc: Add rc-delock-61959

2013-04-13 Thread Antti Palosaari
On 04/13/2013 06:03 PM, Jakob Haufe wrote: This adds the keytable for the remote that comes with the Delock 61959. NEC protocol with address 0x866b. Signed-off-by: Jakob Haufe su...@sur5r.net Reviewed-by: Antti Palosaari cr...@iki.fi -- http://palosaari.fi/ -- To unsubscribe from this

Re: [PATCH 2/2] em28xx: Add support for 1b80:e1cc Delock 61959

2013-04-13 Thread Antti Palosaari
On 04/13/2013 06:03 PM, Jakob Haufe wrote: Hardware is the same as MaxMedia UB425-TC but ships with a different remote. Signed-off-by: Jakob Haufe su...@sur5r.net Reviewed-by: Antti Palosaari cr...@iki.fi -- http://palosaari.fi/ -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Devin Heitmueller
On Sat, Apr 13, 2013 at 12:21 PM, Antti Palosaari cr...@iki.fi wrote: Existing userspace sysfs interface is clearly debug interface. You will need root privileges to mount it and IIRC it was not even compiled by default (needs Kconfig debug option?). You would like to think that. Tell Mauro

Re: [PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Mauro Carvalho Chehab
Em Sat, 13 Apr 2013 17:33:28 +0200 Frank Schäfer fschaefer@googlemail.com escreveu: Am 13.04.2013 16:41, schrieb Mauro Carvalho Chehab: Em Sat, 13 Apr 2013 11:48:39 +0200 Frank Schäfer fschaefer@googlemail.com escreveu: The GPIO register tracking/caching code is partially broken,

Re: [PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Frank Schäfer
Am 13.04.2013 19:04, schrieb Mauro Carvalho Chehab: Em Sat, 13 Apr 2013 17:33:28 +0200 Frank Schäfer fschaefer@googlemail.com escreveu: Am 13.04.2013 16:41, schrieb Mauro Carvalho Chehab: Em Sat, 13 Apr 2013 11:48:39 +0200 Frank Schäfer fschaefer@googlemail.com escreveu: The GPIO

Re: [PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Mauro Carvalho Chehab
Em Sat, 13 Apr 2013 19:46:20 +0200 Frank Schäfer fschaefer@googlemail.com escreveu: Am 13.04.2013 19:04, schrieb Mauro Carvalho Chehab: Em Sat, 13 Apr 2013 17:33:28 +0200 Frank Schäfer fschaefer@googlemail.com escreveu: Am 13.04.2013 16:41, schrieb Mauro Carvalho Chehab: Em

Re: [PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Frank Schäfer
Am 13.04.2013 19:46, schrieb Frank Schäfer: Am 13.04.2013 19:04, schrieb Mauro Carvalho Chehab: Em Sat, 13 Apr 2013 17:33:28 +0200 Frank Schäfer fschaefer@googlemail.com escreveu: Am 13.04.2013 16:41, schrieb Mauro Carvalho Chehab: Em Sat, 13 Apr 2013 11:48:39 +0200 Frank Schäfer

Re: [PATCH 1/3] em28xx: give up GPIO register tracking/caching

2013-04-13 Thread Frank Schäfer
Am 13.04.2013 20:19, schrieb Frank Schäfer: Am 13.04.2013 19:46, schrieb Frank Schäfer: ... We always write to the GPIO register. That's why these functions are called em28xx_write_* ;) Whether the write operation is sane or not (e.g. because it modifies the bit corresponding to an input

Re: [PATCH RFC v6] [media] Add common video interfaces OF bindings documentation

2013-04-13 Thread Grant Likely
On Wed, 20 Mar 2013 17:19:53 +0100, Sylwester Nawrocki s.nawro...@samsung.com wrote: On 01/31/2013 07:41 PM, Sylwester Nawrocki wrote: From: Guennadi Liakhovetski g.liakhovet...@gmx.de This patch adds a document describing common OF bindings for video capture, output and video

Re: [PATCH 6/7] backports: add media subsystem drivers

2013-04-13 Thread Johannes Berg
On Sat, 2013-04-13 at 07:13 -0700, Luis R. Rodriguez wrote: From: Luis R. Rodriguez mcg...@do-not-panic.com This adds backport support for all media subsystem drivers. This is enabled only for = 3.2. Some media drivers rely on the new probe deferrral mechanism (-EPROBE_DEFER see commit

Re: [PATCH v9 15/20] sh-mobile-ceu-driver: support max width and height in DT

2013-04-13 Thread Sergei Shtylyov
Hello. On 12-04-2013 19:40, Guennadi Liakhovetski wrote: Some CEU implementations have non-standard (larger) maximum supported width and height values. Add two OF properties to specify them. Signed-off-by: Guennadi Liakhovetski g.liakhovet...@gmx.de Minor grammar nitpicking. diff

[PATCH] [media] cx88: Fix unsafe locking in suspend-resume

2013-04-13 Thread Alexey Khoroshilov
Legacy PCI suspend-resume handlers are called with interrupts enabled. But cx8800_suspend/cx8800_resume and cx8802_suspend_common/cx8802_resume_common use spin_lock/spin_unlock functions to acquire dev-slock, while the same lock is acquired in the corresponding irq-handlers: cx8800_irq and

Re: [PATCH 0/3] em28xx: clean up end extend the GPIO port handling

2013-04-13 Thread Mauro Carvalho Chehab
Em Sat, 13 Apr 2013 17:37:26 +0300 Antti Palosaari cr...@iki.fi escreveu: On 04/13/2013 05:25 PM, Mauro Carvalho Chehab wrote: Em Sat, 13 Apr 2013 16:15:39 +0300 Antti Palosaari cr...@iki.fi escreveu: On 04/13/2013 12:48 PM, Frank Schäfer wrote: Patch 1 removes the unneeded and broken