Home
last modified time | relevance | path

Searched refs:cxhdl (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/media/pci/cx18/
A Dcx18-controls.c19 static int cx18_s_stream_vbi_fmt(struct cx2341x_handler *cxhdl, u32 fmt) in cx18_s_stream_vbi_fmt() argument
21 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_stream_vbi_fmt()
22 int type = cxhdl->stream_type->val; in cx18_s_stream_vbi_fmt()
75 static int cx18_s_video_encoding(struct cx2341x_handler *cxhdl, u32 val) in cx18_s_video_encoding() argument
77 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_video_encoding()
85 fmt->width = cxhdl->width / (is_mpeg1 ? 2 : 1); in cx18_s_video_encoding()
86 fmt->height = cxhdl->height; in cx18_s_video_encoding()
92 static int cx18_s_audio_sampling_freq(struct cx2341x_handler *cxhdl, u32 idx) in cx18_s_audio_sampling_freq() argument
95 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_audio_sampling_freq()
104 static int cx18_s_audio_mode(struct cx2341x_handler *cxhdl, u32 val) in cx18_s_audio_mode() argument
[all …]
A Dcx18-streams.c187 *size = 2 * cx->cxhdl.width * cx->cxhdl.height; in buffer_setup()
210 cx->cxhdl.width, cx->cxhdl.height, field); in buffer_prepare()
291 s->vb_bytes_per_frame = cx->cxhdl.height * 720 * 3 / 2; in cx18_stream_init()
737 s->mdl_size = 720 * s->cx->cxhdl.height * 3 / 2; in cx18_stream_configure_mdls()
739 s->mdl_size = 720 * s->cx->cxhdl.height * 2; in cx18_stream_configure_mdls()
876 cx->cxhdl.priv = s; in cx18_start_v4l2_encode_stream()
877 cx2341x_handler_setup(&cx->cxhdl); in cx18_start_v4l2_encode_stream()
883 if (!cx->cxhdl.video_mute && in cx18_start_v4l2_encode_stream()
886 (v4l2_ctrl_g_ctrl(cx->cxhdl.video_mute_yuv) << 8) | 1); in cx18_start_v4l2_encode_stream()
903 cx2341x_handler_set_busy(&cx->cxhdl, 1); in cx18_start_v4l2_encode_stream()
[all …]
A Dcx18-driver.c734 cx->cxhdl.port = CX2341X_PORT_MEMORY; in cx18_init_struct1()
736 cx->cxhdl.ops = &cx18_cxhdl_ops; in cx18_init_struct1()
737 cx->cxhdl.func = cx18_api_func; in cx18_init_struct1()
738 cx->cxhdl.priv = &cx->streams[CX18_ENC_STREAM_TYPE_MPG]; in cx18_init_struct1()
739 ret = cx2341x_handler_init(&cx->cxhdl, 50); in cx18_init_struct1()
742 cx->v4l2_dev.ctrl_handler = &cx->cxhdl.hdl; in cx18_init_struct1()
745 cx->spatial_strength = cx->cxhdl.video_spatial_filter->cur.val; in cx18_init_struct1()
746 cx->filter_mode = cx->cxhdl.video_spatial_filter_mode->cur.val | in cx18_init_struct1()
747 (cx->cxhdl.video_temporal_filter_mode->cur.val << 1) | in cx18_init_struct1()
748 (cx->cxhdl.video_median_filter_type->cur.val << 2); in cx18_init_struct1()
[all …]
A Dcx18-ioctl.c142 pixfmt->width = cx->cxhdl.width; in cx18_g_fmt_vid_cap()
143 pixfmt->height = cx->cxhdl.height; in cx18_g_fmt_vid_cap()
269 if (cx->cxhdl.width == w && cx->cxhdl.height == h && in cx18_s_fmt_vid_cap()
287 format.format.width = cx->cxhdl.width = w; in cx18_s_fmt_vid_cap()
288 format.format.height = cx->cxhdl.height = h; in cx18_s_fmt_vid_cap()
598 cx2341x_handler_set_50hz(&cx->cxhdl, cx->is_50hz); in cx18_s_std()
599 cx->cxhdl.width = 720; in cx18_s_std()
600 cx->cxhdl.height = cx->is_50hz ? 576 : 480; in cx18_s_std()
1035 v4l2_ctrl_handler_log_status(&cx->cxhdl.hdl, cx->v4l2_dev.name); in cx18_log_status()
A Dcx18-fileops.c152 new_stereo_mode = v4l2_ctrl_g_ctrl(cx->cxhdl.audio_mode); in cx18_dualwatch()
164 if (v4l2_ctrl_s_ctrl(cx->cxhdl.audio_mode, new_stereo_mode)) in cx18_dualwatch()
762 (v4l2_ctrl_g_ctrl(cx->cxhdl.video_mute) | in cx18_v4l2_close()
763 (v4l2_ctrl_g_ctrl(cx->cxhdl.video_mute_yuv) << 8))); in cx18_v4l2_close()
A Dcx18-driver.h586 struct cx2341x_handler cxhdl; member
/linux/drivers/media/pci/ivtv/
A Divtv-controls.c14 static int ivtv_s_stream_vbi_fmt(struct cx2341x_handler *cxhdl, u32 fmt) in ivtv_s_stream_vbi_fmt() argument
16 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); in ivtv_s_stream_vbi_fmt()
51 static int ivtv_s_video_encoding(struct cx2341x_handler *cxhdl, u32 val) in ivtv_s_video_encoding() argument
53 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); in ivtv_s_video_encoding()
60 format.format.width = cxhdl->width / (is_mpeg1 ? 2 : 1); in ivtv_s_video_encoding()
61 format.format.height = cxhdl->height; in ivtv_s_video_encoding()
70 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); in ivtv_s_audio_sampling_freq()
79 static int ivtv_s_audio_mode(struct cx2341x_handler *cxhdl, u32 val) in ivtv_s_audio_mode() argument
81 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); in ivtv_s_audio_mode()
122 struct ivtv *itv = container_of(ctrl->handler, struct ivtv, cxhdl.hdl); in ivtv_g_volatile_ctrl()
[all …]
A Divtv-streams.c514 itv->dualwatch_stereo_mode = v4l2_ctrl_g_ctrl(itv->cxhdl.audio_mode); in ivtv_start_v4l2_encode_stream()
602 cx2341x_handler_setup(&itv->cxhdl); in ivtv_start_v4l2_encode_stream()
607 1 | (v4l2_ctrl_g_ctrl(itv->cxhdl.video_mute_yuv) << 8)); in ivtv_start_v4l2_encode_stream()
623 cx2341x_handler_set_busy(&itv->cxhdl, 1); in ivtv_start_v4l2_encode_stream()
671 width = itv->cxhdl.width; in ivtv_setup_v4l2_decode_stream()
672 height = itv->cxhdl.height; in ivtv_setup_v4l2_decode_stream()
712 width, height, itv->cxhdl.audio_properties)) { in ivtv_setup_v4l2_decode_stream()
891 cx2341x_handler_set_busy(&itv->cxhdl, 0); in ivtv_stop_v4l2_encode_stream()
1014 cx2341x_handler_setup(&itv->cxhdl); in ivtv_passthrough_mode()
1015 cx2341x_handler_set_busy(&itv->cxhdl, 1); in ivtv_passthrough_mode()
[all …]
A Divtv-driver.c761 itv->cxhdl.port = CX2341X_PORT_MEMORY; in ivtv_init_struct1()
762 itv->cxhdl.capabilities = CX2341X_CAP_HAS_SLICED_VBI; in ivtv_init_struct1()
1024 retval = cx2341x_handler_init(&itv->cxhdl, 50); in ivtv_probe()
1027 itv->v4l2_dev.ctrl_handler = &itv->cxhdl.hdl; in ivtv_probe()
1028 itv->cxhdl.ops = &ivtv_cxhdl_ops; in ivtv_probe()
1029 itv->cxhdl.priv = itv; in ivtv_probe()
1030 itv->cxhdl.func = ivtv_api_func; in ivtv_probe()
1158 cx2341x_handler_set_50hz(&itv->cxhdl, itv->is_50hz); in ivtv_probe()
1278 v4l2_ctrl_handler_free(&itv->cxhdl.hdl); in ivtv_probe()
1387 cx2341x_handler_setup(&itv->cxhdl); in ivtv_init_on_first_open()
[all …]
A Divtv-firmware.c239 data[1] = itv->cxhdl.width; /* YUV source width */ in ivtv_init_mpeg_decoder()
240 data[2] = itv->cxhdl.height; in ivtv_init_mpeg_decoder()
241 data[3] = itv->cxhdl.audio_properties; /* Audio settings to use, in ivtv_init_mpeg_decoder()
A Divtv-ioctl.c147 data[3] = v4l2_ctrl_g_ctrl(itv->cxhdl.video_b_frames); in ivtv_set_speed()
337 pixfmt->width = itv->cxhdl.width; in ivtv_g_fmt_vid_cap()
338 pixfmt->height = itv->cxhdl.height; in ivtv_g_fmt_vid_cap()
581 if (itv->cxhdl.width == w && itv->cxhdl.height == h) in ivtv_s_fmt_vid_cap()
587 itv->cxhdl.width = w; in ivtv_s_fmt_vid_cap()
588 itv->cxhdl.height = h; in ivtv_s_fmt_vid_cap()
589 if (v4l2_ctrl_g_ctrl(itv->cxhdl.video_encoding) == V4L2_MPEG_VIDEO_ENCODING_MPEG_1) in ivtv_s_fmt_vid_cap()
1099 cx2341x_handler_set_50hz(&itv->cxhdl, itv->is_50hz); in ivtv_s_std_enc()
1100 itv->cxhdl.width = 720; in ivtv_s_std_enc()
1101 itv->cxhdl.height = itv->is_50hz ? 576 : 480; in ivtv_s_std_enc()
[all …]
A Divtv-fileops.c146 new_stereo_mode = v4l2_ctrl_g_ctrl(itv->cxhdl.audio_mode); in ivtv_dualwatch()
157 if (v4l2_ctrl_s_ctrl(itv->cxhdl.audio_mode, new_stereo_mode)) in ivtv_dualwatch()
895 v4l2_ctrl_g_ctrl(itv->cxhdl.video_mute) | in ivtv_v4l2_close()
896 (v4l2_ctrl_g_ctrl(itv->cxhdl.video_mute_yuv) << 8)); in ivtv_v4l2_close()
A Divtv-driver.h632 struct cx2341x_handler cxhdl; member
/linux/drivers/media/common/
A Dcx2341x.c1578 u32 caps = cxhdl->capabilities; in cx2341x_handler_init()
1583 cxhdl->width = 720; in cx2341x_handler_init()
1584 cxhdl->height = 480; in cx2341x_handler_init()
1645 1, 34, 1, cxhdl->is_50hz ? 12 : 15); in cx2341x_handler_init()
1725 v4l2_ctrl_cluster(2, &cxhdl->video_mute); in cx2341x_handler_init()
1737 cxhdl->is_50hz = is_50hz; in cx2341x_handler_set_50hz()
1738 cxhdl->video_gop_size->default_value = cxhdl->is_50hz ? 12 : 15; in cx2341x_handler_set_50hz()
1744 int h = cxhdl->height; in cx2341x_handler_setup()
1745 int w = cxhdl->width; in cx2341x_handler_setup()
1748 err = cx2341x_hdl_api(cxhdl, CX2341X_ENC_SET_OUTPUT_PORT, 2, cxhdl->port, 0); in cx2341x_handler_setup()
[all …]
/linux/drivers/media/pci/cx88/
A Dcx88-blackbird.c543 dev->cxhdl.width = core->width; in blackbird_codec_settings()
544 dev->cxhdl.height = core->height; in blackbird_codec_settings()
545 cx2341x_handler_set_50hz(&dev->cxhdl, in blackbird_codec_settings()
547 cx2341x_handler_setup(&dev->cxhdl); in blackbird_codec_settings()
635 cx2341x_handler_set_busy(&dev->cxhdl, 1); in blackbird_start_codec()
1173 dev->cxhdl.width = core->width; in cx8802_blackbird_probe()
1174 dev->cxhdl.height = core->height; in cx8802_blackbird_probe()
1175 dev->cxhdl.func = blackbird_mbox_func; in cx8802_blackbird_probe()
1176 dev->cxhdl.priv = dev; in cx8802_blackbird_probe()
1193 cx2341x_handler_setup(&dev->cxhdl); in cx8802_blackbird_probe()
[all …]
A Dcx88.h560 struct cx2341x_handler cxhdl; member
/linux/include/media/drv-intf/
A Dcx2341x.h181 int cx2341x_handler_init(struct cx2341x_handler *cxhdl,
183 void cx2341x_handler_set_50hz(struct cx2341x_handler *cxhdl, int is_50hz);
184 int cx2341x_handler_setup(struct cx2341x_handler *cxhdl);
185 void cx2341x_handler_set_busy(struct cx2341x_handler *cxhdl, int busy);
/linux/drivers/media/pci/cx23885/
A Dcx23885-417.c1021 dev->cxhdl.width = dev->ts1.width; in cx23885_codec_settings()
1022 dev->cxhdl.height = dev->ts1.height; in cx23885_codec_settings()
1023 dev->cxhdl.is_50hz = in cx23885_codec_settings()
1026 cx2341x_handler_setup(&dev->cxhdl); in cx23885_codec_settings()
1404 v4l2_ctrl_handler_log_status(&dev->cxhdl.hdl, name); in vidioc_log_status()
1464 v4l2_ctrl_handler_free(&dev->cxhdl.hdl); in cx23885_417_unregister()
1512 dev->cxhdl.port = CX2341X_PORT_SERIAL; in cx23885_417_register()
1513 err = cx2341x_handler_init(&dev->cxhdl, 50); in cx23885_417_register()
1516 dev->cxhdl.priv = dev; in cx23885_417_register()
1517 dev->cxhdl.func = cx23885_api_func; in cx23885_417_register()
[all …]
A Dcx23885.h436 struct cx2341x_handler cxhdl; member
/linux/drivers/media/usb/cx231xx/
A Dcx231xx-417.c1674 static int cx231xx_s_video_encoding(struct cx2341x_handler *cxhdl, u32 val) in cx231xx_s_video_encoding() argument
1676 struct cx231xx *dev = container_of(cxhdl, struct cx231xx, mpeg_ctrl_handler); in cx231xx_s_video_encoding()
1683 format.format.width = cxhdl->width / (is_mpeg1 ? 2 : 1); in cx231xx_s_video_encoding()
1684 format.format.height = cxhdl->height; in cx231xx_s_video_encoding()
1690 static int cx231xx_s_audio_sampling_freq(struct cx2341x_handler *cxhdl, u32 idx) in cx231xx_s_audio_sampling_freq() argument
1693 struct cx231xx *dev = container_of(cxhdl, struct cx231xx, mpeg_ctrl_handler); in cx231xx_s_audio_sampling_freq()

Completed in 70 milliseconds