Lines Matching refs:cxhdl

1574 int cx2341x_handler_init(struct cx2341x_handler *cxhdl,  in cx2341x_handler_init()  argument
1577 struct v4l2_ctrl_handler *hdl = &cxhdl->hdl; in cx2341x_handler_init()
1578 u32 caps = cxhdl->capabilities; in cx2341x_handler_init()
1583 cxhdl->width = 720; in cx2341x_handler_init()
1584 cxhdl->height = 480; in cx2341x_handler_init()
1590 cxhdl->stream_type = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1594 cxhdl->stream_vbi_fmt = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1598 cxhdl->audio_sampling_freq = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1602 cxhdl->audio_encoding = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1606 cxhdl->audio_l2_bitrate = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1610 cxhdl->audio_mode = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1614 cxhdl->audio_mode_extension = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1618 cxhdl->audio_emphasis = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1622 cxhdl->audio_crc = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1629 cxhdl->audio_ac3_bitrate = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1633 cxhdl->video_encoding = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1641 cxhdl->video_b_frames = cx2341x_ctrl_new_std(hdl, in cx2341x_handler_init()
1643 cxhdl->video_gop_size = cx2341x_ctrl_new_std(hdl, in cx2341x_handler_init()
1645 1, 34, 1, cxhdl->is_50hz ? 12 : 15); in cx2341x_handler_init()
1647 cxhdl->video_bitrate_mode = cx2341x_ctrl_new_menu(hdl, in cx2341x_handler_init()
1651 cxhdl->video_bitrate = cx2341x_ctrl_new_std(hdl, in cx2341x_handler_init()
1654 cxhdl->video_bitrate_peak = cx2341x_ctrl_new_std(hdl, in cx2341x_handler_init()
1659 cxhdl->video_mute = cx2341x_ctrl_new_std(hdl, in cx2341x_handler_init()
1661 cxhdl->video_mute_yuv = cx2341x_ctrl_new_std(hdl, in cx2341x_handler_init()
1665 cxhdl->video_spatial_filter_mode = cx2341x_ctrl_new_custom(hdl, in cx2341x_handler_init()
1670 cxhdl->video_spatial_filter = cx2341x_ctrl_new_custom(hdl, in cx2341x_handler_init()
1673 cxhdl->video_luma_spatial_filter_type = cx2341x_ctrl_new_custom(hdl, in cx2341x_handler_init()
1679 cxhdl->video_chroma_spatial_filter_type = cx2341x_ctrl_new_custom(hdl, in cx2341x_handler_init()
1685 cxhdl->video_temporal_filter_mode = cx2341x_ctrl_new_custom(hdl, in cx2341x_handler_init()
1691 cxhdl->video_temporal_filter = cx2341x_ctrl_new_custom(hdl, in cx2341x_handler_init()
1694 cxhdl->video_median_filter_type = cx2341x_ctrl_new_custom(hdl, in cx2341x_handler_init()
1700 cxhdl->video_luma_median_filter_bottom = cx2341x_ctrl_new_custom(hdl, in cx2341x_handler_init()
1703 cxhdl->video_luma_median_filter_top = cx2341x_ctrl_new_custom(hdl, in cx2341x_handler_init()
1706 cxhdl->video_chroma_median_filter_bottom = cx2341x_ctrl_new_custom(hdl, in cx2341x_handler_init()
1709 cxhdl->video_chroma_median_filter_top = cx2341x_ctrl_new_custom(hdl, in cx2341x_handler_init()
1722 v4l2_ctrl_cluster(8, &cxhdl->audio_sampling_freq); in cx2341x_handler_init()
1723 v4l2_ctrl_cluster(2, &cxhdl->video_b_frames); in cx2341x_handler_init()
1724 v4l2_ctrl_cluster(5, &cxhdl->stream_type); in cx2341x_handler_init()
1725 v4l2_ctrl_cluster(2, &cxhdl->video_mute); in cx2341x_handler_init()
1726 v4l2_ctrl_cluster(3, &cxhdl->video_spatial_filter_mode); in cx2341x_handler_init()
1727 v4l2_ctrl_cluster(2, &cxhdl->video_luma_spatial_filter_type); in cx2341x_handler_init()
1728 v4l2_ctrl_cluster(2, &cxhdl->video_spatial_filter); in cx2341x_handler_init()
1729 v4l2_ctrl_cluster(4, &cxhdl->video_luma_median_filter_top); in cx2341x_handler_init()
1735 void cx2341x_handler_set_50hz(struct cx2341x_handler *cxhdl, int is_50hz) in cx2341x_handler_set_50hz() argument
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()
1742 int cx2341x_handler_setup(struct cx2341x_handler *cxhdl) in cx2341x_handler_setup() argument
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()
1751 err = cx2341x_hdl_api(cxhdl, CX2341X_ENC_SET_FRAME_RATE, 1, cxhdl->is_50hz); in cx2341x_handler_setup()
1755 if (v4l2_ctrl_g_ctrl(cxhdl->video_encoding) == V4L2_MPEG_VIDEO_ENCODING_MPEG_1) { in cx2341x_handler_setup()
1759 err = cx2341x_hdl_api(cxhdl, CX2341X_ENC_SET_FRAME_SIZE, 2, h, w); in cx2341x_handler_setup()
1762 return v4l2_ctrl_handler_setup(&cxhdl->hdl); in cx2341x_handler_setup()
1766 void cx2341x_handler_set_busy(struct cx2341x_handler *cxhdl, int busy) in cx2341x_handler_set_busy() argument
1768 v4l2_ctrl_grab(cxhdl->audio_sampling_freq, busy); in cx2341x_handler_set_busy()
1769 v4l2_ctrl_grab(cxhdl->audio_encoding, busy); in cx2341x_handler_set_busy()
1770 v4l2_ctrl_grab(cxhdl->audio_l2_bitrate, busy); in cx2341x_handler_set_busy()
1771 v4l2_ctrl_grab(cxhdl->audio_ac3_bitrate, busy); in cx2341x_handler_set_busy()
1772 v4l2_ctrl_grab(cxhdl->stream_vbi_fmt, busy); in cx2341x_handler_set_busy()
1773 v4l2_ctrl_grab(cxhdl->stream_type, busy); in cx2341x_handler_set_busy()
1774 v4l2_ctrl_grab(cxhdl->video_bitrate_mode, busy); in cx2341x_handler_set_busy()
1775 v4l2_ctrl_grab(cxhdl->video_bitrate, busy); in cx2341x_handler_set_busy()
1776 v4l2_ctrl_grab(cxhdl->video_bitrate_peak, busy); in cx2341x_handler_set_busy()