Lines Matching refs:ctrl_handler
67 struct v4l2_ctrl_handler ctrl_handler;
79 struct v4l2_ctrl_handler ctrl_handler;
87 v4l2_ctrl_handler_init(&foo->ctrl_handler, nr_of_controls);
99 foo->v4l2_dev.ctrl_handler = &foo->ctrl_handler;
105 foo->sd.ctrl_handler = &foo->ctrl_handler;
111 v4l2_ctrl_handler_free(&foo->ctrl_handler);
167 v4l2_ctrl_handler_init(&foo->ctrl_handler, nr_of_controls);
168 v4l2_ctrl_new_std(&foo->ctrl_handler, &foo_ctrl_ops,
170 v4l2_ctrl_new_std(&foo->ctrl_handler, &foo_ctrl_ops,
172 v4l2_ctrl_new_std_menu(&foo->ctrl_handler, &foo_ctrl_ops,
176 v4l2_ctrl_new_int_menu(&foo->ctrl_handler, &foo_ctrl_ops,
181 v4l2_ctrl_new_std_menu_items(&foo->ctrl_handler, &foo_ctrl_ops,
185 if (foo->ctrl_handler.error) {
186 int err = foo->ctrl_handler.error;
188 v4l2_ctrl_handler_free(&foo->ctrl_handler);
222 set ctrl_handler->error to the error code. If ctrl_handler->error was already
236 v4l2_ctrl_handler_setup(&foo->ctrl_handler);
257 struct foo *state = container_of(ctrl->handler, struct foo, ctrl_handler);
289 v4l2_device_register_subdev() and the ctrl_handler fields of both v4l2_subdev
375 ctrl = v4l2_ctrl_new_std(&sd->ctrl_handler, ...);
407 mutex_lock(&state->ctrl_handler.lock);
410 mutex_unlock(&state->ctrl_handler.lock);
458 ctrl = v4l2_ctrl_new_custom(&foo->ctrl_handler, &ctrl_filter, NULL);
503 struct v4l2_ctrl_handler ctrl_handler;
511 v4l2_ctrl_new_std(&state->ctrl_handler, ...);
513 v4l2_ctrl_new_std(&state->ctrl_handler, ...);
528 struct foo *state = container_of(ctrl->handler, struct foo, ctrl_handler);
568 state->volume = v4l2_ctrl_new_std(&state->ctrl_handler, ...);
569 state->mute = v4l2_ctrl_new_std(&state->ctrl_handler, ...);
645 The v4l2_ctrl_handler_log_status(ctrl_handler, prefix) can be used to dump the
656 different video nodes. You can do that by manually setting the ctrl_handler
661 control handler. You do that by simply setting the ctrl_handler field in
666 manually to add the subdev's control handler (sd->ctrl_handler) to the desired
725 volume = v4l2_ctrl_find(sd->ctrl_handler, V4L2_CID_AUDIO_VOLUME);
732 struct v4l2_ctrl_handler ctrl_handler;
734 v4l2_ctrl_new_std(&ctrl_handler, &video_ops, V4L2_CID_BRIGHTNESS, ...);
735 v4l2_ctrl_new_std(&ctrl_handler, &video_ops, V4L2_CID_CONTRAST, ...);
742 contrast = v4l2_find_ctrl(&ctrl_handler, V4L2_CID_CONTRAST);
745 When s_ctrl is called by the framework the ctrl_handler.lock is already taken, so
773 ctrl = v4l2_ctrl_new_custom(&foo->ctrl_handler, &ctrl_private, NULL);