summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7134
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/saa7134')
-rw-r--r--linux/drivers/media/video/saa7134/saa7134-oss.c14
1 files changed, 13 insertions, 1 deletions
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);
}