aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/media-device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/media/media-device.h')
-rw-r--r--include/media/media-device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/media/media-device.h b/include/media/media-device.h
index a8390fe87e83..5d2bff4fc9e0 100644
--- a/include/media/media-device.h
+++ b/include/media/media-device.h
@@ -25,6 +25,7 @@
25 25
26#include <linux/device.h> 26#include <linux/device.h>
27#include <linux/list.h> 27#include <linux/list.h>
28#include <linux/mutex.h>
28#include <linux/spinlock.h> 29#include <linux/spinlock.h>
29 30
30#include <media/media-devnode.h> 31#include <media/media-devnode.h>
@@ -42,6 +43,7 @@
42 * @entity_id: ID of the next entity to be registered 43 * @entity_id: ID of the next entity to be registered
43 * @entities: List of registered entities 44 * @entities: List of registered entities
44 * @lock: Entities list lock 45 * @lock: Entities list lock
46 * @graph_mutex: Entities graph operation lock
45 * 47 *
46 * This structure represents an abstract high-level media device. It allows easy 48 * This structure represents an abstract high-level media device. It allows easy
47 * access to entities and provides basic media device-level support. The 49 * access to entities and provides basic media device-level support. The
@@ -69,6 +71,8 @@ struct media_device {
69 71
70 /* Protects the entities list */ 72 /* Protects the entities list */
71 spinlock_t lock; 73 spinlock_t lock;
74 /* Serializes graph operations. */
75 struct mutex graph_mutex;
72}; 76};
73 77
74/* media_devnode to media_device */ 78/* media_devnode to media_device */