Lines Matching refs:ctrl_handler
50 struct v4l2_ctrl_handler ctrl_handler;
58 v4l2_ctrl_handler_init(&foo->ctrl_handler, nr_of_controls);
72 struct v4l2_ctrl_handler ctrl_handler;
76 foo->v4l2_dev.ctrl_handler = &foo->ctrl_handler;
91 struct v4l2_ctrl_handler ctrl_handler;
95 foo->sd.ctrl_handler = &foo->ctrl_handler;
116 v4l2_ctrl_handler_free(&foo->ctrl_handler);
160 v4l2_ctrl_handler_init(&foo->ctrl_handler, nr_of_controls);
161 v4l2_ctrl_new_std(&foo->ctrl_handler, &foo_ctrl_ops,
163 v4l2_ctrl_new_std(&foo->ctrl_handler, &foo_ctrl_ops,
165 v4l2_ctrl_new_std_menu(&foo->ctrl_handler, &foo_ctrl_ops,
169 v4l2_ctrl_new_int_menu(&foo->ctrl_handler, &foo_ctrl_ops,
174 v4l2_ctrl_new_std_menu_items(&foo->ctrl_handler, &foo_ctrl_ops,
178 if (foo->ctrl_handler.error) {
179 int err = foo->ctrl_handler.error;
181 v4l2_ctrl_handler_free(&foo->ctrl_handler);
214 set ctrl_handler->error to the error code. If ctrl_handler->error was already
226 v4l2_ctrl_handler_setup(&foo->ctrl_handler);
243 struct foo *state = container_of(ctrl->handler, struct foo, ctrl_handler);
277 v4l2_device_register_subdev() and the ctrl_handler fields of both v4l2_subdev
353 ctrl = v4l2_ctrl_new_std(&sd->ctrl_handler, ...);
381 mutex_lock(&state->ctrl_handler.lock);
384 mutex_unlock(&state->ctrl_handler.lock);
428 ctrl = v4l2_ctrl_new_custom(&foo->ctrl_handler, &ctrl_filter, NULL);
471 struct v4l2_ctrl_handler ctrl_handler;
479 v4l2_ctrl_new_std(&state->ctrl_handler, ...);
481 v4l2_ctrl_new_std(&state->ctrl_handler, ...);
494 struct foo *state = container_of(ctrl->handler, struct foo, ctrl_handler);
528 state->volume = v4l2_ctrl_new_std(&state->ctrl_handler, ...);
529 state->mute = v4l2_ctrl_new_std(&state->ctrl_handler, ...);
603 The v4l2_ctrl_handler_log_status(ctrl_handler, prefix) can be used to dump the
614 different video nodes. You can do that by manually setting the ctrl_handler
619 control handler. You do that by simply setting the ctrl_handler field in
624 manually to add the subdev's control handler (sd->ctrl_handler) to the desired
676 volume = v4l2_ctrl_find(sd->ctrl_handler, V4L2_CID_AUDIO_VOLUME);
681 struct v4l2_ctrl_handler ctrl_handler;
683 v4l2_ctrl_new_std(&ctrl_handler, &video_ops, V4L2_CID_BRIGHTNESS, ...);
684 v4l2_ctrl_new_std(&ctrl_handler, &video_ops, V4L2_CID_CONTRAST, ...);
689 contrast = v4l2_find_ctrl(&ctrl_handler, V4L2_CID_CONTRAST);
692 When s_ctrl is called by the framework the ctrl_handler.lock is already taken, so
718 ctrl = v4l2_ctrl_new_custom(&foo->ctrl_handler, &ctrl_private, NULL);