aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-05-24[media] media: davinci: vpif_capture: drop check __KERNEL__Lad, Prabhakar1-3/+0
Drops check for #ifdef __KERNEL__, because this header is a Kernel only header, where this define is always true. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-24[media] media: davinci: vpif_capture: return -ENODATA for *std callsLad, Prabhakar1-1/+23
this patch adds supports to return -ENODATA to *std calls if the selected output does not support it. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-24[media] media: davinci: vpif_capture: return -ENODATA for *dv_timings callsLad, Prabhakar1-0/+50
this patch adds suppport to return -ENODATA for *dv_timings calls if the current output does not support it. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-24[media] media: davinci: vpif_capture: use SIMPLE_DEV_PM_OPSLad, Prabhakar2-37/+30
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-24[media] media: davinci: vpif_capture: group v4l2_ioctl_opsLad, Prabhakar1-7/+9
this patch groups the v4l2_ioctl_ops and align them appropriately. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-24[media] media: davinci: vpif_capture: drop cropcapLad, Prabhakar1-25/+0
this patch drops cropcap as this driver doesnt support cropping. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-24Revert "[media] media: davinci: vpif_capture: drop unneeded module params"Mauro Carvalho Chehab2-1/+64
This patch removes some modprobe parameters, without any reason or description. I was supposed to not merge this patch, but It was merged by mistake. Revert it while nobody provides a good description for such patch. This reverts commit b952662f272ae43c1583fac4dcda71ef36c33528. Cc: Lad, Prabhakar <[email protected]> Cc: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] tvp5150: Replace container_of() with to_tvp5150()Laurent Pinchart1-2/+2
Use the driver-specific inline function to cast from a subdev pointer to a tvp5150 pointer instead of the generic container_of(). Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] s5p-mfc: Add support for resolution change eventPawel Osciak2-0/+10
When a resolution change point is reached, queue an event to signal the userspace that a new set of buffers is required before decoding can continue. Signed-off-by: Pawel Osciak <[email protected]> Signed-off-by: Arun Kumar K <[email protected]> Acked-by: Sylwester Nawrocki <[email protected]> Acked-by: Kamil Debski <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] v4l: Add source change eventArun Kumar K5-0/+101
This event indicates that the video device has encountered a source parameter change during runtime. This can typically be a resolution change detected by a video decoder OR a format change detected by an input connector. This needs to be nofified to the userspace and the application may be expected to reallocate buffers before proceeding. The application can subscribe to events on a specific pad or input port which it is interested in. Signed-off-by: Arun Kumar K <[email protected]> Acked-by: Sylwester Nawrocki <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] Staging: dt3155v4l: set error code on failureDan Carpenter1-1/+3
We should be returning -ENOMEM here instead of success. Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Jingoo Han <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] bt8xx: make driver routines fit into its own namespcaeLuis R. Rodriguez1-10/+10
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. Signed-off-by: Luis R. Rodriguez <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] technisat-usb2: rename led enums to be specific to driverLuis R. Rodriguez1-14/+14
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: Felipe Pena <[email protected]> Cc: Michael Krufky <[email protected]> Signed-off-by: Luis R. Rodriguez <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] Documentation: media: Remove double 'struct'Laurent Pinchart2-5/+5
The XML entities for media structures start with the 'struct' word. Remove duplicate 'struct' from the entity users. Reported-by: Hans Verkuil <[email protected]> Signed-off-by: Laurent Pinchart <[email protected]> Acked-by: Sakari Ailus <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: drop unneeded module paramsLad, Prabhakar2-64/+1
Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: initialize the video device in single ↵Lad, Prabhakar1-18/+12
place this patch moves the initalization of video device to a single place and uses macro to define the driver name and use it appropriately on the required places. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinic: vpif_capture: drop started member from struct common_objLad, Prabhakar2-24/+14
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: drop unnecessary field memoryLad, Prabhakar2-10/+0
This field is set, but not used anymore. Remove it. No functional changes. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: drop reserving memory for deviceLad, Prabhakar1-18/+0
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: use vb2_ioctl_* helpersLad, Prabhakar1-218/+22
Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: use v4l2_fh_open and vb2_fop_releaseLad, Prabhakar2-262/+48
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: use vb2_fop_mmap/pollLad, Prabhakar1-47/+6
No need to reinvent the wheel. Just use the already existing functions for that. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: improve start/stop_streaming callbacksLad, Prabhakar1-19/+17
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, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: improve vpif_buffer_queue_setup() functionLad, Prabhakar1-32/+8
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 queue_setup() callback the application is no longer allowed to change format, and prepares to removal of config_params. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: improve vpif_buffer_prepare() callbackLad, Prabhakar1-18/+14
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: drop buf_cleanup() callbackLad, Prabhakar1-24/+0
this patch drops buf_cleanup() callback as this callback is never called with buffer state active. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: release buffers in case ↵Lad, Prabhakar1-14/+25
start_streaming() call back fails 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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: use vb2_ops_wait_prepare/finish helper ↵Lad, Prabhakar1-20/+1
functions this patch makes use of vb2_ops_wait_prepare/finish helper functions. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: drop buf_init() callbackLad, Prabhakar1-10/+0
this patch drops the buf_init() callback as init of buf list is not required. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_capture: initalize vb2 queue and DMA context ↵Lad, Prabhakar1-59/+51
during probe 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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: fix v4l-compliance issuesLad, Prabhakar1-87/+51
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci; vpif_display: fix checkpatch errorLad, Prabhakar1-4/+4
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: return -ENODATA for *std callsLad, Prabhakar1-1/+24
this patch adds supports to return -ENODATA to *std calls if the selected output does not support it. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: return -ENODATA for *dv_timings callsLad, Prabhakar1-0/+40
this patch adds suppport to return -ENODATA for *dv_timings calls if the current output does not support it. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: use SIMPLE_DEV_PM_OPSLad, Prabhakar2-38/+30
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: group v4l2_ioctl_opsLad, Prabhakar1-8/+11
this patch gorups the v4l2_ioctl_ops and align them appropriately. No functional changes. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: drop cropcapLad, Prabhakar1-19/+0
this patch drops cropcap as this driver doesnt support cropping. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: drop unneeded module paramsLad, Prabhakar2-76/+1
this pacth drops unneeded module params and vpif_config_params. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: initialize the video device in single ↵Lad, Prabhakar1-18/+11
place 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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinic: vpif_display: drop started member from struct common_objLad, Prabhakar2-27/+17
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: drop numbuffers field from common_objLad, Prabhakar2-9/+0
This patch drops numbuffers member from struct common_obj as this was not required. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: drop unnecessary field memoryLad, Prabhakar2-8/+0
The common->memory field is set but not used anywhere. Drop it. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: drop reserving memory for deviceLad, Prabhakar1-18/+0
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: drop unused member fbuffersLad, Prabhakar1-3/+0
As fbuffers is not used anymore, remove it. No functional changes. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: use vb2_ioctl_* helpersLad, Prabhakar1-170/+10
Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: use v4l2_fh_open and vb2_fop_releaseLad, Prabhakar2-200/+43
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: use vb2_fop_mmap/pollLad, Prabhakar1-42/+7
No need to reinvent the wheel. Just use the already existing functions for that. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: improve start/stop_streaming callbacksLad, Prabhakar1-26/+33
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, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: improve vpif_buffer_queue_setup() functionLad, Prabhakar1-32/+21
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 queue_setup() callback the application is no longer allowed to change format, and prepares to removal of config_params. Signed-off-by: Lad, Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
2014-05-23[media] media: davinci: vpif_display: improve vpif_buffer_prepare() callbackLad, Prabhakar1-24/+23
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 <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>