diff options
author | Mauro Carvalho Chehab <devnull@localhost> | 2005-10-17 21:18:42 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <devnull@localhost> | 2005-10-17 21:18:42 +0000 |
commit | 6571d469892fabdf7854dc0e6780900640263c7a (patch) | |
tree | 3c02433bd4c153b2e76e57fac13b99dae6739e0c /linux/drivers/media/video | |
parent | 1b00938af1b3c6702a96ecbf1d6770558d6b1a33 (diff) | |
download | mediapointer-dvb-s2-6571d469892fabdf7854dc0e6780900640263c7a.tar.gz mediapointer-dvb-s2-6571d469892fabdf7854dc0e6780900640263c7a.tar.bz2 |
- Some changes to allow compiling cx88 and saa7134 without
V4L1 support.
- This patch will help obsoleting V4L1 API.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-video.c | 13 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-video.c | 10 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134.h | 4 |
3 files changed, 20 insertions, 7 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-video.c b/linux/drivers/media/video/cx88/cx88-video.c index 23ac5967e..2a7630ec5 100644 --- a/linux/drivers/media/video/cx88/cx88-video.c +++ b/linux/drivers/media/video/cx88/cx88-video.c @@ -1,5 +1,5 @@ /* - * $Id: cx88-video.c,v 1.97 2005/10/16 12:13:58 mchehab Exp $ + * $Id: cx88-video.c,v 1.98 2005/10/17 21:18:42 mchehab Exp $ * * device driver for Conexant 2388x based TV cards * video4linux video interface @@ -38,6 +38,11 @@ #include "cx88.h" +#if 1 +/* Include V4L1 specific functions. Should be removed soon */ +#include <linux/videodev.h> +#endif + MODULE_DESCRIPTION("v4l2 driver module for cx2388x based TV cards"); MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]"); MODULE_LICENSE("GPL"); @@ -1444,7 +1449,7 @@ static int video_do_ioctl(struct inode *inode, struct file *file, struct v4l2_format *f = arg; return cx8800_try_fmt(dev,fh,f); } - +#ifdef HAVE_V4L1 /* --- streaming capture ------------------------------------- */ case VIDIOCGMBUF: { @@ -1470,6 +1475,7 @@ static int video_do_ioctl(struct inode *inode, struct file *file, } return 0; } +#endif case VIDIOC_REQBUFS: return videobuf_reqbufs(get_queue(fh), arg); @@ -1501,7 +1507,6 @@ static int video_do_ioctl(struct inode *inode, struct file *file, res_free(dev,fh,res); return 0; } - default: return cx88_do_ioctl( inode, file, fh->radio, core, cmd, arg, video_do_ioctl ); } @@ -1824,6 +1829,7 @@ static int radio_do_ioctl(struct inode *inode, struct file *file, *id = 0; return 0; } +#ifdef HAVE_V4L1 case VIDIOCSTUNER: { struct video_tuner *v = arg; @@ -1834,6 +1840,7 @@ static int radio_do_ioctl(struct inode *inode, struct file *file, cx88_call_i2c_clients(core,VIDIOCSTUNER,v); return 0; } +#endif case VIDIOC_S_TUNER: { struct v4l2_tuner *t = arg; diff --git a/linux/drivers/media/video/saa7134/saa7134-video.c b/linux/drivers/media/video/saa7134/saa7134-video.c index 6c272a621..bca77d02b 100644 --- a/linux/drivers/media/video/saa7134/saa7134-video.c +++ b/linux/drivers/media/video/saa7134/saa7134-video.c @@ -1,5 +1,5 @@ /* - * $Id: saa7134-video.c,v 1.44 2005/10/16 12:34:29 mchehab Exp $ + * $Id: saa7134-video.c,v 1.45 2005/10/17 21:18:42 mchehab Exp $ * * device driver for philips saa7134 based TV cards * video4linux video interface @@ -32,6 +32,11 @@ #include "saa7134-reg.h" #include "saa7134.h" +#if 1 +/* Include V4L1 specific functions. Should be removed soon */ +#include <linux/videodev.h> +#endif + /* ------------------------------------------------------------------ */ static unsigned int video_debug = 0; @@ -2069,7 +2074,7 @@ static int video_do_ioctl(struct inode *inode, struct file *file, struct v4l2_format *f = arg; return saa7134_try_fmt(dev,fh,f); } - +#ifdef HAVE_V4L1 case VIDIOCGMBUF: { struct video_mbuf *mbuf = arg; @@ -2094,6 +2099,7 @@ static int video_do_ioctl(struct inode *inode, struct file *file, } return 0; } +#endif case VIDIOC_REQBUFS: return videobuf_reqbufs(saa7134_queue(fh),arg); diff --git a/linux/drivers/media/video/saa7134/saa7134.h b/linux/drivers/media/video/saa7134/saa7134.h index 88f91a6a2..805bffc37 100644 --- a/linux/drivers/media/video/saa7134/saa7134.h +++ b/linux/drivers/media/video/saa7134/saa7134.h @@ -1,5 +1,5 @@ /* - * $Id: saa7134.h,v 1.67 2005/10/16 12:13:58 mchehab Exp $ + * $Id: saa7134.h,v 1.68 2005/10/17 21:18:42 mchehab Exp $ * * v4l2 device driver for philips saa7134 based TV cards * @@ -25,7 +25,7 @@ #include <linux/pci.h> #include <linux/i2c.h> -#include <linux/videodev.h> +#include <linux/videodev2.h> #include <linux/kdev_t.h> #include <linux/input.h> #include <linux/notifier.h> |