[PATCH 13/15] media: davinci: vpbe: drop unused member memory from vpbe_layer

2014-10-12 Thread Lad, Prabhakar
Signed-off-by: Lad, Prabhakar --- include/media/davinci/vpbe_display.h | 4 1 file changed, 4 deletions(-) diff --git a/include/media/davinci/vpbe_display.h b/include/media/davinci/vpbe_display.h index de0843d..163a02b 100644 --- a/include/media/davinci/vpbe_display.h +++ b/include/media

[PATCH 14/15] media: davinci: vpbe: group v4l2_ioctl_ops

2014-10-12 Thread Lad, Prabhakar
this patch groups the v4l2_ioctl_ops. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpbe_display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/media/platform/davinci/vpbe_display.c b/drivers/media/platform/davinci/vpbe_display.c index b57fa68..17c965d

[PATCH 12/15] media: davinci: vpbe: use helpers provided by core if streaming is started

2014-10-12 Thread Lad, Prabhakar
this patch uses vb2_is_busy() helper to check if streaming is actually started, instead of driver managing it. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpbe_display.c | 34 --- include/media/davinci/vpbe_display.h | 4 2 files

[PATCH 09/15] media: davinci: vpbe: add support for VB2_DMABUF

2014-10-12 Thread Lad, Prabhakar
Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpbe_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/davinci/vpbe_display.c b/drivers/media/platform/davinci/vpbe_display.c index 76450aa..c33b77e 100644 --- a/drivers/media

[PATCH 15/15] media: davinci: vpbe: return -ENODATA for *dv_timings/*_std calls

2014-10-12 Thread Lad, Prabhakar
this patch adds support for returning -ENODATA if the current output doesn't support it. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpbe.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/davinci/vpbe

[PATCH 08/15] media: davinci: vpbe: use vb2_ioctl_* helpers

2014-10-12 Thread Lad, Prabhakar
this patch adds support for using vb2_ioctl_* helpers. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpbe_display.c | 178 ++ 1 file changed, 14 insertions(+), 164 deletions(-) diff --git a/drivers/media/platform/davinci/vpbe_display.c b/drivers

[PATCH 04/15] media: davinci: vpbe: drop buf_cleanup() callback

2014-10-12 Thread Lad, Prabhakar
this patch drops buf_cleanup() callback as this callback is never called with buffer state active. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpbe_display.c | 24 1 file changed, 24 deletions(-) diff --git a/drivers/media/platform/davinci

[PATCH 1/5] media: davinci: vpif_display: drop setting of vb2 buffer state to ACTIVE

2014-09-06 Thread Lad, Prabhakar
this patch drops setting of vb2 buffer state to VB2_BUF_STATE_ACTIVE, as any buffer queued to the driver is marked ACTIVE by the vb2 core. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/media

[PATCH 5/5] media: davinci: vpif_capture: fix the check on suspend/resume callbacks

2014-09-06 Thread Lad, Prabhakar
DMA without having proper DMA pointers set up. this patch uses vb2_start_streaming_called() instead to check is streaming was called. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH 2/5] media: davinci: vpif_capture: drop setting of vb2 buffer state to ACTIVE

2014-09-06 Thread Lad, Prabhakar
this patch drops setting of vb2 buffer state to VB2_BUF_STATE_ACTIVE, as any buffer queued to the driver is marked ACTIVE by the vb2 core. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/platform

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

2014-09-06 Thread Lad, Prabhakar
this patch adds a helper to get the status if start_streaming() was called successfully. Signed-off-by: Lad, Prabhakar Cc: Pawel Osciak Cc: Marek Szyprowski Cc: Kyungmin Park Cc: Hans Verkuil --- include/media/videobuf2-core.h | 9 + 1 file changed, 9 insertions(+) diff --git a

[PATCH 0/5] media: davinci: vpif fixes

2014-09-06 Thread Lad, Prabhakar
this patch series fixes several small issues in VPIF driver. Lad, Prabhakar (5): media: davinci: vpif_display: drop setting of vb2 buffer state to ACTIVE media: davinci: vpif_capture: drop setting of vb2 buffer state to ACTIVE media: videobuf2-core.h: add a helper to get status of

[PATCH 4/5] media: davinci: vpif_display: fix the check on suspend/resume callbacks

2014-09-06 Thread Lad, Prabhakar
DMA without having proper DMA pointers set up. this patch uses vb2_start_streaming_called() instead to check is streaming was called. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH] media: davinci: remove unneeded dependency ARCH_OMAP3

2014-08-16 Thread Lad, Prabhakar
this patch removes unneeded dependency of ARCH_OMAP3 on VIDEO_DM6446_CCDC. Also the top level platform Makefile descended into davinci/ without any dependency so just drop the dependency obj-y, as obj-$(CONFIG_ARCH_DAVINCI) already exists. Reported-by: Andreas Ruprecht Signed-off-by: Lad

[PATCH] media: davinci: vpif: fix array out of bound warnings

2014-07-18 Thread Lad, Prabhakar
ntaining loop for (i = 0; i < VPIF_CAPTURE_MAX_DEVICES; i++) { ^ drivers/media/platform/davinci/vpif_capture.c:1580:23: warning: array subscript is above array bounds [-Warray-bounds] common = &ch->common[i]; Reported-by: Hans Verkuil Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davin

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

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" 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 issues. Changes for v2: a> Added a copyright. b> Dropped buf_

[PATCH v5 06/49] media: davinci: vpif_display: improve vpif_buffer_prepare() callback

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch improve vpif_buffer_prepare() callback, as buf_prepare() callback is never called with invalid state and check for vb2_plane_vaddr(vb, 0) is dropped as payload check should be done unconditionally. Signed-off-by: Lad, Prabhakar --- drivers/medi

[PATCH v5 05/49] media: davinci: vpif_display: drop buf_cleanup() callback

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch drops buf_cleanup() callback as this callback is never called with buffer state active. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 21 - 1 file changed, 21 deletions(-) diff --git a/dri

[PATCH v5 01/49] media: davinci: vpif_display: initialize vb2 queue and DMA context during probe

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch moves the initalization of vb2 queue and the DMA context to probe() and clean up in remove() callback respectively. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 86 - 1 file changed, 41

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

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" 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 --- drivers/media/platform/davinci/vpif_displa

[PATCH v5 03/49] media: davinci: vpif_display: use vb2_ops_wait_prepare/finish helper functions

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch makes use of vb2_ops_wait_prepare/finish helper functions. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 23 +++ 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/drivers/medi

[PATCH v5 18/49] media: davinci: vpif_display: drop unneeded module params

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this pacth drops unneeded module params and vpif_config_params. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 69 + drivers/media/platform/davinci/vpif_display.h |8 --- 2 files changed, 1

[PATCH v5 01/49] media: davinci: vpif_display: initalize vb2 queue and DMA context during probe

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch moves the initalization of vb2 queue and the DMA context to probe() and clean up in remove() callback respectively. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 86 - 1 file changed, 41

[PATCH v5 02/49] media: davinci: vpif_display: drop buf_init() callback

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch drops the buf_init() callback as init of buf list is not required. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/media/platform/davinci/vpif

[PATCH v5 29/49] media: davinci: vpif_capture: release buffers in case start_streaming() call back fails

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" 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 --- drivers/media/platform/davinci/vpif_captur

[PATCH v5 37/49] media: davinci: vpif_capture: drop reserving memory for device

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch drops reserving contigiuos memory for the device, as now with CMA support there is no need of this. This patch also prepares to removal of config_params. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_captur

[PATCH v5 34/49] media: davinci: vpif_capture: use vb2_fop_mmap/poll

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 53 +++-- 1 file changed, 6 insertions(+), 47 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/platform/davinci/vpif

[PATCH v5 31/49] media: davinci: vpif_capture: improve vpif_buffer_prepare() callback

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch improve vpif_buffer_prepare() callback, as buf_prepare() callback is never called with invalid state and check for vb2_plane_vaddr(vb, 0) is dropped as payload check should be done unconditionally. Signed-off-by: Lad, Prabhakar --- drivers/medi

[PATCH v5 42/49] media: davinci: vpif_capture: drop cropcap

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch drops cropcap as this driver doesnt support cropping. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 25 - 1 file changed, 25 deletions(-) diff --git a/drivers/media/platform/davinci/vpif

[PATCH v5 33/49] media: davinci: vpif_capture: improve start/stop_streaming callbacks

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch drops unnecessary check from start_streaming() callback as this is already done in try/s_fmt and some minor code cleanups, drops check for vb2_is_streaming() as this check is done by vb2 itself before calling this callback. Signed-off-by: Lad,

[PATCH v5 41/49] media: davinci: vpif_capture: drop unneeded module params

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 54 + drivers/media/platform/davinci/vpif_capture.h | 11 - 2 files changed, 1 insertion(+), 64 deletions(-) diff --git a/drivers/media/platfo

[PATCH v5 32/49] media: davinci: vpif_capture: improve vpif_buffer_queue_setup() function

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch sets the sizes[0] of plane according to the fmt passed or which is being set in the channel, in both MMAP and USERPTR buffer type. This patch also move the calculation of offests(vpif_calculate_offsets()) to queue_setup() callback as after q

[PATCH v5 28/49] media: davinci: vpif_capture: use vb2_ops_wait_prepare/finish helper functions

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch makes use of vb2_ops_wait_prepare/finish helper functions. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/drivers/medi

[PATCH v5 36/49] media: davinci: vpif_capture: use vb2_ioctl_* helpers

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 240 +++-- 1 file changed, 22 insertions(+), 218 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/media/platfo

[PATCH v5 38/49] media: davinci: vpif_capture: drop unnecessary field memory

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c |5 - drivers/media/platform/davinci/vpif_capture.h |5 - 2 files changed, 10 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_capture.c b/dri

[PATCH v5 30/49] media: davinci: vpif_capture: drop buf_cleanup() callback

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch drops buf_cleanup() callback as this callback is never called with buffer state active. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 24 1 file changed, 24 deletions(-) diff --git

[PATCH v5 39/49] media: davinic: vpif_capture: drop started member from struct common_obj

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" the started member was indicating whether streaming was started or not, this can be determined by vb2 offering, this patch replaces the started member from struct common_obj with appropriate vb2 calls. Signed-off-by: Lad, Prabhakar --- drivers/media/platfo

[PATCH v5 09/49] media: davinci: vpif_display: use vb2_fop_mmap/poll

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 49 - 1 file changed, 7 insertions(+), 42 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_display.c b/drivers/media/platform/davinci/vpif

[PATCH v5 07/49] media: davinci: vpif_display: improve vpif_buffer_queue_setup() function

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch sets the sizes[0] of plane according to the fmt passed or which is being set in the channel, in both MMAP and USERPTR buffer type. This patch also move the calculation of offests(vpif_calculate_offsets()) to queue_setup() callback as after q

[PATCH v5 08/49] media: davinci: vpif_display: improve start/stop_streaming callbacks

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch drops unnecessary check from start_streaming() callback as this is already done in try/s_fmt and some minor code cleanups, drops check for vb2_is_streaming() as this check is done by vb2 itself before calling this callback. Signed-off-by: Lad,

[PATCH v5 11/49] media: davinci: vpif_display: use vb2_ioctl_* helpers

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 180 ++--- 1 file changed, 10 insertions(+), 170 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_display.c b/drivers/media/platfo

[PATCH v5 16/49] media: davinic: vpif_display: drop started member from struct common_obj

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" the started member was indicating whether streaming was started or not, this can be determined by vb2 offering, this patch replaces the started member from struct common_obj with appropriate vb2 calls. Signed-off-by: Lad, Prabhakar --- drivers/media/platfo

[PATCH v5 10/49] media: davinci: vpif_display: use v4l2_fh_open and vb2_fop_release

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch adds support to use v4l2_fh_open() and vb2_fop_release, which allows to drop driver specific struct vpif_fh, as this is handeled by core. This patch also drops vpif_g/s_priority as this handeled by core. Signed-off-by: Lad, Prabhakar --- dri

[PATCH v5 12/49] media: davinci: vpif_display: drop unused member fbuffers

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.h |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_display.h b/drivers/media/platform/davinci/vpif_display.h index 18c7bd5..b22bb33 10

[PATCH v5 25/49] media: davinci: vpif_display: fix v4l-complinace issues

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch does following, 1: sets initial default format during probe. 2: removes spurious messages. 3: optimize vpif_s/try_fmt_vid_out code. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 138 +--

[PATCH v5 24/49] media: davinci; vpif_display: fix checkpatch error

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch fixes following checkpatch warning, and alongside renames the DAVINCIHD_DISPLAY_H to VPIF_DISPLAY_H. WARNING: Unnecessary space before function pointer arguments Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_displa

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

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" 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 --- drivers/media/platform/davinci/vpif_display.c | 64 - drivers/media/platfo

[PATCH v5 23/49] media: davinci: vpif_display: return -ENODATA for *std calls

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch adds supports to return -ENODATA to *std calls if the selected output does not support it. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 25 - 1 file changed, 24 insertions(+), 1 deletio

[PATCH v5 22/49] media: davinci: vpif_display: return -ENODATA for *dv_timings calls

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch adds suppport to return -ENODATA for *dv_timings calls if the current output does not support it. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 40 + 1 file changed, 40 insertions(+) di

[PATCH v5 26/49] media: davinci: vpif_capture: initalize vb2 queue and DMA context during probe

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch moves the initalization of vb2 queue and the DMA context to probe() and clean up in remove() callback respectively. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 110 - 1 file changed, 51

[PATCH v5 19/49] media: davinci: vpif_display: drop cropcap

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch drops cropcap as this driver doesnt support cropping. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_di

[PATCH v5 17/49] media: davinci: vpif_display: initialize the video device in single place

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch moves the initalization of video device to a single place and uses macro to define the driver name and use it appropraitely in required places. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 29 ++

[PATCH v5 27/49] media: davinci: vpif_capture: drop buf_init() callback

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch drops the buf_init() callback as init of buf list is not required. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/drivers/media/platform/davinci/vpif

[PATCH v5 44/49] media: davinci: vpif_capture: use SIMPLE_DEV_PM_OPS

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" 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 --- drivers/media/platform/davinci/vpif_capture.c | 63 - drivers/media/platfo

[PATCH v5 46/49] media: davinci: vpif_capture: return -ENODATA for *std calls

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch adds supports to return -ENODATA to *std calls if the selected output does not support it. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletio

[PATCH v5 47/49] media: davinci: vpif_capture: drop check __KERNEL__

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this drops check for #ifdef __KERNEL__ Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.h |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_capture.h b/drivers/media/platform/davinci/vpif

[PATCH v5 45/49] media: davinci: vpif_capture: return -ENODATA for *dv_timings calls

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch adds suppport to return -ENODATA for *dv_timings calls if the current output does not support it. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 50 + 1 file changed, 50 insertions(+) di

[PATCH v5 49/49] media: davinci: vpif: add Copyright message

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c |1 + drivers/media/platform/davinci/vpif_display.c |1 + 2 files changed, 2 insertions(+) diff --git a/drivers/media/platform/davinci/vpif_capture.c b/drivers/medi

[PATCH v5 40/49] media: davinci: vpif_capture: initialize the video device in single place

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch moves the initalization of video device to a single place and uses macro to define the driver name and use it appropraitely in required places. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 30 ++

[PATCH v5 43/49] media: davinci: vpif_capture: group v4l2_ioctl_ops

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch gorups the v4l2_ioctl_ops and align them appropriately. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/media/platfo

[PATCH v5 48/49] media: davinci: vpif_capture: fix v4l-complinace issues

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch does following, 1: sets initial default format during probe. 2: removes spurious messages. 3: optimize vpif_s/try_fmt_vid_out code. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 191 +++

[PATCH v5 28/49] media: davinci: vpif_display: use vb2_ops_wait_prepare/finish helper functions

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch makes use of vb2_ops_wait_prepare/finish helper functions. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_capture.c | 21 + 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/drivers/medi

[PATCH v5 15/49] media: davinci: vpif_display: drop numbuffers field from common_obj

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch drops numbuffers member from struct common_obj as this was not required. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c |8 drivers/media/platform/davinci/vpif_display.h |1 - 2 files changed, 9

[PATCH v5 20/49] media: davinci: vpif_display: group v4l2_ioctl_ops

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch gorups the v4l2_ioctl_ops and align them appropriately. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/drivers/media/platfo

[PATCH v5 35/49] media: davinci: vpif_capture: use v4l2_fh_open and vb2_fop_release

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch adds support to use v4l2_fh_open() and vb2_fop_release, which allows to drop driver specific struct vpif_fh, as this is handeled by core. This patch also drops vpif_g/s_priority as this handeled by core. Signed-off-by: Lad, Prabhakar --- dri

[PATCH v5 14/49] media: davinci: vpif_display: drop unnecessary field memory

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_display.c |5 - drivers/media/platform/davinci/vpif_display.h |3 --- 2 files changed, 8 deletions(-) diff --git a/drivers/media/platform/davinci/vpif_display.c b/drivers/medi

[PATCH v5 13/49] media: davinci: vpif_display: drop reserving memory for device

2014-05-16 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch drops reserving contigiuos memory for the device, as now with CMA support there is no need of this. This patch also prepares to removal of config_params. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpif_displa

[PATCH v4 0/2] DaVinci: vpif: upgrade with v4l helpers

2014-05-12 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Hi All, 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 issues. Sending them as single patch one for capture and anoth

[PATCH] media: davinci_vpfe: dm365_resizer: fix sparse warning

2014-04-28 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch fixes following sparse warning, dm365_resizer.c:223:1: warning: symbol 'resizer_calculate_resize_ratios' was not declared. Should it be static? dm365_resizer.c:313:5: warning: symbol 'resizer_configure_output_win' was not declared

[PATCH v3 0/2] DaVinci: VPIF: upgrade with v4l helpers

2014-04-19 Thread Lad Prabhakar
From: "Lad, Prabhakar" Hi All, 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 issues. Sending them as single patch one for capture and anoth

[PATCH] media: davinci: vpbe: release buffers in case start_streaming call back fails

2014-04-14 Thread Lad, Prabhakar
From: "Lad, Prabhakar" 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 --- drivers/media/platform/davinci/vpbe_display.c | 11 ++- 1 fi

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

2014-04-03 Thread Lad, Prabhakar
From: "Lad, Prabhakar" This patch upgrades the vpif display driver with v4l helpers, this patch does the following, 1: initialize the vb2 queue and context at the time of probe and removes context at remove() callback. 2: uses vb2_ioctl_*() helpers. 3: uses vb2_fop_*() helper

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

2014-04-03 Thread Lad, Prabhakar
From: "Lad, Prabhakar" This patch upgrades the vpif display driver with v4l helpers, this patch does the following, 1: initialize the vb2 queue and context at the time of probe and removes context at remove() callback. 2: uses vb2_ioctl_*() helpers. 3: uses vb2_fop_*() helper

[PATCH v2 0/2] DaVinci: VPIF: upgrade with v4l helpers

2014-04-03 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Hi All, 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 issues. Sending them as single patch one for capture and anoth

[PATCH] v4l2-compliance: fix function pointer prototype

2014-04-01 Thread Lad, Prabhakar
From: "Lad, Prabhakar" There was a conflict between the mmap function pointer prototype of struct v4l_fd and the actual function used. Make sure it is in sync with the prototype of v4l2_mmap. This patch fixes following build error, v4l2-compliance.cpp: In function 'void v4l_fd_t

[PATCH 0/2] DaVinci: VPIF: upgrade with v4l helpers

2014-03-31 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Hi All, 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 issues. Sending them as single patch one for capture and anoth

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

2014-03-31 Thread Lad, Prabhakar
From: "Lad, Prabhakar" This patch upgrades the vpif display driver with v4l helpers, this patch does the following, 1: initialize the vb2 queue and context at the time of probe and removes context at remove() callback. 2: uses vb2_ioctl_*() helpers. 3: uses vb2_fop_*() helper

[PATCH 2/2] media: davinci: vpif display: upgrade the driver with v4l offerings

2014-03-31 Thread Lad, Prabhakar
From: "Lad, Prabhakar" This patch upgrades the vpif display driver with v4l helpers, this patch does the following, 1: initialize the vb2 queue and context at the time of probe and removes context at remove() callback. 2: uses vb2_ioctl_*() helpers. 3: uses vb2_fop_*() helper

[PATCH] staging: media: davinci_vpfe: fix checkpatch warning

2014-03-28 Thread Lad, Prabhakar
From: "Lad, Prabhakar" This patch fixes following checkpatch warning, media/davinci_vpfe/dm365_ipipe.c:1271: WARNING: Missing a blank line after declarations media/davinci_vpfe/dm365_ipipe.c:1313: WARNING: Missing a blank line after declarations Signed-off-by: Lad, Prabhakar --

[PATCH] v4l2-pci-skeleton: fix typo while retrieving the skel_buffer

2014-03-24 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Signed-off-by: Lad, Prabhakar --- Documentation/video4linux/v4l2-pci-skeleton.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/video4linux/v4l2-pci-skeleton.c b/Documentation/video4linux/v4l2-pci-skeleton.c index 3a1c0d

[PATCH 0/2] staging: media: davinci_vpfe: fixes and enhancement

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" The first patch adds v4l2_fh for priority handling and the second patch makes sure that the buffers are released if start_streaming() callback fails. Lad, Prabhakar (2): staging: media: davinci: vpfe: use v4l2_fh for priority handling staging: media: dav

[PATCH 1/2] staging: media: davinci: vpfe: use v4l2_fh for priority handling

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Signed-off-by: Lad, Prabhakar --- .../staging/media/davinci_vpfe/vpfe_mc_capture.h |2 -- drivers/staging/media/davinci_vpfe/vpfe_video.c|8 +++- drivers/staging/media/davinci_vpfe/vpfe_video.h|2 -- 3 files changed, 3 insertions(+), 9

[PATCH 2/2] staging: media: davinci: vpfe: release buffers in case start_streaming call back fails

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch releases the buffer bu calling vb2_buffer_done(), with state marked as VB2_BUF_STATE_QUEUED if start_streaming() call back fails. Signed-off-by: Lad, Prabhakar --- drivers/staging/media/davinci_vpfe/vpfe_video.c | 10 +- 1 file changed, 9

[PATCH for v3.15] media: davinci: vpfe: make sure all the buffers unmapped and released

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch makes sure that it terminates if any IO in progress and also makes sure that all the buffers are unmapped. It was observed that with several runs of application the application sometimes failed to allocate memory, This patch makes sure it all the b

[PATCH for v3.15] staging: media: davinci: vpfe: make sure all the buffers are released

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" from commit-id: b3379c6201bb3555298cdbf0aa004af260f2a6a4 "vb2: only call start_streaming if sufficient buffers are queued" the vb2 framework warns on (WARN_ON()) if all the active buffers are not released when streaming is stopped, initially the vb2 s

[PATCH] media: davinci: vpfe: use v4l2_fh for priority handling

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" This patch migrates the vpfe driver to use v4l2_fh for priority handling. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpfe_capture.c | 13 ++--- include/media/davinci/vpfe_capture.h |6 ++ 2 files changed, 8

[PATCH RESEND for v3.15 3/3] media: davinci: vpbe_display: fix releasing of active buffers

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" from commit-id: b3379c6201bb3555298cdbf0aa004af260f2a6a4 "vb2: only call start_streaming if sufficient buffers are queued" the vb2 framework warns on (WARN_ON()) if all the active buffers are not released when streaming is stopped, initially the vb2 s

[PATCH RESEND for v3.15 2/3] media: davinci: vpif_display: fix releasing of active buffers

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" from commit-id: b3379c6201bb3555298cdbf0aa004af260f2a6a4 "vb2: only call start_streaming if sufficient buffers are queued" the vb2 framework warns on (WARN_ON()) if all the active buffers are not released when streaming is stopped, initially the vb2 s

[PATCH RESEND for v3.15 1/3] media: davinci: vpif_capture: fix releasing of active buffers

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" from commit-id: b3379c6201bb3555298cdbf0aa004af260f2a6a4 "vb2: only call start_streaming if sufficient buffers are queued" the vb2 framework warns on (WARN_ON()) if all the active buffers are not released when streaming is stopped, initially the vb2 s

[PATCH RESEND for v3.15 0/3] Davinci: media: fix releasing of active buffers

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" Resending the patch series as it missed DLOS ML. No-changes from previous version. This patch series fixes the releasing of active buffers in davinci drivers which are migrated to vb2. Hi Hans, This patches are just fixes to v3.15, more patches coming soon for

[PATCH] media: davinci: vpbe: use v4l2_fh for priority handling

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" This patch migrates the vpbe driver to use v4l2_fh for priority handling. This also fixes v4l2-compliance test. Signed-off-by: Lad, Prabhakar --- drivers/media/platform/davinci/vpbe_display.c | 39 + include/media/davinci/vpbe

[PATCH for v3.15 3/3] media: davinci: vpbe_display: fix releasing of active buffers

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" from commit-id: b3379c6201bb3555298cdbf0aa004af260f2a6a4 "vb2: only call start_streaming if sufficient buffers are queued" the vb2 framework warns on (WARN_ON()) if all the active buffers are not released when streaming is stopped, initially the vb2 s

[PATCH for v3.15 0/3] Davinci: media: fix releasing of active buffers

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" This patch series fixes the releasing of active buffers in davinci drivers which are migrated to vb2. Hi Hans, This patches are just fixes to v3.15, more patches coming soon for vpif using v4l helpers for v3.16. Lad, Prabhakar (3): media: davinci: vpif_ca

[PATCH for v3.15 1/3] media: davinci: vpif_capture: fix releasing of active buffers

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" from commit-id: b3379c6201bb3555298cdbf0aa004af260f2a6a4 "vb2: only call start_streaming if sufficient buffers are queued" the vb2 framework warns on (WARN_ON()) if all the active buffers are not released when streaming is stopped, initially the vb2 s

[PATCH for v3.15 2/3] media: davinci: vpif_display: fix releasing of active buffers

2014-03-22 Thread Lad, Prabhakar
From: "Lad, Prabhakar" from commit-id: b3379c6201bb3555298cdbf0aa004af260f2a6a4 "vb2: only call start_streaming if sufficient buffers are queued" the vb2 framework warns on (WARN_ON()) if all the active buffers are not released when streaming is stopped, initially the vb2 s

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

2014-03-13 Thread Lad, Prabhakar
From: "Lad, Prabhakar" this patch fixes following build warning drivers/media/platform/davinci/vpbe_display.c: In function 'vpbe_start_streaming': drivers/media/platform/davinci/vpbe_display.c:344: warning: unused variable 'vpbe_dev' Signed-off-by: Lad, Prabhaka

[PATCH v5] media: i2c: tvp7002: add OF support

2013-08-10 Thread Lad, Prabhakar
From: "Lad, Prabhakar" add OF support for the tvp7002 driver. Signed-off-by: Lad, Prabhakar --- This patch depends on https://patchwork.kernel.org/patch/2842680/ Changes for v5: 1: Fixed review comments pointed by Hans. Changes for v4: 1: Improved descrition of end point

[PATCH] media: OF: add "sync-on-green-active" property

2013-08-10 Thread Lad, Prabhakar
From: "Lad, Prabhakar" This patch adds 'sync-on-green-active' property as part of endpoint property. Signed-off-by: Lad, Prabhakar Acked-by: Sylwester Nawrocki --- Changes for non RFC: 1: Fixed review comments pointed by Hans. 2: Added Ack from Sylwester.

[PATCH v3 1/2] media: i2c: adv7343: make the platform data members as array

2013-07-19 Thread Lad, Prabhakar
From: "Lad, Prabhakar" This patch makes the platform data members as array wherever possible, so as this makes easier while collecting the data in DT case and read the entire array at once. This patch also makes appropriate changes to board-da850-evm.c Signed-off-by: Lad, Prabhakar

[PATCH v3 2/2] media: i2c: adv7343: add OF support

2013-07-19 Thread Lad, Prabhakar
From: "Lad, Prabhakar" add OF support for the adv7343 driver. Signed-off-by: Lad, Prabhakar --- Changes for v3: 1: Fixed review comments pointed by Sylwester. Changes for v2: 1: Fixed naming of properties. .../devicetree/bindings/media/i2c/adv7343.txt

<    1   2   3   4   5   >