Lines Matching refs:ctrl_hdlr
784 struct v4l2_ctrl_handler *ctrl_hdlr; in ov5675_init_controls() local
788 ctrl_hdlr = &ov5675->ctrl_handler; in ov5675_init_controls()
789 ret = v4l2_ctrl_handler_init(ctrl_hdlr, 10); in ov5675_init_controls()
793 ctrl_hdlr->lock = &ov5675->mutex; in ov5675_init_controls()
794 ov5675->link_freq = v4l2_ctrl_new_int_menu(ctrl_hdlr, &ov5675_ctrl_ops, in ov5675_init_controls()
801 ov5675->pixel_rate = v4l2_ctrl_new_std(ctrl_hdlr, &ov5675_ctrl_ops, in ov5675_init_controls()
806 ov5675->vblank = v4l2_ctrl_new_std(ctrl_hdlr, &ov5675_ctrl_ops, in ov5675_init_controls()
813 ov5675->hblank = v4l2_ctrl_new_std(ctrl_hdlr, &ov5675_ctrl_ops, in ov5675_init_controls()
819 v4l2_ctrl_new_std(ctrl_hdlr, &ov5675_ctrl_ops, V4L2_CID_ANALOGUE_GAIN, in ov5675_init_controls()
822 v4l2_ctrl_new_std(ctrl_hdlr, &ov5675_ctrl_ops, V4L2_CID_DIGITAL_GAIN, in ov5675_init_controls()
826 ov5675->exposure = v4l2_ctrl_new_std(ctrl_hdlr, &ov5675_ctrl_ops, in ov5675_init_controls()
831 v4l2_ctrl_new_std_menu_items(ctrl_hdlr, &ov5675_ctrl_ops, in ov5675_init_controls()
835 v4l2_ctrl_new_std(ctrl_hdlr, &ov5675_ctrl_ops, in ov5675_init_controls()
837 v4l2_ctrl_new_std(ctrl_hdlr, &ov5675_ctrl_ops, in ov5675_init_controls()
840 if (ctrl_hdlr->error) { in ov5675_init_controls()
841 v4l2_ctrl_handler_free(ctrl_hdlr); in ov5675_init_controls()
842 return ctrl_hdlr->error; in ov5675_init_controls()
849 ret = v4l2_ctrl_new_fwnode_properties(ctrl_hdlr, &ov5675_ctrl_ops, in ov5675_init_controls()
854 ov5675->sd.ctrl_handler = ctrl_hdlr; in ov5675_init_controls()
859 v4l2_ctrl_handler_free(ctrl_hdlr); in ov5675_init_controls()