From f925c632b4f136d1d154174041f6b322149e3682 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Sat, 10 Dec 2005 01:43:25 +0000 Subject: make tree to compile against kernel 2.5.31 kernel-sync Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/media/video/saa7134/saa7134-oss.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'linux/drivers/media/video/saa7134/saa7134-oss.c') 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); } -- cgit v1.2.3