Lines Matching refs:decoder
466 struct tvp514x_decoder *decoder) in tvp514x_configure() argument
472 tvp514x_write_regs(sd, decoder->tvp514x_regs); in tvp514x_configure()
494 struct tvp514x_decoder *decoder) in tvp514x_detect() argument
517 decoder->ver = rom_ver; in tvp514x_detect()
520 client->name, decoder->ver, in tvp514x_detect()
535 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_querystd() local
544 if (!decoder->streaming) { in tvp514x_querystd()
556 input_sel = decoder->input; in tvp514x_querystd()
600 *std_id &= decoder->std_list[current_std].standard.id; in tvp514x_querystd()
603 decoder->std_list[current_std].standard.name); in tvp514x_querystd()
617 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_s_std() local
620 for (i = 0; i < decoder->num_stds; i++) in tvp514x_s_std()
621 if (std_id & decoder->std_list[i].standard.id) in tvp514x_s_std()
624 if ((i == decoder->num_stds) || (i == STD_INVALID)) in tvp514x_s_std()
628 decoder->std_list[i].video_std); in tvp514x_s_std()
632 decoder->current_std = i; in tvp514x_s_std()
633 decoder->tvp514x_regs[REG_VIDEO_STD].val = in tvp514x_s_std()
634 decoder->std_list[i].video_std; in tvp514x_s_std()
637 decoder->std_list[i].standard.name); in tvp514x_s_std()
655 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_s_routing() local
679 decoder->tvp514x_regs[REG_INPUT_SEL].val = input_sel; in tvp514x_s_routing()
680 decoder->tvp514x_regs[REG_OUTPUT_FORMATTER1].val = output_sel; in tvp514x_s_routing()
681 decoder->input = input; in tvp514x_s_routing()
682 decoder->output = output; in tvp514x_s_routing()
699 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_s_ctrl() local
708 decoder->tvp514x_regs[REG_BRIGHTNESS].val = value; in tvp514x_s_ctrl()
713 decoder->tvp514x_regs[REG_CONTRAST].val = value; in tvp514x_s_ctrl()
718 decoder->tvp514x_regs[REG_SATURATION].val = value; in tvp514x_s_ctrl()
727 decoder->tvp514x_regs[REG_HUE].val = value; in tvp514x_s_ctrl()
732 decoder->tvp514x_regs[REG_AFE_GAIN_CTRL].val = value; in tvp514x_s_ctrl()
746 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_get_frame_interval() local
757 current_std = decoder->current_std; in tvp514x_get_frame_interval()
760 decoder->std_list[current_std].standard.frameperiod; in tvp514x_get_frame_interval()
770 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_set_frame_interval() local
784 current_std = decoder->current_std; in tvp514x_set_frame_interval()
787 decoder->std_list[current_std].standard.frameperiod; in tvp514x_set_frame_interval()
802 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_s_stream() local
804 if (decoder->streaming == enable) in tvp514x_s_stream()
816 decoder->streaming = enable; in tvp514x_s_stream()
822 err = tvp514x_write_regs(sd, decoder->int_seq); in tvp514x_s_stream()
828 err = tvp514x_detect(sd, decoder); in tvp514x_s_stream()
833 err = tvp514x_configure(sd, decoder); in tvp514x_s_stream()
838 decoder->streaming = enable; in tvp514x_s_stream()
892 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_get_pad_format() local
899 format->format = decoder->format; in tvp514x_get_pad_format()
904 format->format.width = tvp514x_std_list[decoder->current_std].width; in tvp514x_get_pad_format()
905 format->format.height = tvp514x_std_list[decoder->current_std].height; in tvp514x_get_pad_format()
924 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_set_pad_format() local
929 fmt->format.width != tvp514x_std_list[decoder->current_std].width || in tvp514x_set_pad_format()
930 fmt->format.height != tvp514x_std_list[decoder->current_std].height) in tvp514x_set_pad_format()
933 decoder->format = fmt->format; in tvp514x_set_pad_format()
1028 struct tvp514x_decoder *decoder; in tvp514x_probe() local
1041 decoder = devm_kzalloc(&client->dev, sizeof(*decoder), GFP_KERNEL); in tvp514x_probe()
1042 if (!decoder) in tvp514x_probe()
1046 *decoder = tvp514x_dev; in tvp514x_probe()
1048 memcpy(decoder->tvp514x_regs, tvp514x_reg_list_default, in tvp514x_probe()
1051 decoder->int_seq = i2c_get_match_data(client); in tvp514x_probe()
1054 decoder->pdata = pdata; in tvp514x_probe()
1061 decoder->tvp514x_regs[REG_OUTPUT_FORMATTER2].val |= in tvp514x_probe()
1062 (decoder->pdata->clk_polarity << 1); in tvp514x_probe()
1063 decoder->tvp514x_regs[REG_SYNC_CONTROL].val |= in tvp514x_probe()
1064 ((decoder->pdata->hs_polarity << 2) | in tvp514x_probe()
1065 (decoder->pdata->vs_polarity << 3)); in tvp514x_probe()
1067 decoder->tvp514x_regs[REG_VIDEO_STD].val = in tvp514x_probe()
1071 sd = &decoder->sd; in tvp514x_probe()
1075 decoder->pad.flags = MEDIA_PAD_FL_SOURCE; in tvp514x_probe()
1076 decoder->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; in tvp514x_probe()
1077 decoder->sd.entity.function = MEDIA_ENT_F_ATV_DECODER; in tvp514x_probe()
1079 ret = media_entity_pads_init(&decoder->sd.entity, 1, &decoder->pad); in tvp514x_probe()
1086 v4l2_ctrl_handler_init(&decoder->hdl, 5); in tvp514x_probe()
1087 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1089 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1091 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1093 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1095 v4l2_ctrl_new_std(&decoder->hdl, &tvp514x_ctrl_ops, in tvp514x_probe()
1097 sd->ctrl_handler = &decoder->hdl; in tvp514x_probe()
1098 if (decoder->hdl.error) { in tvp514x_probe()
1099 ret = decoder->hdl.error; in tvp514x_probe()
1102 v4l2_ctrl_handler_setup(&decoder->hdl); in tvp514x_probe()
1104 ret = v4l2_async_register_subdev(&decoder->sd); in tvp514x_probe()
1110 v4l2_ctrl_handler_free(&decoder->hdl); in tvp514x_probe()
1111 media_entity_cleanup(&decoder->sd.entity); in tvp514x_probe()
1126 struct tvp514x_decoder *decoder = to_decoder(sd); in tvp514x_remove() local
1128 v4l2_async_unregister_subdev(&decoder->sd); in tvp514x_remove()
1129 media_entity_cleanup(&decoder->sd.entity); in tvp514x_remove()
1130 v4l2_ctrl_handler_free(&decoder->hdl); in tvp514x_remove()