Home
last modified time | relevance | path

Searched refs:ctrl_handler (Results 1 – 25 of 442) sorted by relevance

12345678910>>...18

/linux-6.12.1/drivers/media/platform/qcom/venus/
Dvenc_ctrls.c384 ret = v4l2_ctrl_handler_init(&inst->ctrl_handler, 59); in venc_ctrl_init()
388 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
396 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
401 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
408 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
413 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
421 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
426 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
437 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
442 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
[all …]
Dvdec_ctrls.c101 ret = v4l2_ctrl_handler_init(&inst->ctrl_handler, 12); in vdec_ctrl_init()
105 ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
114 ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
121 ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
134 ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
141 ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
148 ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
155 ctrl = v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
162 v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
165 ctrl = v4l2_ctrl_new_std(&inst->ctrl_handler, &vdec_ctrl_ops, in vdec_ctrl_init()
[all …]
/linux-6.12.1/drivers/media/platform/xilinx/
Dxilinx-tpg.c100 struct v4l2_ctrl_handler ctrl_handler; member
158 mutex_lock(xtpg->ctrl_handler.lock); in xtpg_update_pattern_control()
160 mutex_unlock(xtpg->ctrl_handler.lock); in xtpg_update_pattern_control()
216 mutex_lock(xtpg->ctrl_handler.lock); in xtpg_s_stream()
230 mutex_unlock(xtpg->ctrl_handler.lock); in xtpg_s_stream()
376 ctrl_handler); in xtpg_s_ctrl()
844 v4l2_ctrl_handler_init(&xtpg->ctrl_handler, 3 + ARRAY_SIZE(xtpg_ctrls)); in xtpg_probe()
846 xtpg->vblank = v4l2_ctrl_new_std(&xtpg->ctrl_handler, &xtpg_ctrl_ops, in xtpg_probe()
849 xtpg->hblank = v4l2_ctrl_new_std(&xtpg->ctrl_handler, &xtpg_ctrl_ops, in xtpg_probe()
852 xtpg->pattern = v4l2_ctrl_new_std_menu_items(&xtpg->ctrl_handler, in xtpg_probe()
[all …]
/linux-6.12.1/drivers/media/radio/wl128x/
Dfmdrv_v4l2.c194 struct fmdev, ctrl_handler); in fm_g_volatile_ctrl()
211 struct fmdev, ctrl_handler); in fm_v4l2_s_ctrl()
548 fmdev->radio_dev->ctrl_handler = &fmdev->ctrl_handler; in fm_v4l2_init_video_device()
550 ret = v4l2_ctrl_handler_init(&fmdev->ctrl_handler, 5); in fm_v4l2_init_video_device()
553 v4l2_ctrl_handler_free(&fmdev->ctrl_handler); in fm_v4l2_init_video_device()
563 v4l2_ctrl_new_std(&fmdev->ctrl_handler, &fm_ctrl_ops, in fm_v4l2_init_video_device()
567 v4l2_ctrl_new_std(&fmdev->ctrl_handler, &fm_ctrl_ops, in fm_v4l2_init_video_device()
570 v4l2_ctrl_new_std_menu(&fmdev->ctrl_handler, &fm_ctrl_ops, in fm_v4l2_init_video_device()
574 v4l2_ctrl_new_std(&fmdev->ctrl_handler, &fm_ctrl_ops, in fm_v4l2_init_video_device()
578 ctrl = v4l2_ctrl_new_std(&fmdev->ctrl_handler, &fm_ctrl_ops, in fm_v4l2_init_video_device()
[all …]
/linux-6.12.1/drivers/staging/media/max96712/
Dmax96712.c37 struct v4l2_ctrl_handler ctrl_handler; member
288 container_of(ctrl->handler, struct max96712_priv, ctrl_handler); in max96712_s_ctrl()
314 v4l2_ctrl_handler_init(&priv->ctrl_handler, 2); in max96712_v4l2_register()
321 v4l2_ctrl_new_std(&priv->ctrl_handler, NULL, V4L2_CID_PIXEL_RATE, in max96712_v4l2_register()
324 v4l2_ctrl_new_std_menu_items(&priv->ctrl_handler, &max96712_ctrl_ops, in max96712_v4l2_register()
329 priv->sd.ctrl_handler = &priv->ctrl_handler; in max96712_v4l2_register()
330 ret = priv->ctrl_handler.error; in max96712_v4l2_register()
341 priv->sd.state_lock = priv->ctrl_handler.lock; in max96712_v4l2_register()
354 v4l2_ctrl_handler_free(&priv->ctrl_handler); in max96712_v4l2_register()
/linux-6.12.1/drivers/media/pci/intel/ivsc/
Dmei_csi.c126 struct v4l2_ctrl_handler ctrl_handler; member
166 return container_of(ctrl->handler, struct mei_csi, ctrl_handler); in ctrl_to_csi()
293 freq = v4l2_get_link_freq(csi->remote->ctrl_handler, 0, 0); in mei_csi_set_stream()
482 freq = v4l2_get_link_freq(csi->remote->ctrl_handler, 0, 0); in mei_csi_g_volatile_ctrl()
566 ret = v4l2_ctrl_handler_init(&csi->ctrl_handler, 2); in mei_csi_init_controls()
570 csi->ctrl_handler.lock = &csi->ctrl_lock; in mei_csi_init_controls()
573 csi->freq_ctrl = v4l2_ctrl_new_int_menu(&csi->ctrl_handler, in mei_csi_init_controls()
583 csi->privacy_ctrl = v4l2_ctrl_new_std(&csi->ctrl_handler, NULL, in mei_csi_init_controls()
588 if (csi->ctrl_handler.error) in mei_csi_init_controls()
589 return csi->ctrl_handler.error; in mei_csi_init_controls()
[all …]
/linux-6.12.1/Documentation/driver-api/media/
Dv4l2-controls.rst67 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);
176 v4l2_ctrl_handler_init(&foo->ctrl_handler, nr_of_controls);
177 v4l2_ctrl_new_std(&foo->ctrl_handler, &foo_ctrl_ops,
179 v4l2_ctrl_new_std(&foo->ctrl_handler, &foo_ctrl_ops,
181 v4l2_ctrl_new_std_menu(&foo->ctrl_handler, &foo_ctrl_ops,
[all …]
/linux-6.12.1/drivers/media/platform/amphion/
Dvenc.c595 ret = v4l2_ctrl_handler_init(&inst->ctrl_handler, 20); in venc_ctrl_init()
599 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
607 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
613 v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
616 v4l2_ctrl_new_std_menu(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
623 v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
630 v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
636 v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
639 v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
642 v4l2_ctrl_new_std(&inst->ctrl_handler, &venc_ctrl_ops, in venc_ctrl_init()
[all …]
/linux-6.12.1/drivers/media/radio/
Dtea575x.c453 struct snd_tea575x *tea = container_of(ctrl->handler, struct snd_tea575x, ctrl_handler); in tea575x_s_ctrl()
539 tea->vd.ctrl_handler = &tea->ctrl_handler; in snd_tea575x_init()
540 v4l2_ctrl_handler_init(&tea->ctrl_handler, 1); in snd_tea575x_init()
541 v4l2_ctrl_new_std(&tea->ctrl_handler, &tea575x_ctrl_ops, in snd_tea575x_init()
543 retval = tea->ctrl_handler.error; in snd_tea575x_init()
546 v4l2_ctrl_handler_free(&tea->ctrl_handler); in snd_tea575x_init()
553 v4l2_ctrl_handler_free(&tea->ctrl_handler); in snd_tea575x_init()
558 v4l2_ctrl_handler_setup(&tea->ctrl_handler); in snd_tea575x_init()
564 v4l2_ctrl_handler_free(tea->vd.ctrl_handler); in snd_tea575x_init()
575 v4l2_ctrl_handler_free(tea->vd.ctrl_handler); in snd_tea575x_exit()
Dradio-tea5777.c486 container_of(c->handler, struct radio_tea5777, ctrl_handler); in tea575x_s_ctrl()
559 tea->vd.ctrl_handler = &tea->ctrl_handler; in radio_tea5777_init()
560 v4l2_ctrl_handler_init(&tea->ctrl_handler, 1); in radio_tea5777_init()
561 v4l2_ctrl_new_std(&tea->ctrl_handler, &tea575x_ctrl_ops, in radio_tea5777_init()
563 res = tea->ctrl_handler.error; in radio_tea5777_init()
566 v4l2_ctrl_handler_free(&tea->ctrl_handler); in radio_tea5777_init()
569 v4l2_ctrl_handler_setup(&tea->ctrl_handler); in radio_tea5777_init()
574 v4l2_ctrl_handler_free(tea->vd.ctrl_handler); in radio_tea5777_init()
585 v4l2_ctrl_handler_free(tea->vd.ctrl_handler); in radio_tea5777_exit()
Dradio-si476x.c305 struct v4l2_ctrl_handler ctrl_handler; member
318 return container_of(d, struct si476x_radio, ctrl_handler); in v4l2_ctrl_handler_to_radio()
1056 v4l2_ctrl_handler_setup(&radio->ctrl_handler); in si476x_radio_fops_open()
1364 ctrl = v4l2_ctrl_new_custom(&radio->ctrl_handler, in si476x_radio_add_new_custom()
1367 rval = radio->ctrl_handler.error; in si476x_radio_add_new_custom()
1416 radio->v4l2dev.ctrl_handler = &radio->ctrl_handler; in si476x_radio_probe()
1417 v4l2_ctrl_handler_init(&radio->ctrl_handler, in si476x_radio_probe()
1421 ctrl = v4l2_ctrl_new_std_menu(&radio->ctrl_handler, in si476x_radio_probe()
1426 rval = radio->ctrl_handler.error; in si476x_radio_probe()
1451 ctrl = v4l2_ctrl_new_std_menu(&radio->ctrl_handler, in si476x_radio_probe()
[all …]
Dradio-sf16fmr2.c151 struct snd_tea575x *tea = container_of(ctrl->handler, struct snd_tea575x, ctrl_handler); in fmr2_s_ctrl()
190 …fmr2->volume = v4l2_ctrl_new_std(&tea->ctrl_handler, &fmr2_ctrl_ops, V4L2_CID_AUDIO_VOLUME, 0, 68,… in fmr2_tea_ext_init()
191 …fmr2->balance = v4l2_ctrl_new_std(&tea->ctrl_handler, &fmr2_ctrl_ops, V4L2_CID_AUDIO_BALANCE, -68,… in fmr2_tea_ext_init()
192 if (tea->ctrl_handler.error) { in fmr2_tea_ext_init()
194 return tea->ctrl_handler.error; in fmr2_tea_ext_init()
/linux-6.12.1/drivers/media/pci/intel/ipu6/
Dipu6-isys-subdev.c373 ret = v4l2_ctrl_handler_init(&asd->ctrl_handler, nr_ctrls); in ipu6_isys_subdev_init()
378 if (asd->ctrl_handler.error) { in ipu6_isys_subdev_init()
379 ret = asd->ctrl_handler.error; in ipu6_isys_subdev_init()
383 asd->sd.ctrl_handler = &asd->ctrl_handler; in ipu6_isys_subdev_init()
391 v4l2_ctrl_handler_free(&asd->ctrl_handler); in ipu6_isys_subdev_init()
402 v4l2_ctrl_handler_free(&asd->ctrl_handler); in ipu6_isys_subdev_cleanup()
/linux-6.12.1/drivers/media/platform/st/sti/hva/
Dhva-v4l2.c616 ctrl_handler); in hva_s_ctrl()
697 v4l2_ctrl_handler_init(&ctx->ctrl_handler, 15); in hva_ctrls_setup()
699 v4l2_ctrl_new_std_menu(&ctx->ctrl_handler, &hva_ctrl_ops, in hva_ctrls_setup()
705 v4l2_ctrl_new_std(&ctx->ctrl_handler, &hva_ctrl_ops, in hva_ctrls_setup()
709 v4l2_ctrl_new_std(&ctx->ctrl_handler, &hva_ctrl_ops, in hva_ctrls_setup()
714 v4l2_ctrl_new_std_menu(&ctx->ctrl_handler, &hva_ctrl_ops, in hva_ctrls_setup()
724 v4l2_ctrl_new_std_menu(&ctx->ctrl_handler, &hva_ctrl_ops, in hva_ctrls_setup()
730 v4l2_ctrl_new_std_menu(&ctx->ctrl_handler, &hva_ctrl_ops, in hva_ctrls_setup()
736 v4l2_ctrl_new_std_menu(&ctx->ctrl_handler, &hva_ctrl_ops, in hva_ctrls_setup()
742 v4l2_ctrl_new_std(&ctx->ctrl_handler, &hva_ctrl_ops, in hva_ctrls_setup()
[all …]
/linux-6.12.1/drivers/media/platform/verisilicon/
Dhantro_drv.c42 ctrl = v4l2_ctrl_find(&ctx->ctrl_handler, id); in hantro_get_ctrl()
140 &ctx->ctrl_handler); in hantro_start_prepare_run()
163 &ctx->ctrl_handler); in hantro_end_prepare_run()
296 struct hantro_ctx, ctrl_handler); in hantro_jpeg_s_ctrl()
316 struct hantro_ctx, ctrl_handler); in hantro_vp9_s_ctrl()
339 struct hantro_ctx, ctrl_handler); in hantro_hevc_s_ctrl()
363 struct hantro_ctx, ctrl_handler); in hantro_av1_s_ctrl()
603 v4l2_ctrl_handler_init(&ctx->ctrl_handler, num_ctrls); in hantro_ctrls_setup()
609 v4l2_ctrl_new_custom(&ctx->ctrl_handler, in hantro_ctrls_setup()
611 if (ctx->ctrl_handler.error) { in hantro_ctrls_setup()
[all …]
/linux-6.12.1/drivers/media/platform/rockchip/rga/
Drga.c132 ctrl_handler); in rga_s_ctrl()
162 v4l2_ctrl_handler_init(&ctx->ctrl_handler, 4); in rga_setup_ctrls()
164 v4l2_ctrl_new_std(&ctx->ctrl_handler, &rga_ctrl_ops, in rga_setup_ctrls()
167 v4l2_ctrl_new_std(&ctx->ctrl_handler, &rga_ctrl_ops, in rga_setup_ctrls()
170 v4l2_ctrl_new_std(&ctx->ctrl_handler, &rga_ctrl_ops, in rga_setup_ctrls()
173 v4l2_ctrl_new_std(&ctx->ctrl_handler, &rga_ctrl_ops, in rga_setup_ctrls()
176 if (ctx->ctrl_handler.error) { in rga_setup_ctrls()
177 int err = ctx->ctrl_handler.error; in rga_setup_ctrls()
180 v4l2_ctrl_handler_free(&ctx->ctrl_handler); in rga_setup_ctrls()
404 v4l2_ctrl_handler_setup(&ctx->ctrl_handler); in rga_open()
[all …]
/linux-6.12.1/drivers/media/platform/mediatek/mdp3/
Dmtk-mdp3-m2m.c20 return container_of(ctrl->handler, struct mdp_m2m_ctx, ctrl_handler); in ctrl_to_ctx()
541 v4l2_ctrl_handler_init(&ctx->ctrl_handler, MDP_MAX_CTRLS); in mdp_m2m_ctrls_create()
542 ctx->ctrls.hflip = v4l2_ctrl_new_std(&ctx->ctrl_handler, in mdp_m2m_ctrls_create()
545 ctx->ctrls.vflip = v4l2_ctrl_new_std(&ctx->ctrl_handler, in mdp_m2m_ctrls_create()
548 ctx->ctrls.rotate = v4l2_ctrl_new_std(&ctx->ctrl_handler, in mdp_m2m_ctrls_create()
552 if (ctx->ctrl_handler.error) { in mdp_m2m_ctrls_create()
553 int err = ctx->ctrl_handler.error; in mdp_m2m_ctrls_create()
555 v4l2_ctrl_handler_free(&ctx->ctrl_handler); in mdp_m2m_ctrls_create()
596 ctx->fh.ctrl_handler = &ctx->ctrl_handler; in mdp_m2m_open()
633 v4l2_ctrl_handler_free(&ctx->ctrl_handler); in mdp_m2m_open()
[all …]
/linux-6.12.1/drivers/media/platform/samsung/s5p-g2d/
Dg2d.c176 ctrl_handler); in g2d_s_ctrl()
205 v4l2_ctrl_handler_init(&ctx->ctrl_handler, 3); in g2d_setup_ctrls()
207 ctx->ctrl_hflip = v4l2_ctrl_new_std(&ctx->ctrl_handler, &g2d_ctrl_ops, in g2d_setup_ctrls()
210 ctx->ctrl_vflip = v4l2_ctrl_new_std(&ctx->ctrl_handler, &g2d_ctrl_ops, in g2d_setup_ctrls()
214 &ctx->ctrl_handler, in g2d_setup_ctrls()
221 if (ctx->ctrl_handler.error) { in g2d_setup_ctrls()
222 int err = ctx->ctrl_handler.error; in g2d_setup_ctrls()
224 v4l2_ctrl_handler_free(&ctx->ctrl_handler); in g2d_setup_ctrls()
265 v4l2_ctrl_handler_setup(&ctx->ctrl_handler); in g2d_open()
267 ctx->fh.ctrl_handler = &ctx->ctrl_handler; in g2d_open()
[all …]
/linux-6.12.1/drivers/staging/media/imx/
Dimx-media-fim.c44 struct v4l2_ctrl_handler ctrl_handler; member
220 ctrl_handler); in fim_s_ctrl()
326 struct v4l2_ctrl_handler *hdlr = &fim->ctrl_handler; in init_fim_controls()
403 return v4l2_ctrl_add_handler(fim->sd->ctrl_handler, in imx_media_fim_add_controls()
404 &fim->ctrl_handler, NULL, true); in imx_media_fim_add_controls()
430 v4l2_ctrl_handler_free(&fim->ctrl_handler); in imx_media_fim_free()
Dimx-media-dev-common.c209 ret = v4l2_ctrl_add_handler(vfd->ctrl_handler, in imx_media_inherit_controls()
210 sd->ctrl_handler, in imx_media_inherit_controls()
275 if (!vfd->ctrl_handler) in imx_media_link_notify()
280 v4l2_ctrl_handler_free(vfd->ctrl_handler); in imx_media_link_notify()
281 v4l2_ctrl_handler_init(vfd->ctrl_handler, 0); in imx_media_link_notify()
287 if (!vfd->ctrl_handler) in imx_media_link_notify()
/linux-6.12.1/drivers/staging/media/atomisp/pci/
Datomisp_subdev.c853 ret = v4l2_ctrl_handler_init(&asd->ctrl_handler, 1); in isp_subdev_init_entities()
857 asd->run_mode = v4l2_ctrl_new_custom(&asd->ctrl_handler, in isp_subdev_init_entities()
859 asd->vfpp = v4l2_ctrl_new_custom(&asd->ctrl_handler, in isp_subdev_init_entities()
861 asd->continuous_viewfinder = v4l2_ctrl_new_custom(&asd->ctrl_handler, in isp_subdev_init_entities()
865 v4l2_ctrl_new_custom(&asd->ctrl_handler, in isp_subdev_init_entities()
870 v4l2_ctrl_new_custom(&asd->ctrl_handler, in isp_subdev_init_entities()
874 v4l2_ctrl_new_custom(&asd->ctrl_handler, in isp_subdev_init_entities()
879 asd->subdev.ctrl_handler = &asd->ctrl_handler; in isp_subdev_init_entities()
881 return asd->ctrl_handler.error; in isp_subdev_init_entities()
886 v4l2_ctrl_handler_free(&asd->ctrl_handler); in atomisp_subdev_cleanup_entities()
/linux-6.12.1/drivers/staging/media/tegra-video/
Dvi.c907 ctrl_handler); in vi_s_ctrl()
958 v4l2_ctrl_new_std_menu_items(&chan->ctrl_handler, &vi_ctrl_ops, in tegra_channel_setup_ctrl_handler()
962 if (chan->ctrl_handler.error) { in tegra_channel_setup_ctrl_handler()
964 chan->ctrl_handler.error); in tegra_channel_setup_ctrl_handler()
965 v4l2_ctrl_handler_free(&chan->ctrl_handler); in tegra_channel_setup_ctrl_handler()
966 return chan->ctrl_handler.error; in tegra_channel_setup_ctrl_handler()
972 v4l2_ctrl_new_custom(&chan->ctrl_handler, &syncpt_timeout_ctrl, NULL); in tegra_channel_setup_ctrl_handler()
973 if (chan->ctrl_handler.error) { in tegra_channel_setup_ctrl_handler()
976 chan->ctrl_handler.error); in tegra_channel_setup_ctrl_handler()
977 v4l2_ctrl_handler_free(&chan->ctrl_handler); in tegra_channel_setup_ctrl_handler()
[all …]
/linux-6.12.1/drivers/media/usb/stk1160/
Dstk1160-core.c158 v4l2_ctrl_handler_free(&dev->ctrl_handler); in stk1160_release()
328 rc = v4l2_ctrl_handler_init(&dev->ctrl_handler, 0); in stk1160_probe()
340 dev->v4l2_dev.ctrl_handler = &dev->ctrl_handler; in stk1160_probe()
381 v4l2_ctrl_handler_free(&dev->ctrl_handler); in stk1160_probe()
/linux-6.12.1/drivers/media/i2c/
Dmax96714.c113 struct v4l2_ctrl_handler ctrl_handler; member
220 container_of(ctrl->handler, struct max96714_priv, ctrl_handler); in max96714_s_ctrl()
590 v4l2_ctrl_handler_init(&priv->ctrl_handler, 1); in max96714_create_subdev()
591 priv->sd.ctrl_handler = &priv->ctrl_handler; in max96714_create_subdev()
593 v4l2_ctrl_new_int_menu(&priv->ctrl_handler, NULL, V4L2_CID_LINK_FREQ, in max96714_create_subdev()
595 v4l2_ctrl_new_std_menu_items(&priv->ctrl_handler, in max96714_create_subdev()
600 if (priv->ctrl_handler.error) { in max96714_create_subdev()
601 ret = priv->ctrl_handler.error; in max96714_create_subdev()
618 priv->sd.state_lock = priv->sd.ctrl_handler->lock; in max96714_create_subdev()
646 v4l2_ctrl_handler_free(&priv->ctrl_handler); in max96714_create_subdev()
[all …]
/linux-6.12.1/drivers/media/platform/sunxi/sun8i-rotate/
Dsun8i_rotate.c572 ctrl_handler); in rotate_s_ctrl()
615 v4l2_ctrl_handler_init(&ctx->ctrl_handler, 3); in rotate_setup_ctrls()
617 v4l2_ctrl_new_std(&ctx->ctrl_handler, &rotate_ctrl_ops, in rotate_setup_ctrls()
620 v4l2_ctrl_new_std(&ctx->ctrl_handler, &rotate_ctrl_ops, in rotate_setup_ctrls()
623 v4l2_ctrl_new_std(&ctx->ctrl_handler, &rotate_ctrl_ops, in rotate_setup_ctrls()
626 if (ctx->ctrl_handler.error) { in rotate_setup_ctrls()
627 int err = ctx->ctrl_handler.error; in rotate_setup_ctrls()
630 v4l2_ctrl_handler_free(&ctx->ctrl_handler); in rotate_setup_ctrls()
635 return v4l2_ctrl_handler_setup(&ctx->ctrl_handler); in rotate_setup_ctrls()
680 ctx->fh.ctrl_handler = &ctx->ctrl_handler; in rotate_open()
[all …]

12345678910>>...18