Lines Matching refs:vf
315 static int pvr2_s_frequency(struct file *file, void *priv, const struct v4l2_frequency *vf)
332 if (vf->type == V4L2_TUNER_RADIO) {
339 fv = vf->frequency;
350 static int pvr2_g_frequency(struct file *file, void *priv, struct v4l2_frequency *vf)
371 vf->type = V4L2_TUNER_RADIO;
373 vf->type = V4L2_TUNER_ANALOG_TV;
378 vf->frequency = val;
392 static int pvr2_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *vf)
398 memcpy(vf, &pvr_format[PVR_FORMAT_PIX], sizeof(struct v4l2_format));
403 vf->fmt.pix.width = val;
408 vf->fmt.pix.height = val;
412 static int pvr2_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *vf)
418 int h = vf->fmt.pix.height;
419 int w = vf->fmt.pix.width;
443 memcpy(vf, &pvr_format[PVR_FORMAT_PIX],
445 vf->fmt.pix.width = w;
446 vf->fmt.pix.height = h;
450 static int pvr2_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *vf)
455 int ret = pvr2_try_fmt_vid_cap(file, fh, vf);
461 pvr2_ctrl_set_value(hcp, vf->fmt.pix.width);
462 pvr2_ctrl_set_value(vcp, vf->fmt.pix.height);