Re: [PATCH 10/15] media: davinci: vpbe: add support for VIDIOC_CREATE_BUFS

2014-10-22 Thread Hans Verkuil
Hi Prabhakar, This patch series looks good, except for this one. If you add create_bufs support, then you should also update queue_setup. If the fmt argument to queue_setup is non-NULL, then check that the fmt.pix.sizeimage field is = the current format's sizeimage. If not, return -EINVAL.

Re: [PATCH 3/5] media: videobuf2-core.h: add a helper to get status of start_streaming()

2014-09-08 Thread Hans Verkuil
, Prabhakar prabhakar.cse...@gmail.com Cc: Pawel Osciak pa...@osciak.com Cc: Marek Szyprowski m.szyprow...@samsung.com Cc: Kyungmin Park kyungmin.p...@samsung.com Cc: Hans Verkuil hans.verk...@cisco.com --- include/media/videobuf2-core.h | 9 + 1 file changed, 9 insertions(+) diff --git

Re: [patch v2] [media] davinci: vpif: missing unlocks on error

2014-06-16 Thread Hans Verkuil
Prabhakar, Are you going to make a pull request for this, or shall I take it? Should it be applied to 3.16? Regards, Hans On 06/13/2014 08:13 PM, Prabhakar Lad wrote: On Thu, Jun 12, 2014 at 8:01 AM, Dan Carpenter dan.carpen...@oracle.com wrote: We recently changed some locking

Re: [PATCH v5 00/49] DaVinci: vpif: upgrade with v4l helpers and v4l compliance fixes

2014-05-23 Thread Hans Verkuil
Hi Prabhakar, Thanks for this patch series, it looks good to me and I'll make a pull request for this. I did find a few issues, but they are all pre-existing problems, so they can be fixed in follow-up patches. I'll comment on those in the relevant patches. Since display and capture are so

Re: [PATCH v5 04/49] media: davinci: vpif_display: release buffers in case start_streaming() call back fails

2014-05-23 Thread Hans Verkuil
On 05/16/2014 03:33 PM, Lad, Prabhakar wrote: From: Lad, Prabhakar prabhakar.cse...@gmail.com this patch adds support to release the buffer by calling vb2_buffer_done(), with state marked as VB2_BUF_STATE_QUEUED if start_streaming() call back fails. Signed-off-by: Lad, Prabhakar

Re: [PATCH v5 21/49] media: davinci: vpif_display: use SIMPLE_DEV_PM_OPS

2014-05-23 Thread Hans Verkuil
On 05/16/2014 03:33 PM, Lad, Prabhakar wrote: From: Lad, Prabhakar prabhakar.cse...@gmail.com this patch uses SIMPLE_DEV_PM_OPS, and drops unneeded members from io_usrs, usrs and makes use of vb2 helepers instead. Signed-off-by: Lad, Prabhakar prabhakar.cse...@gmail.com ---

Re: [PATCH v5 00/49] DaVinci: vpif: upgrade with v4l helpers and v4l compliance fixes

2014-05-23 Thread Hans Verkuil
On 05/16/2014 03:33 PM, Lad, Prabhakar wrote: From: Lad, Prabhakar prabhakar.cse...@gmail.com Hi, This patch series upgrades the vpif capture display driver with the all the helpers provided by v4l, this makes the driver much simpler and cleaner. This also includes few checkpatch

Re: [PATCH v4 1/2] media: davinci: vpif capture: upgrade the driver with v4l offerings

2014-05-14 Thread Hans Verkuil
On 05/14/2014 07:28 PM, Prabhakar Lad wrote: Hi Hans, Thanks for the review. On Mon, May 12, 2014 at 3:20 PM, Hans Verkuil hverk...@xs4all.nl wrote: Hi Prabhakar, Thanks for the patch, but I have a few comments... On 05/12/2014 10:58 AM, Lad, Prabhakar wrote: Buffer ioctls

Re: [PATCH v2 1/2] media: davinci: vpif capture: upgrade the driver with v4l offerings

2014-04-04 Thread Hans Verkuil
Hi Prabhakar, Some review comments below. I'm going through the code quite carefully since this very nice cleanup is a good opportunity to check for correct behavior in this driver. On 04/04/2014 07:17 AM, Lad, Prabhakar wrote: From: Lad, Prabhakar prabhakar.cse...@gmail.com This patch

Re: [PATCH 1/2] media: davinci: vpif capture: upgrade the driver with v4l offerings

2014-04-01 Thread Hans Verkuil
On 03/31/2014 07:24 PM, Prabhakar Lad wrote: Hi Hans, On Mon, Mar 31, 2014 at 8:34 PM, Hans Verkuil hverk...@xs4all.nl wrote: Hi Prabhakar, This looks really nice! Writing a video driver has become really easy with almost 90% of work done by v4l core itself :) That was the idea! I'll

Re: [PATCH 1/2] media: davinci: vpif capture: upgrade the driver with v4l offerings

2014-03-31 Thread Hans Verkuil
Hi Prabhakar, This looks really nice! I'll do a full review on Friday, but in the meantime can you post the output of 'v4l2-compliance -s' using the latest v4l2-compliance version? I've made some commits today, so you need to do a git pull of v4l-utils.git. I also have a small comment below:

Re: [PATCH] media: davinci: vpbe: fix build warning

2014-03-14 Thread Hans Verkuil
variable 'vpbe_dev' Signed-off-by: Lad, Prabhakar prabhakar.cse...@gmail.com Acked-by: Hans Verkuil hans.verk...@cisco.com Thanks! Hans --- drivers/media/platform/davinci/vpbe_display.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/platform/davinci

Re: [PATCH] media: davinci_vpfe: fix build error

2013-12-20 Thread Hans Verkuil
I just made a patch myself that I added to the pull request I just posted. You didn't CC me or CC the linux-media list when you posted your patch, so I never saw it. Regards, Hans On 12/20/2013 01:47 PM, Prabhakar Lad wrote: Hi Hans, On Tue, Dec 17, 2013 at 8:55 PM, Lad, Prabhakar

Re: [PATCH] media: davinci_vpfe: fix build error

2013-12-20 Thread Hans Verkuil
Hi Prabhakar, On 12/20/2013 02:02 PM, Prabhakar Lad wrote: Hi Hans, On Fri, Dec 20, 2013 at 6:23 PM, Hans Verkuil hverk...@xs4all.nl wrote: I just made a patch myself that I added to the pull request I just posted. You didn't CC me or CC the linux-media list when you posted your patch, so

Re: [PATCH 0/6] media: i2c: ths7303 feature enhancement and cleanup

2013-05-23 Thread Hans Verkuil
On Wed 15 May 2013 13:57:16 Lad Prabhakar wrote: From: Lad, Prabhakar prabhakar.cse...@gmail.com This patch series enables the ths7303 driver for asynchronous probing, OF support with some cleanup patches. Lad, Prabhakar (6): media: i2c: ths7303: remove init_enable option from pdata

Re: [PATCH] [media] vpif_display: fix error return code in vpif_probe()

2013-05-23 Thread Hans Verkuil
On Thu 23 May 2013 11:25:25 Prabhakar Lad wrote: Hi Hans, On Mon, May 13, 2013 at 11:34 AM, Prabhakar Lad prabhakar.cse...@gmail.com wrote: Hi Wei, Thanks for the patch. On Mon, May 13, 2013 at 11:27 AM, Wei Yongjun weiyj...@gmail.com wrote: From: Wei Yongjun

Re: [PATCH 3/5] media: i2c: tvp7002: rearrange header inclusion alphabetically

2013-05-23 Thread Hans Verkuil
I can't merge as long as the async code isn't in yet. Regards, Hans Signed-off-by: Lad, Prabhakar prabhakar.cse...@gmail.com Cc: Hans Verkuil hans.verk...@cisco.com Cc: Laurent Pinchart laurent.pinch...@ideasonboard.com Cc: Mauro Carvalho Chehab mche...@redhat.com Cc: Guennadi

Re: [PATCH v3] media: i2c: tvp514x: add OF support

2013-05-23 Thread Hans Verkuil
: Hans Verkuil hans.verk...@cisco.com Cc: Laurent Pinchart laurent.pinch...@ideasonboard.com Cc: Mauro Carvalho Chehab mche...@redhat.com Cc: Guennadi Liakhovetski g.liakhovet...@gmx.de Cc: Sylwester Nawrocki s.nawro...@samsung.com Cc: Sakari Ailus sakari.ai...@iki.fi Cc: Grant Likely

Re: [v3] media: davinci: kconfig: fix incorrect selects

2013-05-23 Thread Hans Verkuil
On Mon 13 May 2013 12:41:26 Prabhakar Lad wrote: Hi Paul, On Mon, May 13, 2013 at 3:35 PM, Paul Bolle pebo...@tiscali.nl wrote: Prabhakar, On Mon, 2013-05-13 at 15:27 +0530, Prabhakar Lad wrote: Good catch! the dependency can be dropped now. Great. Are you planning to post a

Re: [PATCH 0/4] media: remove duplicate check for EPERM

2013-05-22 Thread Hans Verkuil
On Wed May 22 2013 07:52:03 Prabhakar Lad wrote: Hi All, On Tue, May 14, 2013 at 11:15 AM, Lad Prabhakar prabhakar.cse...@gmail.com wrote: From: Lad, Prabhakar prabhakar.cse...@gmail.com This patch series cleanups the check for EPERM in dbg_g/s_register and vidioc_g/s_register.

Re: [PATCH] davinci: vpfe: fix error path in probe

2013-05-10 Thread Hans Verkuil
On Fri May 10 2013 06:48:38 Lad Prabhakar wrote: From: Lad, Prabhakar prabhakar.cse...@gmail.com The error path on failure was calling mutex_unlock(), but there was no actuall call before for mutex_lock(). This patch fixes this issue by pointing it to proper go label. Reported-by: Jose

Re: [PATCH v2] davinci: vpif: add pm_runtime support

2013-04-02 Thread Hans Verkuil
On Mon 1 April 2013 08:36:50 Prabhakar lad wrote: From: Lad, Prabhakar prabhakar.cse...@gmail.com Add pm_runtime support to the TI Davinci VPIF driver. Signed-off-by: Lad, Prabhakar prabhakar.cse...@gmail.com Cc: Mauro Carvalho Chehab mche...@redhat.com Cc: Hans Verkuil hans.verk

Re: [PATCH v3] davinci: vpif: add pm_runtime support

2013-04-02 Thread Hans Verkuil
On Tue 2 April 2013 15:41:30 Prabhakar lad wrote: From: Lad, Prabhakar prabhakar.cse...@gmail.com Add pm_runtime support to the TI Davinci VPIF driver. Signed-off-by: Lad, Prabhakar prabhakar.cse...@gmail.com Cc: Mauro Carvalho Chehab mche...@redhat.com Cc: Hans Verkuil hans.verk

[GIT PULL FOR v3.10] tvp7002/davinci/blackfin legacy cleanups

2013-03-08 Thread Hans Verkuil
: blackfin: replace V4L2_IN/OUT_CAP_CUSTOM_TIMINGS by DV_TIMINGS (2013-03-08 09:55:51 +0100) Hans Verkuil (12): tvp7002: replace 'preset' by 'timings' in various structs/variables. tvp7002: use dv_timings structs instead

[REVIEW PATCH 04/11] davinci_vpfe: fix copy-paste errors in several comments.

2013-03-04 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This removes some incorrect dv_preset references left over from copy-and-paste errors. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Acked-by: Lad, Prabhakar prabhakar@ti.com --- drivers/staging/media/davinci_vpfe/vpfe_video.c | 12

[REVIEW PATCH 00/11] davinci/blackfin DV_PRESET/current_norm removal

2013-03-04 Thread Hans Verkuil
Hi all, This patch series is for the most part identical to the RFC patch series posted earlier: http://www.mail-archive.com/linux-media@vger.kernel.org/msg58762.html The main changes are: - dropped the Samsung-related patches, those will go through a separate patch series. - added patches

[REVIEW PATCH 02/11] tvp7002: use dv_timings structs instead of presets.

2013-03-04 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com In the functions tvp7002_mbus_fmt(), tvp7002_log_status and tvp7002_probe() we should use the dv_timings data structures instead of dv_preset data structures and functions. This is the second step towards removing the deprecated preset support

[REVIEW PATCH 03/11] tvp7002: remove dv_preset support.

2013-03-04 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Finally remove the dv_preset support from this driver. Note that dv_preset support was already removed from any bridge drivers that use this i2c driver, so the dv_preset ops were no longer called and can be removed safely. Signed-off-by: Hans Verkuil

[REVIEW PATCH 08/11] davinci/vpbe_display: remove deprecated current_norm.

2013-03-04 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Since vpbe_display already provides a g_std op setting current_norm didn't do anything. Remove that code. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci/vpbe_display.c | 10 +- 1 file changed, 1 insertion

[REVIEW PATCH 05/11] davinci: remove VPBE_ENC_DV_PRESET and rename VPBE_ENC_CUSTOM_TIMINGS

2013-03-04 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Remove VPBE_ENC_DV_PRESET (the DV_PRESET API is no longer supported) and VPBE_ENC_CUSTOM_TIMINGS is renamed to VPBE_ENC_DV_TIMINGS since the old CUSTOM_TIMINGS name is deprecated in favor of DV_TIMINGS. Signed-off-by: Hans Verkuil hans.verk...@cisco.com

[REVIEW PATCH 11/11] blackfin: replace V4L2_IN/OUT_CAP_CUSTOM_TIMINGS by DV_TIMINGS

2013-03-04 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The use of V4L2_IN/OUT_CAP_CUSTOM_TIMINGS is obsolete, use DV_TIMINGS instead. Note that V4L2_IN/OUT_CAP_CUSTOM_TIMINGS is just a #define for V4L2_IN/OUT_CAP_DV_TIMINGS. At some point in the future these CUSTOM_TIMINGS defines might be removed. Signed

[REVIEW PATCH 01/11] tvp7002: replace 'preset' by 'timings' in various structs/variables.

2013-03-04 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This is the first step towards removing the deprecated preset support of this driver. Signed-off-by: Hans Verkuil hans.verk...@cisco.com Acked-by: Lad, Prabhakar prabhakar@ti.com --- drivers/media/i2c/tvp7002.c | 90

[REVIEW PATCH 07/11] davinci/vpfe_capture: convert to the control framework.

2013-03-04 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci/vpfe_capture.c | 47 - 1 file changed, 7 insertions(+), 40 deletions(-) diff --git a/drivers/media/platform/davinci/vpfe_capture.c b/drivers

[REVIEW PATCH 09/11] davinci/vpfe_capture: remove current_norm

2013-03-04 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Since vpfe_capture already provided a g_std op setting current_norm does not actually do anything. Remove it. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci/vpfe_capture.c |1 - 1 file changed, 1 deletion

[REVIEW PATCH 06/11] davinci: replace V4L2_OUT_CAP_CUSTOM_TIMINGS by V4L2_OUT_CAP_DV_TIMINGS

2013-03-04 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The use of V4L2_OUT_CAP_CUSTOM_TIMINGS is deprecated, use DV_TIMINGS instead. Note that V4L2_OUT_CAP_CUSTOM_TIMINGS is just a #define for V4L2_OUT_CAP_DV_TIMINGS. At some point in the future these CUSTOM_TIMINGS defines might be removed. Signed-off

Re: [REVIEW PATCH 10/11] davinci/dm644x_ccdc: fix compiler warning

2013-03-04 Thread Hans Verkuil
On Mon March 4 2013 10:29:26 Prabhakar Lad wrote: Hi Hans, On Mon, Mar 4, 2013 at 2:35 PM, Hans Verkuil hverk...@xs4all.nl wrote: From: Hans Verkuil hans.verk...@cisco.com drivers/media/platform/davinci/dm644x_ccdc.c: In function ‘validate_ccdc_param’: drivers/media/platform/davinci

[REVIEW PATCH 2/2] davinci: more gama - gamma typo fixes.

2013-03-04 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci/dm355_ccdc.c | 10 +- drivers/media/platform/davinci/dm355_ccdc_regs.h |2 +- drivers/media/platform/davinci/isif.c|2 +- drivers

[REVIEW PATCH 0/2] davinci: fix compiler warning

2013-03-04 Thread Hans Verkuil
Hi all, This is a second try at fixing the dm644x_ccdc compiler warning. In addition it also fixes more 'gama' misspellings. Prabhakar, can you look at this? I think this is a good solution for this compiler warning. Regards, Hans ___

[REVIEW PATCH 1/2] davinci/dm644x_ccdc: fix compiler warning

2013-03-04 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com drivers/media/platform/davinci/dm644x_ccdc.c: In function ‘validate_ccdc_param’: drivers/media/platform/davinci/dm644x_ccdc.c:233:32: warning: comparison between ‘enum ccdc_gama_width’ and ‘enum ccdc_data_size’ [-Wenum-compare] It took a bit of work

Re: [RFC PATCH 06/18] davinci: replace V4L2_OUT_CAP_CUSTOM_TIMINGS by V4L2_OUT_CAP_DV_TIMINGS

2013-02-16 Thread Hans Verkuil
On Sat February 16 2013 20:23:39 Sekhar Nori wrote: On 2/16/2013 6:28 PM, Prabhakar Lad wrote: Cc'ed Sekhar, DLOS, LAK. Sekhar Can you Ack this patch ? Or maybe you can take this patch through your tree ? I can take the patch, but I can only send for v3.10 since for v3.9 ARM tree is

Re: [PATCH v2] media: ths7353: add support for ths7353 video amplifier

2013-02-06 Thread Hans Verkuil
, Prabhakar prabhakar@ti.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Martin Bugge marbu...@cisco.com Cc: Chaithrika U S chaithr...@ti.com --- Changes for v2: 1: Merged the driver in existing ths7303 driver. 2: Merged the patch which adds the chip indent in same

Re: [PATCH v5 2/3] sta2x11_vip: convert to videobuf2 and control framework

2013-01-10 Thread Hans Verkuil
On Thu 10 January 2013 13:57:19 Federico Vaga wrote: @Hans: here the output of v4l2-compliance that you request me for the v4 version. This is done on the v5 version where I applied your suggestion. I have 1 warning but I don't understand where is the problem To see the warning you need to

Re: [PATCH RFC 1/3] davinci: vpif: capture: add V4L2-async support

2013-01-09 Thread Hans Verkuil
Liakhovetski g.liakhovet...@gmx.de Cc: Hans Verkuil hans.verk...@cisco.com Cc: Laurent Pinchart laurent.pinch...@ideasonboard.com Cc: Sakari Ailus sakari.ai...@iki.fi Cc: Mauro Carvalho Chehab mche...@redhat.com --- drivers/media/platform/davinci/vpif_capture.c | 171

Re: [PATCH v3 0/9] Media Controller capture driver for DM365

2012-11-30 Thread Hans Verkuil
. For the whole set --- granted that the TODO item to add support for regular V4L2 applications through user space libraries is added: Acked-by: Sakari Ailus sakari.ai...@iki.fi Ditto for the TODO item. Acked-by: Hans Verkuil hans.verk...@cisco.com ___ Davinci

Re: [PATCH v3 0/9] Media Controller capture driver for DM365

2012-11-28 Thread Hans Verkuil
On Wed 28 November 2012 12:45:37 Dan Carpenter wrote: I wish people wouldn't submit big patches right before the merge window opens... :/ It's better to let it sit in linux-next for a couple weeks so people can mess with it a bit. It's been under review for quite some time now, and the main

Re: [PATCH v3 0/9] Media Controller capture driver for DM365

2012-11-28 Thread Hans Verkuil
On Wed November 28 2012 18:22:48 Greg Kroah-Hartman wrote: On Wed, Nov 28, 2012 at 10:18:02AM -0200, Mauro Carvalho Chehab wrote: Em Wed, 28 Nov 2012 12:56:10 +0100 Hans Verkuil hansv...@cisco.com escreveu: On Wed 28 November 2012 12:45:37 Dan Carpenter wrote: I wish people wouldn't

Re: [PATCH v3 0/9] Media Controller capture driver for DM365

2012-11-28 Thread Hans Verkuil
On Thu November 29 2012 00:47:41 Sylwester Nawrocki wrote: On 11/28/2012 10:29 PM, Dan Carpenter wrote: On Wed, Nov 28, 2012 at 08:30:04PM +0100, Sylwester Nawrocki wrote: On 11/28/2012 01:22 PM, Dan Carpenter wrote: In the end this is just a driver, and I don't especially care. But it's

Re: [PATCH v3 0/9] Media Controller capture driver for DM365

2012-11-28 Thread Hans Verkuil
On Wed November 28 2012 20:30:21 Greg Kroah-Hartman wrote: On Wed, Nov 28, 2012 at 08:18:20PM +0100, Hans Verkuil wrote: On Wed November 28 2012 18:22:48 Greg Kroah-Hartman wrote: On Wed, Nov 28, 2012 at 10:18:02AM -0200, Mauro Carvalho Chehab wrote: Em Wed, 28 Nov 2012 12:56:10 +0100

[RFCv1 PATCH 2/2] vpif_display: protect dma_queue by a spin_lock.

2012-11-16 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The dma_queue list is accessed by both the interrupt handler and by normal code. It needs to be protected by a lock to prevent possible list corruption. Corruption has been observed in 'real-life' conditions. Adding this lock made it go away. Signed-off

[RFCv1 PATCH 0/2] Two vpif fixes protecting the dma_queue by a lock

2012-11-16 Thread Hans Verkuil
Hi Prabhakar, These two patches add protection to the dma_queue. We discovered that not locking caused race conditions, which caused the display DMA to jam. After adding the lock we never saw this again. It makes sense as well since the interrupt routine and normal code both manipulated the same

[RFCv1 PATCH 1/2] vpif_capture: protect dma_queue by a spin_lock.

2012-11-16 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The dma_queue list is accessed by both the interrupt handler and by normal code. It needs to be protected by a lock to prevent possible list corruption. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci/vpif_capture.c

Re: [PATCH] media: davinci: vpif: Add return code check at vb2_queue_init()

2012-10-04 Thread Hans Verkuil
(). Signed-off-by: Lad, Prabhakar prabhakar@ti.com Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com Cc: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci/vpif_capture.c |8 ++-- drivers/media/platform/davinci/vpif_display.c |8 ++-- 2 files changed

Re: [PATCH v2] media: davinci: vpif: set device capabilities

2012-10-04 Thread Hans Verkuil
Cc: Hans Verkuil hans.verk...@cisco.com --- Changes for v2: 1: Change the bus_info and driver to proper values, pointed by Hans. drivers/media/platform/davinci/vpif_capture.c |9 ++--- drivers/media/platform/davinci/vpif_display.c |9 ++--- 2 files changed, 12

Re: [PATCH v2] media: davinci: vpif: Add return code check at vb2_queue_init()

2012-10-04 Thread Hans Verkuil
Hadli manjunath.ha...@ti.com Cc: Hans Verkuil hans.verk...@cisco.com Acked-by: Hans Verkuil hans.verk...@cisco.com Regards, Hans --- Changes for v2: 1: Added vb2_dma_contig_cleanup_ctx() on failure of vb2_queue_init() to avoid memory leak, pointed by Hans. drivers/media

Re: [PATCH v3] media: davinci: vpif: set device capabilities

2012-10-04 Thread Hans Verkuil
: Hans Verkuil hans.verk...@cisco.com Acked-by: Hans Verkuil hans.verk...@cisco.com Regards, Hans --- Changes for v3: 1: Removed READWRITE flag for device_caps pointed by Hans. Changes for v2: 1: Change the bus_info and driver to proper values, pointed by Hans. drivers

Re: [PATCH] media: davinci: vpfe: fix build error

2012-10-03 Thread Hans Verkuil
*' make[4]: *** [drivers/media/platform/davinci/vpfe_capture.o] Error 1 Acked-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Lad, Prabhakar prabhakar@ti.com Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com Cc: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform

Re: [PATCH] media: davinci: vpbe: fix build warning

2012-10-03 Thread Hans Verkuil
': vpbe_display.c:640: warning: initialization discards qualifiers from pointer target type This patch fixes the above build warning. Acked-by: Hans Verkuil hans.verk...@cisco.com Prabhaker, can you make a pull request for this patch, the CUSTOM_TIMINGS rename patch and the earlier vpfe: fix build

[RFCv1 PATCH 02/11] vpif_display: remove unused data structures.

2012-09-29 Thread Hans Verkuil
Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/video/davinci/vpif_display.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/media/video/davinci/vpif_display.h b/drivers/media/video/davinci/vpif_display.h index 1263de6..ad22c70 100644

[RFCv1 PATCH 00/11] davinci: clean up input/output/subdev config

2012-09-29 Thread Hans Verkuil
Hi Prabhakar, This patch series does some driver cleanup and reorganizes the config structs that are used to set up subdevices. The current driver associates an input or output with a subdev, but multiple inputs may use the same subdev and some inputs may not use a subdev at all (this is the

[RFCv1 PATCH 03/11] vpif_capture: move input_idx to channel_obj.

2012-09-29 Thread Hans Verkuil
input_idx does not belong to video_obj. Move it where it belongs. Also remove the bogus code in the open() function that suddenly changes the input to 0 for no reason. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/video/davinci/vpif_capture.c |9 ++--- drivers

[RFCv1 PATCH 01/11] vpif_capture: remove unused data structure.

2012-09-29 Thread Hans Verkuil
Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/video/davinci/vpif_capture.h |6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/media/video/davinci/vpif_capture.h b/drivers/media/video/davinci/vpif_capture.h index aa6d3da..de19c80 100644

[RFCv1 PATCH 07/11] vpif_capture: first init subdevs, then register device nodes.

2012-09-29 Thread Hans Verkuil
When device nodes are registered they must be ready for use immediately, so make sure the subdevs are loaded first. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/video/davinci/vpif_capture.c | 55 1 file changed, 24 insertions(+), 31

[RFCv1 PATCH 04/11] vpif_display: move output_id to channel_obj.

2012-09-29 Thread Hans Verkuil
The output index does not belong to video_obj, it belongs to channel_obj. Also rename to output_idx to be consistent with the input_idx name used in vpif_capture. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/video/davinci/vpif_display.c | 17 ++--- drivers

[RFCv1 PATCH 10/11] vpif_display: use a v4l2_subdev pointer to call a subdev.

2012-09-29 Thread Hans Verkuil
This makes it easier to have outputs without subdevs. This needs more work. The way the outputs are configured should be identical to how inputs are configured. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/video/davinci/vpif_display.c | 17 + drivers

[RFCv1 PATCH 05/11] vpif_capture: remove unnecessary can_route flag.

2012-09-29 Thread Hans Verkuil
Calling a subdev op that isn't implemented will just return -ENOIOCTLCMD No need to have a flag for that. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- arch/arm/mach-davinci/board-da850-evm.c|2 -- arch/arm/mach-davinci/board-dm646x-evm.c |2 -- drivers/media/video/davinci

[RFCv1 PATCH 06/11] vpif_capture: move routing info from subdev to input.

2012-09-29 Thread Hans Verkuil
Routing information is a property of the input, not of the subdev. One subdev may provide multiple inputs, each with its own routing information. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- arch/arm/mach-davinci/board-da850-evm.c|8 arch/arm/mach-davinci/board-dm646x

[RFCv1 PATCH 11/11] davinci: move struct vpif_interface to chan_cfg.

2012-09-29 Thread Hans Verkuil
struct vpif_interface is channel specific, not subdev specific. Move it to the channel config. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- arch/arm/mach-davinci/board-da850-evm.c| 24 arch/arm/mach-davinci/board-dm646x-evm.c | 24

[RFCv1 PATCH 08/11] vpif_display: first init subdevs, then register device nodes.

2012-09-29 Thread Hans Verkuil
When device nodes are registered they must be ready for use immediately, so make sure the subdevs are loaded first. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/video/davinci/vpif_display.c | 59 ++-- 1 file changed, 29 insertions(+), 30

[RFCv1 PATCH 09/11] vpif_capture: separate subdev from input.

2012-09-29 Thread Hans Verkuil
is set to the fist input. Currently missing is support for associating multiple subdevs with an input. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/video/davinci/vpif_capture.c | 239 +--- drivers/media/video/davinci/vpif_capture.h |6 +- 2

Re: [PATCH 1/2] dm644x: replace the obsolete preset API by the timings API.

2012-09-28 Thread Hans Verkuil
Hi Prabhakar! On Fri September 28 2012 14:44:59 Prabhakar Lad wrote: Hi Kevin, On Wed, Aug 8, 2012 at 6:00 PM, Prabhakar Lad prabhakar@ti.com wrote: From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Lad, Prabhakar prabhakar

Re: [PATCH v2] media: davinci: vpif: display: separate out subdev from output

2012-09-25 Thread Hans Verkuil
On Tue September 25 2012 07:38:12 Prabhakar Lad wrote: Hi Hans, On Mon, Sep 24, 2012 at 7:02 PM, Hans Verkuil hverk...@xs4all.nl wrote: On Mon September 24 2012 15:21:44 Prabhakar Lad wrote: Hi Hans, On Mon, Sep 24, 2012 at 5:20 PM, Hans Verkuil hverk...@xs4all.nl wrote: On Mon

Re: [PATCH v3] media: davinci: vpif: display: separate out subdev from output

2012-09-25 Thread Hans Verkuil
and has routing information. An output does not have to have a subdev. The initial output for each channel is set to the fist output. Currently missing is support for associating multiple subdevs with an output. Acked-by: Hans Verkuil hans.verk...@cisco.com Looks good! Regards

Re: [PATCH] media: davinci: vpif: set device capabilities

2012-09-25 Thread Hans Verkuil
On Tue 25 September 2012 13:16:24 Prabhakar wrote: From: Lad, Prabhakar prabhakar@ti.com Signed-off-by: Lad, Prabhakar prabhakar@ti.com Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com Cc: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci/vpif_capture.c

Re: [PATCH] media: davinci: vpif: set device capabilities

2012-09-25 Thread Hans Verkuil
On Tue 25 September 2012 15:26:11 Prabhakar Lad wrote: Hi Hans/Laurent On Tue, Sep 25, 2012 at 5:24 PM, Hans Verkuil hansv...@cisco.com wrote: On Tue 25 September 2012 13:49:16 Laurent Pinchart wrote: Hi Hans, On Tuesday 25 September 2012 13:43:36 Hans Verkuil wrote: On Tue 25

Re: [PATCH] media: davinci: vpif: display: separate out subdev from output

2012-09-24 Thread Hans Verkuil
Hadli manjunath.ha...@ti.com Cc: Hans Verkuil hans.verk...@cisco.com --- This patch is dependent on the patch series from Hans (http://www.mail-archive.com/linux-media@vger.kernel.org/msg52270.html) arch/arm/mach-davinci/board-da850-evm.c | 29 +- arch/arm/mach-davinci/board

Re: [PATCH v2] media: davinci: vpif: display: separate out subdev from output

2012-09-24 Thread Hans Verkuil
Hadli manjunath.ha...@ti.com Cc: Hans Verkuil hans.verk...@cisco.com Cc: Sekhar Nori nsek...@ti.com Acked-by: Hans Verkuil hans.verk...@cisco.com Regards, Hans --- This patch is dependent on the patch series from Hans (http://www.mail-archive.com/linux-media@vger.kernel.org/msg52270

Re: [PATCH v2] media: davinci: vpif: display: separate out subdev from output

2012-09-24 Thread Hans Verkuil
On Mon September 24 2012 12:59:11 Hans Verkuil wrote: On Mon September 24 2012 12:44:11 Prabhakar wrote: From: Lad, Prabhakar prabhakar@ti.com vpif_display relied on a 1-1 mapping of output and subdev. This is not necessarily the case. Separate the two. So there is a list of subdevs

Re: [PATCH v2] media: davinci: vpif: display: separate out subdev from output

2012-09-24 Thread Hans Verkuil
On Mon September 24 2012 13:50:00 Hans Verkuil wrote: On Mon September 24 2012 12:59:11 Hans Verkuil wrote: On Mon September 24 2012 12:44:11 Prabhakar wrote: From: Lad, Prabhakar prabhakar@ti.com vpif_display relied on a 1-1 mapping of output and subdev

Re: [PATCH v5] media: v4l2-ctrl: add a helper function to add standard control with driver specific menu

2012-09-24 Thread Hans Verkuil
On Mon September 24 2012 14:53:40 Prabhakar wrote: From: Lad, Prabhakar prabhakar@ti.com Add helper function v4l2_ctrl_new_std_menu_items(), which adds a standard menu control, with driver specific menu. Acked-by: Hans Verkuil hans.verk...@cisco.com Regards, Hans Signed-off

Re: [PATCH v2] media: davinci: vpif: display: separate out subdev from output

2012-09-24 Thread Hans Verkuil
On Mon September 24 2012 15:21:44 Prabhakar Lad wrote: Hi Hans, On Mon, Sep 24, 2012 at 5:20 PM, Hans Verkuil hverk...@xs4all.nl wrote: On Mon September 24 2012 12:59:11 Hans Verkuil wrote: On Mon September 24 2012 12:44:11 Prabhakar wrote: From: Lad, Prabhakar prabhakar@ti.com

Re: [PATCH v3] media: v4l2-ctrls: add control for test pattern

2012-09-24 Thread Hans Verkuil
manjunath.ha...@ti.com Acked-by: Sakari Ailus sakari.ai...@iki.fi Cc: Hans Verkuil hans.verk...@cisco.com Cc: Laurent Pinchart laurent.pinch...@ideasonboard.com Cc: Mauro Carvalho Chehab mche...@infradead.org Cc: Sylwester Nawrocki s.nawro...@samsung.com Cc: Hans de Goede hdego...@redhat.com Cc

[RFCv2 PATCH 00/14] davinci: clean up input/output/subdev config

2012-09-20 Thread Hans Verkuil
Hi Prabhakar, This is the second patch series for a vpif driver cleanup. The first version can be found here: http://www.mail-archive.com/linux-media@vger.kernel.org/msg52136.html Changes since RFCv1: - rebased to a newer git repo:

[RFCv2 PATCH 14/14] tvp514x: s_routing should just change routing, not try to detect a signal.

2012-09-20 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The s_routing function should not try to detect a signal. It is a really bad idea to try to detect a valid video signal and return an error if you can't. Changing input should do just that and nothing more. Also don't power on the ADCs on s_routing

[RFCv2 PATCH 01/14] vpif_capture: remove unused data structure.

2012-09-20 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci/vpif_capture.h |6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_capture.h b/drivers/media/platform

[RFCv2 PATCH 04/14] vpif_display: move output_id to channel_obj.

2012-09-20 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The output index does not belong to video_obj, it belongs to channel_obj. Also rename to output_idx to be consistent with the input_idx name used in vpif_capture. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci

[RFCv2 PATCH 07/14] vpif_capture: first init subdevs, then register device nodes.

2012-09-20 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com When device nodes are registered they must be ready for use immediately, so make sure the subdevs are loaded first. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci/vpif_capture.c | 47 +++-- 1

[RFCv2 PATCH 03/14] vpif_capture: move input_idx to channel_obj.

2012-09-20 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com input_idx does not belong to video_obj. Move it where it belongs. Also remove the bogus code in the open() function that suddenly changes the input to 0 for no reason. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci

[RFCv2 PATCH 05/14] vpif_capture: remove unnecessary can_route flag.

2012-09-20 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Calling a subdev op that isn't implemented will just return -ENOIOCTLCMD No need to have a flag for that. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- arch/arm/mach-davinci/board-da850-evm.c |2 -- arch/arm/mach-davinci/board-dm646x

[RFCv2 PATCH 02/14] vpif_display: remove unused data structures.

2012-09-20 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci/vpif_display.h | 15 --- 1 file changed, 15 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_display.h b/drivers/media/platform/davinci

[RFCv2 PATCH 13/14] davinci: move struct vpif_interface to chan_cfg.

2012-09-20 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com struct vpif_interface is channel specific, not subdev specific. Move it to the channel config. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- arch/arm/mach-davinci/board-da850-evm.c | 24 arch/arm/mach-davinci

[RFCv2 PATCH 10/14] vpif_capture: fix cleanup code.

2012-09-20 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The cleanup sequence was incorrect and could cause a kernel oops. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci/vpif_capture.c | 41 - 1 file changed, 20 insertions(+), 21 deletions

[RFCv2 PATCH 12/14] vpif_display: use a v4l2_subdev pointer to call a subdev.

2012-09-20 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com This makes it easier to have outputs without subdevs. This needs more work. The way the outputs are configured should be identical to how inputs are configured. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci

[RFCv2 PATCH 09/14] vpif_display: fix cleanup code.

2012-09-20 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com The cleanup sequence was incorrect and could cause a kernel oops. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci/vpif_display.c | 30 +++-- 1 file changed, 18 insertions(+), 12 deletions

[RFCv2 PATCH 08/14] vpif_display: first init subdevs, then register device nodes.

2012-09-20 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com When device nodes are registered they must be ready for use immediately, so make sure the subdevs are loaded first. Signed-off-by: Hans Verkuil hans.verk...@cisco.com --- drivers/media/platform/davinci/vpif_display.c | 59 - 1

[RFCv2 PATCH 11/14] vpif_capture: separate subdev from input.

2012-09-20 Thread Hans Verkuil
From: Hans Verkuil hans.verk...@cisco.com vpif_capture relied on a 1-1 mapping of input and subdev. This is not necessarily the case. Separate the two. So there is a list of subdevs and a list of inputs. Each input refers to a subdev and has routing information. An input does not have to have

Re: [PATCH v4] media: v4l2-ctrl: add a helper function to add standard control with driver specific menu

2012-09-19 Thread Hans Verkuil
, with driver specific menu. Signed-off-by: Lad, Prabhakar prabhakar@ti.com Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com Cc: Hans Verkuil hans.verk...@cisco.com Cc: Sakari Ailus sakari.ai...@iki.fi Cc: Sylwester Nawrocki s.nawro...@samsung.com Cc: Laurent Pinchart laurent.pinch

Re: [RFCv1 PATCH 00/11] davinci: clean up input/output/subdev config

2012-09-18 Thread Hans Verkuil
On Tue 18 September 2012 12:53:02 Hans Verkuil wrote: Hi Prabhakar, This patch series does some driver cleanup and reorganizes the config structs that are used to set up subdevices. The current driver associates an input or output with a subdev, but multiple inputs may use the same subdev

Re: [PATCH] media: davinci: vpif: add check for NULL handler

2012-09-17 Thread Hans Verkuil
On Thu August 16 2012 16:02:00 Prabhakar Lad wrote: From: Lad, Prabhakar prabhakar@ti.com Signed-off-by: Lad, Prabhakar prabhakar@ti.com Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com Cc: Hans Verkuil hans.verk...@cisco.com Acked-by: Hans Verkuil hans.verk...@cisco.com

Re: [PATCH v3] media: v4l2-ctrl: add a helper function to modify the menu

2012-09-13 Thread Hans Verkuil
prabhakar@ti.com Add a helper function to modify the menu, max and default value to set. Signed-off-by: Lad, Prabhakar prabhakar@ti.com Signed-off-by: Manjunath Hadli manjunath.ha...@ti.com Cc: Hans Verkuil hans.verk...@cisco.com Cc: Sakari Ailus sakari.ai...@iki.fi Cc: Sylwester

Re: vpif_capture.c:vpif_start_streaming() race condition

2012-09-12 Thread Hans Verkuil
Hi David, On Wed 12 September 2012 00:03:32 David Oleszkiewicz wrote: All, I think I found a race condition with enabling interrupts in the streamon call that I wanted some feedback on. I am actually using the DaVinci PSP 03.03 GA Release (Build 37) kernel but I notice the same issue

  1   2   3   >