Re: [PATCHv4 1/3] vb2: stop_streaming should return void

2014-04-17 Thread Prabhakar Lad
Hi Hans, Thanks for the patch. On Thu, Apr 17, 2014 at 2:51 PM, Hans Verkuil wrote: > From: Hans Verkuil > > The vb2 core ignores any return code from the stop_streaming op. > And there really isn't anything it can do anyway in case of an error. > So change the return type to void and update an

Re: [PATCHv4 0/3] vb2: stop_streaming should return void

2014-04-17 Thread Prabhakar Lad
Hi Hans, On Thu, Apr 17, 2014 at 2:51 PM, Hans Verkuil wrote: > Split off the removal of the vb2_is_streaming check as requested. > Note that the davinci drivers still have this unnecessary check, but > Prabhakar will remove that himself. > Yes will post the patch, doping the check for davinci dr

[PATCH] media: m2m-deinterlace: Convert to devm* API

2014-04-17 Thread Alexander Shiyan
Replace resource handling in the driver with managed device resource. Signed-off-by: Alexander Shiyan --- drivers/media/platform/m2m-deinterlace.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/media/platform/m2m-deinterlace.c b/drivers/media/platform/m2m-dei

cron job: media_tree daily build: WARNINGS

2014-04-17 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date: Fri Apr 18 04:00:14 CEST 2014 git branch: test git hash: 701b57ee3387b8e3749845b02310b5625fbd8da0 gcc versi

[ANNOUNCE] backports-3.15-rc1 is released

2014-04-17 Thread Luis R. Rodriguez
Linux backports [0] backports-v3.15-rc1 is out [1]. Please go test and see if you can and break things or if see if we've broken anything so far before a final release in sync with Linus' releases. As usual development only happens on the master branch, we'll then carry fixes onto the stable branch

[ANNOUNCE] backports-3.14-1 released

2014-04-17 Thread Luis R. Rodriguez
Linux backports [0] backports-v3.14-1 is out [1]. Thanks for Hauke for taking the torch while I was in limbo. The release obviously has all the things that upstream has so there's no point in mentioning any of that, but new drivers are igb, added by Stefan. This release also has a new backports-upd

3 linux-next based backports releases

2014-04-17 Thread Luis R. Rodriguez
3 new linux backports release are now available based on linux-next tags next-20140320 [0] next-20140411 [1] and next-20140417 [2]. This should mean that we can keep things in synch now almost daily, and drivers can be tested with the latest code as-is on linux-next. We've shaved off k

[PATCH 0/2] media: make drivers use their own namespace

2014-04-17 Thread Luis R. Rodriguez
Couple of changes to help with backports, both to help with ensuring drivers use their own namespace. Luis R. Rodriguez (2): technisat-usb2: rename led enums to be specific to driver bt8xx: make driver routines fit into its own namespcae drivers/media/pci/bt8xx/dst.c | 20 ++

[PATCH 1/2] technisat-usb2: rename led enums to be specific to driver

2014-04-17 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" The current names clash with include/linux/leds.h namespace, although there is no compile issue currently this does affect backports. Drivers should also try to avoid generic namespaces for things like this. Cc: Mauro Carvalho Chehab Cc: Felipe Pena Cc: Michael Krufky

[PATCH 2/2] bt8xx: make driver routines fit into its own namespcae

2014-04-17 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" There is a few conflicts with older symbols on older kernels so we have to patch this driver when backporting. Instead just make these routines specific to the driver. Cc: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org Signed-off-by: Luis R. Rodriguez --- driv

Re: [v2] media: soc-camera: OF cameras

2014-04-17 Thread Bryan Wu
On Mon, Apr 14, 2014 at 10:38 AM, Ben Dooks wrote: > On 14/04/14 18:14, Bryan Wu wrote: >> >> On Thu, Apr 10, 2014 at 2:18 PM, Guennadi Liakhovetski >> wrote: >>> >>> Hi Bryan, >>> >>> On Tue, 8 Apr 2014, Bryan Wu wrote: >>> Thanks Josh, I think I will take you point and rework my patch agai

Re: [PATCH] uvcvideo: Work around buggy Logitech C920 firmware

2014-04-17 Thread Laurent Pinchart
Hi Will, On Monday 14 April 2014 11:27:00 Will Manley wrote: > On Mon, 14 Apr 2014, at 1:34, Laurent Pinchart wrote: [snip] > > Thank you for investigating this, and sorry for the late reply. > > > > I still haven't heard back from Logitech on this issue. I've pinged them, > > they might be bus

Re: [RFC PATCH 2/2] drivers/base: add managed token devres interfaces

2014-04-17 Thread Shuah Khan
On 04/17/2014 02:22 PM, Tejun Heo wrote: On Thu, Apr 17, 2014 at 04:10:34PM -0400, Tejun Heo wrote: Please do not implement locking primitive directly if at all avoidable. Why can't it use a mutex embedded in the data area of a devres entry? And if you for some reason have to implement it dir

Re: [PATCH] uvc: update uvc_endpoint_max_bpi to handle USB_SPEED_WIRELESS devices

2014-04-17 Thread Laurent Pinchart
Hi Thomas, On Thursday 17 April 2014 09:53:32 Thomas Pugliese wrote: > On Thu, 17 Apr 2014, Laurent Pinchart wrote: > > On Wednesday 16 April 2014 12:29:22 Thomas Pugliese wrote: [snip] > > > As you had mentioned previously, it should be possible to support both > > > formats by ignoring the end

Re: [PATCH] cx23885: add support for Hauppauge ImpactVCB-e

2014-04-17 Thread Steve Cookson
Hi Guys, I've been playing around with this on my Kubuntu 13.10. Apart from the issue that you know I have of the altera-stapl.ko file arriving in the wrong directory, I think it's a good basis for moving forwards. What is the process for including this in the Linux TV baseline? I feel the

[PATCH] s2255: Do not free fw_data until timer handler has actually stopped using it

2014-04-17 Thread Kirill Tkhai
Function del_timer() does not guarantee that timer was really deleted. If the timer handler is beeing executed at the moment, the function does nothing. So, we have a race between del_timer() and kfree(), and it's possible to use already freed memory in the handler. This is compile-tested only. Pl

Re: [RFC PATCH 2/2] drivers/base: add managed token devres interfaces

2014-04-17 Thread Shuah Khan
On 04/17/2014 02:10 PM, Tejun Heo wrote: On Thu, Apr 17, 2014 at 02:01:32PM -0600, Shuah Khan wrote: Operating on the lock should be atomic, which is what devres_update() is doing. It can be simplified as follows by holding devres_lock in devm_token_lock(). spin_lock_irqsave(&dev->devres_lock,

Re: [RFC PATCH 2/2] drivers/base: add managed token devres interfaces

2014-04-17 Thread Tejun Heo
On Thu, Apr 17, 2014 at 04:10:34PM -0400, Tejun Heo wrote: > On Thu, Apr 17, 2014 at 02:01:32PM -0600, Shuah Khan wrote: > > Operating on the lock should be atomic, which is what devres_update() > > is doing. It can be simplified as follows by holding devres_lock > > in devm_token_lock(). > > > >

Re: [RFC PATCH 2/2] drivers/base: add managed token devres interfaces

2014-04-17 Thread Tejun Heo
On Thu, Apr 17, 2014 at 02:01:32PM -0600, Shuah Khan wrote: > Operating on the lock should be atomic, which is what devres_update() > is doing. It can be simplified as follows by holding devres_lock > in devm_token_lock(). > > spin_lock_irqsave(&dev->devres_lock, flags); > if (tkn_ptr->status == T

Re: [RFC PATCH 2/2] drivers/base: add managed token devres interfaces

2014-04-17 Thread Shuah Khan
Hi Tejun, On 04/16/2014 03:58 PM, Tejun Heo wrote: Hello, Thanks for the review. A brief description of the use-case first. Token is intended to be used as a large grain lock and once locked, it can be held in the locked state for long periods of time. For instance, application will request v

Re: [PATCH] uvc: update uvc_endpoint_max_bpi to handle USB_SPEED_WIRELESS devices

2014-04-17 Thread Thomas Pugliese
On Thu, 17 Apr 2014, Laurent Pinchart wrote: > Hi Thomas, > > On Wednesday 16 April 2014 12:29:22 Thomas Pugliese wrote: > > On Wed, 16 Apr 2014, Laurent Pinchart wrote: > > > Hi Thomas, > > > > > > (CC'ing the linux-usb mailing list) > > > > > > On Tuesday 15 April 2014 16:45:28 Thomas Pugli

Re: [PATCH v4 45/49] adv7604: Add DT support

2014-04-17 Thread Sylwester Nawrocki
On 17/04/14 16:39, Sylwester Nawrocki wrote: > On 17/04/14 16:13, Laurent Pinchart wrote: >> > Parse the device tree node to populate platform data. Only the ADV7611 >> > is currently support with DT. >> > >> > Cc: devicet...@vger.kernel.org >> > Cc: Sylwester Nawrocki >> > Signed-off-by: Laurent

Re: [PATCH v4 47/49] adv7604: Add endpoint properties to DT bindings

2014-04-17 Thread Sylwester Nawrocki
On 17/04/14 16:13, Laurent Pinchart wrote: > Add support for the hsync-active, vsync-active and pclk-sample > properties to the DT bindings and control BT.656 mode implicitly. > > Cc: devicet...@vger.kernel.org > Cc: Sylwester Nawrocki > Signed-off-by: Laurent Pinchart > Acked-by: Hans Verkuil

Re: [PATCH v4 45/49] adv7604: Add DT support

2014-04-17 Thread Laurent Pinchart
Hi Sylwester, On Thursday 17 April 2014 16:39:29 Sylwester Nawrocki wrote: > On 17/04/14 16:13, Laurent Pinchart wrote: > > Parse the device tree node to populate platform data. Only the ADV7611 > > is currently support with DT. > > > > Cc: devicet...@vger.kernel.org > > Cc: Sylwester Nawrocki >

Re: [PATCH v4 45/49] adv7604: Add DT support

2014-04-17 Thread Sylwester Nawrocki
Hi Laurent, On 17/04/14 16:13, Laurent Pinchart wrote: > Parse the device tree node to populate platform data. Only the ADV7611 > is currently support with DT. > > Cc: devicet...@vger.kernel.org > Cc: Sylwester Nawrocki > Signed-off-by: Laurent Pinchart > Acked-by: Hans Verkuil The patch look

Re: [PATCH] uvc: update uvc_endpoint_max_bpi to handle USB_SPEED_WIRELESS devices

2014-04-17 Thread Laurent Pinchart
Hi Thomas, On Wednesday 16 April 2014 12:29:22 Thomas Pugliese wrote: > On Wed, 16 Apr 2014, Laurent Pinchart wrote: > > Hi Thomas, > > > > (CC'ing the linux-usb mailing list) > > > > On Tuesday 15 April 2014 16:45:28 Thomas Pugliese wrote: > > > On Tue, 15 Apr 2014, Laurent Pinchart wrote: > >

[PATCH v4 05/49] v4l: Add pad-level DV timings subdev operations

2014-04-17 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart Acked-by: Lad, Prabhakar Reviewed-by: Hans Verkuil --- include/media/v4l2-subdev.h| 4 include/uapi/linux/videodev2.h | 10 -- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subde

[PATCH v4 04/49] v4l: Add 12-bit YUV 4:2:2 media bus pixel codes

2014-04-17 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- Documentation/DocBook/media/v4l/subdev-formats.xml | 240 + include/uapi/linux/v4l2-mediabus.h | 6 +- 2 files changed, 245 insertions(+), 1 deletion(-) diff --git a/Documentation/DocBook/media/v

[PATCH v4 01/49] v4l: Add UYVY10_2X10 and VYUY10_2X10 media bus pixel codes

2014-04-17 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- Documentation/DocBook/media/v4l/subdev-formats.xml | 128 + include/uapi/linux/v4l2-mediabus.h | 4 +- 2 files changed, 131 insertions(+), 1 deletion(-) diff --git a/Documentation/DocBook/media/v

[PATCH v4 02/49] v4l: Add UYVY10_1X20 and VYUY10_1X20 media bus pixel codes

2014-04-17 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- Documentation/DocBook/media/v4l/subdev-formats.xml | 104 + include/uapi/linux/v4l2-mediabus.h | 4 +- 2 files changed, 107 insertions(+), 1 deletion(-) diff --git a/Documentation/DocBook/media/v

[PATCH v4 08/49] adv7842: Add pad-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings and dv_timings_cap operations are deprecated. Implement the pad-level version of those operations to prepare for the removal of the video version. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7842.c | 8 1 file changed, 8

[PATCH v4 09/49] s5p-tv: hdmi: Add pad-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings and dv_timings_cap operations are deprecated. Implement the pad-level version of those operations to prepare for the removal of the video version. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/platform/s5p-tv/hdmi_drv.c | 10 ++ 1

[PATCH v4 14/49] media: davinci: vpif: Switch to pad-level DV operations

2014-04-17 Thread Laurent Pinchart
The video-level enum_dv_timings and dv_timings_cap operations are deprecated in favor of the pad-level versions. All subdev drivers implement the pad-level versions, switch to them. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil Acked-by: Lad, Prabhakar --- drivers/media/platform/da

[PATCH v4 06/49] ad9389b: Add pad-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings and dv_timings_cap operations are deprecated. Implement the pad-level version of those operations to prepare for the removal of the video version. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/ad9389b.c | 68 ++-

[PATCH v4 11/49] ths8200: Add pad-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings and dv_timings_cap operations are deprecated. Implement the pad-level version of those operations to prepare for the removal of the video version. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil Acked-by: Lad, Prabhakar --- drivers/media/i2c/ths8200.c | 12 +

[PATCH v4 07/49] adv7511: Add pad-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings and dv_timings_cap operations are deprecated. Implement the pad-level version of those operations to prepare for the removal of the video version. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7511.c | 66 ++-

[PATCH v4 12/49] tvp7002: Add pad-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings operation is deprecated. Implement the pad-level version of the operation to prepare for the removal of the video version. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil Acked-by: Lad, Prabhakar --- drivers/media/i2c/tvp7002.c | 4 1 file changed, 4 in

[PATCH v4 03/49] v4l: Add 12-bit YUV 4:2:0 media bus pixel codes

2014-04-17 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- Documentation/DocBook/media/v4l/subdev-formats.xml | 288 + include/uapi/linux/v4l2-mediabus.h | 6 +- 2 files changed, 293 insertions(+), 1 deletion(-) diff --git a/Documentation/DocBook/media/v

[PATCH v4 20/49] s5p-tv: hdmi: Remove deprecated video-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings and dv_timings_cap operations are deprecated and unused. Remove them. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/platform/s5p-tv/hdmi_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/platform/s5

[PATCH v4 10/49] s5p-tv: hdmiphy: Add pad-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings operation is deprecated. Implement the pad-level version of the operation to prepare for the removal of the video version. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/platform/s5p-tv/hdmiphy_drv.c | 8 1 file changed, 8 insertio

[PATCH v4 13/49] media: bfin_capture: Switch to pad-level DV operations

2014-04-17 Thread Laurent Pinchart
The video-level enum_dv_timings and dv_timings_cap operations are deprecated in favor of the pad-level versions. All subdev drivers implement the pad-level versions, switch to them. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil Acked-by: Scott Jiang --- drivers/media/platform/black

[PATCH v4 15/49] media: staging: davinci: vpfe: Switch to pad-level DV operations

2014-04-17 Thread Laurent Pinchart
The video-level enum_dv_timings and dv_timings_cap operations are deprecated in favor of the pad-level versions. All subdev drivers implement the pad-level versions, switch to them. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil Acked-by: Lad, Prabhakar --- drivers/staging/media/dav

[PATCH v4 19/49] adv7842: Remove deprecated video-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings and dv_timings_cap operations are deprecated and unused. Remove them. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7842.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/i2c/adv7842.c b/drivers/media/i2c/adv7842.

[PATCH v4 17/49] ad9389b: Remove deprecated video-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings and dv_timings_cap operations are deprecated and unused. Remove them. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/ad9389b.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/i2c/ad9389b.c b/drivers/media/i2c/ad9389b.

[PATCH v4 28/49] adv7604: Add support for asynchronous probing

2014-04-17 Thread Laurent Pinchart
From: Lars-Peter Clausen Signed-off-by: Lars-Peter Clausen Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 338baa4..7358853 10064

[PATCH v4 21/49] s5p-tv: hdmiphy: Remove deprecated video-level DV timings operation

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings operation is deprecated and unused. Remove it. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/platform/s5p-tv/hdmiphy_drv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/s5p-tv/hdmiphy_drv.c b/drivers/media/plat

[PATCH v4 29/49] adv7604: Don't put info string arrays on the stack

2014-04-17 Thread Laurent Pinchart
From: Lars-Peter Clausen We do not want to modify the info string arrays ever, so no need to waste stack space for them. While we are at it also make them const. Signed-off-by: Lars-Peter Clausen Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 8 ++

[PATCH v4 22/49] ths8200: Remove deprecated video-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings and dv_timings_cap operations are deprecated and unused. Remove them. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil Acked-by: Lad, Prabhakar --- drivers/media/i2c/ths8200.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/i2c/ths8200.c b/

[PATCH v4 25/49] v4l: Add support for DV timings ioctls on subdev nodes

2014-04-17 Thread Laurent Pinchart
Validate the pad field in the core code whenever specified. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- .../DocBook/media/v4l/vidioc-dv-timings-cap.xml| 27 +++ .../DocBook/media/v4l/vidioc-enum-dv-timings.xml | 30 +- drivers/media/v4

[PATCH v4 24/49] v4l: Improve readability by not wrapping ioctl number #define's

2014-04-17 Thread Laurent Pinchart
Wrapping the #define's at a 80 columns boundary just obfuscates the code. Don't do that. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil Acked-by: Sakari Ailus --- include/uapi/linux/v4l2-subdev.h | 33 + 1 file changed, 13 insertions(+), 20 deletions(

[PATCH v4 18/49] adv7511: Remove deprecated video-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings and dv_timings_cap operations are deprecated and unused. Remove them. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7511.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/i2c/adv7511.c b/drivers/media/i2c/adv7511.

[PATCH v4 27/49] adv7604: Add missing include to linux/types.h

2014-04-17 Thread Laurent Pinchart
From: Lars-Peter Clausen The file is using u8 which is defined in linux/types.h. Signed-off-by: Lars-Peter Clausen Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- include/media/adv7604.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/media/adv7604.h b/include/med

[PATCH v4 33/49] adv7604: Remove subdev control handlers

2014-04-17 Thread Laurent Pinchart
Control operations are handled by the control framework and the subdev control handlers are never called directly. Remove them. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/media/i2c/a

[PATCH v4 26/49] v4l: Validate fields in the core code for subdev EDID ioctls

2014-04-17 Thread Laurent Pinchart
The subdev EDID ioctls receive a pad field that must reference an existing pad and an EDID field that must point to a buffer. Validate both fields in the core code instead of duplicating validation in all drivers. Signed-off-by: Laurent Pinchart Acked-by: Sakari Ailus Reviewed-by: Hans Verkuil

[PATCH v4 23/49] tvp7002: Remove deprecated video-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings and dv_timings_cap operations are deprecated and unused. Remove them. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil Acked-by: Lad, Prabhakar --- drivers/media/i2c/tvp7002.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/i2c/tvp7002.c b/dr

[PATCH v4 32/49] adv7604: Add adv7611 support

2014-04-17 Thread Laurent Pinchart
From: Lars-Peter Clausen This patch adds support for the Analog Devices ADV7611 HDMI receiver. The adv7611 is quite similar to the adv7604. It has only one instead of four HDMI inputs and no analog frontend though. Also some register bits have been shuffled around, but large parts of their regist

[PATCH v4 37/49] adv7604: Remove deprecated video-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings and dv_timings_cap operations are deprecated and unused. Remove them. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 35 +-- 1 file changed, 9 insertions(+), 26 deletions(-) diff --git a/driv

[PATCH v4 45/49] adv7604: Add DT support

2014-04-17 Thread Laurent Pinchart
Parse the device tree node to populate platform data. Only the ADV7611 is currently support with DT. Cc: devicet...@vger.kernel.org Cc: Sylwester Nawrocki Signed-off-by: Laurent Pinchart Acked-by: Hans Verkuil --- .../devicetree/bindings/media/i2c/adv7604.txt | 57 +++ drivers

[PATCH v4 38/49] v4l: subdev: Remove deprecated video-level DV timings operations

2014-04-17 Thread Laurent Pinchart
The video enum_dv_timings and dv_timings_cap operations are deprecated and unused. Remove them. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil Acked-by: Sakari Ailus Acked-by: Lad, Prabhakar --- include/media/v4l2-subdev.h | 4 1 file changed, 4 deletions(-) diff --git a/incl

[PATCH v4 35/49] adv7604: Make output format configurable through pad format operations

2014-04-17 Thread Laurent Pinchart
Replace the dummy video format operations by pad format operations that configure the output format. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil Tested-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 280 include/media/adv7604.h

[PATCH v4 43/49] adv7604: Support hot-plug detect control through a GPIO

2014-04-17 Thread Laurent Pinchart
Add support for optional GPIO-controlled HPD pins in addition to the ADV7604-specific hotplug notifier. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 37 + 1 file changed, 33 insertions(+), 4 deletions(-) diff --

[PATCH v4 34/49] adv7604: Add sink pads

2014-04-17 Thread Laurent Pinchart
The ADV7604 has sink pads for its HDMI and analog inputs. Report them. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 61 ++--- include/media/adv7604.h | 23 - 2 files changed, 46 insertions

[PATCH v4 42/49] adv7604: Sort headers alphabetically

2014-04-17 Thread Laurent Pinchart
This helps locating duplicates and inserting new headers. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 7a

[PATCH v4 41/49] adv7604: Replace *_and_or() functions with *_clr_set()

2014-04-17 Thread Laurent Pinchart
The *_and_or() functions take an 'and' bitmask to be ANDed with the register value before ORing it with th 'or' bitmask. As the functions are used to mask and set bits selectively, this requires the caller to invert the 'and' bitmask and is thus error prone. Replace those functions with a *_clr_set

[PATCH v4 44/49] adv7604: Specify the default input through platform data

2014-04-17 Thread Laurent Pinchart
And set input routing when initializing the device. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 7 +++ include/media/adv7604.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c

[PATCH v4 40/49] adv7604: Store I2C addresses and clients in arrays

2014-04-17 Thread Laurent Pinchart
This allows replacing duplicate code blocks by loops over the arrays. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 248 +--- include/media/adv7604.h | 30 +++--- 2 files changed, 88 insertions(+), 190 de

[PATCH v4 46/49] adv7604: Add LLC polarity configuration

2014-04-17 Thread Laurent Pinchart
Add an inv_llc_pol field to platform data to control the clock polarity. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil Reviewed-by: Sylwester Nawrocki --- drivers/media/i2c/adv7604.c | 3 ++- include/media/adv7604.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff -

[PATCH v4 36/49] adv7604: Add pad-level DV timings support

2014-04-17 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 47 + 1 file changed, 43 insertions(+), 4 deletions(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 59f7bf0..684b912 100644 ---

[PATCH v4 16/49] s5p-tv: mixer: Switch to pad-level DV operations

2014-04-17 Thread Laurent Pinchart
The video-level enum_dv_timings and dv_timings_cap operations are deprecated in favor of the pad-level versions. All subdev drivers implement the pad-level versions, switch to them. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/platform/s5p-tv/mixer_video.c | 8 +++

[PATCH v4 31/49] adv7604: Cache register contents when reading multiple bits

2014-04-17 Thread Laurent Pinchart
When extracting multiple bits from a single register read the register once and extract the bits on the read value. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 33 - 1 file changed, 20 insertions(+), 13 deletions(-)

[PATCH v4 49/49] adv7604: Mark adv7604_of_id table with __maybe_unused

2014-04-17 Thread Laurent Pinchart
The table is always declared but is unused when both CONFIG_OF and CONFIG_MODULES are not set. This results in a compile warning. Fix it by marking the table as __maybe_unused. The compiler will discard it if unused. Signed-off-by: Laurent Pinchart --- drivers/media/i2c/adv7604.c | 2 +- 1 file

[PATCH v4 00/49] ADV7611 support

2014-04-17 Thread Laurent Pinchart
Hello, This patch set implements support for the ADV7611 in the adv7604 driver. It also comes up with new features such as output format configuration through pad format operations, hot-plug detect control through GPIO and DT support. I believe I've addressed all comments received on v3 and picke

[PATCH v4 48/49] adv7604: Set HPD GPIO direction to output

2014-04-17 Thread Laurent Pinchart
The HPD GPIO is used as an output but its direction is never set. Fix it. Signed-off-by: Laurent Pinchart Acked-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 63

[PATCH v4 47/49] adv7604: Add endpoint properties to DT bindings

2014-04-17 Thread Laurent Pinchart
Add support for the hsync-active, vsync-active and pclk-sample properties to the DT bindings and control BT.656 mode implicitly. Cc: devicet...@vger.kernel.org Cc: Sylwester Nawrocki Signed-off-by: Laurent Pinchart Acked-by: Hans Verkuil --- .../devicetree/bindings/media/i2c/adv7604.txt |

[PATCH v4 30/49] adv7604: Add 16-bit read functions for CP and HDMI

2014-04-17 Thread Laurent Pinchart
Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 48 ++--- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index dd0a9a9..da256dd 100644 --

[PATCH v4 39/49] adv7604: Inline the to_sd function

2014-04-17 Thread Laurent Pinchart
This one line function is called in a single location. Inline it. Signed-off-by: Laurent Pinchart Reviewed-by: Hans Verkuil --- drivers/media/i2c/adv7604.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c inde

Re: [PATCH v2 46/48] adv7604: Add DT support

2014-04-17 Thread Sylwester Nawrocki
On 17/04/14 15:08, Laurent Pinchart wrote: static struct i2c_driver adv7604_driver = { > > > > > > .driver = { > > > > > > .owner = THIS_MODULE, > > > .name = "adv7604", > > > > > > +.of_match_table = of_ma

Re: [REVIEW PATCH 3/3] saa7134: convert to vb2

2014-04-17 Thread Mauro Carvalho Chehab
Em Thu, 17 Apr 2014 11:49:51 +0200 Hans Verkuil escreveu: > On 04/17/2014 04:17 AM, Mauro Carvalho Chehab wrote: > > Em Thu, 17 Apr 2014 00:33:55 +0200 > > Hans Verkuil escreveu: > > > >> On 04/17/2014 12:23 AM, Mauro Carvalho Chehab wrote: > >>> Em Mon, 10 Mar 2014 13:20:49 +0100 > >>> Hans Ve

Re: [PATCH v2 46/48] adv7604: Add DT support

2014-04-17 Thread Laurent Pinchart
Hi Sylwester, On Thursday 17 April 2014 14:36:32 Laurent Pinchart wrote: > On Thursday 17 April 2014 12:59:22 Sylwester Nawrocki wrote: > > On 11/03/14 00:15, Laurent Pinchart wrote: > > > Parse the device tree node to populate platform data. > > > > > > Cc: devicet...@vger.kernel.org > > > Signe

Re: [PATCH v2 48/48] adv7604: Add endpoint properties to DT bindings

2014-04-17 Thread Laurent Pinchart
Hi Ben, On Thursday 17 April 2014 14:00:15 Ben Dooks wrote: > On 17/04/14 13:45, Laurent Pinchart wrote: > > Hi Sylwester, > > > > On Thursday 17 April 2014 13:17:41 Sylwester Nawrocki wrote: > >> On 11/03/14 00:15, Laurent Pinchart wrote: > >>> Add support for the hsync-active, vsync-active and

Re: [PATCH v2 48/48] adv7604: Add endpoint properties to DT bindings

2014-04-17 Thread Ben Dooks
On 17/04/14 13:45, Laurent Pinchart wrote: Hi Sylwester, On Thursday 17 April 2014 13:17:41 Sylwester Nawrocki wrote: On 11/03/14 00:15, Laurent Pinchart wrote: Add support for the hsync-active, vsync-active and pclk-sample properties to the DT bindings and control BT.656 mode implicitly. Sig

Re: [PATCH v2 48/48] adv7604: Add endpoint properties to DT bindings

2014-04-17 Thread Laurent Pinchart
Hi Sylwester, On Thursday 17 April 2014 13:17:41 Sylwester Nawrocki wrote: > On 11/03/14 00:15, Laurent Pinchart wrote: > > Add support for the hsync-active, vsync-active and pclk-sample > > properties to the DT bindings and control BT.656 mode implicitly. > > > > Signed-off-by: Laurent Pinchart

Re: [PATCH v2 46/48] adv7604: Add DT support

2014-04-17 Thread Laurent Pinchart
Hi Sylwester, Thank you for the review. On Thursday 17 April 2014 12:59:22 Sylwester Nawrocki wrote: > On 11/03/14 00:15, Laurent Pinchart wrote: > > Parse the device tree node to populate platform data. > > > > Cc: devicet...@vger.kernel.org > > Signed-off-by: Laurent Pinchart > > --- > > > >

[PATCH v2] media: stk1160: Avoid stack-allocated buffer for control URBs

2014-04-17 Thread Ezequiel Garcia
Currently stk1160_read_reg() uses a stack-allocated char to get the read control value. This is wrong because usb_control_msg() requires a kmalloc-ed buffer. This commit fixes such issue by kmalloc'ating a 1-byte buffer to receive the read value. While here, let's remove the urb_buf array which w

Re: [PATCH v2 47/48] adv7604: Add LLC polarity configuration

2014-04-17 Thread Sylwester Nawrocki
On 11/03/14 00:15, Laurent Pinchart wrote: > Add an inv_llc_pol field to platform data to control the clock polarity. > > Signed-off-by: Laurent Pinchart Reviewed-by: Sylwester Nawrocki > --- > drivers/media/i2c/adv7604.c | 3 ++- > include/media/adv7604.h | 1 + > 2 files changed, 3 inse

Re: [PATCH v2 48/48] adv7604: Add endpoint properties to DT bindings

2014-04-17 Thread Sylwester Nawrocki
Hi Laurent, On 11/03/14 00:15, Laurent Pinchart wrote: > Add support for the hsync-active, vsync-active and pclk-sample > properties to the DT bindings and control BT.656 mode implicitly. > > Signed-off-by: Laurent Pinchart > --- > .../devicetree/bindings/media/i2c/adv7604.txt | 13 +++

Re: [PATCH v2 46/48] adv7604: Add DT support

2014-04-17 Thread Sylwester Nawrocki
Hi Laurent. On 11/03/14 00:15, Laurent Pinchart wrote: > Parse the device tree node to populate platform data. > > Cc: devicet...@vger.kernel.org > Signed-off-by: Laurent Pinchart > --- > .../devicetree/bindings/media/i2c/adv7604.txt | 56 + > drivers/media/i2c/adv7604.c

[REVIEWv2 PATCH 01/11] saa7134: fix regression with tvtime

2014-04-17 Thread Hans Verkuil
From: Hans Verkuil This solves this bug: https://bugzilla.kernel.org/show_bug.cgi?id=73361 The problem is that when you quit tvtime it calls STREAMOFF, but then it queues a bunch of buffers for no good reason before closing the file descriptor. In the past closing the fd would free the vb que

[REVIEWv2 PATCH 07/11] saa7134: rename empress_tsq to empress_vbq

2014-04-17 Thread Hans Verkuil
From: Hans Verkuil Create consistent _vbq suffix for videobuf_queue fields. Signed-off-by: Hans Verkuil --- drivers/media/pci/saa7134/saa7134-empress.c | 12 ++-- drivers/media/pci/saa7134/saa7134-video.c | 2 +- drivers/media/pci/saa7134/saa7134.h | 2 +- 3 files changed,

[REVIEWv2 PATCH 05/11] saa7134: store VBI hlen/vlen globally

2014-04-17 Thread Hans Verkuil
From: Hans Verkuil Don't calculate this for every buffer, store it globally instead. Signed-off-by: Hans Verkuil --- drivers/media/pci/saa7134/saa7134-vbi.c | 38 +++-- drivers/media/pci/saa7134/saa7134.h | 1 + 2 files changed, 18 insertions(+), 21 deletions(-

[REVIEWv2 PATCH 04/11] saa7134: swap ts_init_encoder and ts_reset_encoder

2014-04-17 Thread Hans Verkuil
From: Hans Verkuil This will make the next patch a bit easier to read. Signed-off-by: Hans Verkuil --- drivers/media/pci/saa7134/saa7134-empress.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/drivers/media/pci/saa7134/saa7134-empress.c b/drive

[REVIEWv2 PATCH 08/11] saa7134: rename vbi/cap to vbi_vbq/cap_vbq

2014-04-17 Thread Hans Verkuil
From: Hans Verkuil Use consistent _vbq suffix for videobuf_queue fields. Signed-off-by: Hans Verkuil --- drivers/media/pci/saa7134/saa7134-video.c | 52 +++ drivers/media/pci/saa7134/saa7134.h | 4 +-- 2 files changed, 28 insertions(+), 28 deletions(-) diff

[REVIEWv2 PATCH 02/11] saa7134: coding style cleanups.

2014-04-17 Thread Hans Verkuil
From: Hans Verkuil Just white space changes to reduce the noise in the following patches. Signed-off-by: Hans Verkuil --- drivers/media/pci/saa7134/saa7134-alsa.c| 13 drivers/media/pci/saa7134/saa7134-core.c| 47 - drivers/media/pci/saa7134/saa7134

[REVIEWv2 PATCH 09/11] saa7134: move saa7134_pgtable to saa7134_dmaqueue

2014-04-17 Thread Hans Verkuil
From: Hans Verkuil All dmaqueue's use saa7134_pgtable, so move it into struct saa7134_dmaqueue. The videobuf_queue priv_data field now points to the dmaqueue struct. Signed-off-by: Hans Verkuil --- drivers/media/pci/saa7134/saa7134-dvb.c | 2 +- drivers/media/pci/saa7134/saa7134-empress.c

[REVIEWv2 PATCH 03/11] saa7134: drop abuse of low-level videobuf functions

2014-04-17 Thread Hans Verkuil
From: Hans Verkuil saa7134-alsa used low-level videobuf functions to allocate and sync DMA buffers. Replace this with saa7134-specific code. These functions will not be available when we convert to vb2. Signed-off-by: Hans Verkuil --- drivers/media/pci/saa7134/saa7134-alsa.c | 95 +

[REVIEWv2 PATCH 06/11] saa7134: remove fmt from saa7134_buf

2014-04-17 Thread Hans Verkuil
From: Hans Verkuil This is already available from saa7134_dev. Signed-off-by: Hans Verkuil --- drivers/media/pci/saa7134/saa7134-core.c | 3 +-- drivers/media/pci/saa7134/saa7134-video.c | 24 +++- drivers/media/pci/saa7134/saa7134.h | 1 - 3 files changed, 12 inse

[REVIEWv2 PATCH 00/11] saa7134: vb2 conversion

2014-04-17 Thread Hans Verkuil
This patch series splits up the previous version into smaller pieces. The previous version is found here: http://www.spinics.net/lists/linux-media/msg74171.html Changes since v1: - Split up the code in smaller parts where possible. The actual conversion is still a lot of code. - Added the regr

[REVIEWv2 PATCH 11/11] saa7134: add saa7134_userptr module option to enable USERPTR

2014-04-17 Thread Hans Verkuil
From: Hans Verkuil If the saa7134 module is loaded with the saa7134_userptr set to 1, then USERPTR support is enabled. A check in buffer_prepare verifies that the pointer is page-aligned. Signed-off-by: Hans Verkuil --- drivers/media/pci/saa7134/saa7134-core.c | 4 drivers/media/pci/saa

Re: [PATCH] vb2: Update buffer state flags after __vb2_dqbuf

2014-04-17 Thread Hans Verkuil
On 04/16/2014 09:34 PM, Nicolas Dufresne wrote: > > Previously we where updating the buffer state using __fill_v4l2_buffer > before the state transition was completed through __vb2_dqbuf. This > would cause the V4L2_BUF_FLAG_DONE to be set, which would mean it still > queued. The spec says the dqb

Re: Hauppauge ImpactVCB-e 01385

2014-04-17 Thread Hans Verkuil
On 04/17/2014 11:18 AM, Steve Cookson wrote: > > On 16/04/14 19:15, Steve Cookson wrote: >> For no good reason AFAICT the initial resolution is set to 320x240. But >>> you can just set it to 640x480 (or more likely, 720x480 for NTSC or >>> 720x576 for PAL): >>> >>> v4l2-ctl -v width=640,height=480

  1   2   >