summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Aafloy <devnull@localhost>2004-07-29 21:20:43 +0000
committerKenneth Aafloy <devnull@localhost>2004-07-29 21:20:43 +0000
commitcd05362dcbcd4554765bd6d811981202533df047 (patch)
treebfd74e8eb024b033cd1629ee5d4439e015a58171
parente717d56a436a12e1750ccf5a0e6756fd710a551c (diff)
downloadmediapointer-dvb-s2-cd05362dcbcd4554765bd6d811981202533df047.tar.gz
mediapointer-dvb-s2-cd05362dcbcd4554765bd6d811981202533df047.tar.bz2
- MODULE_PARM -> module_param* for dvb-ttpci and budget-core,
debug parameters is writeable in sysfs (w/2.6.7+) and the rest is read-only.
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c39
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110_ir.c9
-rw-r--r--linux/drivers/media/dvb/ttpci/budget-core.c7
3 files changed, 29 insertions, 26 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c
index beb626a61..bbc099909 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.c
+++ b/linux/drivers/media/dvb/ttpci/av7110.c
@@ -41,6 +41,7 @@
#include <linux/smp_lock.h>
#include <linux/kernel.h>
+#include <linux/moduleparam.h>
#include <linux/sched.h>
#include <linux/types.h>
#include <linux/fcntl.h>
@@ -74,17 +75,29 @@
static void restart_feeds(struct av7110 *av7110);
-int av7110_debug = 0;
-
+int av7110_debug;
static int vidmode = CVBS_RGB_OUT;
static int pids_off;
static int adac = DVB_ADAC_TI;
-static int hw_sections = 0;
-static int rgb_on = 0;
-
-/* initial volume */
+static int hw_sections;
+static int rgb_on;
static int volume = 255;
+module_param_named(debug, av7110_debug, int, 0644);
+module_param(vidmode, int, 0444);
+MODULE_PARM_DESC(vidmode,"analog video out: 0 off, 1 CVBS+RGB (default), 2 CVBS+YC, 3 YC");
+module_param(pids_off, int, 0444);
+MODULE_PARM_DESC(pids_off,"clear video/audio/PCR PID filters when demux is closed");
+module_param(adac, int, 0444);
+MODULE_PARM_DESC(adac,"audio DAC type: 0 TI, 1 CRYSTAL, 2 MSP (use if autodetection fails)");
+module_param(hw_sections, int, 0444);
+MODULE_PARM_DESC(hw_sections, "0 use software section filter, 1 use hardware");
+module_param(rgb_on, int, 0444);
+MODULE_PARM_DESC(rgb_on, "For Siemens DVB-C cards only: Enable RGB control"
+ " signal on SCART pin 16 to switch SCART video mode from CVBS to RGB");
+module_param(volume, int, 0444);
+MODULE_PARM_DESC(volume, "initial volume: default 255 (range 0-255)");
+
int av7110_num = 0;
static void init_av7110_av(struct av7110 *av7110)
@@ -1760,17 +1773,3 @@ MODULE_DESCRIPTION("driver for the SAA7146 based AV110 PCI DVB cards by "
MODULE_AUTHOR("Ralph Metzler, Marcus Metzler, others");
MODULE_LICENSE("GPL");
-MODULE_PARM(av7110_debug,"i");
-MODULE_PARM(vidmode,"i");
-MODULE_PARM_DESC(vidmode,"analog video out: 0 off, 1 CVBS+RGB (default), 2 CVBS+YC, 3 YC");
-MODULE_PARM(pids_off,"i");
-MODULE_PARM_DESC(pids_off,"clear video/audio/PCR PID filters when demux is closed");
-MODULE_PARM(adac,"i");
-MODULE_PARM_DESC(adac,"audio DAC type: 0 TI, 1 CRYSTAL, 2 MSP (use if autodetection fails)");
-MODULE_PARM(hw_sections, "i");
-MODULE_PARM_DESC(hw_sections, "0 use software section filter, 1 use hardware");
-MODULE_PARM(rgb_on, "i");
-MODULE_PARM_DESC(rgb_on, "For Siemens DVB-C cards only: Enable RGB control"
- " signal on SCART pin 16 to switch SCART video mode from CVBS to RGB");
-MODULE_PARM(volume, "i");
-MODULE_PARM_DESC(volume, "initial volume: default 255 (range 0-255)");
diff --git a/linux/drivers/media/dvb/ttpci/av7110_ir.c b/linux/drivers/media/dvb/ttpci/av7110_ir.c
index 756e18a32..535516acd 100644
--- a/linux/drivers/media/dvb/ttpci/av7110_ir.c
+++ b/linux/drivers/media/dvb/ttpci/av7110_ir.c
@@ -1,6 +1,7 @@
#include <linux/types.h>
#include <linux/init.h>
#include <linux/module.h>
+#include <linux/moduleparam.h>
#include <linux/input.h>
#include <linux/proc_fs.h>
#include <asm/bitops.h>
@@ -9,10 +10,12 @@
#define UP_TIMEOUT (HZ/4)
-static int av7110_ir_debug = 0;
-
#define dprintk(x...) do { if (av7110_ir_debug) printk (x); } while (0)
+static int av7110_ir_debug;
+
+module_param_named(debug_ir, av7110_ir_debug, int, 0644);
+MODULE_PARM_DESC(av7110_ir_debug, "enable AV7110 IR receiver debug messages");
static struct input_dev input_dev;
@@ -204,5 +207,3 @@ void __exit av7110_ir_exit(void)
//MODULE_AUTHOR("Holger Waechtler <holger@convergence.de>");
//MODULE_LICENSE("GPL");
-MODULE_PARM(av7110_ir_debug, "i");
-MODULE_PARM_DESC(av7110_ir_debug, "enable AV7110 IR receiver debug messages");
diff --git a/linux/drivers/media/dvb/ttpci/budget-core.c b/linux/drivers/media/dvb/ttpci/budget-core.c
index c1172e96a..cdaddbf8c 100644
--- a/linux/drivers/media/dvb/ttpci/budget-core.c
+++ b/linux/drivers/media/dvb/ttpci/budget-core.c
@@ -34,10 +34,14 @@
* the project's page is at http://www.linuxtv.org/dvb/
*/
+#include <linux/moduleparam.h>
+
#include "budget.h"
#include "ttpci-eeprom.h"
-int budget_debug = 0;
+static int budget_debug;
+
+module_param_named(debug, budget_debug, int, 0644);
/****************************************************************************
* TT budget / WinTV Nova
@@ -445,6 +449,5 @@ EXPORT_SYMBOL_GPL(ttpci_budget_irq10_handler);
EXPORT_SYMBOL_GPL(ttpci_budget_set_video_port);
EXPORT_SYMBOL_GPL(budget_debug);
-MODULE_PARM(budget_debug,"i");
MODULE_LICENSE("GPL");