Home
last modified time | relevance | path

Searched refs:hdl (Results 1 – 194 of 194) sorted by relevance

/linux-4.4.14/drivers/media/common/
Dcx2341x.c1275 return container_of(ctrl->handler, struct cx2341x_handler, hdl); in to_cxhdl()
1278 static int cx2341x_hdl_api(struct cx2341x_handler *hdl, in cx2341x_hdl_api() argument
1290 return hdl->func(hdl->priv, cmd, args, 0, data); in cx2341x_hdl_api()
1301 struct cx2341x_handler *hdl = to_cxhdl(ctrl); in cx2341x_try_ctrl() local
1308 int gop = hdl->video_gop_size->val; in cx2341x_try_ctrl()
1315 hdl->video_gop_size->val = gop; in cx2341x_try_ctrl()
1321 hdl->video_encoding->val = in cx2341x_try_ctrl()
1322 (hdl->stream_type->val == V4L2_MPEG_STREAM_TYPE_MPEG1_SS || in cx2341x_try_ctrl()
1323 hdl->stream_type->val == V4L2_MPEG_STREAM_TYPE_MPEG1_VCD) ? in cx2341x_try_ctrl()
1326 if (hdl->video_encoding->val == V4L2_MPEG_VIDEO_ENCODING_MPEG_1) in cx2341x_try_ctrl()
[all …]
/linux-4.4.14/include/media/
Dv4l2-ctrls.h361 int v4l2_ctrl_handler_init_class(struct v4l2_ctrl_handler *hdl,
366 #define v4l2_ctrl_handler_init(hdl, nr_of_controls_hint) \ argument
370 v4l2_ctrl_handler_init_class(hdl, nr_of_controls_hint, \
374 "(" #hdl ")->_lock"); \
378 #define v4l2_ctrl_handler_init(hdl, nr_of_controls_hint) \ argument
379 v4l2_ctrl_handler_init_class(hdl, nr_of_controls_hint, NULL, NULL)
389 void v4l2_ctrl_handler_free(struct v4l2_ctrl_handler *hdl);
420 int v4l2_ctrl_handler_setup(struct v4l2_ctrl_handler *hdl);
434 void v4l2_ctrl_handler_log_status(struct v4l2_ctrl_handler *hdl,
447 struct v4l2_ctrl *v4l2_ctrl_new_custom(struct v4l2_ctrl_handler *hdl,
[all …]
Dcx2341x.h108 int (*s_audio_sampling_freq)(struct cx2341x_handler *hdl, u32 val);
110 int (*s_audio_mode)(struct cx2341x_handler *hdl, u32 val);
112 int (*s_video_encoding)(struct cx2341x_handler *hdl, u32 val);
114 int (*s_stream_vbi_fmt)(struct cx2341x_handler *hdl, u32 val);
125 struct v4l2_ctrl_handler hdl; member
Dv4l2-flash-led-class.h85 struct v4l2_ctrl_handler hdl; member
97 return container_of(c->handler, struct v4l2_flash, hdl); in v4l2_ctrl_to_v4l2_flash()
/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-ctrls.c1694 static inline int handler_set_err(struct v4l2_ctrl_handler *hdl, int err) in handler_set_err() argument
1696 if (hdl->error == 0) in handler_set_err()
1697 hdl->error = err; in handler_set_err()
1702 int v4l2_ctrl_handler_init_class(struct v4l2_ctrl_handler *hdl, in v4l2_ctrl_handler_init_class() argument
1706 hdl->lock = &hdl->_lock; in v4l2_ctrl_handler_init_class()
1707 mutex_init(hdl->lock); in v4l2_ctrl_handler_init_class()
1708 lockdep_set_class_and_name(hdl->lock, key, name); in v4l2_ctrl_handler_init_class()
1709 INIT_LIST_HEAD(&hdl->ctrls); in v4l2_ctrl_handler_init_class()
1710 INIT_LIST_HEAD(&hdl->ctrl_refs); in v4l2_ctrl_handler_init_class()
1711 hdl->nr_of_buckets = 1 + nr_of_controls_hint / 8; in v4l2_ctrl_handler_init_class()
[all …]
Dv4l2-flash-led-class.c434 v4l2_ctrl_handler_init(&v4l2_flash->hdl, num_ctrls); in v4l2_flash_init_controls()
443 ctrl = v4l2_ctrl_new_std_menu(&v4l2_flash->hdl, in v4l2_flash_init_controls()
450 ctrl = v4l2_ctrl_new_std(&v4l2_flash->hdl, in v4l2_flash_init_controls()
467 if (v4l2_flash->hdl.error) { in v4l2_flash_init_controls()
468 ret = v4l2_flash->hdl.error; in v4l2_flash_init_controls()
472 v4l2_ctrl_handler_setup(&v4l2_flash->hdl); in v4l2_flash_init_controls()
474 v4l2_flash->sd.ctrl_handler = &v4l2_flash->hdl; in v4l2_flash_init_controls()
479 v4l2_ctrl_handler_free(&v4l2_flash->hdl); in v4l2_flash_init_controls()
/linux-4.4.14/drivers/media/i2c/
Dtw9906.c32 struct v4l2_ctrl_handler hdl; member
123 struct tw9906 *dec = container_of(ctrl->handler, struct tw9906, hdl); in tw9906_s_ctrl()
177 struct v4l2_ctrl_handler *hdl; in tw9906_probe() local
191 hdl = &dec->hdl; in tw9906_probe()
192 v4l2_ctrl_handler_init(hdl, 4); in tw9906_probe()
193 v4l2_ctrl_new_std(hdl, &tw9906_ctrl_ops, in tw9906_probe()
195 v4l2_ctrl_new_std(hdl, &tw9906_ctrl_ops, in tw9906_probe()
197 v4l2_ctrl_new_std(hdl, &tw9906_ctrl_ops, in tw9906_probe()
199 sd->ctrl_handler = hdl; in tw9906_probe()
200 if (hdl->error) { in tw9906_probe()
[all …]
Dtw9903.c41 struct v4l2_ctrl_handler hdl; member
153 struct tw9903 *dec = container_of(ctrl->handler, struct tw9903, hdl); in tw9903_s_ctrl()
209 struct v4l2_ctrl_handler *hdl; in tw9903_probe() local
223 hdl = &dec->hdl; in tw9903_probe()
224 v4l2_ctrl_handler_init(hdl, 4); in tw9903_probe()
225 v4l2_ctrl_new_std(hdl, &tw9903_ctrl_ops, in tw9903_probe()
227 v4l2_ctrl_new_std(hdl, &tw9903_ctrl_ops, in tw9903_probe()
229 v4l2_ctrl_new_std(hdl, &tw9903_ctrl_ops, in tw9903_probe()
231 sd->ctrl_handler = hdl; in tw9903_probe()
232 if (hdl->error) { in tw9903_probe()
[all …]
Dtlv320aic23b.c45 struct v4l2_ctrl_handler hdl; member
55 return &container_of(ctrl->handler, struct tlv320aic23b_state, hdl)->sd; in to_sd()
113 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in tlv320aic23b_log_status()
179 v4l2_ctrl_handler_init(&state->hdl, 1); in tlv320aic23b_probe()
180 v4l2_ctrl_new_std(&state->hdl, &tlv320aic23b_ctrl_ops, in tlv320aic23b_probe()
182 sd->ctrl_handler = &state->hdl; in tlv320aic23b_probe()
183 if (state->hdl.error) { in tlv320aic23b_probe()
184 int err = state->hdl.error; in tlv320aic23b_probe()
186 v4l2_ctrl_handler_free(&state->hdl); in tlv320aic23b_probe()
189 v4l2_ctrl_handler_setup(&state->hdl); in tlv320aic23b_probe()
[all …]
Dwm8739.c55 struct v4l2_ctrl_handler hdl; member
72 return &container_of(ctrl->handler, struct wm8739_state, hdl)->sd; in to_sd()
167 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in wm8739_log_status()
212 v4l2_ctrl_handler_init(&state->hdl, 2); in wm8739_probe()
213 state->volume = v4l2_ctrl_new_std(&state->hdl, &wm8739_ctrl_ops, in wm8739_probe()
215 state->mute = v4l2_ctrl_new_std(&state->hdl, &wm8739_ctrl_ops, in wm8739_probe()
217 state->balance = v4l2_ctrl_new_std(&state->hdl, &wm8739_ctrl_ops, in wm8739_probe()
219 sd->ctrl_handler = &state->hdl; in wm8739_probe()
220 if (state->hdl.error) { in wm8739_probe()
221 int err = state->hdl.error; in wm8739_probe()
[all …]
Dtda7432.c64 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()
360 v4l2_ctrl_handler_init(&t->hdl, 5); in tda7432_probe()
361 v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe()
363 t->mute = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe()
365 t->balance = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe()
367 t->bass = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe()
369 t->treble = v4l2_ctrl_new_std(&t->hdl, &tda7432_ctrl_ops, in tda7432_probe()
371 sd->ctrl_handler = &t->hdl; in tda7432_probe()
[all …]
Dsaa6752hs.c95 struct v4l2_ctrl_handler hdl; member
373 container_of(ctrl->handler, struct saa6752hs_state, hdl); in saa6752hs_try_ctrl()
389 container_of(ctrl->handler, struct saa6752hs_state, hdl); in saa6752hs_s_ctrl()
679 struct v4l2_ctrl_handler *hdl; in saa6752hs_probe() local
702 hdl = &h->hdl; in saa6752hs_probe()
703 v4l2_ctrl_handler_init(hdl, 14); in saa6752hs_probe()
704 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()
718 v4l2_ctrl_new_std_menu(hdl, &saa6752hs_ctrl_ops, in saa6752hs_probe()
725 v4l2_ctrl_new_std_menu(hdl, &saa6752hs_ctrl_ops, in saa6752hs_probe()
[all …]
Dtw2804.c41 struct v4l2_ctrl_handler hdl; member
149 return container_of(ctrl->handler, struct tw2804, hdl); in to_state_from_ctrl()
378 v4l2_ctrl_handler_init(&state->hdl, 10); in tw2804_probe()
379 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe()
381 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe()
383 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe()
385 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe()
387 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe()
389 v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe()
391 ctrl = v4l2_ctrl_new_std(&state->hdl, &tw2804_ctrl_ops, in tw2804_probe()
[all …]
Dcs53l32a.c46 struct v4l2_ctrl_handler hdl; member
56 return &container_of(ctrl->handler, struct cs53l32a_state, hdl)->sd; in to_sd()
112 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in cs53l32a_log_status()
180 v4l2_ctrl_handler_init(&state->hdl, 2); in cs53l32a_probe()
181 v4l2_ctrl_new_std(&state->hdl, &cs53l32a_ctrl_ops, in cs53l32a_probe()
183 v4l2_ctrl_new_std(&state->hdl, &cs53l32a_ctrl_ops, in cs53l32a_probe()
185 sd->ctrl_handler = &state->hdl; in cs53l32a_probe()
186 if (state->hdl.error) { in cs53l32a_probe()
187 int err = state->hdl.error; in cs53l32a_probe()
189 v4l2_ctrl_handler_free(&state->hdl); in cs53l32a_probe()
[all …]
Dcs5345.c41 struct v4l2_ctrl_handler hdl; member
51 return &container_of(ctrl->handler, struct cs5345_state, hdl)->sd; in to_sd()
171 v4l2_ctrl_handler_init(&state->hdl, 2); in cs5345_probe()
172 v4l2_ctrl_new_std(&state->hdl, &cs5345_ctrl_ops, in cs5345_probe()
174 v4l2_ctrl_new_std(&state->hdl, &cs5345_ctrl_ops, in cs5345_probe()
176 sd->ctrl_handler = &state->hdl; in cs5345_probe()
177 if (state->hdl.error) { in cs5345_probe()
178 int err = state->hdl.error; in cs5345_probe()
180 v4l2_ctrl_handler_free(&state->hdl); in cs5345_probe()
184 v4l2_ctrl_handler_setup(&state->hdl); in cs5345_probe()
[all …]
Dml86v7667.c91 struct v4l2_ctrl_handler hdl; member
102 return &container_of(ctrl->handler, struct ml86v7667_priv, hdl)->sd; in to_sd()
379 v4l2_ctrl_handler_init(&priv->hdl, 8); in ml86v7667_probe()
380 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe()
382 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe()
384 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe()
386 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe()
388 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe()
390 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe()
392 v4l2_ctrl_new_std(&priv->hdl, &ml86v7667_ctrl_ops, in ml86v7667_probe()
[all …]
Dwm8775.c58 struct v4l2_ctrl_handler hdl; member
73 return &container_of(ctrl->handler, struct wm8775_state, hdl)->sd; in to_sd()
163 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in wm8775_log_status()
240 v4l2_ctrl_handler_init(&state->hdl, 4); in wm8775_probe()
241 state->mute = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops, in wm8775_probe()
243 state->vol = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops, in wm8775_probe()
245 state->bal = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops, in wm8775_probe()
247 state->loud = v4l2_ctrl_new_std(&state->hdl, &wm8775_ctrl_ops, in wm8775_probe()
249 sd->ctrl_handler = &state->hdl; in wm8775_probe()
250 err = state->hdl.error; in wm8775_probe()
[all …]
Dlm3646.c209 struct v4l2_ctrl_handler *hdl = &flash->ctrls_led; in lm3646_init_controls() local
212 v4l2_ctrl_handler_init(hdl, 8); in lm3646_init_controls()
214 v4l2_ctrl_new_std_menu(hdl, ops, V4L2_CID_FLASH_LED_MODE, in lm3646_init_controls()
219 v4l2_ctrl_new_std_menu(hdl, ops, V4L2_CID_FLASH_STROBE_SOURCE, in lm3646_init_controls()
223 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE, 0, 0, 0, 0); in lm3646_init_controls()
225 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE_STOP, 0, 0, 0, 0); in lm3646_init_controls()
228 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_TIMEOUT, in lm3646_init_controls()
234 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_INTENSITY, in lm3646_init_controls()
241 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_TORCH_INTENSITY, in lm3646_init_controls()
248 fault = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_FAULT, 0, in lm3646_init_controls()
[all …]
Dsaa717x.c58 struct v4l2_ctrl_handler hdl; member
83 return &container_of(ctrl->handler, struct saa717x_state, hdl)->sd; in to_sd()
1192 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in saa717x_log_status()
1248 struct v4l2_ctrl_handler *hdl; in saa717x_probe() local
1284 hdl = &decoder->hdl; in saa717x_probe()
1285 v4l2_ctrl_handler_init(hdl, 9); in saa717x_probe()
1287 v4l2_ctrl_new_std(hdl, &saa717x_ctrl_ops, in saa717x_probe()
1289 v4l2_ctrl_new_std(hdl, &saa717x_ctrl_ops, in saa717x_probe()
1291 v4l2_ctrl_new_std(hdl, &saa717x_ctrl_ops, in saa717x_probe()
1293 v4l2_ctrl_new_std(hdl, &saa717x_ctrl_ops, in saa717x_probe()
[all …]
Dvpx3220.c47 struct v4l2_ctrl_handler hdl; member
62 return &container_of(ctrl->handler, struct vpx3220, hdl)->sd; in to_sd()
494 v4l2_ctrl_handler_init(&decoder->hdl, 4); in vpx3220_probe()
495 v4l2_ctrl_new_std(&decoder->hdl, &vpx3220_ctrl_ops, in vpx3220_probe()
497 v4l2_ctrl_new_std(&decoder->hdl, &vpx3220_ctrl_ops, in vpx3220_probe()
499 v4l2_ctrl_new_std(&decoder->hdl, &vpx3220_ctrl_ops, in vpx3220_probe()
501 v4l2_ctrl_new_std(&decoder->hdl, &vpx3220_ctrl_ops, in vpx3220_probe()
503 sd->ctrl_handler = &decoder->hdl; in vpx3220_probe()
504 if (decoder->hdl.error) { in vpx3220_probe()
505 int err = decoder->hdl.error; in vpx3220_probe()
[all …]
Dsaa7110.c56 struct v4l2_ctrl_handler hdl; member
73 return &container_of(ctrl->handler, struct saa7110, hdl)->sd; in to_sd()
397 v4l2_ctrl_handler_init(&decoder->hdl, 2); in saa7110_probe()
398 v4l2_ctrl_new_std(&decoder->hdl, &saa7110_ctrl_ops, in saa7110_probe()
400 v4l2_ctrl_new_std(&decoder->hdl, &saa7110_ctrl_ops, in saa7110_probe()
402 v4l2_ctrl_new_std(&decoder->hdl, &saa7110_ctrl_ops, in saa7110_probe()
404 v4l2_ctrl_new_std(&decoder->hdl, &saa7110_ctrl_ops, in saa7110_probe()
406 sd->ctrl_handler = &decoder->hdl; in saa7110_probe()
407 if (decoder->hdl.error) { in saa7110_probe()
408 int err = decoder->hdl.error; in saa7110_probe()
[all …]
Dbt819.c55 struct v4l2_ctrl_handler hdl; member
70 return &container_of(ctrl->handler, struct bt819, hdl)->sd; in to_sd()
442 v4l2_ctrl_handler_init(&decoder->hdl, 4); in bt819_probe()
443 v4l2_ctrl_new_std(&decoder->hdl, &bt819_ctrl_ops, in bt819_probe()
445 v4l2_ctrl_new_std(&decoder->hdl, &bt819_ctrl_ops, in bt819_probe()
447 v4l2_ctrl_new_std(&decoder->hdl, &bt819_ctrl_ops, in bt819_probe()
449 v4l2_ctrl_new_std(&decoder->hdl, &bt819_ctrl_ops, in bt819_probe()
451 sd->ctrl_handler = &decoder->hdl; in bt819_probe()
452 if (decoder->hdl.error) { in bt819_probe()
453 int err = decoder->hdl.error; in bt819_probe()
[all …]
Dadv7393.c49 struct v4l2_ctrl_handler hdl; member
67 return &container_of(ctrl->handler, struct adv7393_state, hdl)->sd; in to_sd()
412 v4l2_ctrl_handler_init(&state->hdl, 3); in adv7393_probe()
413 v4l2_ctrl_new_std(&state->hdl, &adv7393_ctrl_ops, in adv7393_probe()
417 v4l2_ctrl_new_std(&state->hdl, &adv7393_ctrl_ops, in adv7393_probe()
421 v4l2_ctrl_new_std(&state->hdl, &adv7393_ctrl_ops, in adv7393_probe()
425 state->sd.ctrl_handler = &state->hdl; in adv7393_probe()
426 if (state->hdl.error) { in adv7393_probe()
427 int err = state->hdl.error; in adv7393_probe()
429 v4l2_ctrl_handler_free(&state->hdl); in adv7393_probe()
[all …]
Dvs6624.c41 struct v4l2_ctrl_handler hdl; member
491 return &container_of(ctrl->handler, struct vs6624, hdl)->sd; in to_sd()
767 struct v4l2_ctrl_handler *hdl; in vs6624_probe() local
822 hdl = &sensor->hdl; in vs6624_probe()
823 v4l2_ctrl_handler_init(hdl, 4); in vs6624_probe()
824 v4l2_ctrl_new_std(hdl, &vs6624_ctrl_ops, in vs6624_probe()
826 v4l2_ctrl_new_std(hdl, &vs6624_ctrl_ops, in vs6624_probe()
828 v4l2_ctrl_new_std(hdl, &vs6624_ctrl_ops, in vs6624_probe()
830 v4l2_ctrl_new_std(hdl, &vs6624_ctrl_ops, in vs6624_probe()
833 sd->ctrl_handler = hdl; in vs6624_probe()
[all …]
Dadv7183.c38 struct v4l2_ctrl_handler hdl; member
81 return &container_of(ctrl->handler, struct adv7183, hdl)->sd; in to_sd()
197 v4l2_ctrl_handler_log_status(&decoder->hdl, sd->name); in adv7183_log_status()
541 struct v4l2_ctrl_handler *hdl; in adv7183_probe() local
582 hdl = &decoder->hdl; in adv7183_probe()
583 v4l2_ctrl_handler_init(hdl, 4); in adv7183_probe()
584 v4l2_ctrl_new_std(hdl, &adv7183_ctrl_ops, in adv7183_probe()
586 v4l2_ctrl_new_std(hdl, &adv7183_ctrl_ops, in adv7183_probe()
588 v4l2_ctrl_new_std(hdl, &adv7183_ctrl_ops, in adv7183_probe()
590 v4l2_ctrl_new_std(hdl, &adv7183_ctrl_ops, in adv7183_probe()
[all …]
Dlm3560.c291 struct v4l2_ctrl_handler *hdl = &flash->ctrls_led[led_no]; in lm3560_init_controls() local
294 v4l2_ctrl_handler_init(hdl, 8); in lm3560_init_controls()
297 v4l2_ctrl_new_std_menu(hdl, ops, V4L2_CID_FLASH_LED_MODE, in lm3560_init_controls()
303 v4l2_ctrl_new_std_menu(hdl, ops, V4L2_CID_FLASH_STROBE_SOURCE, in lm3560_init_controls()
307 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE, 0, 0, 0, 0); in lm3560_init_controls()
310 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE_STOP, 0, 0, 0, 0); in lm3560_init_controls()
313 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_TIMEOUT, in lm3560_init_controls()
320 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_INTENSITY, in lm3560_init_controls()
325 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_TORCH_INTENSITY, in lm3560_init_controls()
330 fault = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_FAULT, 0, in lm3560_init_controls()
[all …]
Dadv7343.c47 struct v4l2_ctrl_handler hdl; member
66 return &container_of(ctrl->handler, struct adv7343_state, hdl)->sd; in to_sd()
463 v4l2_ctrl_handler_init(&state->hdl, 2); in adv7343_probe()
464 v4l2_ctrl_new_std(&state->hdl, &adv7343_ctrl_ops, in adv7343_probe()
468 v4l2_ctrl_new_std(&state->hdl, &adv7343_ctrl_ops, in adv7343_probe()
472 v4l2_ctrl_new_std(&state->hdl, &adv7343_ctrl_ops, in adv7343_probe()
476 state->sd.ctrl_handler = &state->hdl; in adv7343_probe()
477 if (state->hdl.error) { in adv7343_probe()
478 err = state->hdl.error; in adv7343_probe()
481 v4l2_ctrl_handler_setup(&state->hdl); in adv7343_probe()
[all …]
Dsr030pc30.c146 struct v4l2_ctrl_handler hdl; member
424 container_of(ctrl->handler, struct sr030pc30_info, hdl); in sr030pc30_s_ctrl()
684 struct v4l2_ctrl_handler *hdl; in sr030pc30_probe() local
708 hdl = &info->hdl; in sr030pc30_probe()
709 v4l2_ctrl_handler_init(hdl, 6); in sr030pc30_probe()
710 info->awb = v4l2_ctrl_new_std(hdl, &sr030pc30_ctrl_ops, in sr030pc30_probe()
712 info->red = v4l2_ctrl_new_std(hdl, &sr030pc30_ctrl_ops, in sr030pc30_probe()
714 info->blue = v4l2_ctrl_new_std(hdl, &sr030pc30_ctrl_ops, in sr030pc30_probe()
716 info->autoexp = v4l2_ctrl_new_std(hdl, &sr030pc30_ctrl_ops, in sr030pc30_probe()
718 info->exp = v4l2_ctrl_new_std(hdl, &sr030pc30_ctrl_ops, in sr030pc30_probe()
[all …]
Dmsp3400-driver.c585 v4l2_ctrl_handler_log_status(&state->hdl, prefix); in msp_log_status()
684 struct v4l2_ctrl_handler *hdl; in msp_probe() local
798 hdl = &state->hdl; in msp_probe()
799 v4l2_ctrl_handler_init(hdl, 6); in msp_probe()
801 v4l2_ctrl_new_std(hdl, &msp_ctrl_ops, in msp_probe()
803 v4l2_ctrl_new_std(hdl, &msp_ctrl_ops, in msp_probe()
805 v4l2_ctrl_new_std(hdl, &msp_ctrl_ops, in msp_probe()
808 state->volume = v4l2_ctrl_new_std(hdl, &msp_ctrl_ops, in msp_probe()
810 v4l2_ctrl_new_std(hdl, &msp_ctrl_ops, in msp_probe()
812 state->muted = v4l2_ctrl_new_std(hdl, &msp_ctrl_ops, in msp_probe()
[all …]
Dnoon010pc30.c135 struct v4l2_ctrl_handler hdl; member
242 return &container_of(ctrl->handler, struct noon010_info, hdl)->sd; in to_sd()
609 ret = v4l2_ctrl_handler_setup(&info->hdl); in noon010_s_power()
638 v4l2_ctrl_handler_log_status(&info->hdl, sd->name); in noon010_log_status()
728 v4l2_ctrl_handler_init(&info->hdl, 3); in noon010_probe()
730 v4l2_ctrl_new_std(&info->hdl, &noon010_ctrl_ops, in noon010_probe()
732 v4l2_ctrl_new_std(&info->hdl, &noon010_ctrl_ops, in noon010_probe()
734 v4l2_ctrl_new_std(&info->hdl, &noon010_ctrl_ops, in noon010_probe()
737 sd->ctrl_handler = &info->hdl; in noon010_probe()
739 ret = info->hdl.error; in noon010_probe()
[all …]
Dtvp514x.c108 struct v4l2_ctrl_handler hdl; member
277 return &container_of(ctrl->handler, struct tvp514x_decoder, hdl)->sd; in to_sd()
1107 v4l2_ctrl_handler_init(&decoder->hdl, 5); in tvp514x_probe()
1108 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1110 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1112 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1114 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1116 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1118 sd->ctrl_handler = &decoder->hdl; in tvp514x_probe()
1119 if (decoder->hdl.error) { in tvp514x_probe()
[all …]
Dov7670.c213 struct v4l2_ctrl_handler hdl; member
247 return &container_of(ctrl->handler, struct ov7670_info, hdl)->sd; in to_sd()
1615 v4l2_ctrl_handler_init(&info->hdl, 10); in ov7670_probe()
1616 v4l2_ctrl_new_std(&info->hdl, &ov7670_ctrl_ops, in ov7670_probe()
1618 v4l2_ctrl_new_std(&info->hdl, &ov7670_ctrl_ops, in ov7670_probe()
1620 v4l2_ctrl_new_std(&info->hdl, &ov7670_ctrl_ops, in ov7670_probe()
1622 v4l2_ctrl_new_std(&info->hdl, &ov7670_ctrl_ops, in ov7670_probe()
1624 info->saturation = v4l2_ctrl_new_std(&info->hdl, &ov7670_ctrl_ops, in ov7670_probe()
1626 info->hue = v4l2_ctrl_new_std(&info->hdl, &ov7670_ctrl_ops, in ov7670_probe()
1628 info->gain = v4l2_ctrl_new_std(&info->hdl, &ov7670_ctrl_ops, in ov7670_probe()
[all …]
Dtvp5150.c38 struct v4l2_ctrl_handler hdl; member
54 return &container_of(ctrl->handler, struct tvp5150, hdl)->sd; in to_sd()
772 v4l2_ctrl_handler_setup(&decoder->hdl); in tvp5150_reset()
1164 v4l2_ctrl_handler_init(&core->hdl, 4); in tvp5150_probe()
1165 v4l2_ctrl_new_std(&core->hdl, &tvp5150_ctrl_ops, in tvp5150_probe()
1167 v4l2_ctrl_new_std(&core->hdl, &tvp5150_ctrl_ops, in tvp5150_probe()
1169 v4l2_ctrl_new_std(&core->hdl, &tvp5150_ctrl_ops, in tvp5150_probe()
1171 v4l2_ctrl_new_std(&core->hdl, &tvp5150_ctrl_ops, in tvp5150_probe()
1173 sd->ctrl_handler = &core->hdl; in tvp5150_probe()
1174 if (core->hdl.error) { in tvp5150_probe()
[all …]
Dad9389b.c83 struct v4l2_ctrl_handler hdl; member
118 return &container_of(ctrl->handler, struct ad9389b_state, hdl)->sd; in to_sd()
899 v4l2_ctrl_handler_setup(&state->hdl); in ad9389b_setup()
1104 struct v4l2_ctrl_handler *hdl; in ad9389b_probe() local
1130 hdl = &state->hdl; in ad9389b_probe()
1131 v4l2_ctrl_handler_init(hdl, 5); in ad9389b_probe()
1135 state->hdmi_mode_ctrl = v4l2_ctrl_new_std_menu(hdl, &ad9389b_ctrl_ops, in ad9389b_probe()
1138 state->hotplug_ctrl = v4l2_ctrl_new_std(hdl, NULL, in ad9389b_probe()
1140 state->rx_sense_ctrl = v4l2_ctrl_new_std(hdl, NULL, in ad9389b_probe()
1142 state->have_edid0_ctrl = v4l2_ctrl_new_std(hdl, NULL, in ad9389b_probe()
[all …]
Dsaa7115.c77 struct v4l2_ctrl_handler hdl; member
108 return &container_of(ctrl->handler, struct saa711x_state, hdl)->sd; in to_sd()
1571 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in saa711x_log_status()
1808 struct v4l2_ctrl_handler *hdl; in saa711x_probe() local
1837 hdl = &state->hdl; in saa711x_probe()
1838 v4l2_ctrl_handler_init(hdl, 6); in saa711x_probe()
1840 v4l2_ctrl_new_std(hdl, &saa711x_ctrl_ops, in saa711x_probe()
1842 v4l2_ctrl_new_std(hdl, &saa711x_ctrl_ops, in saa711x_probe()
1844 v4l2_ctrl_new_std(hdl, &saa711x_ctrl_ops, in saa711x_probe()
1846 v4l2_ctrl_new_std(hdl, &saa711x_ctrl_ops, in saa711x_probe()
[all …]
Dov9650.c992 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in ov965x_initialize_controls() local
995 ret = v4l2_ctrl_handler_init(hdl, 16); in ov965x_initialize_controls()
1000 ctrls->auto_wb = v4l2_ctrl_new_std(hdl, ops, in ov965x_initialize_controls()
1003 ctrls->blue_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BLUE_BALANCE, in ov965x_initialize_controls()
1005 ctrls->red_balance = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_RED_BALANCE, in ov965x_initialize_controls()
1008 ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops, in ov965x_initialize_controls()
1012 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, in ov965x_initialize_controls()
1016 ctrls->auto_gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTOGAIN, in ov965x_initialize_controls()
1018 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, in ov965x_initialize_controls()
1021 ctrls->saturation = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SATURATION, in ov965x_initialize_controls()
[all …]
Ds5k6aa.c1369 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in s5k6aa_initialize_ctrls() local
1371 int ret = v4l2_ctrl_handler_init(hdl, 16); in s5k6aa_initialize_ctrls()
1375 ctrls->awb = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTO_WHITE_BALANCE, in s5k6aa_initialize_ctrls()
1377 ctrls->gain_red = v4l2_ctrl_new_custom(hdl, &s5k6aa_ctrls[0], NULL); in s5k6aa_initialize_ctrls()
1378 ctrls->gain_green = v4l2_ctrl_new_custom(hdl, &s5k6aa_ctrls[1], NULL); in s5k6aa_initialize_ctrls()
1379 ctrls->gain_blue = v4l2_ctrl_new_custom(hdl, &s5k6aa_ctrls[2], NULL); in s5k6aa_initialize_ctrls()
1382 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, 0, 1, 1, 0); in s5k6aa_initialize_ctrls()
1383 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, 0, 1, 1, 0); in s5k6aa_initialize_ctrls()
1386 ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops, in s5k6aa_initialize_ctrls()
1390 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE, in s5k6aa_initialize_ctrls()
[all …]
Dtvp7002.c421 struct v4l2_ctrl_handler hdl; member
444 return &container_of(ctrl->handler, struct tvp7002, hdl)->sd; in to_sd()
779 v4l2_ctrl_handler_log_status(&device->hdl, sd->name); in tvp7002_log_status()
1022 v4l2_ctrl_handler_init(&device->hdl, 1); in tvp7002_probe()
1023 v4l2_ctrl_new_std(&device->hdl, &tvp7002_ctrl_ops, in tvp7002_probe()
1025 sd->ctrl_handler = &device->hdl; in tvp7002_probe()
1026 if (device->hdl.error) { in tvp7002_probe()
1027 error = device->hdl.error; in tvp7002_probe()
1030 v4l2_ctrl_handler_setup(&device->hdl); in tvp7002_probe()
1039 v4l2_ctrl_handler_free(&device->hdl); in tvp7002_probe()
[all …]
Ds5k5baf.c1635 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in s5k5baf_initialize_ctrls() local
1638 ret = v4l2_ctrl_handler_init(hdl, 16); in s5k5baf_initialize_ctrls()
1645 ctrls->awb = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_AUTO_WHITE_BALANCE, in s5k5baf_initialize_ctrls()
1647 ctrls->gain_red = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_RED_BALANCE, in s5k5baf_initialize_ctrls()
1649 ctrls->gain_blue = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BLUE_BALANCE, in s5k5baf_initialize_ctrls()
1653 ctrls->hflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_HFLIP, 0, 1, 1, 0); in s5k5baf_initialize_ctrls()
1654 ctrls->vflip = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_VFLIP, 0, 1, 1, 0); in s5k5baf_initialize_ctrls()
1657 ctrls->auto_exp = v4l2_ctrl_new_std_menu(hdl, ops, in s5k5baf_initialize_ctrls()
1661 ctrls->exposure = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_EXPOSURE, in s5k5baf_initialize_ctrls()
1664 ctrls->gain = v4l2_ctrl_new_std(hdl, ops, V4L2_CID_GAIN, in s5k5baf_initialize_ctrls()
[all …]
Dadv7511.c90 struct v4l2_ctrl_handler hdl; member
147 return &container_of(ctrl->handler, struct adv7511_state, hdl)->sd; in to_sd()
1249 v4l2_ctrl_handler_setup(&state->hdl); in adv7511_setup()
1437 struct v4l2_ctrl_handler *hdl; in adv7511_probe() local
1466 hdl = &state->hdl; in adv7511_probe()
1467 v4l2_ctrl_handler_init(hdl, 10); in adv7511_probe()
1469 state->hdmi_mode_ctrl = v4l2_ctrl_new_std_menu(hdl, &adv7511_ctrl_ops, in adv7511_probe()
1472 state->hotplug_ctrl = v4l2_ctrl_new_std(hdl, NULL, in adv7511_probe()
1474 state->rx_sense_ctrl = v4l2_ctrl_new_std(hdl, NULL, in adv7511_probe()
1476 state->have_edid0_ctrl = v4l2_ctrl_new_std(hdl, NULL, in adv7511_probe()
[all …]
Dtvaudio.c116 struct v4l2_ctrl_handler hdl; member
149 return &container_of(ctrl->handler, struct CHIPSTATE, hdl)->sd; in to_sd()
1846 v4l2_ctrl_handler_log_status(&chip->hdl, sd->name); in tvaudio_log_status()
1952 v4l2_ctrl_handler_init(&chip->hdl, 5); in tvaudio_probe()
1954 v4l2_ctrl_new_std(&chip->hdl, &tvaudio_ctrl_ops, in tvaudio_probe()
1964 chip->volume = v4l2_ctrl_new_std(&chip->hdl, in tvaudio_probe()
1968 chip->balance = v4l2_ctrl_new_std(&chip->hdl, in tvaudio_probe()
1982 v4l2_ctrl_new_std(&chip->hdl, in tvaudio_probe()
1986 v4l2_ctrl_new_std(&chip->hdl, in tvaudio_probe()
1993 sd->ctrl_handler = &chip->hdl; in tvaudio_probe()
[all …]
Ds5k4ecgx.c910 struct v4l2_ctrl_handler *hdl = &priv->handler; in s5k4ecgx_init_v4l2_ctrls() local
913 ret = v4l2_ctrl_handler_init(hdl, 4); in s5k4ecgx_init_v4l2_ctrls()
917 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_BRIGHTNESS, -208, 127, 1, 0); in s5k4ecgx_init_v4l2_ctrls()
918 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_CONTRAST, -127, 127, 1, 0); in s5k4ecgx_init_v4l2_ctrls()
919 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SATURATION, -127, 127, 1, 0); in s5k4ecgx_init_v4l2_ctrls()
922 v4l2_ctrl_new_std(hdl, ops, V4L2_CID_SHARPNESS, -32704/SHARPNESS_DIV, in s5k4ecgx_init_v4l2_ctrls()
924 if (hdl->error) { in s5k4ecgx_init_v4l2_ctrls()
925 ret = hdl->error; in s5k4ecgx_init_v4l2_ctrls()
926 v4l2_ctrl_handler_free(hdl); in s5k4ecgx_init_v4l2_ctrls()
929 priv->sd.ctrl_handler = hdl; in s5k4ecgx_init_v4l2_ctrls()
Dmsp3400-driver.h55 struct v4l2_ctrl_handler hdl; member
114 return container_of(ctrl->handler, struct msp_state, hdl); in ctrl_to_state()
Dadv7604.c172 struct v4l2_ctrl_handler hdl; member
1175 &container_of(ctrl->handler, struct adv76xx_state, hdl)->sd; in adv76xx_s_ctrl()
3011 struct v4l2_ctrl_handler *hdl; in adv76xx_probe() local
3132 hdl = &state->hdl; in adv76xx_probe()
3133 v4l2_ctrl_handler_init(hdl, adv76xx_has_afe(state) ? 9 : 8); in adv76xx_probe()
3135 v4l2_ctrl_new_std(hdl, &adv76xx_ctrl_ops, in adv76xx_probe()
3137 v4l2_ctrl_new_std(hdl, &adv76xx_ctrl_ops, in adv76xx_probe()
3139 v4l2_ctrl_new_std(hdl, &adv76xx_ctrl_ops, in adv76xx_probe()
3141 v4l2_ctrl_new_std(hdl, &adv76xx_ctrl_ops, in adv76xx_probe()
3145 state->detect_tx_5v_ctrl = v4l2_ctrl_new_std(hdl, NULL, in adv76xx_probe()
[all …]
Dadv7842.c102 struct v4l2_ctrl_handler hdl; member
153 static bool adv7842_check_dv_timings(const struct v4l2_dv_timings *t, void *hdl) in adv7842_check_dv_timings() argument
260 return &container_of(ctrl->handler, struct adv7842_state, hdl)->sd; in to_sd()
3198 struct v4l2_ctrl_handler *hdl; in adv7842_probe() local
3252 hdl = &state->hdl; in adv7842_probe()
3253 v4l2_ctrl_handler_init(hdl, 6); in adv7842_probe()
3256 v4l2_ctrl_new_std(hdl, &adv7842_ctrl_ops, in adv7842_probe()
3258 v4l2_ctrl_new_std(hdl, &adv7842_ctrl_ops, in adv7842_probe()
3260 v4l2_ctrl_new_std(hdl, &adv7842_ctrl_ops, in adv7842_probe()
3262 v4l2_ctrl_new_std(hdl, &adv7842_ctrl_ops, in adv7842_probe()
[all …]
Dtc358743.c83 struct v4l2_ctrl_handler hdl; member
1859 v4l2_ctrl_handler_init(&state->hdl, 3); in tc358743_probe()
1862 state->detect_tx_5v_ctrl = v4l2_ctrl_new_std(&state->hdl, NULL, in tc358743_probe()
1866 state->audio_sampling_rate_ctrl = v4l2_ctrl_new_custom(&state->hdl, in tc358743_probe()
1869 state->audio_present_ctrl = v4l2_ctrl_new_custom(&state->hdl, in tc358743_probe()
1872 sd->ctrl_handler = &state->hdl; in tc358743_probe()
1873 if (state->hdl.error) { in tc358743_probe()
1874 err = state->hdl.error; in tc358743_probe()
1943 v4l2_ctrl_handler_free(&state->hdl); in tc358743_probe()
1958 v4l2_ctrl_handler_free(&state->hdl); in tc358743_remove()
/linux-4.4.14/drivers/media/i2c/s5c73m3/
Ds5c73m3-ctrls.c455 struct v4l2_ctrl_handler *hdl = &ctrls->handler; in s5c73m3_init_controls() local
457 int ret = v4l2_ctrl_handler_init(hdl, 22); in s5c73m3_init_controls()
462 ctrls->auto_wb = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls()
467 ctrls->auto_exposure = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls()
470 ctrls->exposure_bias = v4l2_ctrl_new_int_menu(hdl, ops, in s5c73m3_init_controls()
476 ctrls->exposure_metering = v4l2_ctrl_new_std_menu(hdl, ops, in s5c73m3_init_controls()
481 ctrls->focus_auto = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
484 ctrls->af_start = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
487 ctrls->af_stop = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
490 ctrls->af_status = v4l2_ctrl_new_std(hdl, ops, in s5c73m3_init_controls()
[all …]
/linux-4.4.14/drivers/media/radio/
Dradio-keene.c65 struct v4l2_ctrl_handler hdl; member
250 container_of(ctrl->handler, struct keene_device, hdl); in keene_s_ctrl()
303 v4l2_ctrl_handler_free(&radio->hdl); in usb_keene_video_device_release()
314 struct v4l2_ctrl_handler *hdl; in usb_keene_probe() local
340 hdl = &radio->hdl; in usb_keene_probe()
341 v4l2_ctrl_handler_init(hdl, 4); in usb_keene_probe()
342 v4l2_ctrl_new_std(hdl, &keene_ctrl_ops, V4L2_CID_AUDIO_MUTE, in usb_keene_probe()
344 v4l2_ctrl_new_std_menu(hdl, &keene_ctrl_ops, V4L2_CID_TUNE_PREEMPHASIS, in usb_keene_probe()
346 v4l2_ctrl_new_std(hdl, &keene_ctrl_ops, V4L2_CID_TUNE_POWER_LEVEL, in usb_keene_probe()
348 v4l2_ctrl_new_std(hdl, &keene_ctrl_ops, V4L2_CID_AUDIO_COMPRESSION_GAIN, in usb_keene_probe()
[all …]
Dradio-sf16fmi.c49 struct v4l2_ctrl_handler hdl; member
193 struct fmi *fmi = container_of(ctrl->handler, struct fmi, hdl); in fmi_s_ctrl()
277 struct v4l2_ctrl_handler *hdl = &fmi->hdl; in fmi_init() local
330 v4l2_ctrl_handler_init(hdl, 1); in fmi_init()
331 v4l2_ctrl_new_std(hdl, &fmi_ctrl_ops, in fmi_init()
333 v4l2_dev->ctrl_handler = hdl; in fmi_init()
334 if (hdl->error) { in fmi_init()
335 res = hdl->error; in fmi_init()
337 v4l2_ctrl_handler_free(hdl); in fmi_init()
357 v4l2_ctrl_handler_free(hdl); in fmi_init()
[all …]
Dradio-miropcm20.c437 struct v4l2_ctrl_handler *hdl; in pcm20_init() local
455 hdl = &dev->ctrl_handler; in pcm20_init()
456 v4l2_ctrl_handler_init(hdl, 7); in pcm20_init()
457 v4l2_ctrl_new_std(hdl, &pcm20_ctrl_ops, in pcm20_init()
459 dev->rds_pty = v4l2_ctrl_new_std(hdl, NULL, in pcm20_init()
461 dev->rds_ps_name = v4l2_ctrl_new_std(hdl, NULL, in pcm20_init()
463 dev->rds_radio_test = v4l2_ctrl_new_std(hdl, NULL, in pcm20_init()
465 dev->rds_ta = v4l2_ctrl_new_std(hdl, NULL, in pcm20_init()
467 dev->rds_tp = v4l2_ctrl_new_std(hdl, NULL, in pcm20_init()
469 dev->rds_ms = v4l2_ctrl_new_std(hdl, NULL, in pcm20_init()
[all …]
Dradio-isa.c135 container_of(ctrl->handler, struct radio_isa_card, hdl); in radio_isa_s_ctrl()
150 v4l2_ctrl_handler_log_status(&isa->hdl, isa->v4l2_dev.name); in radio_isa_log_status()
232 v4l2_ctrl_handler_init(&isa->hdl, 1); in radio_isa_common_probe()
233 isa->mute = v4l2_ctrl_new_std(&isa->hdl, &radio_isa_ctrl_ops, in radio_isa_common_probe()
236 isa->volume = v4l2_ctrl_new_std(&isa->hdl, &radio_isa_ctrl_ops, in radio_isa_common_probe()
239 v4l2_dev->ctrl_handler = &isa->hdl; in radio_isa_common_probe()
240 if (isa->hdl.error) { in radio_isa_common_probe()
241 res = isa->hdl.error; in radio_isa_common_probe()
247 v4l2_dev->ctrl_handler = &isa->hdl; in radio_isa_common_probe()
263 res = v4l2_ctrl_handler_setup(&isa->hdl); in radio_isa_common_probe()
[all …]
Dradio-ma901.c90 struct v4l2_ctrl_handler hdl; member
287 container_of(ctrl->handler, struct ma901radio_device, hdl); in usb_ma901radio_s_ctrl()
340 v4l2_ctrl_handler_free(&radio->hdl); in usb_ma901radio_release()
384 v4l2_ctrl_handler_init(&radio->hdl, 1); in usb_ma901radio_probe()
394 v4l2_ctrl_new_std(&radio->hdl, &usb_ma901radio_ctrl_ops, in usb_ma901radio_probe()
398 if (radio->hdl.error) { in usb_ma901radio_probe()
399 retval = radio->hdl.error; in usb_ma901radio_probe()
405 radio->v4l2_dev.ctrl_handler = &radio->hdl; in usb_ma901radio_probe()
439 v4l2_ctrl_handler_free(&radio->hdl); in usb_ma901radio_probe()
Ddsbr100.c82 struct v4l2_ctrl_handler hdl; member
243 container_of(ctrl->handler, struct dsbr100_device, hdl); in usb_dsbr100_s_ctrl()
318 v4l2_ctrl_handler_free(&radio->hdl); in usb_dsbr100_release()
377 v4l2_ctrl_handler_init(&radio->hdl, 1); in usb_dsbr100_probe()
378 v4l2_ctrl_new_std(&radio->hdl, &usb_dsbr100_ctrl_ops, in usb_dsbr100_probe()
380 if (radio->hdl.error) { in usb_dsbr100_probe()
381 retval = radio->hdl.error; in usb_dsbr100_probe()
392 radio->videodev.ctrl_handler = &radio->hdl; in usb_dsbr100_probe()
407 v4l2_ctrl_handler_free(&radio->hdl); in usb_dsbr100_probe()
Dsaa7706h.c130 struct v4l2_ctrl_handler hdl; member
324 container_of(ctrl->handler, struct saa7706h_state, hdl); in saa7706h_s_ctrl()
366 v4l2_ctrl_handler_init(&state->hdl, 4); in saa7706h_probe()
367 v4l2_ctrl_new_std(&state->hdl, &saa7706h_ctrl_ops, in saa7706h_probe()
369 sd->ctrl_handler = &state->hdl; in saa7706h_probe()
370 err = state->hdl.error; in saa7706h_probe()
391 v4l2_ctrl_handler_free(&state->hdl); in saa7706h_probe()
406 v4l2_ctrl_handler_free(&state->hdl); in saa7706h_remove()
Dradio-mr800.c134 struct v4l2_ctrl_handler hdl; member
413 container_of(ctrl->handler, struct amradio_device, hdl); in usb_amradio_s_ctrl()
507 v4l2_ctrl_handler_free(&radio->hdl); in usb_amradio_release()
542 v4l2_ctrl_handler_init(&radio->hdl, 1); in usb_amradio_probe()
543 v4l2_ctrl_new_std(&radio->hdl, &usb_amradio_ctrl_ops, in usb_amradio_probe()
545 if (radio->hdl.error) { in usb_amradio_probe()
546 retval = radio->hdl.error; in usb_amradio_probe()
552 radio->v4l2_dev.ctrl_handler = &radio->hdl; in usb_amradio_probe()
582 v4l2_ctrl_handler_free(&radio->hdl); in usb_amradio_probe()
Dradio-tea5764.c434 struct v4l2_ctrl_handler *hdl; in tea5764_i2c_probe() local
450 hdl = &radio->ctrl_handler; in tea5764_i2c_probe()
451 v4l2_ctrl_handler_init(hdl, 1); in tea5764_i2c_probe()
452 v4l2_ctrl_new_std(hdl, &tea5764_ctrl_ops, in tea5764_i2c_probe()
454 v4l2_dev->ctrl_handler = hdl; in tea5764_i2c_probe()
455 if (hdl->error) { in tea5764_i2c_probe()
456 ret = hdl->error; in tea5764_i2c_probe()
497 v4l2_ctrl_handler_free(hdl); in tea5764_i2c_probe()
Dradio-trust.c165 container_of(ctrl->handler, struct radio_isa_card, hdl); in trust_s_ctrl()
194 v4l2_ctrl_new_std(&isa->hdl, &trust_ctrl_ops, in trust_initialize()
196 v4l2_ctrl_new_std(&isa->hdl, &trust_ctrl_ops, in trust_initialize()
198 return isa->hdl.error; in trust_initialize()
Dradio-cadet.c600 struct v4l2_ctrl_handler *hdl; in cadet_init() local
633 hdl = &dev->ctrl_handler; in cadet_init()
634 v4l2_ctrl_handler_init(hdl, 2); in cadet_init()
635 v4l2_ctrl_new_std(hdl, &cadet_ctrl_ops, in cadet_init()
637 v4l2_dev->ctrl_handler = hdl; in cadet_init()
638 if (hdl->error) { in cadet_init()
639 res = hdl->error; in cadet_init()
661 v4l2_ctrl_handler_free(hdl); in cadet_init()
Dradio-isa.h39 struct v4l2_ctrl_handler hdl; member
/linux-4.4.14/drivers/media/usb/pwc/
Dpwc-v4l.c164 struct v4l2_ctrl_handler *hdl; in pwc_init_controls() local
168 hdl = &pdev->ctrl_handler; in pwc_init_controls()
169 r = v4l2_ctrl_handler_init(hdl, 20); in pwc_init_controls()
177 pdev->brightness = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
183 pdev->contrast = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
195 pdev->saturation = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
202 pdev->gamma = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
212 pdev->auto_white_balance = v4l2_ctrl_new_custom(hdl, &cfg, NULL); in pwc_init_controls()
215 return hdl->error; in pwc_init_controls()
221 pdev->red_balance = v4l2_ctrl_new_std(hdl, &pwc_ctrl_ops, in pwc_init_controls()
[all …]
/linux-4.4.14/drivers/media/usb/gspca/m5602/
Dm5602_ov7660.c126 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in ov7660_init_controls() local
128 sd->gspca_dev.vdev.ctrl_handler = hdl; in ov7660_init_controls()
129 v4l2_ctrl_handler_init(hdl, 6); in ov7660_init_controls()
131 v4l2_ctrl_new_std(hdl, &ov7660_ctrl_ops, V4L2_CID_AUTO_WHITE_BALANCE, in ov7660_init_controls()
133 v4l2_ctrl_new_std_menu(hdl, &ov7660_ctrl_ops, in ov7660_init_controls()
136 sd->autogain = v4l2_ctrl_new_std(hdl, &ov7660_ctrl_ops, in ov7660_init_controls()
138 sd->gain = v4l2_ctrl_new_std(hdl, &ov7660_ctrl_ops, V4L2_CID_GAIN, 0, in ov7660_init_controls()
141 sd->hflip = v4l2_ctrl_new_std(hdl, &ov7660_ctrl_ops, V4L2_CID_HFLIP, in ov7660_init_controls()
143 sd->vflip = v4l2_ctrl_new_std(hdl, &ov7660_ctrl_ops, V4L2_CID_VFLIP, in ov7660_init_controls()
146 if (hdl->error) { in ov7660_init_controls()
[all …]
Dm5602_po1030.c135 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in po1030_init_controls() local
137 sd->gspca_dev.vdev.ctrl_handler = hdl; in po1030_init_controls()
138 v4l2_ctrl_handler_init(hdl, 9); in po1030_init_controls()
140 sd->auto_white_bal = v4l2_ctrl_new_std(hdl, &po1030_ctrl_ops, in po1030_init_controls()
143 sd->green_bal = v4l2_ctrl_new_custom(hdl, &po1030_greenbal_cfg, NULL); in po1030_init_controls()
144 sd->red_bal = v4l2_ctrl_new_std(hdl, &po1030_ctrl_ops, in po1030_init_controls()
147 sd->blue_bal = v4l2_ctrl_new_std(hdl, &po1030_ctrl_ops, in po1030_init_controls()
151 sd->autoexpo = v4l2_ctrl_new_std_menu(hdl, &po1030_ctrl_ops, in po1030_init_controls()
153 sd->expo = v4l2_ctrl_new_std(hdl, &po1030_ctrl_ops, V4L2_CID_EXPOSURE, in po1030_init_controls()
156 sd->gain = v4l2_ctrl_new_std(hdl, &po1030_ctrl_ops, V4L2_CID_GAIN, 0, in po1030_init_controls()
[all …]
Dm5602_mt9m111.c132 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in mt9m111_init_controls() local
134 sd->gspca_dev.vdev.ctrl_handler = hdl; in mt9m111_init_controls()
135 v4l2_ctrl_handler_init(hdl, 7); in mt9m111_init_controls()
137 sd->auto_white_bal = v4l2_ctrl_new_std(hdl, &mt9m111_ctrl_ops, in mt9m111_init_controls()
140 sd->green_bal = v4l2_ctrl_new_custom(hdl, &mt9m111_greenbal_cfg, NULL); in mt9m111_init_controls()
141 sd->red_bal = v4l2_ctrl_new_std(hdl, &mt9m111_ctrl_ops, in mt9m111_init_controls()
144 sd->blue_bal = v4l2_ctrl_new_std(hdl, &mt9m111_ctrl_ops, in mt9m111_init_controls()
148 v4l2_ctrl_new_std(hdl, &mt9m111_ctrl_ops, V4L2_CID_GAIN, 0, in mt9m111_init_controls()
152 sd->hflip = v4l2_ctrl_new_std(hdl, &mt9m111_ctrl_ops, V4L2_CID_HFLIP, in mt9m111_init_controls()
154 sd->vflip = v4l2_ctrl_new_std(hdl, &mt9m111_ctrl_ops, V4L2_CID_VFLIP, in mt9m111_init_controls()
[all …]
Dm5602_ov9650.c219 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in ov9650_init_controls() local
221 sd->gspca_dev.vdev.ctrl_handler = hdl; in ov9650_init_controls()
222 v4l2_ctrl_handler_init(hdl, 9); in ov9650_init_controls()
224 sd->auto_white_bal = v4l2_ctrl_new_std(hdl, &ov9650_ctrl_ops, in ov9650_init_controls()
227 sd->red_bal = v4l2_ctrl_new_std(hdl, &ov9650_ctrl_ops, in ov9650_init_controls()
230 sd->blue_bal = v4l2_ctrl_new_std(hdl, &ov9650_ctrl_ops, in ov9650_init_controls()
234 sd->autoexpo = v4l2_ctrl_new_std_menu(hdl, &ov9650_ctrl_ops, in ov9650_init_controls()
236 sd->expo = v4l2_ctrl_new_std(hdl, &ov9650_ctrl_ops, V4L2_CID_EXPOSURE, in ov9650_init_controls()
239 sd->autogain = v4l2_ctrl_new_std(hdl, &ov9650_ctrl_ops, in ov9650_init_controls()
241 sd->gain = v4l2_ctrl_new_std(hdl, &ov9650_ctrl_ops, V4L2_CID_GAIN, 0, in ov9650_init_controls()
[all …]
Dm5602_s5k4aa.c334 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in s5k4aa_init_controls() local
336 sd->gspca_dev.vdev.ctrl_handler = hdl; in s5k4aa_init_controls()
337 v4l2_ctrl_handler_init(hdl, 6); in s5k4aa_init_controls()
339 v4l2_ctrl_new_std(hdl, &s5k4aa_ctrl_ops, V4L2_CID_BRIGHTNESS, in s5k4aa_init_controls()
342 v4l2_ctrl_new_std(hdl, &s5k4aa_ctrl_ops, V4L2_CID_EXPOSURE, in s5k4aa_init_controls()
345 v4l2_ctrl_new_std(hdl, &s5k4aa_ctrl_ops, V4L2_CID_GAIN, in s5k4aa_init_controls()
348 v4l2_ctrl_new_std(hdl, &s5k4aa_ctrl_ops, V4L2_CID_SHARPNESS, in s5k4aa_init_controls()
351 sd->hflip = v4l2_ctrl_new_std(hdl, &s5k4aa_ctrl_ops, V4L2_CID_HFLIP, in s5k4aa_init_controls()
353 sd->vflip = v4l2_ctrl_new_std(hdl, &s5k4aa_ctrl_ops, V4L2_CID_VFLIP, in s5k4aa_init_controls()
356 if (hdl->error) { in s5k4aa_init_controls()
[all …]
Dm5602_s5k83a.c143 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in s5k83a_init_controls() local
145 sd->gspca_dev.vdev.ctrl_handler = hdl; in s5k83a_init_controls()
146 v4l2_ctrl_handler_init(hdl, 6); in s5k83a_init_controls()
148 v4l2_ctrl_new_std(hdl, &s5k83a_ctrl_ops, V4L2_CID_BRIGHTNESS, in s5k83a_init_controls()
151 v4l2_ctrl_new_std(hdl, &s5k83a_ctrl_ops, V4L2_CID_EXPOSURE, in s5k83a_init_controls()
155 v4l2_ctrl_new_std(hdl, &s5k83a_ctrl_ops, V4L2_CID_GAIN, in s5k83a_init_controls()
158 sd->hflip = v4l2_ctrl_new_std(hdl, &s5k83a_ctrl_ops, V4L2_CID_HFLIP, in s5k83a_init_controls()
160 sd->vflip = v4l2_ctrl_new_std(hdl, &s5k83a_ctrl_ops, V4L2_CID_VFLIP, in s5k83a_init_controls()
163 if (hdl->error) { in s5k83a_init_controls()
165 return hdl->error; in s5k83a_init_controls()
/linux-4.4.14/drivers/media/radio/si4713/
Dsi4713.c1448 struct v4l2_ctrl_handler *hdl; in si4713_probe() local
1494 hdl = &sdev->ctrl_handler; in si4713_probe()
1495 v4l2_ctrl_handler_init(hdl, 20); in si4713_probe()
1496 sdev->mute = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe()
1499 sdev->rds_pi = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe()
1501 sdev->rds_pty = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe()
1503 sdev->rds_compressed = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe()
1505 sdev->rds_art_head = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe()
1507 sdev->rds_stereo = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe()
1509 sdev->rds_tp = v4l2_ctrl_new_std(hdl, &si4713_ctrl_ops, in si4713_probe()
[all …]
/linux-4.4.14/drivers/media/usb/gspca/stv06xx/
Dstv06xx_st6422.c103 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in st6422_init_controls() local
105 v4l2_ctrl_handler_init(hdl, 4); in st6422_init_controls()
106 v4l2_ctrl_new_std(hdl, &st6422_ctrl_ops, in st6422_init_controls()
108 v4l2_ctrl_new_std(hdl, &st6422_ctrl_ops, in st6422_init_controls()
110 v4l2_ctrl_new_std(hdl, &st6422_ctrl_ops, in st6422_init_controls()
112 v4l2_ctrl_new_std(hdl, &st6422_ctrl_ops, in st6422_init_controls()
115 return hdl->error; in st6422_init_controls()
Dstv06xx_pb0100.c121 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in pb0100_init_controls() local
146 v4l2_ctrl_handler_init(hdl, 6); in pb0100_init_controls()
147 ctrls->autogain = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
149 ctrls->exposure = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
151 ctrls->gain = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
153 ctrls->red = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
155 ctrls->blue = v4l2_ctrl_new_std(hdl, &pb0100_ctrl_ops, in pb0100_init_controls()
157 ctrls->natural = v4l2_ctrl_new_custom(hdl, &natural_light, NULL); in pb0100_init_controls()
158 ctrls->target = v4l2_ctrl_new_custom(hdl, &autogain_target, NULL); in pb0100_init_controls()
159 if (hdl->error) { in pb0100_init_controls()
[all …]
Dstv06xx_vv6410.c99 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in vv6410_init_controls() local
101 v4l2_ctrl_handler_init(hdl, 2); in vv6410_init_controls()
109 v4l2_ctrl_new_std(hdl, &vv6410_ctrl_ops, in vv6410_init_controls()
111 v4l2_ctrl_new_std(hdl, &vv6410_ctrl_ops, in vv6410_init_controls()
113 return hdl->error; in vv6410_init_controls()
Dstv06xx_hdcs.c359 struct v4l2_ctrl_handler *hdl = &sd->gspca_dev.ctrl_handler; in hdcs_init_controls() local
361 v4l2_ctrl_handler_init(hdl, 2); in hdcs_init_controls()
362 v4l2_ctrl_new_std(hdl, &hdcs_ctrl_ops, in hdcs_init_controls()
364 v4l2_ctrl_new_std(hdl, &hdcs_ctrl_ops, in hdcs_init_controls()
366 return hdl->error; in hdcs_init_controls()
/linux-4.4.14/drivers/media/usb/gspca/
Dmars.c206 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
208 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
209 v4l2_ctrl_handler_init(hdl, 6); in sd_init_controls()
210 sd->brightness = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
212 sd->saturation = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
214 sd->gamma = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
216 sd->sharpness = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
218 sd->illum_top = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
221 sd->illum_bottom = v4l2_ctrl_new_std(hdl, &mars_ctrl_ops, in sd_init_controls()
224 if (hdl->error) { in sd_init_controls()
[all …]
Dspca561.c812 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls_12a() local
814 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls_12a()
815 v4l2_ctrl_handler_init(hdl, 3); in sd_init_controls_12a()
816 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls_12a()
818 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls_12a()
820 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls_12a()
822 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls_12a()
825 if (hdl->error) { in sd_init_controls_12a()
827 return hdl->error; in sd_init_controls_12a()
835 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls_72a() local
[all …]
Dspca501.c1983 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
1985 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
1986 v4l2_ctrl_handler_init(hdl, 5); in sd_init_controls()
1987 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1989 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1991 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1993 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1995 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1998 if (hdl->error) { in sd_init_controls()
2000 return hdl->error; in sd_init_controls()
Ddtcs033.c229 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in dtcs033_init_controls() local
232 gspca_dev->vdev.ctrl_handler = hdl; in dtcs033_init_controls()
233 v4l2_ctrl_handler_init(hdl, 2); in dtcs033_init_controls()
235 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in dtcs033_init_controls()
238 sd->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in dtcs033_init_controls()
241 if (hdl->error) { in dtcs033_init_controls()
243 hdl->error); in dtcs033_init_controls()
244 return hdl->error; in dtcs033_init_controls()
Dpac7302.c648 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
650 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
651 v4l2_ctrl_handler_init(hdl, 12); in sd_init_controls()
653 sd->brightness = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
655 sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
658 sd->saturation = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
660 sd->white_balance = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
663 sd->red_balance = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
668 sd->blue_balance = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
674 gspca_dev->autogain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
[all …]
Dspca1528.c380 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
382 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
383 v4l2_ctrl_handler_init(hdl, 5); in sd_init_controls()
384 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
386 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
388 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
390 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
392 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
395 if (hdl->error) { in sd_init_controls()
397 return hdl->error; in sd_init_controls()
Dt613.c961 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
963 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
964 v4l2_ctrl_handler_init(hdl, 12); in sd_init_controls()
965 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
967 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
969 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
971 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
975 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
978 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
980 sd->awb = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
[all …]
Djeilinj.c442 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
453 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
454 v4l2_ctrl_handler_init(hdl, 6); in sd_init_controls()
455 sd->freq = v4l2_ctrl_new_std_menu(hdl, &sd_ctrl_ops, in sd_init_controls()
459 v4l2_ctrl_new_custom(hdl, &custom_autogain, NULL); in sd_init_controls()
460 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
462 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
464 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
466 sd->jpegqual = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
470 if (hdl->error) { in sd_init_controls()
[all …]
Dkonica.c419 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
421 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
422 v4l2_ctrl_handler_init(hdl, 5); in sd_init_controls()
423 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
426 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
428 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
430 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
433 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
436 if (hdl->error) { in sd_init_controls()
438 return hdl->error; in sd_init_controls()
Dstk014.c387 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
389 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
390 v4l2_ctrl_handler_init(hdl, 4); in sd_init_controls()
391 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
393 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
395 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
397 v4l2_ctrl_new_std_menu(hdl, &sd_ctrl_ops, in sd_init_controls()
402 if (hdl->error) { in sd_init_controls()
404 return hdl->error; in sd_init_controls()
Dvicam.c307 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
309 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
310 v4l2_ctrl_handler_init(hdl, 2); in sd_init_controls()
311 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, NULL, in sd_init_controls()
313 gspca_dev->gain = v4l2_ctrl_new_std(hdl, NULL, in sd_init_controls()
316 if (hdl->error) { in sd_init_controls()
318 return hdl->error; in sd_init_controls()
Dtv8532.c320 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
322 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
323 v4l2_ctrl_handler_init(hdl, 2); in sd_init_controls()
324 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
326 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
329 if (hdl->error) { in sd_init_controls()
331 return hdl->error; in sd_init_controls()
Dpac207.c262 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
264 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
265 v4l2_ctrl_handler_init(hdl, 4); in sd_init_controls()
267 sd->brightness = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
271 gspca_dev->autogain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
273 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
277 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
281 if (hdl->error) { in sd_init_controls()
283 return hdl->error; in sd_init_controls()
Dov534.c1153 struct v4l2_ctrl_handler *hdl = &sd->ctrl_handler; in sd_init_controls() local
1196 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
1198 v4l2_ctrl_handler_init(hdl, 13); in sd_init_controls()
1201 sd->hue = v4l2_ctrl_new_std(hdl, &ov534_ctrl_ops, in sd_init_controls()
1204 sd->saturation = v4l2_ctrl_new_std(hdl, &ov534_ctrl_ops, in sd_init_controls()
1207 sd->brightness = v4l2_ctrl_new_std(hdl, &ov534_ctrl_ops, in sd_init_controls()
1210 sd->contrast = v4l2_ctrl_new_std(hdl, &ov534_ctrl_ops, in sd_init_controls()
1214 sd->autogain = v4l2_ctrl_new_std(hdl, &ov534_ctrl_ops, in sd_init_controls()
1216 sd->gain = v4l2_ctrl_new_std(hdl, &ov534_ctrl_ops, in sd_init_controls()
1220 sd->autoexposure = v4l2_ctrl_new_std_menu(hdl, &ov534_ctrl_ops, in sd_init_controls()
[all …]
Dpac7311.c417 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
419 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
420 v4l2_ctrl_handler_init(hdl, 5); in sd_init_controls()
422 sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
424 gspca_dev->autogain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
426 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
429 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
432 sd->hflip = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
435 if (hdl->error) { in sd_init_controls()
437 return hdl->error; in sd_init_controls()
Dtouptek.c627 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
629 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
630 v4l2_ctrl_handler_init(hdl, 4); in sd_init_controls()
632 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
636 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
638 sd->blue = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
640 sd->red = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
643 if (hdl->error) { in sd_init_controls()
645 return hdl->error; in sd_init_controls()
Dsonixb.c1009 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
1011 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
1012 v4l2_ctrl_handler_init(hdl, 5); in sd_init_controls()
1016 sd->brightness = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1024 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1028 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1032 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1038 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1043 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1046 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
[all …]
Dov534_9.c1754 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
1760 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
1761 v4l2_ctrl_handler_init(hdl, 7); in sd_init_controls()
1763 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1766 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1768 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1770 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1773 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1775 gspca_dev->autogain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1777 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
[all …]
Dspca508.c1478 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
1480 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
1481 v4l2_ctrl_handler_init(hdl, 5); in sd_init_controls()
1482 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1485 if (hdl->error) { in sd_init_controls()
1487 return hdl->error; in sd_init_controls()
Dspca505.c750 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
752 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
753 v4l2_ctrl_handler_init(hdl, 5); in sd_init_controls()
754 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
757 if (hdl->error) { in sd_init_controls()
759 return hdl->error; in sd_init_controls()
Dnw80x.c2008 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
2010 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
2011 v4l2_ctrl_handler_init(hdl, 3); in sd_init_controls()
2014 gspca_dev->autogain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
2018 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
2020 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
2024 gspca_dev->autogain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
2026 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
2032 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
2039 if (hdl->error) { in sd_init_controls()
[all …]
Dmr97310a.c931 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
950 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
951 v4l2_ctrl_handler_init(hdl, 4); in sd_init_controls()
984 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
988 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
992 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
996 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1000 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, V4L2_CID_GAIN, in sd_init_controls()
1004 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1008 sd->min_clockdiv = v4l2_ctrl_new_custom(hdl, &clockdiv, NULL); in sd_init_controls()
[all …]
Dspca506.c550 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
552 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
553 v4l2_ctrl_handler_init(hdl, 4); in sd_init_controls()
554 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
556 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
558 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
560 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
563 if (hdl->error) { in sd_init_controls()
565 return hdl->error; in sd_init_controls()
Dvc032x.c3706 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
3742 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
3743 v4l2_ctrl_handler_init(hdl, 8); in sd_init_controls()
3745 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
3748 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
3751 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
3754 sd->hflip = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
3756 sd->vflip = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
3760 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
3763 v4l2_ctrl_new_std_menu(hdl, &sd_ctrl_ops, in sd_init_controls()
[all …]
Dse401.c656 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
658 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
659 v4l2_ctrl_handler_init(hdl, 4); in sd_init_controls()
661 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
664 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
666 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
668 sd->freq = v4l2_ctrl_new_std_menu(hdl, &sd_ctrl_ops, in sd_init_controls()
672 if (hdl->error) { in sd_init_controls()
674 return hdl->error; in sd_init_controls()
Dconex.c910 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
912 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
913 v4l2_ctrl_handler_init(hdl, 3); in sd_init_controls()
914 sd->brightness = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
916 sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
918 sd->sat = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
920 if (hdl->error) { in sd_init_controls()
922 return hdl->error; in sd_init_controls()
Dspca500.c921 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
923 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
924 v4l2_ctrl_handler_init(hdl, 3); in sd_init_controls()
925 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
927 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
929 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
932 if (hdl->error) { in sd_init_controls()
934 return hdl->error; in sd_init_controls()
Dstk1135.c602 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
604 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
605 v4l2_ctrl_handler_init(hdl, 2); in sd_init_controls()
606 sd->hflip = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
608 sd->vflip = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
611 if (hdl->error) { in sd_init_controls()
613 return hdl->error; in sd_init_controls()
Dsonixj.c1627 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
1629 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
1630 v4l2_ctrl_handler_init(hdl, 14); in sd_init_controls()
1632 sd->brightness = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1635 sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1638 sd->saturation = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1640 sd->red_bal = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1642 sd->blue_bal = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1645 sd->gamma = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1649 sd->sharpness = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
[all …]
Detoms.c734 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
736 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
737 v4l2_ctrl_handler_init(hdl, 4); in sd_init_controls()
738 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
740 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
743 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
745 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
747 if (hdl->error) { in sd_init_controls()
749 return hdl->error; in sd_init_controls()
Dsunplus.c956 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
958 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
959 v4l2_ctrl_handler_init(hdl, 4); in sd_init_controls()
960 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
962 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
964 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
966 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
969 if (hdl->error) { in sd_init_controls()
971 return hdl->error; in sd_init_controls()
Dsn9c20x.c1716 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
1718 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
1719 v4l2_ctrl_handler_init(hdl, 13); in sd_init_controls()
1721 sd->brightness = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1723 sd->contrast = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1725 sd->saturation = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1727 sd->hue = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1730 sd->gamma = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1733 sd->blue = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1735 sd->red = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
[all …]
Dsn9c2028.c317 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
320 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
321 v4l2_ctrl_handler_init(hdl, 2); in sd_init_controls()
325 sd->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
327 sd->autogain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
Dsq930x.c1096 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
1099 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
1100 v4l2_ctrl_handler_init(hdl, 2); in sd_init_controls()
1101 sd->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1103 sd->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1106 if (hdl->error) { in sd_init_controls()
1108 return hdl->error; in sd_init_controls()
Dtopro.c4894 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
4896 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
4897 v4l2_ctrl_handler_init(hdl, 4); in sd_init_controls()
4898 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
4901 sd->red = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
4903 sd->blue = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
4907 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
4910 gspca_dev->gain = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
4912 sd->sharpness = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
4914 sd->gamma = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
[all …]
Dov519.c4894 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
4896 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
4897 v4l2_ctrl_handler_init(hdl, 10); in sd_init_controls()
4899 sd->brightness = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
4905 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
4908 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
4914 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
4919 gspca_dev->exposure = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
4922 sd->hflip = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
4924 sd->vflip = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
[all …]
Dcpia1.c1814 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
1830 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
1831 v4l2_ctrl_handler_init(hdl, 7); in sd_init_controls()
1832 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1834 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1836 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1838 sd->freq = v4l2_ctrl_new_std_menu(hdl, &sd_ctrl_ops, in sd_init_controls()
1843 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1846 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
1850 v4l2_ctrl_new_custom(hdl, &comp_target, NULL); in sd_init_controls()
[all …]
Dxirlink_cit.c2997 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
3029 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
3030 v4l2_ctrl_handler_init(hdl, 5); in sd_init_controls()
3032 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
3035 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
3038 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
3041 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
3044 sd->lighting = v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
3047 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, in sd_init_controls()
3050 if (hdl->error) { in sd_init_controls()
[all …]
Dzc3xx.c6411 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
6434 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
6435 v4l2_ctrl_handler_init(hdl, 8); in sd_init_controls()
6436 sd->brightness = v4l2_ctrl_new_std(hdl, &zcxx_ctrl_ops, in sd_init_controls()
6438 sd->contrast = v4l2_ctrl_new_std(hdl, &zcxx_ctrl_ops, in sd_init_controls()
6440 sd->gamma = v4l2_ctrl_new_std(hdl, &zcxx_ctrl_ops, in sd_init_controls()
6443 sd->exposure = v4l2_ctrl_new_std(hdl, &zcxx_ctrl_ops, in sd_init_controls()
6445 sd->autogain = v4l2_ctrl_new_std(hdl, &zcxx_ctrl_ops, in sd_init_controls()
6448 sd->plfreq = v4l2_ctrl_new_std_menu(hdl, &zcxx_ctrl_ops, in sd_init_controls()
6452 sd->sharpness = v4l2_ctrl_new_std(hdl, &zcxx_ctrl_ops, in sd_init_controls()
[all …]
/linux-4.4.14/drivers/media/usb/go7007/
Dgo7007-v4l2.c810 container_of(ctrl->handler, struct go7007, hdl); in go7007_s_ctrl()
1048 struct v4l2_ctrl_handler *hdl = &go->hdl; in go7007_v4l2_ctrl_init() local
1051 v4l2_ctrl_handler_init(hdl, 22); in go7007_v4l2_ctrl_init()
1052 go->mpeg_video_gop_size = v4l2_ctrl_new_std(hdl, NULL, in go7007_v4l2_ctrl_init()
1054 go->mpeg_video_gop_closure = v4l2_ctrl_new_std(hdl, NULL, in go7007_v4l2_ctrl_init()
1056 go->mpeg_video_bitrate = v4l2_ctrl_new_std(hdl, NULL, in go7007_v4l2_ctrl_init()
1059 go->mpeg_video_b_frames = v4l2_ctrl_new_std(hdl, NULL, in go7007_v4l2_ctrl_init()
1061 go->mpeg_video_rep_seqheader = v4l2_ctrl_new_std(hdl, NULL, in go7007_v4l2_ctrl_init()
1064 go->mpeg_video_aspect_ratio = v4l2_ctrl_new_std_menu(hdl, NULL, in go7007_v4l2_ctrl_init()
1068 ctrl = v4l2_ctrl_new_std(hdl, NULL, in go7007_v4l2_ctrl_init()
[all …]
Ds2250-board.c121 struct v4l2_ctrl_handler hdl; member
373 struct s2250 *state = container_of(ctrl->handler, struct s2250, hdl); in s2250_s_ctrl()
532 v4l2_ctrl_handler_init(&state->hdl, 4); in s2250_probe()
533 v4l2_ctrl_new_std(&state->hdl, &s2250_ctrl_ops, in s2250_probe()
535 v4l2_ctrl_new_std(&state->hdl, &s2250_ctrl_ops, in s2250_probe()
537 v4l2_ctrl_new_std(&state->hdl, &s2250_ctrl_ops, in s2250_probe()
539 v4l2_ctrl_new_std(&state->hdl, &s2250_ctrl_ops, in s2250_probe()
541 sd->ctrl_handler = &state->hdl; in s2250_probe()
542 if (state->hdl.error) { in s2250_probe()
543 int err = state->hdl.error; in s2250_probe()
[all …]
Dgo7007-priv.h173 struct v4l2_ctrl_handler hdl; member
/linux-4.4.14/drivers/media/tuners/
Dmsi001.c44 struct v4l2_ctrl_handler hdl; member
403 struct msi001_dev *dev = container_of(ctrl->handler, struct msi001_dev, hdl); in msi001_s_ctrl()
462 v4l2_ctrl_handler_init(&dev->hdl, 5); in msi001_probe()
463 dev->bandwidth_auto = v4l2_ctrl_new_std(&dev->hdl, &msi001_ctrl_ops, in msi001_probe()
465 dev->bandwidth = v4l2_ctrl_new_std(&dev->hdl, &msi001_ctrl_ops, in msi001_probe()
468 dev->lna_gain = v4l2_ctrl_new_std(&dev->hdl, &msi001_ctrl_ops, in msi001_probe()
470 dev->mixer_gain = v4l2_ctrl_new_std(&dev->hdl, &msi001_ctrl_ops, in msi001_probe()
472 dev->if_gain = v4l2_ctrl_new_std(&dev->hdl, &msi001_ctrl_ops, in msi001_probe()
474 if (dev->hdl.error) { in msi001_probe()
475 ret = dev->hdl.error; in msi001_probe()
[all …]
De4000.c525 struct e4000_dev *dev = container_of(ctrl->handler, struct e4000_dev, hdl); in e4000_g_volatile_ctrl()
547 struct e4000_dev *dev = container_of(ctrl->handler, struct e4000_dev, hdl); in e4000_s_ctrl()
682 v4l2_ctrl_handler_init(&dev->hdl, 9); in e4000_probe()
683 dev->bandwidth_auto = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, in e4000_probe()
685 dev->bandwidth = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, in e4000_probe()
688 dev->lna_gain_auto = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, in e4000_probe()
690 dev->lna_gain = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, in e4000_probe()
693 dev->mixer_gain_auto = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, in e4000_probe()
695 dev->mixer_gain = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, in e4000_probe()
698 dev->if_gain_auto = v4l2_ctrl_new_std(&dev->hdl, &e4000_ctrl_ops, in e4000_probe()
[all …]
Dfc2580.c492 struct fc2580_dev *dev = container_of(ctrl->handler, struct fc2580_dev, hdl); in fc2580_s_ctrl()
580 v4l2_ctrl_handler_init(&dev->hdl, 2); in fc2580_probe()
581 dev->bandwidth_auto = v4l2_ctrl_new_std(&dev->hdl, &fc2580_ctrl_ops, in fc2580_probe()
584 dev->bandwidth = v4l2_ctrl_new_std(&dev->hdl, &fc2580_ctrl_ops, in fc2580_probe()
588 if (dev->hdl.error) { in fc2580_probe()
589 ret = dev->hdl.error; in fc2580_probe()
591 v4l2_ctrl_handler_free(&dev->hdl); in fc2580_probe()
594 dev->subdev.ctrl_handler = &dev->hdl; in fc2580_probe()
621 v4l2_ctrl_handler_free(&dev->hdl); in fc2580_remove()
De4000_priv.h41 struct v4l2_ctrl_handler hdl; member
Dfc2580_priv.h142 struct v4l2_ctrl_handler hdl; member
/linux-4.4.14/drivers/media/usb/gspca/gl860/
Dgl860.c118 struct v4l2_ctrl_handler *hdl = &gspca_dev->ctrl_handler; in sd_init_controls() local
120 gspca_dev->vdev.ctrl_handler = hdl; in sd_init_controls()
121 v4l2_ctrl_handler_init(hdl, 11); in sd_init_controls()
124 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, V4L2_CID_BRIGHTNESS, in sd_init_controls()
129 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, V4L2_CID_CONTRAST, in sd_init_controls()
134 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, V4L2_CID_SATURATION, in sd_init_controls()
139 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, V4L2_CID_HUE, in sd_init_controls()
143 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, V4L2_CID_GAMMA, in sd_init_controls()
147 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, V4L2_CID_HFLIP, in sd_init_controls()
151 v4l2_ctrl_new_std(hdl, &sd_ctrl_ops, V4L2_CID_VFLIP, in sd_init_controls()
[all …]
/linux-4.4.14/drivers/media/usb/hdpvr/
Dhdpvr-video.c875 container_of(ctrl->handler, struct hdpvr_device, hdl); in hdpvr_try_ctrl()
891 container_of(ctrl->handler, struct hdpvr_device, hdl); in hdpvr_s_ctrl()
1132 v4l2_ctrl_handler_free(&dev->hdl); in hdpvr_device_release()
1160 struct v4l2_ctrl_handler *hdl = &dev->hdl; in hdpvr_register_videodev() local
1168 v4l2_ctrl_handler_init(hdl, 11); in hdpvr_register_videodev()
1170 v4l2_ctrl_new_std(hdl, &hdpvr_ctrl_ops, in hdpvr_register_videodev()
1172 v4l2_ctrl_new_std(hdl, &hdpvr_ctrl_ops, in hdpvr_register_videodev()
1174 v4l2_ctrl_new_std(hdl, &hdpvr_ctrl_ops, in hdpvr_register_videodev()
1176 v4l2_ctrl_new_std(hdl, &hdpvr_ctrl_ops, in hdpvr_register_videodev()
1178 v4l2_ctrl_new_std(hdl, &hdpvr_ctrl_ops, in hdpvr_register_videodev()
[all …]
Dhdpvr.h71 struct v4l2_ctrl_handler hdl; member
/linux-4.4.14/drivers/media/dvb-frontends/
Dau8522_decoder.c495 container_of(ctrl->handler, struct au8522_state, hdl); in au8522_s_ctrl()
730 struct v4l2_ctrl_handler *hdl; in au8522_probe() local
771 hdl = &state->hdl; in au8522_probe()
772 v4l2_ctrl_handler_init(hdl, 4); in au8522_probe()
773 v4l2_ctrl_new_std(hdl, &au8522_ctrl_ops, in au8522_probe()
775 v4l2_ctrl_new_std(hdl, &au8522_ctrl_ops, in au8522_probe()
778 v4l2_ctrl_new_std(hdl, &au8522_ctrl_ops, in au8522_probe()
780 v4l2_ctrl_new_std(hdl, &au8522_ctrl_ops, in au8522_probe()
782 sd->ctrl_handler = hdl; in au8522_probe()
783 if (hdl->error) { in au8522_probe()
[all …]
Drtl2832_sdr.c156 struct v4l2_ctrl_handler hdl; member
847 bandwidth_auto = v4l2_ctrl_find(&dev->hdl, in rtl2832_sdr_set_tuner_freq()
849 bandwidth = v4l2_ctrl_find(&dev->hdl, V4L2_CID_RF_TUNER_BANDWIDTH); in rtl2832_sdr_set_tuner_freq()
1304 hdl); in rtl2832_sdr_s_ctrl()
1360 v4l2_ctrl_handler_free(&dev->hdl); in rtl2832_sdr_video_release()
1433 v4l2_ctrl_handler_init(&dev->hdl, 9); in rtl2832_sdr_probe()
1435 v4l2_ctrl_add_handler(&dev->hdl, subdev->ctrl_handler, NULL); in rtl2832_sdr_probe()
1439 v4l2_ctrl_handler_init(&dev->hdl, 2); in rtl2832_sdr_probe()
1440 dev->bandwidth_auto = v4l2_ctrl_new_std(&dev->hdl, ops, in rtl2832_sdr_probe()
1443 dev->bandwidth = v4l2_ctrl_new_std(&dev->hdl, ops, in rtl2832_sdr_probe()
[all …]
Dau8522_priv.h70 struct v4l2_ctrl_handler hdl; member
/linux-4.4.14/drivers/media/i2c/soc_camera/
Dov6650.c182 struct v4l2_ctrl_handler hdl; member
311 struct ov6650 *priv = container_of(ctrl->handler, struct ov6650, hdl); in ov6550_g_volatile_ctrl()
344 struct ov6650 *priv = container_of(ctrl->handler, struct ov6650, hdl); in ov6550_s_ctrl()
875 ret = v4l2_ctrl_handler_setup(&priv->hdl); in ov6650_video_probe()
990 v4l2_ctrl_handler_init(&priv->hdl, 13); in ov6650_probe()
991 v4l2_ctrl_new_std(&priv->hdl, &ov6550_ctrl_ops, in ov6650_probe()
993 v4l2_ctrl_new_std(&priv->hdl, &ov6550_ctrl_ops, in ov6650_probe()
995 priv->autogain = v4l2_ctrl_new_std(&priv->hdl, &ov6550_ctrl_ops, in ov6650_probe()
997 priv->gain = v4l2_ctrl_new_std(&priv->hdl, &ov6550_ctrl_ops, in ov6650_probe()
999 priv->autowb = v4l2_ctrl_new_std(&priv->hdl, &ov6550_ctrl_ops, in ov6650_probe()
[all …]
Dmt9v022.c143 struct v4l2_ctrl_handler hdl; member
237 return v4l2_ctrl_handler_setup(&mt9v022->hdl); in mt9v022_init()
524 struct mt9v022, hdl); in mt9v022_g_volatile_ctrl()
568 struct mt9v022, hdl); in mt9v022_s_ctrl()
906 v4l2_ctrl_handler_init(&mt9v022->hdl, 6); in mt9v022_probe()
907 v4l2_ctrl_new_std(&mt9v022->hdl, &mt9v022_ctrl_ops, in mt9v022_probe()
909 v4l2_ctrl_new_std(&mt9v022->hdl, &mt9v022_ctrl_ops, in mt9v022_probe()
911 mt9v022->autogain = v4l2_ctrl_new_std(&mt9v022->hdl, &mt9v022_ctrl_ops, in mt9v022_probe()
913 mt9v022->gain = v4l2_ctrl_new_std(&mt9v022->hdl, &mt9v022_ctrl_ops, in mt9v022_probe()
920 mt9v022->autoexposure = v4l2_ctrl_new_std_menu(&mt9v022->hdl, in mt9v022_probe()
[all …]
Dmt9m001.c90 struct v4l2_ctrl_handler hdl; member
381 struct mt9m001, hdl); in mt9m001_g_volatile_ctrl()
398 struct mt9m001, hdl); in mt9m001_s_ctrl()
542 ret = v4l2_ctrl_handler_setup(&mt9m001->hdl); in mt9m001_video_probe()
676 v4l2_ctrl_handler_init(&mt9m001->hdl, 4); in mt9m001_probe()
677 v4l2_ctrl_new_std(&mt9m001->hdl, &mt9m001_ctrl_ops, in mt9m001_probe()
679 v4l2_ctrl_new_std(&mt9m001->hdl, &mt9m001_ctrl_ops, in mt9m001_probe()
681 mt9m001->exposure = v4l2_ctrl_new_std(&mt9m001->hdl, &mt9m001_ctrl_ops, in mt9m001_probe()
687 mt9m001->autoexposure = v4l2_ctrl_new_std_menu(&mt9m001->hdl, in mt9m001_probe()
690 mt9m001->subdev.ctrl_handler = &mt9m001->hdl; in mt9m001_probe()
[all …]
Dmt9t031.c72 struct v4l2_ctrl_handler hdl; member
438 struct mt9t031, hdl); in mt9t031_g_volatile_ctrl()
457 struct mt9t031, hdl); in mt9t031_s_ctrl()
652 ret = v4l2_ctrl_handler_setup(&mt9t031->hdl); in mt9t031_video_probe()
772 v4l2_ctrl_handler_init(&mt9t031->hdl, 5); in mt9t031_probe()
773 v4l2_ctrl_new_std(&mt9t031->hdl, &mt9t031_ctrl_ops, in mt9t031_probe()
775 v4l2_ctrl_new_std(&mt9t031->hdl, &mt9t031_ctrl_ops, in mt9t031_probe()
777 v4l2_ctrl_new_std(&mt9t031->hdl, &mt9t031_ctrl_ops, in mt9t031_probe()
784 mt9t031->autoexposure = v4l2_ctrl_new_std_menu(&mt9t031->hdl, in mt9t031_probe()
787 mt9t031->exposure = v4l2_ctrl_new_std(&mt9t031->hdl, &mt9t031_ctrl_ops, in mt9t031_probe()
[all …]
Dov9640.c272 struct ov9640_priv *priv = container_of(ctrl->handler, struct ov9640_priv, hdl); in ov9640_s_ctrl()
633 ret = v4l2_ctrl_handler_setup(&priv->hdl); in ov9640_video_probe()
710 v4l2_ctrl_handler_init(&priv->hdl, 2); in ov9640_probe()
711 v4l2_ctrl_new_std(&priv->hdl, &ov9640_ctrl_ops, in ov9640_probe()
713 v4l2_ctrl_new_std(&priv->hdl, &ov9640_ctrl_ops, in ov9640_probe()
715 priv->subdev.ctrl_handler = &priv->hdl; in ov9640_probe()
716 if (priv->hdl.error) in ov9640_probe()
717 return priv->hdl.error; in ov9640_probe()
729 v4l2_ctrl_handler_free(&priv->hdl); in ov9640_probe()
742 v4l2_ctrl_handler_free(&priv->hdl); in ov9640_remove()
Dov9740.c198 struct v4l2_ctrl_handler hdl; member
769 container_of(ctrl->handler, struct ov9740_priv, hdl); in ov9740_s_ctrl()
892 ret = v4l2_ctrl_handler_setup(&priv->hdl); in ov9740_video_probe()
967 v4l2_ctrl_handler_init(&priv->hdl, 13); in ov9740_probe()
968 v4l2_ctrl_new_std(&priv->hdl, &ov9740_ctrl_ops, in ov9740_probe()
970 v4l2_ctrl_new_std(&priv->hdl, &ov9740_ctrl_ops, in ov9740_probe()
972 priv->subdev.ctrl_handler = &priv->hdl; in ov9740_probe()
973 if (priv->hdl.error) in ov9740_probe()
974 return priv->hdl.error; in ov9740_probe()
986 v4l2_ctrl_handler_free(&priv->hdl); in ov9740_probe()
[all …]
Dmt9m111.c206 struct v4l2_ctrl_handler hdl; member
702 struct mt9m111, hdl); in mt9m111_s_ctrl()
746 v4l2_ctrl_handler_setup(&mt9m111->hdl); in mt9m111_restore_state()
924 ret = v4l2_ctrl_handler_setup(&mt9m111->hdl); in mt9m111_video_probe()
968 v4l2_ctrl_handler_init(&mt9m111->hdl, 5); in mt9m111_probe()
969 v4l2_ctrl_new_std(&mt9m111->hdl, &mt9m111_ctrl_ops, in mt9m111_probe()
971 v4l2_ctrl_new_std(&mt9m111->hdl, &mt9m111_ctrl_ops, in mt9m111_probe()
973 v4l2_ctrl_new_std(&mt9m111->hdl, &mt9m111_ctrl_ops, in mt9m111_probe()
975 mt9m111->gain = v4l2_ctrl_new_std(&mt9m111->hdl, &mt9m111_ctrl_ops, in mt9m111_probe()
977 v4l2_ctrl_new_std_menu(&mt9m111->hdl, in mt9m111_probe()
[all …]
Dov772x.c395 struct v4l2_ctrl_handler hdl; member
577 struct ov772x_priv, hdl); in ov772x_s_ctrl()
986 ret = v4l2_ctrl_handler_setup(&priv->hdl); in ov772x_video_probe()
1081 v4l2_ctrl_handler_init(&priv->hdl, 3); in ov772x_probe()
1082 v4l2_ctrl_new_std(&priv->hdl, &ov772x_ctrl_ops, in ov772x_probe()
1084 v4l2_ctrl_new_std(&priv->hdl, &ov772x_ctrl_ops, in ov772x_probe()
1086 v4l2_ctrl_new_std(&priv->hdl, &ov772x_ctrl_ops, in ov772x_probe()
1088 priv->subdev.ctrl_handler = &priv->hdl; in ov772x_probe()
1089 if (priv->hdl.error) in ov772x_probe()
1090 return priv->hdl.error; in ov772x_probe()
[all …]
Drj54n1cb0c.c153 struct v4l2_ctrl_handler hdl; member
1167 struct rj54n1 *rj54n1 = container_of(ctrl->handler, struct rj54n1, hdl); in rj54n1_s_ctrl()
1302 ret = v4l2_ctrl_handler_setup(&rj54n1->hdl); in rj54n1_video_probe()
1336 v4l2_ctrl_handler_init(&rj54n1->hdl, 4); in rj54n1_probe()
1337 v4l2_ctrl_new_std(&rj54n1->hdl, &rj54n1_ctrl_ops, in rj54n1_probe()
1339 v4l2_ctrl_new_std(&rj54n1->hdl, &rj54n1_ctrl_ops, in rj54n1_probe()
1341 v4l2_ctrl_new_std(&rj54n1->hdl, &rj54n1_ctrl_ops, in rj54n1_probe()
1343 v4l2_ctrl_new_std(&rj54n1->hdl, &rj54n1_ctrl_ops, in rj54n1_probe()
1345 rj54n1->subdev.ctrl_handler = &rj54n1->hdl; in rj54n1_probe()
1346 if (rj54n1->hdl.error) in rj54n1_probe()
[all …]
Dov2640.c285 struct v4l2_ctrl_handler hdl; member
690 &container_of(ctrl->handler, struct ov2640_priv, hdl)->subdev; in ov2640_s_ctrl()
991 ret = v4l2_ctrl_handler_setup(&priv->hdl); in ov2640_video_probe()
1142 v4l2_ctrl_handler_init(&priv->hdl, 2); in ov2640_probe()
1143 v4l2_ctrl_new_std(&priv->hdl, &ov2640_ctrl_ops, in ov2640_probe()
1145 v4l2_ctrl_new_std(&priv->hdl, &ov2640_ctrl_ops, in ov2640_probe()
1147 priv->subdev.ctrl_handler = &priv->hdl; in ov2640_probe()
1148 if (priv->hdl.error) { in ov2640_probe()
1149 ret = priv->hdl.error; in ov2640_probe()
1166 v4l2_ctrl_handler_free(&priv->hdl); in ov2640_probe()
[all …]
Dov9640.h201 struct v4l2_ctrl_handler hdl; member
/linux-4.4.14/drivers/media/common/saa7146/
Dsaa7146_fops.c469 struct v4l2_ctrl_handler *hdl = &dev->ctrl_handler; in saa7146_vv_init() local
479 v4l2_ctrl_handler_init(hdl, 6); in saa7146_vv_init()
480 v4l2_ctrl_new_std(hdl, &saa7146_ctrl_ops, in saa7146_vv_init()
482 v4l2_ctrl_new_std(hdl, &saa7146_ctrl_ops, in saa7146_vv_init()
484 v4l2_ctrl_new_std(hdl, &saa7146_ctrl_ops, in saa7146_vv_init()
486 v4l2_ctrl_new_std(hdl, &saa7146_ctrl_ops, in saa7146_vv_init()
488 v4l2_ctrl_new_std(hdl, &saa7146_ctrl_ops, in saa7146_vv_init()
490 if (hdl->error) { in saa7146_vv_init()
491 err = hdl->error; in saa7146_vv_init()
492 v4l2_ctrl_handler_free(hdl); in saa7146_vv_init()
[all …]
/linux-4.4.14/drivers/media/pci/saa7164/
Dsaa7164-encoder.c1020 struct v4l2_ctrl_handler *hdl = &port->ctrl_handler; in saa7164_encoder_register() local
1047 v4l2_ctrl_handler_init(hdl, 14); in saa7164_encoder_register()
1048 v4l2_ctrl_new_std(hdl, &saa7164_ctrl_ops, in saa7164_encoder_register()
1050 v4l2_ctrl_new_std(hdl, &saa7164_ctrl_ops, in saa7164_encoder_register()
1052 v4l2_ctrl_new_std(hdl, &saa7164_ctrl_ops, in saa7164_encoder_register()
1054 v4l2_ctrl_new_std(hdl, &saa7164_ctrl_ops, in saa7164_encoder_register()
1056 v4l2_ctrl_new_std(hdl, &saa7164_ctrl_ops, in saa7164_encoder_register()
1058 v4l2_ctrl_new_std(hdl, &saa7164_ctrl_ops, in saa7164_encoder_register()
1060 v4l2_ctrl_new_std(hdl, &saa7164_ctrl_ops, in saa7164_encoder_register()
1062 v4l2_ctrl_new_std(hdl, &saa7164_ctrl_ops, in saa7164_encoder_register()
[all …]
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134-empress.c255 struct v4l2_ctrl_handler *hdl = &dev->empress_ctrl_handler; in empress_init() local
270 v4l2_ctrl_handler_init(hdl, 21); in empress_init()
271 v4l2_ctrl_add_handler(hdl, &dev->ctrl_handler, empress_ctrl_filter); in empress_init()
273 v4l2_ctrl_add_handler(hdl, dev->empress_sd->ctrl_handler, NULL); in empress_init()
274 if (hdl->error) { in empress_init()
276 return hdl->error; in empress_init()
278 dev->empress_dev->ctrl_handler = hdl; in empress_init()
Dsaa7134-video.c2023 struct v4l2_ctrl_handler *hdl = &dev->ctrl_handler; in saa7134_video_init1() local
2034 v4l2_ctrl_handler_init(hdl, 11); in saa7134_video_init1()
2035 v4l2_ctrl_new_std(hdl, &saa7134_ctrl_ops, in saa7134_video_init1()
2037 v4l2_ctrl_new_std(hdl, &saa7134_ctrl_ops, in saa7134_video_init1()
2039 v4l2_ctrl_new_std(hdl, &saa7134_ctrl_ops, in saa7134_video_init1()
2041 v4l2_ctrl_new_std(hdl, &saa7134_ctrl_ops, in saa7134_video_init1()
2043 v4l2_ctrl_new_std(hdl, &saa7134_ctrl_ops, in saa7134_video_init1()
2045 v4l2_ctrl_new_std(hdl, &saa7134_ctrl_ops, in saa7134_video_init1()
2047 v4l2_ctrl_new_std(hdl, &saa7134_ctrl_ops, in saa7134_video_init1()
2049 v4l2_ctrl_new_custom(hdl, &saa7134_ctrl_invert, NULL); in saa7134_video_init1()
[all …]
/linux-4.4.14/drivers/media/usb/cpia2/
Dcpia2_v4l.c641 container_of(ctrl->handler, struct camera_data, hdl); in cpia2_s_ctrl()
1095 v4l2_ctrl_handler_free(&cam->hdl); in cpia2_camera_release()
1111 struct v4l2_ctrl_handler *hdl = &cam->hdl; in cpia2_register_camera() local
1123 v4l2_ctrl_handler_init(hdl, 12); in cpia2_register_camera()
1124 v4l2_ctrl_new_std(hdl, &cpia2_ctrl_ops, in cpia2_register_camera()
1128 v4l2_ctrl_new_std(hdl, &cpia2_ctrl_ops, in cpia2_register_camera()
1130 v4l2_ctrl_new_std(hdl, &cpia2_ctrl_ops, in cpia2_register_camera()
1132 v4l2_ctrl_new_std(hdl, &cpia2_ctrl_ops, in cpia2_register_camera()
1134 v4l2_ctrl_new_std(hdl, &cpia2_ctrl_ops, in cpia2_register_camera()
1138 v4l2_ctrl_new_std(hdl, &cpia2_ctrl_ops, in cpia2_register_camera()
[all …]
Dcpia2.h371 struct v4l2_ctrl_handler hdl; member
Dcpia2_usb.c924 v4l2_ctrl_handler_setup(&cam->hdl); in cpia2_usb_resume()
Dcpia2_core.c1552 v4l2_ctrl_handler_setup(&cam->hdl); in set_all_properties()
/linux-4.4.14/drivers/media/platform/
Dvim2m.c157 struct v4l2_ctrl_handler hdl; member
641 container_of(ctrl->handler, struct vim2m_ctx, hdl); in vim2m_s_ctrl()
884 struct v4l2_ctrl_handler *hdl; in vim2m_open() local
898 hdl = &ctx->hdl; in vim2m_open()
899 v4l2_ctrl_handler_init(hdl, 4); in vim2m_open()
900 v4l2_ctrl_new_std(hdl, &vim2m_ctrl_ops, V4L2_CID_HFLIP, 0, 1, 1, 0); in vim2m_open()
901 v4l2_ctrl_new_std(hdl, &vim2m_ctrl_ops, V4L2_CID_VFLIP, 0, 1, 1, 0); in vim2m_open()
902 v4l2_ctrl_new_custom(hdl, &vim2m_ctrl_trans_time_msec, NULL); in vim2m_open()
903 v4l2_ctrl_new_custom(hdl, &vim2m_ctrl_trans_num_bufs, NULL); in vim2m_open()
904 if (hdl->error) { in vim2m_open()
[all …]
Dfsl-viu.c116 struct v4l2_ctrl_handler hdl; member
1457 v4l2_ctrl_handler_init(&viu_dev->hdl, 5); in viu_of_probe()
1458 if (viu_dev->hdl.error) { in viu_of_probe()
1459 ret = viu_dev->hdl.error; in viu_of_probe()
1465 viu_dev->v4l2_dev.ctrl_handler = &viu_dev->hdl; in viu_of_probe()
1537 v4l2_ctrl_handler_free(&viu_dev->hdl); in viu_of_probe()
1559 v4l2_ctrl_handler_free(&dev->hdl); in viu_of_remove()
/linux-4.4.14/drivers/media/pci/tw68/
Dtw68-video.c555 container_of(ctrl->handler, struct tw68_dev, hdl); in tw68_s_ctrl()
939 struct v4l2_ctrl_handler *hdl = &dev->hdl; in tw68_video_init1() local
941 v4l2_ctrl_handler_init(hdl, 6); in tw68_video_init1()
942 v4l2_ctrl_new_std(hdl, &tw68_ctrl_ops, in tw68_video_init1()
944 v4l2_ctrl_new_std(hdl, &tw68_ctrl_ops, in tw68_video_init1()
946 v4l2_ctrl_new_std(hdl, &tw68_ctrl_ops, in tw68_video_init1()
949 v4l2_ctrl_new_std(hdl, &tw68_ctrl_ops, in tw68_video_init1()
951 v4l2_ctrl_new_std(hdl, &tw68_ctrl_ops, in tw68_video_init1()
953 v4l2_ctrl_new_std(hdl, &tw68_ctrl_ops, in tw68_video_init1()
955 if (hdl->error) { in tw68_video_init1()
[all …]
Dtw68.h149 struct v4l2_ctrl_handler hdl; member
Dtw68-core.c369 v4l2_ctrl_handler_free(&dev->hdl); in tw68_finidev()
/linux-4.4.14/drivers/media/pci/cx18/
Dcx18-av-core.c266 v4l2_ctrl_handler_setup(&state->hdl); in cx18_av_initialize()
1337 v4l2_ctrl_handler_init(&state->hdl, 9); in cx18_av_probe()
1338 v4l2_ctrl_new_std(&state->hdl, &cx18_av_ctrl_ops, in cx18_av_probe()
1340 v4l2_ctrl_new_std(&state->hdl, &cx18_av_ctrl_ops, in cx18_av_probe()
1342 v4l2_ctrl_new_std(&state->hdl, &cx18_av_ctrl_ops, in cx18_av_probe()
1344 v4l2_ctrl_new_std(&state->hdl, &cx18_av_ctrl_ops, in cx18_av_probe()
1347 state->volume = v4l2_ctrl_new_std(&state->hdl, in cx18_av_probe()
1350 v4l2_ctrl_new_std(&state->hdl, in cx18_av_probe()
1353 v4l2_ctrl_new_std(&state->hdl, &cx18_av_audio_ctrl_ops, in cx18_av_probe()
1356 v4l2_ctrl_new_std(&state->hdl, &cx18_av_audio_ctrl_ops, in cx18_av_probe()
[all …]
Dcx18-av-core.h99 struct v4l2_ctrl_handler hdl; member
353 return &container_of(ctrl->handler, struct cx18_av_state, hdl)->sd; in to_sd()
Dcx18-driver.c757 cx->v4l2_dev.ctrl_handler = &cx->cxhdl.hdl; in cx18_init_struct1()
1318 v4l2_ctrl_handler_free(&cx->av_state.hdl); in cx18_remove()
Dcx18-ioctl.c1043 v4l2_ctrl_handler_log_status(&cx->cxhdl.hdl, cx->v4l2_dev.name); in cx18_log_status()
/linux-4.4.14/drivers/media/radio/si470x/
Dradio-si470x-usb.c505 v4l2_ctrl_handler_free(&radio->hdl); in si470x_usb_release()
567 v4l2_ctrl_handler_setup(&radio->hdl); in si470x_start_usb()
666 v4l2_ctrl_handler_init(&radio->hdl, 2); in si470x_usb_driver_probe()
667 v4l2_ctrl_new_std(&radio->hdl, &si470x_ctrl_ops, in si470x_usb_driver_probe()
669 v4l2_ctrl_new_std(&radio->hdl, &si470x_ctrl_ops, in si470x_usb_driver_probe()
671 if (radio->hdl.error) { in si470x_usb_driver_probe()
672 retval = radio->hdl.error; in si470x_usb_driver_probe()
677 radio->videodev.ctrl_handler = &radio->hdl; in si470x_usb_driver_probe()
763 v4l2_ctrl_handler_free(&radio->hdl); in si470x_usb_driver_probe()
818 v4l2_ctrl_handler_setup(&radio->hdl); in si470x_usb_driver_resume()
Dradio-si470x.h149 struct v4l2_ctrl_handler hdl; member
Dradio-si470x-common.c558 container_of(ctrl->handler, struct si470x_device, hdl); in si470x_s_ctrl()
/linux-4.4.14/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2-enc.c1085 container_of(ctrl->handler, struct solo_enc_dev, hdl); in solo_s_ctrl()
1236 struct v4l2_ctrl_handler *hdl; in solo_enc_alloc() local
1243 hdl = &solo_enc->hdl; in solo_enc_alloc()
1249 v4l2_ctrl_handler_init(hdl, 10); in solo_enc_alloc()
1250 v4l2_ctrl_new_std(hdl, &solo_ctrl_ops, in solo_enc_alloc()
1252 v4l2_ctrl_new_std(hdl, &solo_ctrl_ops, in solo_enc_alloc()
1254 v4l2_ctrl_new_std(hdl, &solo_ctrl_ops, in solo_enc_alloc()
1256 v4l2_ctrl_new_std(hdl, &solo_ctrl_ops, in solo_enc_alloc()
1259 v4l2_ctrl_new_std(hdl, &solo_ctrl_ops, in solo_enc_alloc()
1261 v4l2_ctrl_new_std(hdl, &solo_ctrl_ops, in solo_enc_alloc()
[all …]
Dsolo6x10.h150 struct v4l2_ctrl_handler hdl; member
/linux-4.4.14/Documentation/video4linux/
Dv4l2-pci-skeleton.c766 struct v4l2_ctrl_handler *hdl; in skeleton_probe() local
807 hdl = &skel->ctrl_handler; in skeleton_probe()
808 v4l2_ctrl_handler_init(hdl, 4); in skeleton_probe()
809 v4l2_ctrl_new_std(hdl, &skel_ctrl_ops, in skeleton_probe()
811 v4l2_ctrl_new_std(hdl, &skel_ctrl_ops, in skeleton_probe()
813 v4l2_ctrl_new_std(hdl, &skel_ctrl_ops, in skeleton_probe()
815 v4l2_ctrl_new_std(hdl, &skel_ctrl_ops, in skeleton_probe()
817 if (hdl->error) { in skeleton_probe()
818 ret = hdl->error; in skeleton_probe()
821 skel->v4l2_dev.ctrl_handler = hdl; in skeleton_probe()
Dv4l2-controls.txt123 struct v4l2_ctrl *v4l2_ctrl_new_std(struct v4l2_ctrl_handler *hdl,
129 struct v4l2_ctrl *v4l2_ctrl_new_std_menu(struct v4l2_ctrl_handler *hdl,
137 struct v4l2_ctrl_handler *hdl,
144 struct v4l2_ctrl *v4l2_ctrl_new_int_menu(struct v4l2_ctrl_handler *hdl,
/linux-4.4.14/drivers/media/pci/cx25821/
Dcx25821-video.c513 container_of(ctrl->handler, struct cx25821_channel, hdl); in cx25821_s_ctrl()
685 v4l2_ctrl_handler_free(&dev->channels[chan_num].hdl); in cx25821_video_unregister()
702 struct v4l2_ctrl_handler *hdl = &chan->hdl; in cx25821_video_register() local
710 v4l2_ctrl_handler_init(hdl, 4); in cx25821_video_register()
711 v4l2_ctrl_new_std(hdl, &cx25821_ctrl_ops, in cx25821_video_register()
713 v4l2_ctrl_new_std(hdl, &cx25821_ctrl_ops, in cx25821_video_register()
715 v4l2_ctrl_new_std(hdl, &cx25821_ctrl_ops, in cx25821_video_register()
717 v4l2_ctrl_new_std(hdl, &cx25821_ctrl_ops, in cx25821_video_register()
719 if (hdl->error) { in cx25821_video_register()
720 err = hdl->error; in cx25821_video_register()
[all …]
Dcx25821.h217 struct v4l2_ctrl_handler hdl; member
/linux-4.4.14/drivers/media/usb/airspy/
Dairspy.c147 struct v4l2_ctrl_handler hdl; member
875 v4l2_ctrl_handler_free(&s->hdl); in airspy_video_release()
951 struct airspy *s = container_of(ctrl->handler, struct airspy, hdl); in airspy_s_ctrl()
1047 v4l2_ctrl_handler_init(&s->hdl, 5); in airspy_probe()
1048 s->lna_gain_auto = v4l2_ctrl_new_std(&s->hdl, &airspy_ctrl_ops, in airspy_probe()
1050 s->lna_gain = v4l2_ctrl_new_std(&s->hdl, &airspy_ctrl_ops, in airspy_probe()
1053 s->mixer_gain_auto = v4l2_ctrl_new_std(&s->hdl, &airspy_ctrl_ops, in airspy_probe()
1055 s->mixer_gain = v4l2_ctrl_new_std(&s->hdl, &airspy_ctrl_ops, in airspy_probe()
1058 s->if_gain = v4l2_ctrl_new_std(&s->hdl, &airspy_ctrl_ops, in airspy_probe()
1060 if (s->hdl.error) { in airspy_probe()
[all …]
/linux-4.4.14/drivers/media/usb/stkwebcam/
Dstk-webcam.c833 container_of(ctrl->handler, struct stk_camera, hdl); in stk_s_ctrl()
1280 struct v4l2_ctrl_handler *hdl; in stk_camera_probe() local
1300 hdl = &dev->hdl; in stk_camera_probe()
1301 v4l2_ctrl_handler_init(hdl, 3); in stk_camera_probe()
1302 v4l2_ctrl_new_std(hdl, &stk_ctrl_ops, in stk_camera_probe()
1304 v4l2_ctrl_new_std(hdl, &stk_ctrl_ops, in stk_camera_probe()
1306 v4l2_ctrl_new_std(hdl, &stk_ctrl_ops, in stk_camera_probe()
1308 if (hdl->error) { in stk_camera_probe()
1309 err = hdl->error; in stk_camera_probe()
1313 dev->v4l2_dev.ctrl_handler = hdl; in stk_camera_probe()
[all …]
Dstk-webcam.h96 struct v4l2_ctrl_handler hdl; member
/linux-4.4.14/drivers/media/usb/em28xx/
Dem28xx-video.c2271 struct v4l2_ctrl_handler *hdl; in em28xx_v4l2_init() local
2304 hdl = &v4l2->ctrl_handler; in em28xx_v4l2_init()
2305 v4l2_ctrl_handler_init(hdl, 8); in em28xx_v4l2_init()
2306 v4l2->v4l2_dev.ctrl_handler = hdl; in em28xx_v4l2_init()
2389 v4l2_ctrl_new_std(hdl, &em28xx_ctrl_ops, in em28xx_v4l2_init()
2391 v4l2_ctrl_new_std(hdl, &em28xx_ctrl_ops, in em28xx_v4l2_init()
2395 v4l2_ctrl_notify(v4l2_ctrl_find(hdl, V4L2_CID_AUDIO_MUTE), in em28xx_v4l2_init()
2397 v4l2_ctrl_notify(v4l2_ctrl_find(hdl, V4L2_CID_AUDIO_VOLUME), in em28xx_v4l2_init()
2460 if (NULL == v4l2_ctrl_find(hdl, V4L2_CID_CONTRAST)) in em28xx_v4l2_init()
2461 v4l2_ctrl_new_std(hdl, &em28xx_ctrl_ops, in em28xx_v4l2_init()
[all …]
/linux-4.4.14/drivers/media/pci/meye/
Dmeye.c1719 v4l2_ctrl_handler_init(&meye.hdl, 3); in meye_probe()
1720 v4l2_ctrl_new_std(&meye.hdl, &meye_ctrl_ops, in meye_probe()
1722 v4l2_ctrl_new_std(&meye.hdl, &meye_ctrl_ops, in meye_probe()
1724 v4l2_ctrl_new_std(&meye.hdl, &meye_ctrl_ops, in meye_probe()
1726 v4l2_ctrl_new_std(&meye.hdl, &meye_ctrl_ops, in meye_probe()
1728 v4l2_ctrl_new_custom(&meye.hdl, &ctrl_agc, NULL); in meye_probe()
1729 v4l2_ctrl_new_std(&meye.hdl, &meye_ctrl_ops, in meye_probe()
1731 v4l2_ctrl_new_custom(&meye.hdl, &ctrl_picture, NULL); in meye_probe()
1732 v4l2_ctrl_new_std(&meye.hdl, &meye_ctrl_ops, in meye_probe()
1734 v4l2_ctrl_new_custom(&meye.hdl, &ctrl_framerate, NULL); in meye_probe()
[all …]
Dmeye.h294 struct v4l2_ctrl_handler hdl; member
/linux-4.4.14/arch/mips/alchemy/common/
Dirq.c669 irq_flow_handler_t hdl = NULL; in au1300_gpic_settype() local
675 hdl = handle_level_irq; in au1300_gpic_settype()
680 hdl = handle_level_irq; in au1300_gpic_settype()
685 hdl = handle_edge_irq; in au1300_gpic_settype()
690 hdl = handle_edge_irq; in au1300_gpic_settype()
695 hdl = handle_edge_irq; in au1300_gpic_settype()
700 hdl = handle_level_irq; in au1300_gpic_settype()
706 irq_set_chip_handler_name_locked(d, &au1300_gpic, hdl, name); in au1300_gpic_settype()
/linux-4.4.14/drivers/media/i2c/cx25840/
Dcx25840-core.h55 struct v4l2_ctrl_handler hdl; member
87 return &container_of(ctrl->handler, struct cx25840_state, hdl)->sd; in to_sd()
Dcx25840-core.c1946 v4l2_ctrl_handler_log_status(&state->hdl, sd->name); in cx25840_log_status()
5267 v4l2_ctrl_handler_init(&state->hdl, 9); in cx25840_probe()
5268 v4l2_ctrl_new_std(&state->hdl, &cx25840_ctrl_ops, in cx25840_probe()
5270 v4l2_ctrl_new_std(&state->hdl, &cx25840_ctrl_ops, in cx25840_probe()
5272 v4l2_ctrl_new_std(&state->hdl, &cx25840_ctrl_ops, in cx25840_probe()
5274 v4l2_ctrl_new_std(&state->hdl, &cx25840_ctrl_ops, in cx25840_probe()
5295 state->volume = v4l2_ctrl_new_std(&state->hdl, in cx25840_probe()
5298 state->mute = v4l2_ctrl_new_std(&state->hdl, in cx25840_probe()
5301 v4l2_ctrl_new_std(&state->hdl, &cx25840_audio_ctrl_ops, in cx25840_probe()
5304 v4l2_ctrl_new_std(&state->hdl, &cx25840_audio_ctrl_ops, in cx25840_probe()
[all …]
/linux-4.4.14/drivers/media/usb/msi2500/
Dmsi2500.c151 struct v4l2_ctrl_handler hdl; member
702 bandwidth_auto = v4l2_ctrl_find(&dev->hdl, in msi2500_set_usb_adc()
705 bandwidth = v4l2_ctrl_find(&dev->hdl, in msi2500_set_usb_adc()
1161 v4l2_ctrl_handler_free(&dev->hdl); in msi2500_video_release()
1277 v4l2_ctrl_handler_init(&dev->hdl, 0); in msi2500_probe()
1278 if (dev->hdl.error) { in msi2500_probe()
1279 ret = dev->hdl.error; in msi2500_probe()
1285 v4l2_ctrl_add_handler(&dev->hdl, sd->ctrl_handler, NULL); in msi2500_probe()
1287 dev->v4l2_dev.ctrl_handler = &dev->hdl; in msi2500_probe()
1303 v4l2_ctrl_handler_free(&dev->hdl); in msi2500_probe()
/linux-4.4.14/drivers/media/pci/ivtv/
Divtv-driver.c1030 itv->v4l2_dev.ctrl_handler = &itv->cxhdl.hdl; in ivtv_probe()
1226 struct v4l2_ctrl_handler *hdl = itv->v4l2_dev.ctrl_handler; in ivtv_probe() local
1228 itv->ctrl_pts = v4l2_ctrl_new_std(hdl, &ivtv_hdl_out_ops, in ivtv_probe()
1230 itv->ctrl_frame = v4l2_ctrl_new_std(hdl, &ivtv_hdl_out_ops, in ivtv_probe()
1235 v4l2_ctrl_new_std_menu(hdl, &ivtv_hdl_out_ops, in ivtv_probe()
1241 v4l2_ctrl_new_std_menu(hdl, &ivtv_hdl_out_ops, in ivtv_probe()
1246 if (hdl->error) { in ivtv_probe()
1247 retval = hdl->error; in ivtv_probe()
1291 v4l2_ctrl_handler_free(&itv->cxhdl.hdl); in ivtv_probe()
1450 v4l2_ctrl_handler_free(&itv->cxhdl.hdl); in ivtv_remove()
Divtv-controls.c134 struct ivtv *itv = container_of(ctrl->handler, struct ivtv, cxhdl.hdl); in ivtv_g_volatile_ctrl()
148 struct ivtv *itv = container_of(ctrl->handler, struct ivtv, cxhdl.hdl); in ivtv_s_ctrl()
Divtv-ioctl.c1587 v4l2_ctrl_handler_log_status(&itv->cxhdl.hdl, itv->v4l2_dev.name); in ivtv_log_status()
/linux-4.4.14/drivers/media/pci/bt8xx/
Dbttv-driver.c4019 struct v4l2_ctrl_handler *hdl; in bttv_probe() local
4078 hdl = &btv->ctrl_handler; in bttv_probe()
4079 v4l2_ctrl_handler_init(hdl, 20); in bttv_probe()
4080 btv->c.v4l2_dev.ctrl_handler = hdl; in bttv_probe()
4144 v4l2_ctrl_new_std(hdl, &bttv_ctrl_ops, in bttv_probe()
4146 v4l2_ctrl_new_std(hdl, &bttv_ctrl_ops, in bttv_probe()
4148 v4l2_ctrl_new_std(hdl, &bttv_ctrl_ops, in bttv_probe()
4150 v4l2_ctrl_new_std(hdl, &bttv_ctrl_ops, in bttv_probe()
4152 v4l2_ctrl_new_std(hdl, &bttv_ctrl_ops, in bttv_probe()
4154 v4l2_ctrl_new_std(hdl, &bttv_ctrl_ops, in bttv_probe()
[all …]
/linux-4.4.14/drivers/media/platform/ti-vpe/
Dvpe.c377 struct v4l2_ctrl_handler hdl; member
1749 container_of(ctrl->handler, struct vpe_ctx, hdl); in vpe_s_ctrl()
1947 struct v4l2_ctrl_handler *hdl; in vpe_open() local
1986 hdl = &ctx->hdl; in vpe_open()
1987 v4l2_ctrl_handler_init(hdl, 1); in vpe_open()
1988 v4l2_ctrl_new_custom(hdl, &vpe_bufs_per_job, NULL); in vpe_open()
1989 if (hdl->error) { in vpe_open()
1990 ret = hdl->error; in vpe_open()
1993 ctx->fh.ctrl_handler = hdl; in vpe_open()
1994 v4l2_ctrl_handler_setup(hdl); in vpe_open()
[all …]
/linux-4.4.14/drivers/media/pci/saa7146/
Dmxb.c232 struct v4l2_ctrl_handler *hdl = &dev->ctrl_handler; in mxb_probe() local
235 v4l2_ctrl_new_std(hdl, &mxb_ctrl_ops, in mxb_probe()
237 if (hdl->error) in mxb_probe()
238 return hdl->error; in mxb_probe()
282 v4l2_ctrl_handler_setup(hdl); in mxb_probe()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
Dpub.h302 struct brcms_info *hdl,
305 struct brcms_info *hdl);
Dmain.h285 struct brcms_info *hdl; member
Dmain.c5216 wlc->modulecb[i].down_fn(wlc->modulecb[i].hdl); in brcms_c_down()
5598 const char *name, struct brcms_info *hdl, in brcms_c_module_register() argument
5609 wlc->modulecb[i].hdl = hdl; in brcms_c_module_register()
5620 struct brcms_info *hdl) in brcms_c_module_unregister() argument
5630 (wlc->modulecb[i].hdl == hdl)) { in brcms_c_module_unregister()
/linux-4.4.14/drivers/media/usb/s2255/
Ds2255drv.c220 struct v4l2_ctrl_handler hdl; member
1234 container_of(ctrl->handler, struct s2255_vc, hdl); in s2255_s_ctrl()
1590 v4l2_ctrl_handler_free(&vc->hdl); in s2255_video_device_release()
1636 v4l2_ctrl_handler_init(&vc->hdl, 6); in s2255_probe_v4l()
1637 v4l2_ctrl_new_std(&vc->hdl, &s2255_ctrl_ops, in s2255_probe_v4l()
1639 v4l2_ctrl_new_std(&vc->hdl, &s2255_ctrl_ops, in s2255_probe_v4l()
1641 v4l2_ctrl_new_std(&vc->hdl, &s2255_ctrl_ops, in s2255_probe_v4l()
1643 v4l2_ctrl_new_std(&vc->hdl, &s2255_ctrl_ops, in s2255_probe_v4l()
1645 vc->jpegqual_ctrl = v4l2_ctrl_new_std(&vc->hdl, in s2255_probe_v4l()
1651 v4l2_ctrl_new_custom(&vc->hdl, &color_filter_ctrl, in s2255_probe_v4l()
[all …]
/linux-4.4.14/drivers/media/usb/zr364xx/
Dzr364xx.c1415 struct v4l2_ctrl_handler *hdl; in zr364xx_probe() local
1439 hdl = &cam->ctrl_handler; in zr364xx_probe()
1440 v4l2_ctrl_handler_init(hdl, 1); in zr364xx_probe()
1441 v4l2_ctrl_new_std(hdl, &zr364xx_ctrl_ops, in zr364xx_probe()
1443 if (hdl->error) { in zr364xx_probe()
1444 err = hdl->error; in zr364xx_probe()
1531 err = v4l2_ctrl_handler_setup(hdl); in zr364xx_probe()
1556 v4l2_ctrl_handler_free(hdl); in zr364xx_probe()
/linux-4.4.14/drivers/media/usb/cx231xx/
Dcx231xx-417.c1872 v4l2_ctrl_handler_free(&dev->mpeg_ctrl_handler.hdl); in cx231xx_417_unregister()
1926 vfd->ctrl_handler = &dev->mpeg_ctrl_handler.hdl; in cx231xx_video_dev_init()
1962 v4l2_ctrl_add_handler(&dev->mpeg_ctrl_handler.hdl, in cx231xx_417_register()
1964 if (dev->mpeg_ctrl_handler.hdl.error) { in cx231xx_417_register()
1965 err = dev->mpeg_ctrl_handler.hdl.error; in cx231xx_417_register()
1967 v4l2_ctrl_handler_free(&dev->mpeg_ctrl_handler.hdl); in cx231xx_417_register()
1982 v4l2_ctrl_handler_free(&dev->mpeg_ctrl_handler.hdl); in cx231xx_417_register()
/linux-4.4.14/drivers/media/pci/cx23885/
Dcx23885-core.c1951 struct v4l2_ctrl_handler *hdl; in cx23885_initdev() local
1962 hdl = &dev->ctrl_handler; in cx23885_initdev()
1963 v4l2_ctrl_handler_init(hdl, 6); in cx23885_initdev()
1964 if (hdl->error) { in cx23885_initdev()
1965 err = hdl->error; in cx23885_initdev()
1968 dev->v4l2_dev.ctrl_handler = hdl; in cx23885_initdev()
2038 v4l2_ctrl_handler_free(hdl); in cx23885_initdev()
Dcx23885-417.c1425 v4l2_ctrl_handler_log_status(&dev->cxhdl.hdl, name); in vidioc_log_status()
1485 v4l2_ctrl_handler_free(&dev->cxhdl.hdl); in cx23885_417_unregister()
1540 v4l2_ctrl_add_handler(&dev->ctrl_handler, &dev->cxhdl.hdl, NULL); in cx23885_417_register()
/linux-4.4.14/drivers/media/pci/cx88/
Dcx88-blackbird.c906 v4l2_ctrl_handler_log_status(&dev->cxhdl.hdl, name); in vidioc_log_status()
1117 dev->mpeg_dev.ctrl_handler = &dev->cxhdl.hdl; in blackbird_register_video()
1159 v4l2_ctrl_add_handler(&dev->cxhdl.hdl, &core->video_hdl, NULL); in cx8802_blackbird_probe()
1206 v4l2_ctrl_handler_free(&dev->cxhdl.hdl); in cx8802_blackbird_remove()
/linux-4.4.14/drivers/media/pci/zoran/
Dzoran_card.c1120 v4l2_ctrl_handler_free(&zr->hdl); in zoran_remove()
1224 if (v4l2_ctrl_handler_init(&zr->hdl, 10)) in zoran_probe()
1226 zr->v4l2_dev.ctrl_handler = &zr->hdl; in zoran_probe()
1450 v4l2_ctrl_handler_free(&zr->hdl); in zoran_probe()
Dzoran.h274 struct v4l2_ctrl_handler hdl; member
/linux-4.4.14/drivers/media/usb/usbvision/
Dusbvision-video.c1351 if (v4l2_ctrl_handler_init(&usbvision->hdl, 4)) in usbvision_alloc()
1353 usbvision->v4l2_dev.ctrl_handler = &usbvision->hdl; in usbvision_alloc()
1365 v4l2_ctrl_handler_free(&usbvision->hdl); in usbvision_alloc()
1391 v4l2_ctrl_handler_free(&usbvision->hdl); in usbvision_release()
Dusbvision.h361 struct v4l2_ctrl_handler hdl; member
/linux-4.4.14/Documentation/fmc/
DFMC-and-SDB.txt65 `git://ohwr.org/hdl-core-lib/fpga-config-space.git' and what is used in
/linux-4.4.14/arch/ia64/kernel/
Dperfmon.c6435 pfm_install_alt_pmu_interrupt(pfm_intr_handler_desc_t *hdl) in pfm_install_alt_pmu_interrupt() argument
6441 if (hdl == NULL || hdl->handler == NULL) return -EINVAL; in pfm_install_alt_pmu_interrupt()
6465 pfm_alt_intr_handler = hdl; in pfm_install_alt_pmu_interrupt()
6486 pfm_remove_alt_pmu_interrupt(pfm_intr_handler_desc_t *hdl) in pfm_remove_alt_pmu_interrupt() argument
6491 if (hdl == NULL) return -EINVAL; in pfm_remove_alt_pmu_interrupt()
6494 if (pfm_alt_intr_handler != hdl) return -EINVAL; in pfm_remove_alt_pmu_interrupt()
/linux-4.4.14/arch/x86/kernel/apic/
Dio_apic.c920 irq_flow_handler_t hdl; in mp_register_handler() local
931 hdl = fasteoi ? handle_fasteoi_irq : handle_edge_irq; in mp_register_handler()
932 __irq_set_handler(irq, hdl, 0, fasteoi ? "fasteoi" : "edge"); in mp_register_handler()
/linux-4.4.14/Documentation/
Ddevices.txt1132 64 = /dev/hdl Slave: whole disk (or CD-ROM)