Skip to content

Commit

Permalink
V4L/DVB: cx18/cx25840/saa7115/tvp5150: remove vbi support from s_fmt
Browse files Browse the repository at this point in the history
Now that s_fmt is no longer used for VBI format setup in subdevs, remove
the VBI support from s_fmt.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent 4a61ecb commit aae6e33
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 19 deletions.
6 changes: 0 additions & 6 deletions drivers/media/video/cx18/cx18-av-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1098,12 +1098,6 @@ static int cx18_av_s_fmt(struct v4l2_subdev *sd, struct v4l2_format *fmt)
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;
}
Expand Down
6 changes: 0 additions & 6 deletions drivers/media/video/cx25840/cx25840-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1079,12 +1079,6 @@ static int cx25840_s_fmt(struct v4l2_subdev *sd, struct v4l2_format *fmt)
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;
}
Expand Down
4 changes: 0 additions & 4 deletions drivers/media/video/saa7115.c
Original file line number Diff line number Diff line change
Expand Up @@ -1138,10 +1138,6 @@ static int saa711x_s_sliced_fmt(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_f

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;

Expand Down
3 changes: 0 additions & 3 deletions drivers/media/video/tvp5150.c
Original file line number Diff line number Diff line change
Expand Up @@ -937,9 +937,6 @@ static int tvp5150_s_sliced_fmt(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_f
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);

Expand Down

0 comments on commit aae6e33

Please sign in to comment.