diff options
author | Mauro Carvalho Chehab <devnull@localhost> | 2005-12-10 01:43:25 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <devnull@localhost> | 2005-12-10 01:43:25 +0000 |
commit | f925c632b4f136d1d154174041f6b322149e3682 (patch) | |
tree | 2e3f52ce73a9ca78c5bb7a606e4a2885963f7659 /linux/drivers/media/video | |
parent | ac63d03ba48d965f169ed2595ecc2ad7b8694e95 (diff) | |
download | mediapointer-dvb-s2-f925c632b4f136d1d154174041f6b322149e3682.tar.gz mediapointer-dvb-s2-f925c632b4f136d1d154174041f6b322149e3682.tar.bz2 |
make tree to compile against kernel 2.5.31
kernel-sync
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/compat_ioctl32.c | 4 | ||||
-rw-r--r-- | linux/drivers/media/video/cs53l32a.c | 3 | ||||
-rw-r--r-- | linux/drivers/media/video/msp3400-driver.c | 4 | ||||
-rw-r--r-- | linux/drivers/media/video/msp3400.c | 4 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7115.c | 3 | ||||
-rw-r--r-- | linux/drivers/media/video/saa711x.c | 5 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7127.c | 3 | ||||
-rw-r--r-- | linux/drivers/media/video/saa7134/saa7134-oss.c | 14 | ||||
-rw-r--r-- | linux/drivers/media/video/wm8775.c | 3 |
9 files changed, 39 insertions, 4 deletions
diff --git a/linux/drivers/media/video/compat_ioctl32.c b/linux/drivers/media/video/compat_ioctl32.c index cfa1c44d5..467a6d44b 100644 --- a/linux/drivers/media/video/compat_ioctl32.c +++ b/linux/drivers/media/video/compat_ioctl32.c @@ -12,9 +12,10 @@ * ioctls. */ +#include "compat.h" +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,11) #include <linux/config.h> #include <linux/compat.h> -#include "compat.h" #include <linux/videodev.h> #include <linux/videodev2.h> #include <linux/module.h> @@ -731,3 +732,4 @@ long v4l_compat_ioctl32(struct file *file, unsigned int cmd, unsigned long arg) EXPORT_SYMBOL_GPL(v4l_compat_ioctl32); MODULE_LICENSE("GPL"); +#endif diff --git a/linux/drivers/media/video/cs53l32a.c b/linux/drivers/media/video/cs53l32a.c index e43986b74..2d3ee491e 100644 --- a/linux/drivers/media/video/cs53l32a.c +++ b/linux/drivers/media/video/cs53l32a.c @@ -29,6 +29,9 @@ #include <linux/i2c-id.h> #include <linux/videodev.h> #include <media/audiochip.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) +#include <media/i2c-compat.h> +#endif MODULE_DESCRIPTION("i2c device driver for cs53l32a Audio ADC"); MODULE_AUTHOR("Martin Vaughan"); diff --git a/linux/drivers/media/video/msp3400-driver.c b/linux/drivers/media/video/msp3400-driver.c index 4eabc2ef8..ff49d022f 100644 --- a/linux/drivers/media/video/msp3400-driver.c +++ b/linux/drivers/media/video/msp3400-driver.c @@ -2456,9 +2456,11 @@ static int msp_detach(struct i2c_client *client) /* shutdown control thread */ if (msp->kthread) { - msp->restart = 1; #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) DECLARE_MUTEX_LOCKED(sem); +#endif + msp->restart = 1; +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) /* shutdown control thread */ msp->notify = &sem; msp->rmmod = 1; diff --git a/linux/drivers/media/video/msp3400.c b/linux/drivers/media/video/msp3400.c index 4eabc2ef8..ff49d022f 100644 --- a/linux/drivers/media/video/msp3400.c +++ b/linux/drivers/media/video/msp3400.c @@ -2456,9 +2456,11 @@ static int msp_detach(struct i2c_client *client) /* shutdown control thread */ if (msp->kthread) { - msp->restart = 1; #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) DECLARE_MUTEX_LOCKED(sem); +#endif + msp->restart = 1; +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) /* shutdown control thread */ msp->notify = &sem; msp->rmmod = 1; diff --git a/linux/drivers/media/video/saa7115.c b/linux/drivers/media/video/saa7115.c index 434e33def..74b105fc9 100644 --- a/linux/drivers/media/video/saa7115.c +++ b/linux/drivers/media/video/saa7115.c @@ -40,6 +40,9 @@ #include <linux/i2c.h> #include <linux/videodev2.h> #include <media/v4l2-common.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) +#include <media/i2c-compat.h> +#endif MODULE_DESCRIPTION("Philips SAA7114/SAA7115 video decoder driver"); MODULE_AUTHOR("Maxim Yevtyushkin, Kevin Thayer, Chris Kennedy, Hans Verkuil"); diff --git a/linux/drivers/media/video/saa711x.c b/linux/drivers/media/video/saa711x.c index aeca5bdbd..0ba7c6fd9 100644 --- a/linux/drivers/media/video/saa711x.c +++ b/linux/drivers/media/video/saa711x.c @@ -47,6 +47,9 @@ MODULE_LICENSE("GPL"); #include <linux/i2c.h> #include <linux/i2c-dev.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) +#include <media/i2c-compat.h> +#endif #define I2C_NAME(s) (s)->name @@ -578,7 +581,9 @@ saa711x_detach_client (struct i2c_client *client) /* ----------------------------------------------------------------------- */ static struct i2c_driver i2c_driver_saa711x = { +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) .owner = THIS_MODULE, +#endif .name = "saa711x", .id = I2C_DRIVERID_SAA711X, diff --git a/linux/drivers/media/video/saa7127.c b/linux/drivers/media/video/saa7127.c index 0dcc4948b..b672c60d7 100644 --- a/linux/drivers/media/video/saa7127.c +++ b/linux/drivers/media/video/saa7127.c @@ -55,6 +55,9 @@ #include <linux/i2c.h> #include <linux/videodev2.h> #include <media/v4l2-common.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) +#include <media/i2c-compat.h> +#endif static int debug = 0; static int test_image = 0; diff --git a/linux/drivers/media/video/saa7134/saa7134-oss.c b/linux/drivers/media/video/saa7134/saa7134-oss.c index beab9a86a..a2df1dff7 100644 --- a/linux/drivers/media/video/saa7134/saa7134-oss.c +++ b/linux/drivers/media/video/saa7134/saa7134-oss.c @@ -1,5 +1,5 @@ /* - * $Id: saa7134-oss.c,v 1.30 2005/12/07 12:30:28 mchehab Exp $ + * $Id: saa7134-oss.c,v 1.31 2005/12/10 01:43:26 mchehab Exp $ * * device driver for philips saa7134 based TV cards * oss dsp interface @@ -50,8 +50,12 @@ MODULE_PARM_DESC(rate,"sample rate (valid are: 32000,48000)"); static unsigned int dsp_nr[] = {[0 ... (SAA7134_MAXBOARDS - 1)] = UNSET }; MODULE_PARM_DESC(dsp_nr, "device numbers for SAA7134 capture interface(s)."); #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) +MODULE_PARM(dsp_nr,"1-" __stringify(SAA7134_MAXBOARDS) "i"); +#else static int dummy; module_param_array(dsp_nr, int, dummy, 0444); +#endif #else module_param_array(dsp_nr, int, NULL, 0444); #endif @@ -59,7 +63,11 @@ module_param_array(dsp_nr, int, NULL, 0444); static unsigned int mixer_nr[] = {[0 ... (SAA7134_MAXBOARDS - 1)] = UNSET }; MODULE_PARM_DESC(mixer_nr, "mixer numbers for SAA7134 capture interface(s)."); #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10) +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) +MODULE_PARM(mixer_nr,"1-" __stringify(SAA7134_MAXBOARDS) "i"); +#else module_param_array(mixer_nr, int, dummy, 0444); +#endif #else module_param_array(mixer_nr, int, NULL, 0444); #endif @@ -957,7 +965,11 @@ static int oss_device_exit(struct saa7134_dev *dev) saa7134_oss_fini(dev); if (dev->pci->irq > 0) { +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) synchronize_irq(dev->pci->irq); +#else + synchronize_irq(); +#endif free_irq(dev->pci->irq,&dev->dmasound); } diff --git a/linux/drivers/media/video/wm8775.c b/linux/drivers/media/video/wm8775.c index 0156d6fc7..6a2c41567 100644 --- a/linux/drivers/media/video/wm8775.c +++ b/linux/drivers/media/video/wm8775.c @@ -34,6 +34,9 @@ #include <linux/i2c-id.h> #include <linux/videodev.h> #include <media/audiochip.h> +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) +#include <media/i2c-compat.h> +#endif MODULE_DESCRIPTION("wm8775 driver"); MODULE_AUTHOR("Ulf Eklund, Hans Verkuil"); |