/linux/drivers/media/v4l2-core/ |
H A D | v4l2-ctrls-request.c | 19 void v4l2_ctrl_handler_init_request(struct v4l2_ctrl_handler *hdl) in v4l2_ctrl_handler_init_request() argument 21 INIT_LIST_HEAD(&hdl->requests); in v4l2_ctrl_handler_init_request() 22 INIT_LIST_HEAD(&hdl->requests_queued); in v4l2_ctrl_handler_init_request() 23 hdl->request_is_queued = false; in v4l2_ctrl_handler_init_request() 24 media_request_object_init(&hdl->req_obj); in v4l2_ctrl_handler_init_request() 28 void v4l2_ctrl_handler_free_request(struct v4l2_ctrl_handler *hdl) in v4l2_ctrl_handler_free_request() argument 39 if (hdl->req_obj.ops || list_empty(&hdl->requests)) in v4l2_ctrl_handler_free_request() 47 list_for_each_entry_safe(req, next_req, &hdl->requests, requests) { in v4l2_ctrl_handler_free_request() 53 static int v4l2_ctrl_request_clone(struct v4l2_ctrl_handler *hdl, in v4l2_ctrl_request_clone() argument 59 if (WARN_ON(!hdl || hdl == from)) in v4l2_ctrl_request_clone() [all …]
|
H A D | v4l2-ctrls-core.c | 1528 static inline int handler_set_err(struct v4l2_ctrl_handler *hdl, int err) in handler_set_err() argument 1530 if (hdl->error == 0) in handler_set_err() 1531 hdl->error = err; in handler_set_err() 1536 int v4l2_ctrl_handler_init_class(struct v4l2_ctrl_handler *hdl, in v4l2_ctrl_handler_init_class() argument 1540 mutex_init(&hdl->_lock); in v4l2_ctrl_handler_init_class() 1541 hdl->lock = &hdl->_lock; in v4l2_ctrl_handler_init_class() 1542 lockdep_set_class_and_name(hdl->lock, key, name); in v4l2_ctrl_handler_init_class() 1543 INIT_LIST_HEAD(&hdl->ctrls); in v4l2_ctrl_handler_init_class() 1544 INIT_LIST_HEAD(&hdl->ctrl_refs); in v4l2_ctrl_handler_init_class() 1545 hdl->nr_of_buckets = 1 + nr_of_controls_hint / 8; in v4l2_ctrl_handler_init_class() [all …]
|
H A D | v4l2-ctrls-priv.h | 63 int handler_new_ref(struct v4l2_ctrl_handler *hdl, 67 struct v4l2_ctrl_ref *find_ref(struct v4l2_ctrl_handler *hdl, u32 id); 68 struct v4l2_ctrl_ref *find_ref_lock(struct v4l2_ctrl_handler *hdl, u32 id); 76 int v4l2_g_ext_ctrls_common(struct v4l2_ctrl_handler *hdl, 80 struct v4l2_ctrl_handler *hdl, 85 void v4l2_ctrl_handler_init_request(struct v4l2_ctrl_handler *hdl); 86 void v4l2_ctrl_handler_free_request(struct v4l2_ctrl_handler *hdl); 87 int v4l2_g_ext_ctrls_request(struct v4l2_ctrl_handler *hdl, struct video_device *vdev, 90 struct v4l2_ctrl_handler *hdl,
|
H A D | v4l2-ctrls-api.c | 213 static int prepare_ext_ctrls(struct v4l2_ctrl_handler *hdl, in prepare_ext_ctrls() argument 250 ref = find_ref_lock(hdl, id); in prepare_ext_ctrls() 265 ref = find_ref_lock(hdl, ctrl->cluster[0]->id); in prepare_ext_ctrls() 332 mutex_lock(hdl->lock); in prepare_ext_ctrls() 360 mutex_unlock(hdl->lock); in prepare_ext_ctrls() 369 static int class_check(struct v4l2_ctrl_handler *hdl, u32 which) in class_check() argument 374 return find_ref_lock(hdl, which | 1) ? 0 : -EINVAL; in class_check() 384 int v4l2_g_ext_ctrls_common(struct v4l2_ctrl_handler *hdl, in v4l2_g_ext_ctrls_common() argument 400 if (!hdl) in v4l2_g_ext_ctrls_common() 404 return class_check(hdl, cs->which); in v4l2_g_ext_ctrls_common() [all …]
|
/linux/drivers/media/common/ |
H A D | cx2341x.c | 1297 return container_of(ctrl->handler, struct cx2341x_handler, hdl); in to_cxhdl() 1300 static int cx2341x_hdl_api(struct cx2341x_handler *hdl, in cx2341x_hdl_api() argument 1312 return hdl->func(hdl->priv, cmd, args, 0, data); in cx2341x_hdl_api() 1323 struct cx2341x_handler *hdl = to_cxhdl(ctrl); in cx2341x_try_ctrl() local 1330 int gop = hdl->video_gop_size->val; in cx2341x_try_ctrl() 1337 hdl->video_gop_size->val = gop; in cx2341x_try_ctrl() 1343 hdl->video_encoding->val = in cx2341x_try_ctrl() 1344 (hdl->stream_type->val == V4L2_MPEG_STREAM_TYPE_MPEG1_SS || in cx2341x_try_ctrl() 1345 hdl->stream_type->val == V4L2_MPEG_STREAM_TYPE_MPEG1_VCD) ? in cx2341x_try_ctrl() 1348 if (hdl->video_encoding->val == V4L2_MPEG_VIDEO_ENCODING_MPEG_1) in cx2341x_try_ctrl() [all …]
|
/linux/include/media/ |
H A D | v4l2-ctrls.h | 515 int v4l2_ctrl_handler_init_class(struct v4l2_ctrl_handler *hdl, 540 #define v4l2_ctrl_handler_init(hdl, nr_of_controls_hint) \ argument 544 v4l2_ctrl_handler_init_class(hdl, nr_of_controls_hint, \ 548 "(" #hdl ")->_lock"); \ 552 #define v4l2_ctrl_handler_init(hdl, nr_of_controls_hint) \ argument 553 v4l2_ctrl_handler_init_class(hdl, nr_of_controls_hint, NULL, NULL) 563 void v4l2_ctrl_handler_free(struct v4l2_ctrl_handler *hdl); 596 int __v4l2_ctrl_handler_setup(struct v4l2_ctrl_handler *hdl); 607 int v4l2_ctrl_handler_setup(struct v4l2_ctrl_handler *hdl); 621 void v4l2_ctrl_handler_log_status(struct v4l2_ctrl_handler *hdl, [all …]
|
/linux/drivers/media/i2c/ |
H A D | tw9906.c | 20 struct v4l2_ctrl_handler hdl; member 111 struct tw9906 *dec = container_of(ctrl->handler, struct tw9906, hdl); in tw9906_s_ctrl() 164 struct v4l2_ctrl_handler *hdl; in tw9906_probe() local 178 hdl = &dec->hdl; in tw9906_probe() 179 v4l2_ctrl_handler_init(hdl, 4); in tw9906_probe() 180 v4l2_ctrl_new_std(hdl, &tw9906_ctrl_ops, in tw9906_probe() 182 v4l2_ctrl_new_std(hdl, &tw9906_ctrl_ops, in tw9906_probe() 184 v4l2_ctrl_new_std(hdl, &tw9906_ctrl_ops, in tw9906_probe() 186 sd->ctrl_handler = hdl; in tw9906_probe() 187 if (hdl->error) { in tw9906_probe() [all …]
|
H A D | tw9903.c | 29 struct v4l2_ctrl_handler hdl; member 141 struct tw9903 *dec = container_of(ctrl->handler, struct tw9903, hdl); in tw9903_s_ctrl() 196 struct v4l2_ctrl_handler *hdl; in tw9903_probe() local 210 hdl = &dec->hdl; in tw9903_probe() 211 v4l2_ctrl_handler_init(hdl, 4); in tw9903_probe() 212 v4l2_ctrl_new_std(hdl, &tw9903_ctrl_ops, in tw9903_probe() 214 v4l2_ctrl_new_std(hdl, &tw9903_ctrl_ops, in tw9903_probe() 216 v4l2_ctrl_new_std(hdl, &tw9903_ctrl_ops, in tw9903_probe() 218 sd->ctrl_handler = hdl; in tw9903_probe() 219 if (hdl->error) { in tw9903_probe() [all …]
|
H A D | saa6752hs.c | 83 struct v4l2_ctrl_handler hdl; member 361 container_of(ctrl->handler, struct saa6752hs_state, hdl); in saa6752hs_try_ctrl() 377 container_of(ctrl->handler, struct saa6752hs_state, hdl); in saa6752hs_s_ctrl() 664 struct v4l2_ctrl_handler *hdl; in saa6752hs_probe() local 687 hdl = &h->hdl; in saa6752hs_probe() 688 v4l2_ctrl_handler_init(hdl, 14); in saa6752hs_probe() 689 v4l2_ctrl_new_std_menu(hdl, &saa6752hs_ctrl_ops, in saa6752hs_probe() 695 v4l2_ctrl_new_std_menu(hdl, &saa6752hs_ctrl_ops, in saa6752hs_probe() 703 v4l2_ctrl_new_std_menu(hdl, &saa6752hs_ctrl_ops, in saa6752hs_probe() 710 v4l2_ctrl_new_std_menu(hdl, &saa6752hs_ctrl_ops, in saa6752hs_probe() [all …]
|
H A D | tlv320aic23b.c | 32 struct v4l2_ctrl_handler hdl; member 42 return &container_of(ctrl->handler, struct tlv320aic23b_state, hdl)->sd; in to_sd() 100 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in tlv320aic23b_log_status() 165 v4l2_ctrl_handler_init(&state->hdl, 1); in tlv320aic23b_probe() 166 v4l2_ctrl_new_std(&state->hdl, &tlv320aic23b_ctrl_ops, in tlv320aic23b_probe() 168 sd->ctrl_handler = &state->hdl; in tlv320aic23b_probe() 169 if (state->hdl.error) { in tlv320aic23b_probe() 170 int err = state->hdl.error; in tlv320aic23b_probe() 172 v4l2_ctrl_handler_free(&state->hdl); in tlv320aic23b_probe() 175 v4l2_ctrl_handler_setup(&state->hdl); in tlv320aic23b_probe() [all …]
|
H A D | wm8739.c | 42 struct v4l2_ctrl_handler hdl; member 59 return &container_of(ctrl->handler, struct wm8739_state, hdl)->sd; in to_sd() 154 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in wm8739_log_status() 198 v4l2_ctrl_handler_init(&state->hdl, 2); in wm8739_probe() 199 state->volume = v4l2_ctrl_new_std(&state->hdl, &wm8739_ctrl_ops, in wm8739_probe() 201 state->mute = v4l2_ctrl_new_std(&state->hdl, &wm8739_ctrl_ops, in wm8739_probe() 203 state->balance = v4l2_ctrl_new_std(&state->hdl, &wm8739_ctrl_ops, in wm8739_probe() 205 sd->ctrl_handler = &state->hdl; in wm8739_probe() 206 if (state->hdl.error) { in wm8739_probe() 207 int err = state->hdl.error; in wm8739_probe() [all …]
|
H A D | tda7432.c | 64 struct v4l2_ctrl_handler hdl; member 84 return &container_of(ctrl->handler, struct tda7432, hdl)->sd; in to_sd() 267 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in tda7432_log_status() 359 v4l2_ctrl_handler_init(&t->hdl, 5); in tda7432_probe() 360 v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe() 362 t->mute = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe() 364 t->balance = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe() 366 t->bass = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe() 368 t->treble = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe() 370 sd->ctrl_handler = &t->hdl; in tda7432_probe() [all …]
|
H A D | tw2804.c | 29 struct v4l2_ctrl_handler hdl; member 137 return container_of(ctrl->handler, struct tw2804, hdl); in to_state_from_ctrl() 365 v4l2_ctrl_handler_init(&state->hdl, 10); in tw2804_probe() 366 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe() 368 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe() 370 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe() 372 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe() 374 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe() 376 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe() 378 ctrl = v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe() [all …]
|
H A D | cs53l32a.c | 33 struct v4l2_ctrl_handler hdl; member 43 return &container_of(ctrl->handler, struct cs53l32a_state, hdl)->sd; in to_sd() 99 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in cs53l32a_log_status() 160 v4l2_ctrl_handler_init(&state->hdl, 2); in cs53l32a_probe() 161 v4l2_ctrl_new_std(&state->hdl, &cs53l32a_ctrl_ops, in cs53l32a_probe() 163 v4l2_ctrl_new_std(&state->hdl, &cs53l32a_ctrl_ops, in cs53l32a_probe() 165 sd->ctrl_handler = &state->hdl; in cs53l32a_probe() 166 if (state->hdl.error) { in cs53l32a_probe() 167 int err = state->hdl.error; in cs53l32a_probe() 169 v4l2_ctrl_handler_free(&state->hdl); in cs53l32a_probe() [all …]
|
H A D | cs5345.c | 28 struct v4l2_ctrl_handler hdl; member 38 return &container_of(ctrl->handler, struct cs5345_state, hdl)->sd; in to_sd() 157 v4l2_ctrl_handler_init(&state->hdl, 2); in cs5345_probe() 158 v4l2_ctrl_new_std(&state->hdl, &cs5345_ctrl_ops, in cs5345_probe() 160 v4l2_ctrl_new_std(&state->hdl, &cs5345_ctrl_ops, in cs5345_probe() 162 sd->ctrl_handler = &state->hdl; in cs5345_probe() 163 if (state->hdl.error) { in cs5345_probe() 164 int err = state->hdl.error; in cs5345_probe() 166 v4l2_ctrl_handler_free(&state->hdl); in cs5345_probe() 170 v4l2_ctrl_handler_setup(&state->hdl); in cs5345_probe() [all …]
|
H A D | ml86v7667.c | 87 struct v4l2_ctrl_handler hdl; member 98 return &container_of(ctrl->handler, struct ml86v7667_priv, hdl)->sd; in to_sd() 376 v4l2_ctrl_handler_init(&priv->hdl, 8); in ml86v7667_probe() 377 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe() 379 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe() 381 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe() 383 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe() 385 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe() 387 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe() 389 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe() [all …]
|
H A D | wm8775.c | 45 struct v4l2_ctrl_handler hdl; member 60 return &container_of(ctrl->handler, struct wm8775_state, hdl)->sd; in to_sd() 150 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in wm8775_log_status() 219 v4l2_ctrl_handler_init(&state->hdl, 4); in wm8775_probe() 220 state->mute = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops, in wm8775_probe() 222 state->vol = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops, in wm8775_probe() 224 state->bal = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops, in wm8775_probe() 226 state->loud = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops, in wm8775_probe() 228 sd->ctrl_handler = &state->hdl; in wm8775_probe() 229 err = state->hdl.error; in wm8775_probe() [all …]
|
H A D | lm3646.c | 206 struct v4l2_ctrl_handler *hdl = &flash->ctrls_led; in lm3646_init_controls() local 209 v4l2_ctrl_handler_init(hdl, 8); in lm3646_init_controls() 211 v4l2_ctrl_new_std_menu(hdl, ops, V4L2_CID_FLASH_LED_MODE, in lm3646_init_controls() 216 v4l2_ctrl_new_std_menu(hdl, ops, V4L2_CID_FLASH_STROBE_SOURCE, in lm3646_init_controls() 220 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE, 0, 0, 0, 0); in lm3646_init_controls() 222 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE_STOP, 0, 0, 0, 0); in lm3646_init_controls() 225 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_TIMEOUT, in lm3646_init_controls() 231 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_INTENSITY, in lm3646_init_controls() 238 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_TORCH_INTENSITY, in lm3646_init_controls() 245 fault = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_FAULT, 0, in lm3646_init_controls() [all …]
|
H A D | saa717x.c | 45 struct v4l2_ctrl_handler hdl; member 70 return &container_of(ctrl->handler, struct saa717x_state, hdl)->sd; in to_sd() 1179 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in saa717x_log_status() 1234 struct v4l2_ctrl_handler *hdl; in saa717x_probe() local 1270 hdl = &decoder->hdl; in saa717x_probe() 1271 v4l2_ctrl_handler_init(hdl, 9); in saa717x_probe() 1273 v4l2_ctrl_new_std(hdl, &saa717x_ctrl_ops, in saa717x_probe() 1275 v4l2_ctrl_new_std(hdl, &saa717x_ctrl_ops, in saa717x_probe() 1277 v4l2_ctrl_new_std(hdl, &saa717x_ctrl_ops, in saa717x_probe() 1279 v4l2_ctrl_new_std(hdl, &saa717x_ctrl_ops, in saa717x_probe() [all …]
|
/linux/drivers/media/i2c/s5c73m3/ |
H A D | s5c73m3-ctrls.c | 445 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in s5c73m3_init_controls() local 447 int ret = v4l2_ctrl_handler_init(hdl, 22); in s5c73m3_init_controls() 452 ctrls->auto_wb = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls() 457 ctrls->auto_exposure = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls() 460 ctrls->exposure_bias = v4l2_ctrl_new_int_menu(hdl, ops, in s5c73m3_init_controls() 466 ctrls->exposure_metering = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls() 471 ctrls->focus_auto = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls() 474 ctrls->af_start = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls() 477 ctrls->af_stop = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls() 480 ctrls->af_status = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls() [all …]
|
/linux/drivers/media/test-drivers/vimc/ |
H A D | vimc-lens.c | 20 struct v4l2_ctrl_handler hdl; member 37 container_of(ctrl->handler, struct vimc_lens_device, hdl); in vimc_lens_s_ctrl() 61 v4l2_ctrl_handler_init(&vlens->hdl, 1); in vimc_lens_add() 63 v4l2_ctrl_new_std(&vlens->hdl, &vimc_lens_ctrl_ops, in vimc_lens_add() 66 vlens->sd.ctrl_handler = &vlens->hdl; in vimc_lens_add() 67 if (vlens->hdl.error) { in vimc_lens_add() 68 ret = vlens->hdl.error; in vimc_lens_add() 82 v4l2_ctrl_handler_free(&vlens->hdl); in vimc_lens_add() 94 v4l2_ctrl_handler_free(&vlens->hdl); in vimc_lens_release()
|
H A D | vimc-sensor.c | 27 struct v4l2_ctrl_handler hdl; member 295 container_of(ctrl->handler, struct vimc_sensor_device, hdl); in vimc_sensor_s_ctrl() 337 v4l2_ctrl_handler_free(&vsensor->hdl); in vimc_sensor_release() 389 v4l2_ctrl_handler_init(&vsensor->hdl, 4); in vimc_sensor_add() 391 v4l2_ctrl_new_custom(&vsensor->hdl, &vimc_sensor_ctrl_class, NULL); in vimc_sensor_add() 392 v4l2_ctrl_new_custom(&vsensor->hdl, &vimc_sensor_ctrl_test_pattern, NULL); in vimc_sensor_add() 393 v4l2_ctrl_new_custom(&vsensor->hdl, &vimc_sensor_ctrl_osd_mode, NULL); in vimc_sensor_add() 394 v4l2_ctrl_new_std(&vsensor->hdl, &vimc_sensor_ctrl_ops, in vimc_sensor_add() 396 v4l2_ctrl_new_std(&vsensor->hdl, &vimc_sensor_ctrl_ops, in vimc_sensor_add() 398 v4l2_ctrl_new_std(&vsensor->hdl, &vimc_sensor_ctrl_ops, in vimc_sensor_add() [all …]
|
/linux/drivers/media/radio/ |
H A D | radio-keene.c | 52 struct v4l2_ctrl_handler hdl; member 235 container_of(ctrl->handler, struct keene_device, hdl); in keene_s_ctrl() 288 v4l2_ctrl_handler_free(&radio->hdl); in usb_keene_video_device_release() 299 struct v4l2_ctrl_handler *hdl; in usb_keene_probe() local 325 hdl = &radio->hdl; in usb_keene_probe() 326 v4l2_ctrl_handler_init(hdl, 4); in usb_keene_probe() 327 v4l2_ctrl_new_std(hdl, &keene_ctrl_ops, V4L2_CID_AUDIO_MUTE, in usb_keene_probe() 329 v4l2_ctrl_new_std_menu(hdl, &keene_ctrl_ops, V4L2_CID_TUNE_PREEMPHASIS, in usb_keene_probe() 331 v4l2_ctrl_new_std(hdl, &keene_ctrl_ops, V4L2_CID_TUNE_POWER_LEVEL, in usb_keene_probe() 333 v4l2_ctrl_new_std(hdl, &keene_ctrl_ops, V4L2_CID_AUDIO_COMPRESSION_GAIN, in usb_keene_probe() [all …]
|
/linux/drivers/media/usb/pwc/ |
H A D | pwc-v4l.c | 152 struct v4l2_ctrl_handler *hdl; in pwc_init_controls() local 156 hdl = &pdev->ctrl_handler; in pwc_init_controls() 157 r = v4l2_ctrl_handler_init(hdl, 20); in pwc_init_controls() 165 pdev->brightness = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 171 pdev->contrast = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 183 pdev->saturation = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 190 pdev->gamma = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() 200 pdev->auto_white_balance = v4l2_ctrl_new_custom(hdl, &cfg, NULL); in pwc_init_controls() 203 return hdl->error; in pwc_init_controls() 209 pdev->red_balance = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls() [all …]
|
/linux/drivers/media/radio/si4713/ |
H A D | si4713.c | 1433 struct v4l2_ctrl_handler *hdl; in si4713_probe() local 1479 hdl = &sdev->ctrl_handler; in si4713_probe() 1480 v4l2_ctrl_handler_init(hdl, 20); in si4713_probe() 1481 sdev->mute = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe() 1484 sdev->rds_pi = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe() 1486 sdev->rds_pty = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe() 1488 sdev->rds_compressed = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe() 1490 sdev->rds_art_head = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe() 1492 sdev->rds_stereo = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe() 1494 sdev->rds_tp = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe() [all …]
|