• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/media/video/

Lines Matching refs:decoder

4  * TI TVP5146/47 decoder driver
57 MODULE_DESCRIPTION("TVP514X linux decoder driver");
85 * struct tvp514x_decoder - TVP5146/47 decoder object
90 * @streaming: TVP5146/47 decoder streaming - enabled or disabled.
287 * Write a value to a register in an TVP5146/47 decoder device.
429 * @decoder: ptr to tvp514x_decoder structure
434 struct tvp514x_decoder *decoder)
440 tvp514x_write_regs(sd, decoder->tvp514x_regs);
453 * @decoder: pointer to tvp514x_decoder structure
462 struct tvp514x_decoder *decoder)
485 decoder->ver = rom_ver;
488 client->name, decoder->ver,
494 * tvp514x_querystd() - V4L2 decoder interface handler for querystd
503 struct tvp514x_decoder *decoder = to_decoder(sd);
518 input_sel = decoder->input;
560 *std_id = decoder->std_list[current_std].standard.id;
563 decoder->std_list[current_std].standard.name);
568 * tvp514x_s_std() - V4L2 decoder interface handler for s_std
577 struct tvp514x_decoder *decoder = to_decoder(sd);
580 for (i = 0; i < decoder->num_stds; i++)
581 if (std_id & decoder->std_list[i].standard.id)
584 if ((i == decoder->num_stds) || (i == STD_INVALID))
588 decoder->std_list[i].video_std);
592 decoder->current_std = i;
593 decoder->tvp514x_regs[REG_VIDEO_STD].val =
594 decoder->std_list[i].video_std;
597 decoder->std_list[i].standard.name);
602 * tvp514x_s_routing() - V4L2 decoder interface handler for s_routing
615 struct tvp514x_decoder *decoder = to_decoder(sd);
635 if (!decoder->streaming)
652 decoder->tvp514x_regs[REG_INPUT_SEL].val = input_sel;
653 decoder->tvp514x_regs[REG_OUTPUT_FORMATTER1].val = output_sel;
699 /* Allow decoder to sync up with new input */
712 decoder->input = input;
713 decoder->output = output;
721 * tvp514x_queryctrl() - V4L2 decoder interface handler for queryctrl
776 * tvp514x_g_ctrl() - V4L2 decoder interface handler for g_ctrl
781 * value from the decoder. Otherwise, returns -EINVAL if the control is not
787 struct tvp514x_decoder *decoder = to_decoder(sd);
794 ctrl->value = decoder->tvp514x_regs[REG_BRIGHTNESS].val;
797 ctrl->value = decoder->tvp514x_regs[REG_CONTRAST].val;
800 ctrl->value = decoder->tvp514x_regs[REG_SATURATION].val;
803 ctrl->value = decoder->tvp514x_regs[REG_HUE].val;
813 ctrl->value = decoder->tvp514x_regs[REG_AFE_GAIN_CTRL].val;
831 * tvp514x_s_ctrl() - V4L2 decoder interface handler for s_ctrl
841 struct tvp514x_decoder *decoder = to_decoder(sd);
861 decoder->tvp514x_regs[REG_BRIGHTNESS].val = value;
873 decoder->tvp514x_regs[REG_CONTRAST].val = value;
885 decoder->tvp514x_regs[REG_SATURATION].val = value;
902 decoder->tvp514x_regs[REG_HUE].val = value;
918 decoder->tvp514x_regs[REG_AFE_GAIN_CTRL].val = value;
932 * tvp514x_enum_fmt_cap() - V4L2 decoder interface handler for enum_fmt
957 * tvp514x_fmt_cap() - V4L2 decoder interface handler for try/s/g_fmt
967 struct tvp514x_decoder *decoder = to_decoder(sd);
980 current_std = decoder->current_std;
983 pix->width = decoder->std_list[current_std].width;
984 pix->height = decoder->std_list[current_std].height;
999 * tvp514x_g_parm() - V4L2 decoder interface handler for g_parm
1003 * Returns the decoder's video CAPTURE parameters.
1008 struct tvp514x_decoder *decoder = to_decoder(sd);
1020 current_std = decoder->current_std;
1025 decoder->std_list[current_std].standard.frameperiod;
1031 * tvp514x_s_parm() - V4L2 decoder interface handler for s_parm
1035 * Configures the decoder to use the input parameters, if possible. If
1041 struct tvp514x_decoder *decoder = to_decoder(sd);
1055 current_std = decoder->current_std;
1058 decoder->std_list[current_std].standard.frameperiod;
1064 * tvp514x_s_stream() - V4L2 decoder i/f handler for s_stream
1074 struct tvp514x_decoder *decoder = to_decoder(sd);
1076 if (decoder->streaming == enable)
1085 v4l2_err(sd, "Unable to turn off decoder\n");
1088 decoder->streaming = enable;
1099 v4l2_err(sd, "Unable to turn on decoder\n");
1103 err = tvp514x_detect(sd, decoder);
1105 v4l2_err(sd, "Unable to detect decoder\n");
1108 err = tvp514x_configure(sd, decoder);
1110 v4l2_err(sd, "Unable to configure decoder\n");
1113 decoder->streaming = enable;
1157 * tvp514x_probe() - decoder driver i2c probe handler
1161 * Register decoder as an i2c client device and V4L2
1167 struct tvp514x_decoder *decoder;
1179 decoder = kzalloc(sizeof(*decoder), GFP_KERNEL);
1180 if (!decoder)
1184 *decoder = tvp514x_dev;
1186 memcpy(decoder->tvp514x_regs, tvp514x_reg_list_default,
1190 decoder->pdata = client->dev.platform_data;
1197 decoder->tvp514x_regs[REG_OUTPUT_FORMATTER2].val |=
1198 (decoder->pdata->clk_polarity << 1);
1199 decoder->tvp514x_regs[REG_SYNC_CONTROL].val |=
1200 ((decoder->pdata->hs_polarity << 2) |
1201 (decoder->pdata->vs_polarity << 3));
1203 decoder->tvp514x_regs[REG_VIDEO_STD].val =
1207 sd = &decoder->sd;
1210 v4l2_info(sd, "%s decoder driver registered !!\n", sd->name);
1217 * tvp514x_remove() - decoder driver i2c remove handler
1220 * Unregister decoder as an i2c client device and V4L2
1226 struct tvp514x_decoder *decoder = to_decoder(sd);
1229 kfree(decoder);