Definition at line 810 of file v4l2-ctrls.c.struct v4l2_ctrl* v4l2_ctrl_find ( struct v4l2_ctrl_handler * hdl, u32 id ) read v4l2_ctrl_find() - Find a control with the given ID. : The control handler. : The control ID to find. If == NULL this will return NULL as well...
Is this something close to what you were having in mind? Right now it sits onhttps://github.com/ribalda/linux/commit/de21dbc2f57b58b22f5d73bc314dd8e59dff5c7dbut I will make it as the beginning of my patchset if you think that I am on the right track....
+ if (type == V4L2_CTRL_TYPE_INTEGER64) elem_size = sizeof(s64); else if (type == V4L2_CTRL_TYPE_STRING) @@ -1828,6 +1837,10 @@ static struct v4l2_ctrl *v4l2_ctrl_new(struct v4l2_ctrl_handler *hdl, ctrl->is_string = type == V4L2_CTRL_TYPE_STRING; ctrl->is_ptr = type...
>>> + const s64 *qmenu_int, const union v4l2_ctrl_ptr >>> p_def, >>> + void *priv) >>> { >>> struct v4l2_ctrl *ctrl; >>> unsigned sz_extra; >>> @@ -2478,6 +2483,9 @@ static struct v4l2_ctrl *v4l2_ctrl_new(struct >>> v4l2_ctrl_handler *hdl, >>> is_array) >...
case V4L2_CTRL_TYPE_INTEGER64: return ptr1.p_s64[idx] == ptr2.p_s64[idx]; + case V4L2_CTRL_TYPE_U8: + return ptr1.p_u8[idx] == ptr2.p_u8[idx]; + case V4L2_CTRL_TYPE_U16: + return ptr1.p_u16[idx] == ptr2.p_u16[idx]; default: if (ctrl->is_int) return ptr1....
(const struct v4l2_ctrl *ctrl, } } -static void std_init(const struct v4l2_ctrl *ctrl, +static void std_init(const struct v4l2_ctrl *ctrl, u32 idx, union v4l2_ctrl_ptr ptr) { switch (ctrl->type) { @@ -1207,6 +1207,14 @@ static void std_log(const struct v4l2_ctrl *ctrl)...