aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/media/v4l2-common.h')
-rw-r--r--include/media/v4l2-common.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h
index 020d05758bd8..8bbb526a5a24 100644
--- a/include/media/v4l2-common.h
+++ b/include/media/v4l2-common.h
@@ -79,6 +79,21 @@
79 79
80/* ------------------------------------------------------------------------- */ 80/* ------------------------------------------------------------------------- */
81 81
82/* Priority helper functions */
83
84struct v4l2_prio_state {
85 atomic_t prios[4];
86};
87int v4l2_prio_init(struct v4l2_prio_state *global);
88int v4l2_prio_change(struct v4l2_prio_state *global, enum v4l2_priority *local,
89 enum v4l2_priority new);
90int v4l2_prio_open(struct v4l2_prio_state *global, enum v4l2_priority *local);
91int v4l2_prio_close(struct v4l2_prio_state *global, enum v4l2_priority *local);
92enum v4l2_priority v4l2_prio_max(struct v4l2_prio_state *global);
93int v4l2_prio_check(struct v4l2_prio_state *global, enum v4l2_priority *local);
94
95/* ------------------------------------------------------------------------- */
96
82/* Control helper functions */ 97/* Control helper functions */
83 98
84int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl, 99int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl,