Lines Matching refs:decoder
474 struct tvp514x_decoder *decoder) in tvp514x_configure() argument
480 tvp514x_write_regs(sd, decoder->tvp514x_regs); in tvp514x_configure()
502 struct tvp514x_decoder *decoder) in tvp514x_detect() argument
525 decoder->ver = rom_ver; in tvp514x_detect()
528 client->name, decoder->ver, in tvp514x_detect()
543 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_querystd() local
552 if (!decoder->streaming) { in tvp514x_querystd()
564 input_sel = decoder->input; in tvp514x_querystd()
608 *std_id &= decoder->std_list[current_std].standard.id; in tvp514x_querystd()
611 decoder->std_list[current_std].standard.name); in tvp514x_querystd()
625 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_s_std() local
628 for (i = 0; i < decoder->num_stds; i++) in tvp514x_s_std()
629 if (std_id & decoder->std_list[i].standard.id) in tvp514x_s_std()
632 if ((i == decoder->num_stds) || (i == STD_INVALID)) in tvp514x_s_std()
636 decoder->std_list[i].video_std); in tvp514x_s_std()
640 decoder->current_std = i; in tvp514x_s_std()
641 decoder->tvp514x_regs[REG_VIDEO_STD].val = in tvp514x_s_std()
642 decoder->std_list[i].video_std; in tvp514x_s_std()
645 decoder->std_list[i].standard.name); in tvp514x_s_std()
663 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_s_routing() local
687 decoder->tvp514x_regs[REG_INPUT_SEL].val = input_sel; in tvp514x_s_routing()
688 decoder->tvp514x_regs[REG_OUTPUT_FORMATTER1].val = output_sel; in tvp514x_s_routing()
689 decoder->input = input; in tvp514x_s_routing()
690 decoder->output = output; in tvp514x_s_routing()
707 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_s_ctrl() local
716 decoder->tvp514x_regs[REG_BRIGHTNESS].val = value; in tvp514x_s_ctrl()
721 decoder->tvp514x_regs[REG_CONTRAST].val = value; in tvp514x_s_ctrl()
726 decoder->tvp514x_regs[REG_SATURATION].val = value; in tvp514x_s_ctrl()
735 decoder->tvp514x_regs[REG_HUE].val = value; in tvp514x_s_ctrl()
740 decoder->tvp514x_regs[REG_AFE_GAIN_CTRL].val = value; in tvp514x_s_ctrl()
778 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_mbus_fmt() local
785 current_std = decoder->current_std; in tvp514x_mbus_fmt()
788 f->width = decoder->std_list[current_std].width; in tvp514x_mbus_fmt()
789 f->height = decoder->std_list[current_std].height; in tvp514x_mbus_fmt()
807 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_g_parm() local
819 current_std = decoder->current_std; in tvp514x_g_parm()
824 decoder->std_list[current_std].standard.frameperiod; in tvp514x_g_parm()
840 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_s_parm() local
854 current_std = decoder->current_std; in tvp514x_s_parm()
857 decoder->std_list[current_std].standard.frameperiod; in tvp514x_s_parm()
872 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_s_stream() local
874 if (decoder->streaming == enable) in tvp514x_s_stream()
886 decoder->streaming = enable; in tvp514x_s_stream()
892 err = tvp514x_write_regs(sd, decoder->int_seq); in tvp514x_s_stream()
898 err = tvp514x_detect(sd, decoder); in tvp514x_s_stream()
903 err = tvp514x_configure(sd, decoder); in tvp514x_s_stream()
908 decoder->streaming = enable; in tvp514x_s_stream()
962 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_get_pad_format() local
966 format->format = decoder->format; in tvp514x_get_pad_format()
971 format->format.width = tvp514x_std_list[decoder->current_std].width; in tvp514x_get_pad_format()
972 format->format.height = tvp514x_std_list[decoder->current_std].height; in tvp514x_get_pad_format()
991 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_set_pad_format() local
996 fmt->format.width != tvp514x_std_list[decoder->current_std].width || in tvp514x_set_pad_format()
997 fmt->format.height != tvp514x_std_list[decoder->current_std].height) in tvp514x_set_pad_format()
1000 decoder->format = fmt->format; in tvp514x_set_pad_format()
1109 struct tvp514x_decoder *decoder; in tvp514x_probe() local
1122 decoder = devm_kzalloc(&client->dev, sizeof(*decoder), GFP_KERNEL); in tvp514x_probe()
1123 if (!decoder) in tvp514x_probe()
1127 *decoder = tvp514x_dev; in tvp514x_probe()
1129 memcpy(decoder->tvp514x_regs, tvp514x_reg_list_default, in tvp514x_probe()
1132 decoder->int_seq = (struct tvp514x_reg *)id->driver_data; in tvp514x_probe()
1135 decoder->pdata = pdata; in tvp514x_probe()
1142 decoder->tvp514x_regs[REG_OUTPUT_FORMATTER2].val |= in tvp514x_probe()
1143 (decoder->pdata->clk_polarity << 1); in tvp514x_probe()
1144 decoder->tvp514x_regs[REG_SYNC_CONTROL].val |= in tvp514x_probe()
1145 ((decoder->pdata->hs_polarity << 2) | in tvp514x_probe()
1146 (decoder->pdata->vs_polarity << 3)); in tvp514x_probe()
1148 decoder->tvp514x_regs[REG_VIDEO_STD].val = in tvp514x_probe()
1152 sd = &decoder->sd; in tvp514x_probe()
1156 decoder->pad.flags = MEDIA_PAD_FL_SOURCE; in tvp514x_probe()
1157 decoder->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; in tvp514x_probe()
1158 decoder->sd.entity.flags |= MEDIA_ENT_T_V4L2_SUBDEV_DECODER; in tvp514x_probe()
1160 ret = media_entity_init(&decoder->sd.entity, 1, &decoder->pad, 0); in tvp514x_probe()
1167 v4l2_ctrl_handler_init(&decoder->hdl, 5); in tvp514x_probe()
1168 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1170 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1172 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1174 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1176 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1178 sd->ctrl_handler = &decoder->hdl; in tvp514x_probe()
1179 if (decoder->hdl.error) { in tvp514x_probe()
1180 ret = decoder->hdl.error; in tvp514x_probe()
1183 v4l2_ctrl_handler_setup(&decoder->hdl); in tvp514x_probe()
1185 ret = v4l2_async_register_subdev(&decoder->sd); in tvp514x_probe()
1191 v4l2_ctrl_handler_free(&decoder->hdl); in tvp514x_probe()
1193 media_entity_cleanup(&decoder->sd.entity); in tvp514x_probe()
1209 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_remove() local
1211 v4l2_async_unregister_subdev(&decoder->sd); in tvp514x_remove()
1213 media_entity_cleanup(&decoder->sd.entity); in tvp514x_remove()
1215 v4l2_ctrl_handler_free(&decoder->hdl); in tvp514x_remove()