cx18_av_write(cx, 0x41e, 0x8 | filter);
break;
- case V4L2_BUF_TYPE_SLICED_VBI_CAPTURE:
- return cx18_av_s_sliced_fmt(sd, &fmt->fmt.sliced);
-
- case V4L2_BUF_TYPE_VBI_CAPTURE:
- return cx18_av_s_raw_fmt(sd, &fmt->fmt.vbi);
-
default:
return -EINVAL;
}
cx25840_write(client, 0x41e, 0x8 | filter);
break;
- case V4L2_BUF_TYPE_SLICED_VBI_CAPTURE:
- return cx25840_s_sliced_fmt(sd, &fmt->fmt.sliced);
-
- case V4L2_BUF_TYPE_VBI_CAPTURE:
- return cx25840_s_raw_fmt(sd, &fmt->fmt.vbi);
-
default:
return -EINVAL;
}
static int saa711x_s_fmt(struct v4l2_subdev *sd, struct v4l2_format *fmt)
{
- if (fmt->type == V4L2_BUF_TYPE_SLICED_VBI_CAPTURE)
- return saa711x_s_sliced_fmt(sd, &fmt->fmt.sliced);
- if (fmt->type == V4L2_BUF_TYPE_VBI_CAPTURE)
- return saa711x_s_raw_fmt(sd, &fmt->fmt.vbi);
if (fmt->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
return -EINVAL;
static int tvp5150_s_fmt(struct v4l2_subdev *sd, struct v4l2_format *fmt)
{
switch (fmt->type) {
- case V4L2_BUF_TYPE_VBI_CAPTURE:
- return tvp5150_s_raw_fmt(sd, &fmt->fmt.vbi);
-
case V4L2_BUF_TYPE_SLICED_VBI_CAPTURE:
return tvp5150_s_sliced_fmt(sd, &fmt->fmt.sliced);