[PATCH] v4l: of: Correct pclk-sample for BT656 bus

2015-05-05 Thread Nikhil Devshatwar
vsync properties are specified, the bus_type should be set to V4L2_MBUS_PARALLEL. Signed-off-by: Nikhil Devshatwar --- drivers/media/v4l2-core/v4l2-of.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-of.c b/drivers/media/v4l2-core

[PATCH] [media] videobuf-dma-contig: NULL check for vb2_plane_cookie

2014-12-11 Thread Nikhil Devshatwar
vb2_plane_cookie can return NULL if the plane no is greater than total no of planes or when mem_ops are absent. Add NULL check to avoid NULL pointer crash in the kernel. Signed-off-by: Nikhil Devshatwar --- include/media/videobuf2-dma-contig.h |5 - 1 file changed, 4 insertions(+), 1

[PATCH v3 3/4] media: ti-vpe: Do not perform job transaction atomically

2014-11-29 Thread Nikhil Devshatwar
ource buffers. Shift all the source buffers after each iteration and remove the oldest buffer. Also, with this removes the constraint of pre buffering 3 buffers before call to STREAMON in case of deinterlacing. Signed-off-by: Nikhil Devshatwar --- drivers/media/platform/ti-vpe/vpe.c |

[PATCH v3 4/4] media: ti-vpe: Add support for SEQ_TB buffers

2014-11-29 Thread Nikhil Devshatwar
: Nikhil Devshatwar --- Changes from v1: * Add check for valid field in qbuf ioctl * Fix issue with swapped fields drivers/media/platform/ti-vpe/vpe.c | 124 --- 1 file changed, 102 insertions(+), 22 deletions(-) diff --git a/drivers/media/platform/ti-vpe/vpe.c b

[PATCH v3 2/4] media: ti-vpe: Use line average de-interlacing for first 2 frames

2014-11-29 Thread Nikhil Devshatwar
, creating a sum of n frames. Signed-off-by: Archit Taneja Signed-off-by: Nikhil Devshatwar --- drivers/media/platform/ti-vpe/vpe.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index

[PATCH v3 1/4] media: ti-vpe: Use data offset for getting dma_addr for a plane

2014-11-29 Thread Nikhil Devshatwar
bottom field with same dmafd and different data_offsets. Signed-off-by: Nikhil Devshatwar --- Changes from v2: * Use data_offset only for OUTPUT stream buffers drivers/media/platform/ti-vpe/vpe.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/media/platform

[PATCH v3 0/4] VPE improvements

2014-11-29 Thread Nikhil Devshatwar
rames Nikhil Devshatwar (3): media: ti-vpe: Use data offset for getting dma_addr for a plane media: ti-vpe: Do not perform job transaction atomically media: ti-vpe: Add support for SEQ_TB buffers drivers/media/platform/ti-vpe/vpe.c | 191 --- 1 file changed

[PATCH v2 4/4] media: ti-vpe: Add support for SEQ_TB buffers

2014-11-14 Thread Nikhil Devshatwar
: Nikhil Devshatwar --- Changes from v1: * Add check for valid field in qbuf ioctl * Fix issue with swapped fields drivers/media/platform/ti-vpe/vpe.c | 124 --- 1 file changed, 102 insertions(+), 22 deletions(-) diff --git a/drivers/media/platform/ti-vpe/vpe.c b

[PATCH v2 3/4] media: ti-vpe: Do not perform job transaction atomically

2014-11-14 Thread Nikhil Devshatwar
ource buffers. Shift all the source buffers after each iteration and remove the oldest buffer. Also, with this removes the constraint of pre buffering 3 buffers before call to STREAMON in case of deinterlacing. Signed-off-by: Nikhil Devshatwar --- drivers/media/platform/ti-vpe/vpe.c |

[PATCH v2 1/4] media: ti-vpe: Use data offset for getting dma_addr for a plane

2014-11-14 Thread Nikhil Devshatwar
bottom field with same dmafd and different data_offsets. Signed-off-by: Nikhil Devshatwar --- drivers/media/platform/ti-vpe/vpe.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index

[PATCH v2 2/4] media: ti-vpe: Use line average de-interlacing for first 2 frames

2014-11-14 Thread Nikhil Devshatwar
, creating a sum of n frames. Signed-off-by: Archit Taneja Signed-off-by: Nikhil Devshatwar --- drivers/media/platform/ti-vpe/vpe.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index

[PATCH v2 0/4] VPE improvements

2014-11-14 Thread Nikhil Devshatwar
rames Nikhil Devshatwar (3): media: ti-vpe: Use data offset for getting dma_addr for a plane media: ti-vpe: Do not perform job transaction atomically media: ti-vpe: Add support for SEQ_TB buffers drivers/media/platform/ti-vpe/vpe.c | 193 --- 1 file changed

[RFC PATCH 3/4] [media] ti-vpe: Do not perform job transaction atomically

2014-10-10 Thread Nikhil Devshatwar
ource buffers. Shift all the source buffers after each iteration and remove the oldest buffer. Also, with this removes the constraint of pre buffering 3 buffers before call to STREAMON in case of deinterlacing. Signed-off-by: Nikhil Devshatwar --- drivers/media/platform/ti-vpe/vpe.c |

[RFC PATCH 4/4] [media] ti-vpe: Add support for SEQ_TB buffers

2014-10-10 Thread Nikhil Devshatwar
: Nikhil Devshatwar --- drivers/media/platform/ti-vpe/vpe.c | 122 +-- 1 file changed, 101 insertions(+), 21 deletions(-) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index e37102b..4cc7dc7 100644 --- a/drivers/media/platform/ti

[RFC PATCH 0/4] ti-vpe: VPE improvements

2014-10-10 Thread Nikhil Devshatwar
rames Nikhil Devshatwar (3): [media] ti-vpe: Use data offset for getting dma_addr for a plane [media] ti-vpe: Do not perform job transaction atomically [media] ti-vpe: Add support for SEQ_TB buffers drivers/media/platform/ti-vpe/vpe.c | 193 +++ 1 file changed

[RFC PATCH 2/4] [media] ti-vpe: Use line average de-interlacing for first 2 frames

2014-10-10 Thread Nikhil Devshatwar
, creating a sum of n frames. Signed-off-by: Archit Taneja Signed-off-by: Nikhil Devshatwar --- drivers/media/platform/ti-vpe/vpe.c | 29 + 1 file changed, 29 insertions(+) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index

[RFC PATCH 1/4] [media] ti-vpe: Use data offset for getting dma_addr for a plane

2014-10-10 Thread Nikhil Devshatwar
bottom field with same dmafd and different data_offsets. Signed-off-by: Nikhil Devshatwar --- drivers/media/platform/ti-vpe/vpe.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/ti-vpe/vpe.c b/drivers/media/platform/ti-vpe/vpe.c index

[PATCH v2] media: vb2: verify data_offset only if nonzero bytesused

2014-06-23 Thread Nikhil Devshatwar
verify_length would fail if the user space fills up the data_offset field and bytesused is left as zero. Correct this. If bytesused is not populated, it means bytesused is same as length. Checking data offset >= bytesused makes sense only if bytesused is valid. Signed-off-by: Nikhil Devshat

[[PATCH]] vb2: verify data_offset only if nonzero bytesused

2014-06-22 Thread Nikhil Devshatwar
igh but it can have less bytesused. The real check should be to verify that all the bytesused after data_offset fit withing the length of the plane. Signed-off-by: Nikhil Devshatwar --- drivers/media/v4l2-core/videobuf2-core.c |9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) d

V4L2 endpoint parser doesn't support empty ports

2014-06-09 Thread Nikhil Devshatwar
Hi everyboady, When using V4l2 endpoint framework for parsing device tree nodes, I don't find any API which can allow me to iterate over all the endpoints in a specific port Currectly we have v4l2_of_get_next_endpoint which can be used to iterate over all the endpoints under that device_node Ty