diff options
Diffstat (limited to 'include/media/v4l2-common.h')
-rw-r--r-- | include/media/v4l2-common.h | 15 |
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 | |||
84 | struct v4l2_prio_state { | ||
85 | atomic_t prios[4]; | ||
86 | }; | ||
87 | int v4l2_prio_init(struct v4l2_prio_state *global); | ||
88 | int v4l2_prio_change(struct v4l2_prio_state *global, enum v4l2_priority *local, | ||
89 | enum v4l2_priority new); | ||
90 | int v4l2_prio_open(struct v4l2_prio_state *global, enum v4l2_priority *local); | ||
91 | int v4l2_prio_close(struct v4l2_prio_state *global, enum v4l2_priority *local); | ||
92 | enum v4l2_priority v4l2_prio_max(struct v4l2_prio_state *global); | ||
93 | int 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 | ||
84 | int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl, | 99 | int v4l2_ctrl_check(struct v4l2_ext_control *ctrl, struct v4l2_queryctrl *qctrl, |