Re: [RFC] [PATCH] v4l2: use unsigned rather than enums in ioctl() structs

2012-04-13 Thread James Courtier-Dutton
On 12 April 2012 15:55, Mauro Carvalho Chehab mche...@redhat.com wrote: Em 12-04-2012 05:04, James Courtier-Dutton escreveu: 6) Add a #if #endif around the old API, so a user compiling their own kernel can decide if the old API exists or not. User might want to do this for security reasons.

Re: [RFC] HDMI-CEC proposal

2012-04-13 Thread Florian Fainelli
Hi Hans, Le 04/13/12 07:03, Hans Verkuil a écrit : You both hit the main problem of the CEC support: how to implement the API. Well, the API that I propose here [1] is quite simple: - a kernel-side API for defining CEC adapters drivers - a character device with an ioctl() control path and

outstanding ARM patches

2012-04-13 Thread Guennadi Liakhovetski
Hi Just confirming, that the 3 outstanding ARM patches, that I mentioned in recent emails: http://article.gmane.org/gmane.linux.kernel.mmc/12748 http://article.gmane.org/gmane.linux.ports.sh.devel/13535 http://article.gmane.org/gmane.linux.ports.sh.devel/13975 still apply to the current Linus'

[PATCH v4 00/14] Integration of videobuf2 with dmabuf

2012-04-13 Thread Tomasz Stanislawski
Hello everyone, This patchset adds support for DMABUF [2] importing to V4L2 stack. The support for DMABUF exporting was moved to separate patchset due to dependency on patches for DMA mapping redesign by Marek Szyprowski [4]. v4: - rebased on mainline 3.4-rc2 - included missing importing support

[PATCH v4 01/14] v4l: Add DMABUF as a memory type

2012-04-13 Thread Tomasz Stanislawski
From: Sumit Semwal sumit.sem...@ti.com Adds DMABUF memory type to v4l framework. Also adds the related file descriptor in v4l2_plane and v4l2_buffer. Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com [original work in the PoC for buffer sharing] Signed-off-by: Sumit Semwal

[PATCH v4 07/14] v4l: vb2-dma-contig: Reorder functions

2012-04-13 Thread Tomasz Stanislawski
From: Laurent Pinchart laurent.pinch...@ideasonboard.com Group functions by buffer type. Signed-off-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/media/video/videobuf2-dma-contig.c | 92 --- 1 files changed, 54 insertions(+), 38 deletions(-) diff

[PATCH v4 03/14] v4l: vb2: add support for shared buffer (dma_buf)

2012-04-13 Thread Tomasz Stanislawski
From: Sumit Semwal sumit.sem...@ti.com This patch adds support for DMABUF memory type in videobuf2. It calls relevant APIs of dma_buf for v4l reqbuf / qbuf / dqbuf operations. For this version, the support is for videobuf2 as a user of the shared buffer; so the allocation of the buffer is done

[PATCH v4 06/14] v4l: vb2-dma-contig: Remove unneeded allocation context structure

2012-04-13 Thread Tomasz Stanislawski
vb2-dma-contig returns a vb2_dc_conf structure instance as the vb2 allocation context. That structure only stores a pointer to the physical device. Remove it and use the device pointer directly as the allocation context. Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com ---

[PATCH v4 12/14] v4l: vb2-dma-contig: change map/unmap behaviour for importers

2012-04-13 Thread Tomasz Stanislawski
The DMABUF documentation says that the map_dma_buf callback should return scatterlist that is mapped into a caller's address space. In practice, almost none of existing implementations of DMABUF exporter does it. This patch breaks the DMABUF specification in order to allow exchange DMABUF buffers

[PATCH v4 08/14] v4l: vb2-dma-contig: add support for scatterlist in userptr mode

2012-04-13 Thread Tomasz Stanislawski
From: Andrzej Pietrasiewicz andrze...@samsung.com This patch introduces usage of dma_map_sg to map memory behind a userspace pointer to a device as dma-contiguous mapping. Signed-off-by: Andrzej Pietrasiewicz andrze...@samsung.com Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com

[PATCH v4 11/14] v4l: vb2-dma-contig: add support for dma_buf importing

2012-04-13 Thread Tomasz Stanislawski
From: Sumit Semwal sumit.sem...@ti.com This patch makes changes for adding dma-contig as a dma_buf user. It provides function implementations for the {attach, detach, map, unmap}_dmabuf() mem_ops of DMABUF memory type. Signed-off-by: Sumit Semwal sumit.sem...@ti.com Signed-off-by: Sumit Semwal

[PATCH v4 13/14] v4l: s5p-tv: mixer: support for dmabuf importing

2012-04-13 Thread Tomasz Stanislawski
This patch enhances s5p-tv with support for DMABUF importing via V4L2_MEMORY_DMABUF memory type. Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/media/video/s5p-tv/Kconfig |1 +

[PATCH v4 10/14] v4l: vb2-dma-contig: add prepare/finish to dma-contig allocator

2012-04-13 Thread Tomasz Stanislawski
From: Marek Szyprowski m.szyprow...@samsung.com Add prepare/finish callbacks to vb2-dma-contig allocator. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/media/video/videobuf2-dma-contig.c | 24 1 files changed, 24 insertions(+), 0 deletions(-)

[PATCH v4 09/14] v4l: vb2: add prepare/finish callbacks to allocators

2012-04-13 Thread Tomasz Stanislawski
From: Marek Szyprowski m.szyprow...@samsung.com This patch adds support for prepare/finish callbacks in VB2 allocators. These callback are used for buffer flushing. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- drivers/media/video/videobuf2-core.c | 11 +++

[PATCH v4 14/14] v4l: fimc: support for dmabuf importing

2012-04-13 Thread Tomasz Stanislawski
This patch enhances s5p-fimc with support for DMABUF importing via V4L2_MEMORY_DMABUF memory type. Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/media/video/Kconfig |1 +

[PATCH v4 04/14] v4l: vb: remove warnings about MEMORY_DMABUF

2012-04-13 Thread Tomasz Stanislawski
From: Sumit Semwal sumit.sem...@ti.com Adding DMABUF memory type causes videobuf to complain about not using it in some switch cases. This patch removes these warnings. Signed-off-by: Sumit Semwal sumit.sem...@ti.com --- drivers/media/video/videobuf-core.c |4 1 files changed, 4

[PATCH v4 05/14] v4l: vb2-dma-contig: Shorten vb2_dma_contig prefix to vb2_dc

2012-04-13 Thread Tomasz Stanislawski
From: Laurent Pinchart laurent.pinch...@ideasonboard.com Signed-off-by: Laurent Pinchart laurent.pinch...@ideasonboard.com --- drivers/media/video/videobuf2-dma-contig.c | 36 ++-- 1 files changed, 18 insertions(+), 18 deletions(-) diff --git

[PATCH v4 02/14] Documentation: media: description of DMABUF importing in V4L2

2012-04-13 Thread Tomasz Stanislawski
This patch adds description and usage examples for importing DMABUF file descriptor in V4L2. Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- Documentation/DocBook/media/v4l/compat.xml |4 +

RE: [RFC/PATCH] v4l: added V4L2_BUF_FLAG_EOS flag indicating the last frame in the stream

2012-04-13 Thread Kamil Debski
Hi, From: linux-media-ow...@vger.kernel.org [mailto:linux-media- Sent: 10 April 2012 11:51 v4l: added V4L2_BUF_FLAG_EOS flag indicating the last frame in the stream Some devices requires indicator if the buffer is the last one in the stream. Applications and drivers can use this flag in

cron job: media_tree daily build: WARNINGS

2012-04-13 Thread Hans Verkuil
This message is generated daily by a cron job that builds media_tree for the kernels and architectures in the list below. Results of the daily build of media_tree: date:Fri Apr 13 19:00:17 CEST 2012 git hash:f4d4e7656b26a6013bc5072c946920d2e2c44e8e gcc version: i686-linux-gcc

media_build compile errors

2012-04-13 Thread Roger Mårtensson
Hi! I get compile errors when trying to build media_build as of 2012-04-13. /home/mythfrontend/media_build/v4l/ivtv-fileops.c: In function 'ivtv_v4l2_enc_poll': /home/mythfrontend/media_build/v4l/ivtv-fileops.c:751:2: error: implicit declaration of function 'poll_requested_events'

Re: [yavta PATCH 3/3] Support additional dpcm compressed bayer formats.

2012-04-13 Thread Laurent Pinchart
Hi Sakari, Thanks for the patch. On Thursday 12 April 2012 11:41:35 Sakari Ailus wrote: Signed-off-by: Sakari Ailus sakari.ai...@iki.fi Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com and applied to my tree. --- yavta.c |3 +++ 1 files changed, 3 insertions(+), 0

Re: media_build compile errors

2012-04-13 Thread Andy Walls
Roger Mårtensson roger.martens...@gmail.com wrote: Hi! I get compile errors when trying to build media_build as of 2012-04-13. /home/mythfrontend/media_build/v4l/ivtv-fileops.c: In function 'ivtv_v4l2_enc_poll': /home/mythfrontend/media_build/v4l/ivtv-fileops.c:751:2: error: implicit

Re: [yavta PATCH 1/3] Support integer menus.

2012-04-13 Thread Laurent Pinchart
Hi Sakari, Thanks for the patch. The code looks fine, but unfortunately breaks compilation when using kernel headers v3.5 (which is a pretty common case as of today ;-)). V4L2_CTRL_TYPE_INTEGER_MENU is an enumerated value, not a pre-processor #define, so it's difficult to test for it using

Re: [yavta PATCH 1/3] Support integer menus.

2012-04-13 Thread Rémi Denis-Courmont
Le vendredi 13 avril 2012 22:47:14 Laurent Pinchart, vous avez écrit : Hi Sakari, Thanks for the patch. The code looks fine, but unfortunately breaks compilation when using kernel headers v3.5 (which is a pretty common case as of today ;-)). V4L2_CTRL_TYPE_INTEGER_MENU is an enumerated

Re: [yavta PATCH 1/3] Support integer menus.

2012-04-13 Thread Sakari Ailus
Hi Laurent, Thanks for the comments. Laurent Pinchart wrote: Hi Sakari, Thanks for the patch. The code looks fine, but unfortunately breaks compilation when using kernel headers v3.5 (which is a pretty common case as of today ;-)). V4L2_CTRL_TYPE_INTEGER_MENU is an enumerated value, not a

Re: [yavta PATCH 3/3] Support additional dpcm compressed bayer formats.

2012-04-13 Thread Sakari Ailus
Laurent Pinchart wrote: Hi Sakari, Thanks for the patch. On Thursday 12 April 2012 11:41:35 Sakari Ailus wrote: Signed-off-by: Sakari Ailussakari.ai...@iki.fi Acked-by: Laurent Pinchartlaurent.pinch...@ideasonboard.com and applied to my tree. Thanks!!! -- Sakari Ailus

[yavta PATCH v2 3/3] Support extended controls, including 64-bit integers.

2012-04-13 Thread Sakari Ailus
Fall back to regular S_CTRL / G_CTRL if extended controls aren't available. Also don't try to get value for classes. Signed-off-by: Sakari Ailus sakari.ai...@iki.fi --- yavta.c | 130 -- 1 files changed, 100 insertions(+), 30

[yavta PATCH v2 1/3] Support integer menus.

2012-04-13 Thread Sakari Ailus
Signed-off-by: Sakari Ailus sakari.ai...@iki.fi --- yavta.c | 18 +++--- 1 files changed, 11 insertions(+), 7 deletions(-) diff --git a/yavta.c b/yavta.c index 541aa1c..e649ac5 100644 --- a/yavta.c +++ b/yavta.c @@ -567,19 +567,22 @@ static int video_enable(struct device *dev, int