summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2016-02-21 19:25:08 +0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-03-03 18:17:28 +0300
commit0c426c472b5585ed6e59160359c979506d45ae49 (patch)
tree7ed243973e39fc5ebe3b90a61ca033dfdb0238f1 /include/media
parent4f27dba6d9ff2ab3c5aa371816b3a3c6a18d8d5d (diff)
downloadlinux-0c426c472b5585ed6e59160359c979506d45ae49.tar.xz
[media] media: Always keep a graph walk large enough around
Re-create the graph walk object as needed in order to have one large enough available for all entities in the graph. This enumeration is used for pipeline power management in the future. [mchehab@osg.samsung.com: fix documentation bug: " warning: bad line: graph_mutex"] Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/media-device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/media-device.h b/include/media/media-device.h
index 32bbba7d8115..df74cfa7da4a 100644
--- a/include/media/media-device.h
+++ b/include/media/media-device.h
@@ -306,6 +306,8 @@ struct media_entity_notify {
* @entity_notify: List of registered entity_notify callbacks
* @lock: Entities list lock
* @graph_mutex: Entities graph operation lock
+ * @pm_count_walk: Graph walk for power state walk. Access serialised using
+ * graph_mutex.
*
* @source_priv: Driver Private data for enable/disable source handlers
* @enable_source: Enable Source Handler function pointer
@@ -373,6 +375,7 @@ struct media_device {
spinlock_t lock;
/* Serializes graph operations. */
struct mutex graph_mutex;
+ struct media_entity_graph pm_count_walk;
void *source_priv;
int (*enable_source)(struct media_entity *entity,