/Linux-v4.19/drivers/media/pci/cx18/ |
D | cx18-controls.c | 28 static int cx18_s_stream_vbi_fmt(struct cx2341x_handler *cxhdl, u32 fmt) in cx18_s_stream_vbi_fmt() argument 30 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_stream_vbi_fmt() 31 int type = cxhdl->stream_type->val; in cx18_s_stream_vbi_fmt() 84 static int cx18_s_video_encoding(struct cx2341x_handler *cxhdl, u32 val) in cx18_s_video_encoding() argument 86 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_video_encoding() 94 fmt->width = cxhdl->width / (is_mpeg1 ? 2 : 1); in cx18_s_video_encoding() 95 fmt->height = cxhdl->height; in cx18_s_video_encoding() 101 static int cx18_s_audio_sampling_freq(struct cx2341x_handler *cxhdl, u32 idx) in cx18_s_audio_sampling_freq() argument 104 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_audio_sampling_freq() 113 static int cx18_s_audio_mode(struct cx2341x_handler *cxhdl, u32 val) in cx18_s_audio_mode() argument [all …]
|
D | cx18-streams.c | 196 *size = 2 * cx->cxhdl.width * cx->cxhdl.height; in buffer_setup() 219 cx->cxhdl.width, cx->cxhdl.height, field); in buffer_prepare() 300 s->vb_bytes_per_frame = cx->cxhdl.height * 720 * 3 / 2; in cx18_stream_init() 745 s->mdl_size = 720 * s->cx->cxhdl.height * 3 / 2; in cx18_stream_configure_mdls() 747 s->mdl_size = 720 * s->cx->cxhdl.height * 2; in cx18_stream_configure_mdls() 794 cx->dualwatch_stereo_mode = v4l2_ctrl_g_ctrl(cx->cxhdl.audio_mode); in cx18_start_v4l2_encode_stream() 884 cx->cxhdl.priv = s; in cx18_start_v4l2_encode_stream() 885 cx2341x_handler_setup(&cx->cxhdl); in cx18_start_v4l2_encode_stream() 891 if (!cx->cxhdl.video_mute && in cx18_start_v4l2_encode_stream() 894 (v4l2_ctrl_g_ctrl(cx->cxhdl.video_mute_yuv) << 8) | 1); in cx18_start_v4l2_encode_stream() [all …]
|
D | cx18-driver.c | 744 cx->cxhdl.port = CX2341X_PORT_MEMORY; in cx18_init_struct1() 745 cx->cxhdl.capabilities = CX2341X_CAP_HAS_TS | CX2341X_CAP_HAS_SLICED_VBI; in cx18_init_struct1() 746 cx->cxhdl.ops = &cx18_cxhdl_ops; in cx18_init_struct1() 747 cx->cxhdl.func = cx18_api_func; in cx18_init_struct1() 748 cx->cxhdl.priv = &cx->streams[CX18_ENC_STREAM_TYPE_MPG]; in cx18_init_struct1() 749 ret = cx2341x_handler_init(&cx->cxhdl, 50); in cx18_init_struct1() 752 cx->v4l2_dev.ctrl_handler = &cx->cxhdl.hdl; in cx18_init_struct1() 754 cx->temporal_strength = cx->cxhdl.video_temporal_filter->cur.val; in cx18_init_struct1() 755 cx->spatial_strength = cx->cxhdl.video_spatial_filter->cur.val; in cx18_init_struct1() 756 cx->filter_mode = cx->cxhdl.video_spatial_filter_mode->cur.val | in cx18_init_struct1() [all …]
|
D | cx18-ioctl.c | 151 pixfmt->width = cx->cxhdl.width; in cx18_g_fmt_vid_cap() 152 pixfmt->height = cx->cxhdl.height; in cx18_g_fmt_vid_cap() 278 if (cx->cxhdl.width == w && cx->cxhdl.height == h && in cx18_s_fmt_vid_cap() 296 format.format.width = cx->cxhdl.width = w; in cx18_s_fmt_vid_cap() 297 format.format.height = cx->cxhdl.height = h; in cx18_s_fmt_vid_cap() 599 cx2341x_handler_set_50hz(&cx->cxhdl, cx->is_50hz); in cx18_s_std() 600 cx->cxhdl.width = 720; in cx18_s_std() 601 cx->cxhdl.height = cx->is_50hz ? 576 : 480; in cx18_s_std() 1036 v4l2_ctrl_handler_log_status(&cx->cxhdl.hdl, cx->v4l2_dev.name); in cx18_log_status()
|
D | cx18-fileops.c | 161 new_stereo_mode = v4l2_ctrl_g_ctrl(cx->cxhdl.audio_mode); in cx18_dualwatch() 173 if (v4l2_ctrl_s_ctrl(cx->cxhdl.audio_mode, new_stereo_mode)) in cx18_dualwatch() 771 (v4l2_ctrl_g_ctrl(cx->cxhdl.video_mute) | in cx18_v4l2_close() 772 (v4l2_ctrl_g_ctrl(cx->cxhdl.video_mute_yuv) << 8))); in cx18_v4l2_close()
|
D | cx18-driver.h | 595 struct cx2341x_handler cxhdl; member
|
/Linux-v4.19/drivers/media/pci/ivtv/ |
D | ivtv-controls.c | 26 static int ivtv_s_stream_vbi_fmt(struct cx2341x_handler *cxhdl, u32 fmt) in ivtv_s_stream_vbi_fmt() argument 28 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); in ivtv_s_stream_vbi_fmt() 63 static int ivtv_s_video_encoding(struct cx2341x_handler *cxhdl, u32 val) in ivtv_s_video_encoding() argument 65 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); in ivtv_s_video_encoding() 72 format.format.width = cxhdl->width / (is_mpeg1 ? 2 : 1); in ivtv_s_video_encoding() 73 format.format.height = cxhdl->height; in ivtv_s_video_encoding() 79 static int ivtv_s_audio_sampling_freq(struct cx2341x_handler *cxhdl, u32 idx) in ivtv_s_audio_sampling_freq() argument 82 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); in ivtv_s_audio_sampling_freq() 91 static int ivtv_s_audio_mode(struct cx2341x_handler *cxhdl, u32 val) in ivtv_s_audio_mode() argument 93 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); in ivtv_s_audio_mode() [all …]
|
D | ivtv-streams.c | 499 itv->dualwatch_stereo_mode = v4l2_ctrl_g_ctrl(itv->cxhdl.audio_mode); in ivtv_start_v4l2_encode_stream() 587 cx2341x_handler_setup(&itv->cxhdl); in ivtv_start_v4l2_encode_stream() 592 1 | (v4l2_ctrl_g_ctrl(itv->cxhdl.video_mute_yuv) << 8)); in ivtv_start_v4l2_encode_stream() 608 cx2341x_handler_set_busy(&itv->cxhdl, 1); in ivtv_start_v4l2_encode_stream() 656 width = itv->cxhdl.width; in ivtv_setup_v4l2_decode_stream() 657 height = itv->cxhdl.height; in ivtv_setup_v4l2_decode_stream() 697 width, height, itv->cxhdl.audio_properties)) { in ivtv_setup_v4l2_decode_stream() 876 cx2341x_handler_set_busy(&itv->cxhdl, 0); in ivtv_stop_v4l2_encode_stream() 999 cx2341x_handler_setup(&itv->cxhdl); in ivtv_passthrough_mode() 1000 cx2341x_handler_set_busy(&itv->cxhdl, 1); in ivtv_passthrough_mode() [all …]
|
D | ivtv-driver.c | 767 itv->cxhdl.port = CX2341X_PORT_MEMORY; in ivtv_init_struct1() 768 itv->cxhdl.capabilities = CX2341X_CAP_HAS_SLICED_VBI; in ivtv_init_struct1() 1025 retval = cx2341x_handler_init(&itv->cxhdl, 50); in ivtv_probe() 1028 itv->v4l2_dev.ctrl_handler = &itv->cxhdl.hdl; in ivtv_probe() 1029 itv->cxhdl.ops = &ivtv_cxhdl_ops; in ivtv_probe() 1030 itv->cxhdl.priv = itv; in ivtv_probe() 1031 itv->cxhdl.func = ivtv_api_func; in ivtv_probe() 1159 cx2341x_handler_set_50hz(&itv->cxhdl, itv->is_50hz); in ivtv_probe() 1279 v4l2_ctrl_handler_free(&itv->cxhdl.hdl); in ivtv_probe() 1388 cx2341x_handler_setup(&itv->cxhdl); in ivtv_init_on_first_open() [all …]
|
D | ivtv-firmware.c | 251 data[1] = itv->cxhdl.width; /* YUV source width */ in ivtv_init_mpeg_decoder() 252 data[2] = itv->cxhdl.height; in ivtv_init_mpeg_decoder() 253 data[3] = itv->cxhdl.audio_properties; /* Audio settings to use, in ivtv_init_mpeg_decoder()
|
D | ivtv-ioctl.c | 163 data[3] = v4l2_ctrl_g_ctrl(itv->cxhdl.video_b_frames); in ivtv_set_speed() 353 pixfmt->width = itv->cxhdl.width; in ivtv_g_fmt_vid_cap() 354 pixfmt->height = itv->cxhdl.height; in ivtv_g_fmt_vid_cap() 597 if (itv->cxhdl.width == w && itv->cxhdl.height == h) in ivtv_s_fmt_vid_cap() 603 itv->cxhdl.width = w; in ivtv_s_fmt_vid_cap() 604 itv->cxhdl.height = h; in ivtv_s_fmt_vid_cap() 605 if (v4l2_ctrl_g_ctrl(itv->cxhdl.video_encoding) == V4L2_MPEG_VIDEO_ENCODING_MPEG_1) in ivtv_s_fmt_vid_cap() 1119 cx2341x_handler_set_50hz(&itv->cxhdl, itv->is_50hz); in ivtv_s_std_enc() 1120 itv->cxhdl.width = 720; in ivtv_s_std_enc() 1121 itv->cxhdl.height = itv->is_50hz ? 576 : 480; in ivtv_s_std_enc() [all …]
|
D | ivtv-fileops.c | 158 new_stereo_mode = v4l2_ctrl_g_ctrl(itv->cxhdl.audio_mode); in ivtv_dualwatch() 169 if (v4l2_ctrl_s_ctrl(itv->cxhdl.audio_mode, new_stereo_mode)) in ivtv_dualwatch() 907 v4l2_ctrl_g_ctrl(itv->cxhdl.video_mute) | in ivtv_v4l2_close() 908 (v4l2_ctrl_g_ctrl(itv->cxhdl.video_mute_yuv) << 8)); in ivtv_v4l2_close()
|
D | ivtv-driver.h | 635 struct cx2341x_handler cxhdl; member
|
/Linux-v4.19/drivers/media/common/ |
D | cx2341x.c | 1548 int cx2341x_handler_init(struct cx2341x_handler *cxhdl, in cx2341x_handler_init() argument 1551 struct v4l2_ctrl_handler *hdl = &cxhdl->hdl; in cx2341x_handler_init() 1552 u32 caps = cxhdl->capabilities; in cx2341x_handler_init() 1557 cxhdl->width = 720; in cx2341x_handler_init() 1558 cxhdl->height = 480; in cx2341x_handler_init() 1564 cxhdl->stream_type = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init() 1568 cxhdl->stream_vbi_fmt = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init() 1572 cxhdl->audio_sampling_freq = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init() 1576 cxhdl->audio_encoding = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init() 1580 cxhdl->audio_l2_bitrate = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init() [all …]
|
/Linux-v4.19/drivers/media/pci/cx88/ |
D | cx88-blackbird.c | 552 dev->cxhdl.width = core->width; in blackbird_codec_settings() 553 dev->cxhdl.height = core->height; in blackbird_codec_settings() 554 cx2341x_handler_set_50hz(&dev->cxhdl, in blackbird_codec_settings() 556 cx2341x_handler_setup(&dev->cxhdl); in blackbird_codec_settings() 644 cx2341x_handler_set_busy(&dev->cxhdl, 1); in blackbird_start_codec() 660 cx2341x_handler_set_busy(&dev->cxhdl, 0); in blackbird_stop_codec() 932 v4l2_ctrl_handler_log_status(&dev->cxhdl.hdl, name); in vidioc_log_status() 1145 dev->mpeg_dev.ctrl_handler = &dev->cxhdl.hdl; in blackbird_register_video() 1178 dev->cxhdl.port = CX2341X_PORT_STREAMING; in cx8802_blackbird_probe() 1179 dev->cxhdl.width = core->width; in cx8802_blackbird_probe() [all …]
|
D | cx88.h | 569 struct cx2341x_handler cxhdl; member
|
/Linux-v4.19/include/media/drv-intf/ |
D | cx2341x.h | 193 int cx2341x_handler_init(struct cx2341x_handler *cxhdl, 195 void cx2341x_handler_set_50hz(struct cx2341x_handler *cxhdl, int is_50hz); 196 int cx2341x_handler_setup(struct cx2341x_handler *cxhdl); 197 void cx2341x_handler_set_busy(struct cx2341x_handler *cxhdl, int busy);
|
/Linux-v4.19/drivers/media/pci/cx23885/ |
D | cx23885-417.c | 1030 dev->cxhdl.width = dev->ts1.width; in cx23885_codec_settings() 1031 dev->cxhdl.height = dev->ts1.height; in cx23885_codec_settings() 1032 dev->cxhdl.is_50hz = in cx23885_codec_settings() 1035 cx2341x_handler_setup(&dev->cxhdl); in cx23885_codec_settings() 1415 v4l2_ctrl_handler_log_status(&dev->cxhdl.hdl, name); in vidioc_log_status() 1475 v4l2_ctrl_handler_free(&dev->cxhdl.hdl); in cx23885_417_unregister() 1523 dev->cxhdl.port = CX2341X_PORT_SERIAL; in cx23885_417_register() 1524 err = cx2341x_handler_init(&dev->cxhdl, 50); in cx23885_417_register() 1527 dev->cxhdl.priv = dev; in cx23885_417_register() 1528 dev->cxhdl.func = cx23885_api_func; in cx23885_417_register() [all …]
|
D | cx23885.h | 446 struct cx2341x_handler cxhdl; member
|
/Linux-v4.19/drivers/media/usb/cx231xx/ |
D | cx231xx-417.c | 1908 static int cx231xx_s_video_encoding(struct cx2341x_handler *cxhdl, u32 val) in cx231xx_s_video_encoding() argument 1910 struct cx231xx *dev = container_of(cxhdl, struct cx231xx, mpeg_ctrl_handler); in cx231xx_s_video_encoding() 1917 format.format.width = cxhdl->width / (is_mpeg1 ? 2 : 1); in cx231xx_s_video_encoding() 1918 format.format.height = cxhdl->height; in cx231xx_s_video_encoding() 1924 static int cx231xx_s_audio_sampling_freq(struct cx2341x_handler *cxhdl, u32 idx) in cx231xx_s_audio_sampling_freq() argument 1927 struct cx231xx *dev = container_of(cxhdl, struct cx231xx, mpeg_ctrl_handler); in cx231xx_s_audio_sampling_freq()
|