summaryrefslogtreecommitdiff
path: root/linux/include/media/v4l2-common.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 09:36:07 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 09:36:07 -0300
commit7abbab1a9801ad11729cc746653a909972548502 (patch)
tree232a3bbdbf4c48b602848b9b0031b79e734fc599 /linux/include/media/v4l2-common.h
parentec810366b1dc73c6e1e9251b2bf21135e42d9fc7 (diff)
parent619f91291de90dbff3aaafdf29a3886757eda34f (diff)
downloadmediapointer-dvb-s2-7abbab1a9801ad11729cc746653a909972548502.tar.gz
mediapointer-dvb-s2-7abbab1a9801ad11729cc746653a909972548502.tar.bz2
merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-videodev2
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/include/media/v4l2-common.h')
-rw-r--r--linux/include/media/v4l2-common.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/linux/include/media/v4l2-common.h b/linux/include/media/v4l2-common.h
index 020d05758..8bbb526a5 100644
--- a/linux/include/media/v4l2-common.h
+++ b/linux/include/media/v4l2-common.h
@@ -79,6 +79,21 @@
/* ------------------------------------------------------------------------- */
+/* Priority helper functions */
+
+struct v4l2_prio_state {
+ atomic_t prios[4];
+};
+int v4l2_prio_init(struct v4l2_prio_state *global);
+int v4l2_prio_change(struct v4l2_prio_state *global, enum v4l2_priority *local,
+ enum v4l2_priority new);
+int v4l2_prio_open(struct v4l2_prio_state *global, enum v4l2_priority *local);
+int v4l2_prio_close(struct v4l2_prio_state *global, enum v4l2_priority *local);
+enum v4l2_priority v4l2_prio_max(struct v4l2_prio_state *global);
+int v4l2_prio_check(struct v4l2_prio_state *global, enum v4l2_priority *local);
+
+/* ------------------------------------------------------------------------- */
+
/* Control helper functions */
int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl,