[PATCH v2 06/22] media: Move media graph state for streamon/off to the pipeline

2015-11-29 Thread Sakari Ailus
The struct media_entity_graph was allocated in the stack, limiting the number of entities that could be reasonably allocated. Instead, move the struct to struct media_pipeline which is typically allocated using kmalloc() instead. The intent is to keep the enumeration around for later use for the

[PATCH v2 16/22] v4l: vsp1: Use media entity enumeration API

2015-11-29 Thread Sakari Ailus
From: Sakari Ailus Signed-off-by: Sakari Ailus --- drivers/media/platform/vsp1/vsp1_video.c | 45 ++-- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git

[PATCH v2 05/22] media: Add KernelDoc documentation for struct media_entity_graph

2015-11-29 Thread Sakari Ailus
Signed-off-by: Sakari Ailus --- include/media/media-entity.h | 8 1 file changed, 8 insertions(+) diff --git a/include/media/media-entity.h b/include/media/media-entity.h index 2601bb0..8fd888f 100644 --- a/include/media/media-entity.h +++

[PATCH v2 12/22] v4l: vsp1: Use the new media_entity_graph_walk_start() interface

2015-11-29 Thread Sakari Ailus
Signed-off-by: Sakari Ailus --- drivers/media/platform/vsp1/vsp1_video.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/media/platform/vsp1/vsp1_video.c b/drivers/media/platform/vsp1/vsp1_video.c index f741582..ce10d86 100644 ---

[PATCH v2 22/22] media: Update media graph walk documentation for the changed API

2015-11-29 Thread Sakari Ailus
media_entity_graph_walk_init() and media_entity_graph_walk_cleanup() are now mandatory. Signed-off-by: Sakari Ailus --- Documentation/media-framework.txt | 22 +- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git

[PATCH v2 10/22] v4l: exynos4-is: Use the new media_entity_graph_walk_start() interface

2015-11-29 Thread Sakari Ailus
Signed-off-by: Sakari Ailus Cc: Javier Martinez Canillas Cc: Kamil Debski Cc: Sylwester Nawrocki --- drivers/media/platform/exynos4-is/media-dev.c | 31 +--

[PATCH v2 07/22] media: Amend media graph walk API by init and cleanup functions

2015-11-29 Thread Sakari Ailus
Add media_entity_graph_walk_init() and media_entity_graph_walk_cleanup() functions in order to dynamically allocate memory for the graph. This is not done in media_entity_graph_walk_start() as there are situations where e.g. correct error handling, that itself may not fail, requires successful

[PATCH v2 21/22] media: Rename MEDIA_ENTITY_ENUM_MAX_ID as MEDIA_ENTITY_ENUM_STACK_ALLOC

2015-11-29 Thread Sakari Ailus
The purpose of the macro has changed, rename it accordingly. It is not and should no longer be used in drivers directly, but only for the purpose for defining how many bits can be allocated from the stack for entity enumerations. Signed-off-by: Sakari Ailus ---

[PATCH v2 03/22] media: Add an API to manage entity enumerations

2015-11-29 Thread Sakari Ailus
From: Sakari Ailus This is useful in e.g. knowing whether certain operations have already been performed for an entity. The users include the framework itself (for graph walking) and a number of drivers. Signed-off-by: Sakari Ailus

[PATCH v2 02/22] media: Introduce internal index for media entities

2015-11-29 Thread Sakari Ailus
From: Sakari Ailus The internal index can be used internally by the framework in order to keep track of entities for a purpose or another. The internal index is constant while it's registered to a media device, but the same index may be re-used once the entity

[PATCH v2 20/22] staging: v4l: davinci_vpbe: Use the new media_entity_graph_walk_start() interface

2015-11-29 Thread Sakari Ailus
Signed-off-by: Sakari Ailus Cc: Prabhakar Lad --- drivers/staging/media/davinci_vpfe/vpfe_video.c | 37 ++--- drivers/staging/media/davinci_vpfe/vpfe_video.h | 1 + 2 files changed, 28 insertions(+), 10 deletions(-) diff

[PATCH v2 17/22] staging: v4l: omap4iss: Fix sub-device power management code

2015-11-29 Thread Sakari Ailus
The same bug was present in the omap4iss driver as was in the omap3isp driver. The code got copied to the omap4iss driver while broken. Fix the omap4iss driver as well. Signed-off-by: Sakari Ailus --- drivers/staging/media/omap4iss/iss.c | 4 ++-- 1 file changed, 2

[PATCH v2 08/22] media: Use the new media_entity_graph_walk_start()

2015-11-29 Thread Sakari Ailus
Signed-off-by: Sakari Ailus --- drivers/media/media-entity.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/drivers/media/media-entity.c b/drivers/media/media-entity.c index bf3c31f..4161dc7 100644 --- a/drivers/media/media-entity.c

[PATCH v2 18/22] staging: v4l: omap4iss: Use media entity enum API

2015-11-29 Thread Sakari Ailus
From: Sakari Ailus Signed-off-by: Sakari Ailus --- drivers/staging/media/omap4iss/iss.c | 15 +++ drivers/staging/media/omap4iss/iss.h | 4 ++-- drivers/staging/media/omap4iss/iss_video.c | 13 +++--

[PATCH v2 14/22] media: Keep using the same graph walk object for a given pipeline

2015-11-29 Thread Sakari Ailus
Initialise a given graph walk object once, and then keep using it whilst the same pipeline is running. Once the pipeline is stopped, release the graph walk object. Signed-off-by: Sakari Ailus --- drivers/media/media-entity.c | 17 +++--

[PATCH v2 09/22] v4l: omap3isp: Use the new media_entity_graph_walk_start() interface

2015-11-29 Thread Sakari Ailus
Signed-off-by: Sakari Ailus --- drivers/media/platform/omap3isp/isp.c | 63 ++ drivers/media/platform/omap3isp/isp.h | 4 +- drivers/media/platform/omap3isp/ispvideo.c | 19 - drivers/media/platform/omap3isp/ispvideo.h

[PATCH v2 13/22] media: Use entity enums in graph walk

2015-11-29 Thread Sakari Ailus
This will also mean that the necessary graph related data structures will be allocated dynamically, removing the need for maximum ID checks. Signed-off-by: Sakari Ailus --- drivers/media/media-entity.c | 16 ++-- include/media/media-entity.h | 2 +- 2

[PATCH v2 19/22] staging: v4l: omap4iss: Use the new media_entity_graph_walk_start() interface

2015-11-29 Thread Sakari Ailus
Signed-off-by: Sakari Ailus --- drivers/staging/media/omap4iss/iss.c | 59 +++--- drivers/staging/media/omap4iss/iss.h | 4 +- drivers/staging/media/omap4iss/iss_video.c | 36 ++

[PATCH v2 11/22] v4l: xilinx: Use the new media_entity_graph_walk_start() interface

2015-11-29 Thread Sakari Ailus
Signed-off-by: Sakari Ailus Cc: Hyun Kwon --- drivers/media/platform/xilinx/xilinx-dma.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/media/platform/xilinx/xilinx-dma.c b/drivers/media/platform/xilinx/xilinx-dma.c

[PATCH v2 15/22] v4l: omap3isp: Use media entity enumeration API

2015-11-29 Thread Sakari Ailus
From: Sakari Ailus Signed-off-by: Sakari Ailus --- drivers/media/platform/omap3isp/isp.c | 21 + drivers/media/platform/omap3isp/isp.h | 5 +++-- drivers/media/platform/omap3isp/ispccdc.c | 2 +-

[PATCH v2 04/22] media: Move struct media_entity_graph definition up

2015-11-29 Thread Sakari Ailus
It will be needed in struct media_pipeline shortly. Signed-off-by: Sakari Ailus --- include/media/media-entity.h | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/media/media-entity.h b/include/media/media-entity.h

[PATCH v2 00/22] Unrestricted media entity ID range support

2015-11-29 Thread Sakari Ailus
Hi, This is the second version of the unrestricted media entity ID range support patchset. v1 of the set can be found here: What has changed since v1: - Updated documentation in Documentation/media-framework.txt (last patch). -

[PATCH v2 01/22] media: Enforce single entity->pipe in a pipeline

2015-11-29 Thread Sakari Ailus
If a different entity->pipe in a pipeline was encountered, a warning was issued but the execution continued as if nothing had happened. Return an error instead right there. Signed-off-by: Sakari Ailus --- drivers/media/media-entity.c | 7 ++- 1 file changed, 6

Re: [PATCH 04/19] media: Move struct media_entity_graph definition up

2015-11-29 Thread Sakari Ailus
On Wed, Nov 04, 2015 at 12:22:38AM +0200, Sakari Ailus wrote: > Hi Mauro, > > On Wed, Oct 28, 2015 at 09:36:50AM +0900, Mauro Carvalho Chehab wrote: > > Em Tue, 27 Oct 2015 01:01:35 +0200 > > Sakari Ailus escreveu: > > > > > It will be needed in struct media_pipeline

linuxtv.org downtime around Mon Nov 30 12:00 UTC

2015-11-29 Thread Johannes Stezenbach
Hi, the linuxtv.org server will move to a new, freshly installed machine tomorrow. Expect some downtime while we do the final rsync and database export+import. I'm planning to start disabling services on the old server about 30min before 12:00 UTC (13:00 CET) on Mon Nov 30. If all goes well the

Re: ->poll() instances shouldn't be indefinitely blocking

2015-11-29 Thread Al Viro
On Fri, Nov 27, 2015 at 09:49:11AM -0800, Linus Torvalds wrote: > Al, what do you think? The whole "generic code should be robust wrt > drivers making silly mistakes" just sounds like a good idea. Finding > these things through code inspection is all well and good, but having > a nice warning

cron job: media_tree daily build: ERRORS

2015-11-29 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: Mon Nov 30 04:00:51 CET 2015 git branch: test git hash: 10897dacea26943dd80bd6629117f4620fc320ef gcc