aboutsummaryrefslogtreecommitdiffstats
path: root/include/media
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-12-29 08:05:02 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-22 15:37:54 -0400
commit022654930891c7ddfdb1ea34d6c4af9d1096bf91 (patch)
tree396edb9d7c4dcde4e862e89b2ed4b770ad830462 /include/media
parent8c1476ffc0b820f6ca8cc0b3f50c8a0f57e8d82d (diff)
[media] v4l2_prio: move from v4l2-common to v4l2-dev
We are going to move priority handling into the v4l2 core. As a consequence the v4l2_prio helper functions need to be moved into the core videodev module as well to prevent circular dependencies. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/v4l2-common.h15
-rw-r--r--include/media/v4l2-dev.h15
2 files changed, 15 insertions, 15 deletions
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h
index a659319e8582..a298ec49ddc4 100644
--- a/include/media/v4l2-common.h
+++ b/include/media/v4l2-common.h
@@ -80,21 +80,6 @@
80 80
81/* ------------------------------------------------------------------------- */ 81/* ------------------------------------------------------------------------- */
82 82
83/* Priority helper functions */
84
85struct v4l2_prio_state {
86 atomic_t prios[4];
87};
88void v4l2_prio_init(struct v4l2_prio_state *global);
89int v4l2_prio_change(struct v4l2_prio_state *global, enum v4l2_priority *local,
90 enum v4l2_priority new);
91void v4l2_prio_open(struct v4l2_prio_state *global, enum v4l2_priority *local);
92void v4l2_prio_close(struct v4l2_prio_state *global, enum v4l2_priority local);
93enum v4l2_priority v4l2_prio_max(struct v4l2_prio_state *global);
94int v4l2_prio_check(struct v4l2_prio_state *global, enum v4l2_priority local);
95
96/* ------------------------------------------------------------------------- */
97
98/* Control helper functions */ 83/* Control helper functions */
99 84
100int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl, 85int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl,
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h
index 51b2c515f687..9193703f4f0f 100644
--- a/include/media/v4l2-dev.h
+++ b/include/media/v4l2-dev.h
@@ -37,6 +37,21 @@ struct v4l2_ctrl_handler;
37#define V4L2_FL_REGISTERED (0) 37#define V4L2_FL_REGISTERED (0)
38#define V4L2_FL_USES_V4L2_FH (1) 38#define V4L2_FL_USES_V4L2_FH (1)
39 39
40/* Priority helper functions */
41
42struct v4l2_prio_state {
43 atomic_t prios[4];
44};
45
46void v4l2_prio_init(struct v4l2_prio_state *global);
47int v4l2_prio_change(struct v4l2_prio_state *global, enum v4l2_priority *local,
48 enum v4l2_priority new);
49void v4l2_prio_open(struct v4l2_prio_state *global, enum v4l2_priority *local);
50void v4l2_prio_close(struct v4l2_prio_state *global, enum v4l2_priority local);
51enum v4l2_priority v4l2_prio_max(struct v4l2_prio_state *global);
52int v4l2_prio_check(struct v4l2_prio_state *global, enum v4l2_priority local);
53
54
40struct v4l2_file_operations { 55struct v4l2_file_operations {
41 struct module *owner; 56 struct module *owner;
42 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *); 57 ssize_t (*read) (struct file *, char __user *, size_t, loff_t *);