diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-10-03 10:42:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-13 07:07:55 -0400 |
commit | 3c7b933bea2ee380d54b57b99dee42b1726a4eaa (patch) | |
tree | 484015cf225e16a272b6a0dfce47f33c03f85ce8 /drivers/media/video | |
parent | d4f59de43ee5dd632d4068b6486e45802e6e853d (diff) |
V4L/DVB (9160): v4l: remove vidioc_enum_fmt_vbi_cap
Remove the vidioc_enum_fmt_vbi_cap ops: it was scheduled for removal in
2.6.28 since the v4l2 specification says that V4L2_BUF_TYPE_VBI_CAPTURE should
not support VIDIOC_ENUM_FMT. It's also pretty pointless.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-driver.c | 13 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134-video.c | 13 | ||||
-rw-r--r-- | drivers/media/video/v4l2-ioctl.c | 12 |
3 files changed, 0 insertions, 38 deletions
diff --git a/drivers/media/video/bt8xx/bttv-driver.c b/drivers/media/video/bt8xx/bttv-driver.c index 9bb247cdc28b..5858bf5ff41c 100644 --- a/drivers/media/video/bt8xx/bttv-driver.c +++ b/drivers/media/video/bt8xx/bttv-driver.c | |||
@@ -2664,18 +2664,6 @@ static int bttv_querycap(struct file *file, void *priv, | |||
2664 | return 0; | 2664 | return 0; |
2665 | } | 2665 | } |
2666 | 2666 | ||
2667 | static int bttv_enum_fmt_vbi_cap(struct file *file, void *priv, | ||
2668 | struct v4l2_fmtdesc *f) | ||
2669 | { | ||
2670 | if (0 != f->index) | ||
2671 | return -EINVAL; | ||
2672 | |||
2673 | f->pixelformat = V4L2_PIX_FMT_GREY; | ||
2674 | strcpy(f->description, "vbi data"); | ||
2675 | |||
2676 | return 0; | ||
2677 | } | ||
2678 | |||
2679 | static int bttv_enum_fmt_cap_ovr(struct v4l2_fmtdesc *f) | 2667 | static int bttv_enum_fmt_cap_ovr(struct v4l2_fmtdesc *f) |
2680 | { | 2668 | { |
2681 | int index = -1, i; | 2669 | int index = -1, i; |
@@ -3381,7 +3369,6 @@ static const struct v4l2_ioctl_ops bttv_ioctl_ops = { | |||
3381 | .vidioc_g_fmt_vid_overlay = bttv_g_fmt_vid_overlay, | 3369 | .vidioc_g_fmt_vid_overlay = bttv_g_fmt_vid_overlay, |
3382 | .vidioc_try_fmt_vid_overlay = bttv_try_fmt_vid_overlay, | 3370 | .vidioc_try_fmt_vid_overlay = bttv_try_fmt_vid_overlay, |
3383 | .vidioc_s_fmt_vid_overlay = bttv_s_fmt_vid_overlay, | 3371 | .vidioc_s_fmt_vid_overlay = bttv_s_fmt_vid_overlay, |
3384 | .vidioc_enum_fmt_vbi_cap = bttv_enum_fmt_vbi_cap, | ||
3385 | .vidioc_g_fmt_vbi_cap = bttv_g_fmt_vbi_cap, | 3372 | .vidioc_g_fmt_vbi_cap = bttv_g_fmt_vbi_cap, |
3386 | .vidioc_try_fmt_vbi_cap = bttv_try_fmt_vbi_cap, | 3373 | .vidioc_try_fmt_vbi_cap = bttv_try_fmt_vbi_cap, |
3387 | .vidioc_s_fmt_vbi_cap = bttv_s_fmt_vbi_cap, | 3374 | .vidioc_s_fmt_vbi_cap = bttv_s_fmt_vbi_cap, |
diff --git a/drivers/media/video/saa7134/saa7134-video.c b/drivers/media/video/saa7134/saa7134-video.c index 9aafd5844191..02bb6747a39c 100644 --- a/drivers/media/video/saa7134/saa7134-video.c +++ b/drivers/media/video/saa7134/saa7134-video.c | |||
@@ -2110,18 +2110,6 @@ static int saa7134_enum_fmt_vid_overlay(struct file *file, void *priv, | |||
2110 | return 0; | 2110 | return 0; |
2111 | } | 2111 | } |
2112 | 2112 | ||
2113 | static int saa7134_enum_fmt_vbi_cap(struct file *file, void *priv, | ||
2114 | struct v4l2_fmtdesc *f) | ||
2115 | { | ||
2116 | if (0 != f->index) | ||
2117 | return -EINVAL; | ||
2118 | |||
2119 | f->pixelformat = V4L2_PIX_FMT_GREY; | ||
2120 | strcpy(f->description, "vbi data"); | ||
2121 | |||
2122 | return 0; | ||
2123 | } | ||
2124 | |||
2125 | static int saa7134_g_fbuf(struct file *file, void *f, | 2113 | static int saa7134_g_fbuf(struct file *file, void *f, |
2126 | struct v4l2_framebuffer *fb) | 2114 | struct v4l2_framebuffer *fb) |
2127 | { | 2115 | { |
@@ -2412,7 +2400,6 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = { | |||
2412 | .vidioc_g_fmt_vid_overlay = saa7134_g_fmt_vid_overlay, | 2400 | .vidioc_g_fmt_vid_overlay = saa7134_g_fmt_vid_overlay, |
2413 | .vidioc_try_fmt_vid_overlay = saa7134_try_fmt_vid_overlay, | 2401 | .vidioc_try_fmt_vid_overlay = saa7134_try_fmt_vid_overlay, |
2414 | .vidioc_s_fmt_vid_overlay = saa7134_s_fmt_vid_overlay, | 2402 | .vidioc_s_fmt_vid_overlay = saa7134_s_fmt_vid_overlay, |
2415 | .vidioc_enum_fmt_vbi_cap = saa7134_enum_fmt_vbi_cap, | ||
2416 | .vidioc_g_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, | 2403 | .vidioc_g_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, |
2417 | .vidioc_try_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, | 2404 | .vidioc_try_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, |
2418 | .vidioc_s_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, | 2405 | .vidioc_s_fmt_vbi_cap = saa7134_try_get_set_fmt_vbi_cap, |
diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c index 140ef92c19c1..155c9d77a463 100644 --- a/drivers/media/video/v4l2-ioctl.c +++ b/drivers/media/video/v4l2-ioctl.c | |||
@@ -746,18 +746,6 @@ static int __video_do_ioctl(struct inode *inode, struct file *file, | |||
746 | ret = ops->vidioc_enum_fmt_vid_overlay(file, | 746 | ret = ops->vidioc_enum_fmt_vid_overlay(file, |
747 | fh, f); | 747 | fh, f); |
748 | break; | 748 | break; |
749 | #if 1 | ||
750 | /* V4L2_BUF_TYPE_VBI_CAPTURE should not support VIDIOC_ENUM_FMT | ||
751 | * according to the spec. The bttv and saa7134 drivers support | ||
752 | * it though, so just warn that this is deprecated and will be | ||
753 | * removed in the near future. */ | ||
754 | case V4L2_BUF_TYPE_VBI_CAPTURE: | ||
755 | if (ops->vidioc_enum_fmt_vbi_cap) { | ||
756 | printk(KERN_WARNING "vidioc_enum_fmt_vbi_cap will be removed in 2.6.28!\n"); | ||
757 | ret = ops->vidioc_enum_fmt_vbi_cap(file, fh, f); | ||
758 | } | ||
759 | break; | ||
760 | #endif | ||
761 | case V4L2_BUF_TYPE_VIDEO_OUTPUT: | 749 | case V4L2_BUF_TYPE_VIDEO_OUTPUT: |
762 | if (ops->vidioc_enum_fmt_vid_out) | 750 | if (ops->vidioc_enum_fmt_vid_out) |
763 | ret = ops->vidioc_enum_fmt_vid_out(file, fh, f); | 751 | ret = ops->vidioc_enum_fmt_vid_out(file, fh, f); |