Home
last modified time | relevance | path

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

/drivers/media/video/cx18/
Dcx18-controls.c33 static int cx18_s_stream_vbi_fmt(struct cx2341x_handler *cxhdl, u32 fmt) in cx18_s_stream_vbi_fmt() argument
35 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_stream_vbi_fmt()
36 int type = cxhdl->stream_type->val; in cx18_s_stream_vbi_fmt()
92 static int cx18_s_video_encoding(struct cx2341x_handler *cxhdl, u32 val) in cx18_s_video_encoding() argument
94 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_video_encoding()
99 fmt.width = cxhdl->width / (is_mpeg1 ? 2 : 1); in cx18_s_video_encoding()
100 fmt.height = cxhdl->height; in cx18_s_video_encoding()
106 static int cx18_s_audio_sampling_freq(struct cx2341x_handler *cxhdl, u32 idx) in cx18_s_audio_sampling_freq() argument
109 struct cx18 *cx = container_of(cxhdl, struct cx18, cxhdl); in cx18_s_audio_sampling_freq()
118 static int cx18_s_audio_mode(struct cx2341x_handler *cxhdl, u32 val) in cx18_s_audio_mode() argument
[all …]
Dcx18-streams.c194 *size = 2 * cx->cxhdl.width * cx->cxhdl.height; in buffer_setup()
217 cx->cxhdl.width, cx->cxhdl.height, field); in buffer_prepare()
302 s->vb_bytes_per_frame = cx->cxhdl.height * 720 * 3 / 2; in cx18_stream_init()
757 s->mdl_size = 720 * s->cx->cxhdl.height * 3 / 2; in cx18_stream_configure_mdls()
759 s->mdl_size = 720 * s->cx->cxhdl.height * 2; in cx18_stream_configure_mdls()
806 cx->dualwatch_stereo_mode = v4l2_ctrl_g_ctrl(cx->cxhdl.audio_mode); in cx18_start_v4l2_encode_stream()
896 cx->cxhdl.priv = s; in cx18_start_v4l2_encode_stream()
897 cx2341x_handler_setup(&cx->cxhdl); in cx18_start_v4l2_encode_stream()
903 if (!cx->cxhdl.video_mute && in cx18_start_v4l2_encode_stream()
906 (v4l2_ctrl_g_ctrl(cx->cxhdl.video_mute_yuv) << 8) | 1); in cx18_start_v4l2_encode_stream()
[all …]
Dcx18-driver.c742 cx->cxhdl.port = CX2341X_PORT_MEMORY; in cx18_init_struct1()
743 cx->cxhdl.capabilities = CX2341X_CAP_HAS_TS | CX2341X_CAP_HAS_SLICED_VBI; in cx18_init_struct1()
744 cx->cxhdl.ops = &cx18_cxhdl_ops; in cx18_init_struct1()
745 cx->cxhdl.func = cx18_api_func; in cx18_init_struct1()
746 cx->cxhdl.priv = &cx->streams[CX18_ENC_STREAM_TYPE_MPG]; in cx18_init_struct1()
747 ret = cx2341x_handler_init(&cx->cxhdl, 50); in cx18_init_struct1()
750 cx->v4l2_dev.ctrl_handler = &cx->cxhdl.hdl; in cx18_init_struct1()
752 cx->temporal_strength = cx->cxhdl.video_temporal_filter->cur.val; in cx18_init_struct1()
753 cx->spatial_strength = cx->cxhdl.video_spatial_filter->cur.val; in cx18_init_struct1()
754 cx->filter_mode = cx->cxhdl.video_spatial_filter_mode->cur.val | in cx18_init_struct1()
[all …]
Dcx18-ioctl.c156 pixfmt->width = cx->cxhdl.width; in cx18_g_fmt_vid_cap()
157 pixfmt->height = cx->cxhdl.height; in cx18_g_fmt_vid_cap()
286 if (cx->cxhdl.width == w && cx->cxhdl.height == h && in cx18_s_fmt_vid_cap()
301 mbus_fmt.width = cx->cxhdl.width = w; in cx18_s_fmt_vid_cap()
302 mbus_fmt.height = cx->cxhdl.height = h; in cx18_s_fmt_vid_cap()
666 cx2341x_handler_set_50hz(&cx->cxhdl, cx->is_50hz); in cx18_s_std()
667 cx->cxhdl.width = 720; in cx18_s_std()
668 cx->cxhdl.height = cx->is_50hz ? 576 : 480; in cx18_s_std()
1105 v4l2_ctrl_handler_log_status(&cx->cxhdl.hdl, cx->v4l2_dev.name); in cx18_log_status()
Dcx18-fileops.c166 new_stereo_mode = v4l2_ctrl_g_ctrl(cx->cxhdl.audio_mode); in cx18_dualwatch()
178 if (v4l2_ctrl_s_ctrl(cx->cxhdl.audio_mode, new_stereo_mode)) in cx18_dualwatch()
769 (v4l2_ctrl_g_ctrl(cx->cxhdl.video_mute) | in cx18_v4l2_close()
770 (v4l2_ctrl_g_ctrl(cx->cxhdl.video_mute_yuv) << 8))); in cx18_v4l2_close()
Dcx18-driver.h598 struct cx2341x_handler cxhdl; member
/drivers/media/video/ivtv/
Divtv-controls.c26 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()
70 fmt.width = cxhdl->width / (is_mpeg1 ? 2 : 1); in ivtv_s_video_encoding()
71 fmt.height = cxhdl->height; in ivtv_s_video_encoding()
77 static int ivtv_s_audio_sampling_freq(struct cx2341x_handler *cxhdl, u32 idx) in ivtv_s_audio_sampling_freq() argument
80 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); in ivtv_s_audio_sampling_freq()
89 static int ivtv_s_audio_mode(struct cx2341x_handler *cxhdl, u32 val) in ivtv_s_audio_mode() argument
91 struct ivtv *itv = container_of(cxhdl, struct ivtv, cxhdl); in ivtv_s_audio_mode()
[all …]
Divtv-streams.c490 itv->dualwatch_stereo_mode = v4l2_ctrl_g_ctrl(itv->cxhdl.audio_mode); in ivtv_start_v4l2_encode_stream()
578 cx2341x_handler_setup(&itv->cxhdl); in ivtv_start_v4l2_encode_stream()
583 1 | (v4l2_ctrl_g_ctrl(itv->cxhdl.video_mute_yuv) << 8)); in ivtv_start_v4l2_encode_stream()
599 cx2341x_handler_set_busy(&itv->cxhdl, 1); in ivtv_start_v4l2_encode_stream()
646 width = itv->cxhdl.width; in ivtv_setup_v4l2_decode_stream()
647 height = itv->cxhdl.height; in ivtv_setup_v4l2_decode_stream()
687 width, height, itv->cxhdl.audio_properties)) { in ivtv_setup_v4l2_decode_stream()
866 cx2341x_handler_set_busy(&itv->cxhdl, 0); in ivtv_stop_v4l2_encode_stream()
988 cx2341x_handler_setup(&itv->cxhdl); in ivtv_passthrough_mode()
989 cx2341x_handler_set_busy(&itv->cxhdl, 1); in ivtv_passthrough_mode()
[all …]
Divtv-driver.c735 itv->cxhdl.port = CX2341X_PORT_MEMORY; in ivtv_init_struct1()
736 itv->cxhdl.capabilities = CX2341X_CAP_HAS_SLICED_VBI; in ivtv_init_struct1()
1002 retval = cx2341x_handler_init(&itv->cxhdl, 50); in ivtv_probe()
1005 itv->v4l2_dev.ctrl_handler = &itv->cxhdl.hdl; in ivtv_probe()
1006 itv->cxhdl.ops = &ivtv_cxhdl_ops; in ivtv_probe()
1007 itv->cxhdl.priv = itv; in ivtv_probe()
1008 itv->cxhdl.func = ivtv_api_func; in ivtv_probe()
1146 cx2341x_handler_set_50hz(&itv->cxhdl, itv->is_50hz); in ivtv_probe()
1263 v4l2_ctrl_handler_free(&itv->cxhdl.hdl); in ivtv_probe()
1371 cx2341x_handler_setup(&itv->cxhdl); in ivtv_init_on_first_open()
[all …]
Divtv-firmware.c251 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()
Divtv-ioctl.c164 data[3] = v4l2_ctrl_g_ctrl(itv->cxhdl.video_b_frames); in ivtv_set_speed()
349 pixfmt->width = itv->cxhdl.width; in ivtv_g_fmt_vid_cap()
350 pixfmt->height = itv->cxhdl.height; in ivtv_g_fmt_vid_cap()
586 if (itv->cxhdl.width == w && itv->cxhdl.height == h) in ivtv_s_fmt_vid_cap()
592 itv->cxhdl.width = w; in ivtv_s_fmt_vid_cap()
593 itv->cxhdl.height = h; in ivtv_s_fmt_vid_cap()
594 if (v4l2_ctrl_g_ctrl(itv->cxhdl.video_encoding) == V4L2_MPEG_VIDEO_ENCODING_MPEG_1) in ivtv_s_fmt_vid_cap()
1089 cx2341x_handler_set_50hz(&itv->cxhdl, itv->is_50hz); in ivtv_s_std_enc()
1090 itv->cxhdl.width = 720; in ivtv_s_std_enc()
1091 itv->cxhdl.height = itv->is_50hz ? 576 : 480; in ivtv_s_std_enc()
[all …]
Divtv-fileops.c156 new_stereo_mode = v4l2_ctrl_g_ctrl(itv->cxhdl.audio_mode); in ivtv_dualwatch()
167 if (v4l2_ctrl_s_ctrl(itv->cxhdl.audio_mode, new_stereo_mode)) in ivtv_dualwatch()
882 v4l2_ctrl_g_ctrl(itv->cxhdl.video_mute) | in ivtv_v4l2_close()
883 (v4l2_ctrl_g_ctrl(itv->cxhdl.video_mute_yuv) << 8)); in ivtv_v4l2_close()
Divtv-driver.h632 struct cx2341x_handler cxhdl; member
/drivers/media/video/
Dcx2341x.c1522 int cx2341x_handler_init(struct cx2341x_handler *cxhdl, in cx2341x_handler_init() argument
1525 struct v4l2_ctrl_handler *hdl = &cxhdl->hdl; in cx2341x_handler_init()
1526 u32 caps = cxhdl->capabilities; in cx2341x_handler_init()
1531 cxhdl->width = 720; in cx2341x_handler_init()
1532 cxhdl->height = 480; in cx2341x_handler_init()
1538 cxhdl->stream_type = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1542 cxhdl->stream_vbi_fmt = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1546 cxhdl->audio_sampling_freq = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1550 cxhdl->audio_encoding = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1554 cxhdl->audio_l2_bitrate = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
[all …]