diff options
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/dvb/b2c2/skystar2.c | 15 | ||||
-rw-r--r-- | linux/drivers/media/dvb/bt8xx/bt878.c | 15 | ||||
-rw-r--r-- | linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c | 9 | ||||
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dmxdev.c | 6 | ||||
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c | 9 | ||||
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_frontend.c | 42 | ||||
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvbdev.c | 9 | ||||
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110.c | 11 | ||||
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_av.c | 3 | ||||
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_ca.c | 3 | ||||
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_hw.c | 3 | ||||
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_ir.c | 6 | ||||
-rw-r--r-- | linux/drivers/media/dvb/ttpci/av7110_v4l.c | 3 | ||||
-rw-r--r-- | linux/drivers/media/dvb/ttpci/budget-core.c | 1 | ||||
-rw-r--r-- | linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c | 8 | ||||
-rw-r--r-- | linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c | 13 | ||||
-rw-r--r-- | linux/drivers/media/dvb/vp7041/vp7041.c | 11 |
17 files changed, 80 insertions, 87 deletions
diff --git a/linux/drivers/media/dvb/b2c2/skystar2.c b/linux/drivers/media/dvb/b2c2/skystar2.c index 216e697ca..af5c296e1 100644 --- a/linux/drivers/media/dvb/b2c2/skystar2.c +++ b/linux/drivers/media/dvb/b2c2/skystar2.c @@ -53,10 +53,16 @@ #include "dvb_functions.h" -static int debug = 0; +static int debug; +static int enable_hw_filters = 2; + +module_param(debug, int, 0644); +MODULE_PARM_DESC(debug, "Set debugging level (0 = default, 1 = most messages, 2 = all messages)."); +module_param(enable_hw_filters, int, 0444); +MODULE_PARM_DESC(enable_hw_filters, "enable hardware filters: supported values: 0 (none), 1, 2"); + #define dprintk(x...) do { if (debug>=1) printk(x); } while (0) #define ddprintk(x...) do { if (debug>=2) printk(x); } while (0) -static int enable_hw_filters = 2; #define SIZE_OF_BUF_DMA1 0x3ac00 #define SIZE_OF_BUF_DMA2 0x758 @@ -2448,10 +2454,5 @@ static void skystar2_cleanup(void) module_init(skystar2_init); module_exit(skystar2_cleanup); -MODULE_PARM(debug, "i"); -MODULE_PARM_DESC(debug, "enable verbose debug messages: supported values: 1 and 2"); -MODULE_PARM(enable_hw_filters, "i"); -MODULE_PARM_DESC(enable_hw_filters, "enable hardware filters: supported values: 0 (none), 1, 2"); - MODULE_DESCRIPTION("Technisat SkyStar2 DVB PCI Driver"); MODULE_LICENSE("GPL"); diff --git a/linux/drivers/media/dvb/bt8xx/bt878.c b/linux/drivers/media/dvb/bt8xx/bt878.c index d680a456a..89f0f5efd 100644 --- a/linux/drivers/media/dvb/bt8xx/bt878.c +++ b/linux/drivers/media/dvb/bt8xx/bt878.c @@ -51,14 +51,14 @@ /* Miscellaneous utility definitions */ /**************************************/ -unsigned int bt878_verbose = 1; -unsigned int bt878_debug = 0; -MODULE_PARM(bt878_verbose, "i"); +static unsigned int bt878_verbose = 1; +static unsigned int bt878_debug; + +module_param_named(verbose, bt878_verbose, int, 0444); MODULE_PARM_DESC(bt878_verbose, "verbose startup messages, default is 1 (yes)"); -MODULE_PARM(bt878_debug, "i"); -MODULE_PARM_DESC(bt878_debug, "debug messages, default is 0 (no)"); -MODULE_LICENSE("GPL"); +module_param_named(debug, bt878_debug, int, 0644); +MODULE_PARM_DESC(bt878_debug, "Turn on/off debugging (default:off)."); int bt878_num; struct bt878 bt878[BT878_MAX]; @@ -606,6 +606,9 @@ EXPORT_SYMBOL(bt878_cleanup_module); module_init(bt878_init_module); module_exit(bt878_cleanup_module); +//MODULE_AUTHOR("XXX"); +MODULE_LICENSE("GPL"); + /* * Local variables: * c-basic-offset: 8 diff --git a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c index 283c07635..74a767a37 100644 --- a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c @@ -37,11 +37,15 @@ #include "bt878.h" -/* ID THAT MUST GO INTO i2c ids */ +/* FIXME: The method of getting the i2c adapter is wrong. */ #ifndef I2C_DRIVERID_DVB_BT878A # define I2C_DRIVERID_DVB_BT878A I2C_DRIVERID_EXP0+10 #endif +static int debug; + +module_param(debug, int, 0644); +MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off)."); #define dprintk if (debug) printk @@ -49,7 +53,6 @@ extern int bttv_get_cardinfo(unsigned int card, int *type, int *cardid); extern struct pci_dev* bttv_get_pcidev(unsigned int card); static LIST_HEAD(card_list); -static int debug = 0; static void dvb_bt8xx_task(unsigned long data) { @@ -532,4 +535,4 @@ module_exit(dvb_bt8xx_exit); MODULE_DESCRIPTION("Bt8xx based DVB adapter driver"); MODULE_AUTHOR("Florian Schirmer <jolt@tuxbox.org>"); MODULE_LICENSE("GPL"); -MODULE_PARM(debug, "i"); + diff --git a/linux/drivers/media/dvb/dvb-core/dmxdev.c b/linux/drivers/media/dvb/dvb-core/dmxdev.c index a4a1db259..876cb1be8 100644 --- a/linux/drivers/media/dvb/dvb-core/dmxdev.c +++ b/linux/drivers/media/dvb/dvb-core/dmxdev.c @@ -35,8 +35,10 @@ #include "dmxdev.h" #include "dvb_functions.h" -MODULE_PARM(debug,"i"); -static int debug = 0; +static int debug; + +module_param(debug, int, 0644); +MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off)."); #define dprintk if (debug) printk diff --git a/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c b/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c index 899c2495a..346138f3b 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_ca_en50221.c @@ -41,7 +41,11 @@ #include "dvb_functions.h" #include "dvb_ringbuffer.h" -static int dvb_ca_en50221_debug = 0; +static int dvb_ca_en50221_debug; + +module_param_named(cam_debug, dvb_ca_en50221_debug, int, 0644); +MODULE_PARM_DESC(dvb_ca_en50221_debug, "enable verbose debug messages"); + #define dprintk if (dvb_ca_en50221_debug) printk #define INIT_TIMEOUT_SECS 5 @@ -1615,6 +1619,3 @@ void dvb_ca_en50221_release(struct dvb_ca_en50221* pubca) pubca->private = NULL; } -MODULE_PARM(dvb_ca_en50221_debug,"i"); - -MODULE_PARM_DESC(dvb_ca_en50221_debug, "enable verbose debug messages"); diff --git a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c index 00fab695b..b8e117571 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -40,6 +40,26 @@ #include "dvbdev.h" #include "dvb_functions.h" +static int dvb_frontend_debug; +static int dvb_shutdown_timeout = 5; +static int dvb_override_frequency_bending; +static int dvb_force_auto_inversion; +static int dvb_override_tune_delay; +static int do_frequency_bending; + +module_param_named(frontend_debug, dvb_frontend_debug, int, 0644); +MODULE_PARM_DESC(dvb_frontend_debug, "Turn on/off frontend core debugging (default:off)."); +module_param(dvb_shutdown_timeout, int, 0444); +MODULE_PARM_DESC(dvb_shutdown_timeout, "wait <shutdown_timeout> seconds after close() before suspending hardware"); +module_param(dvb_override_frequency_bending, int, 0444); +MODULE_PARM_DESC(dvb_override_frequency_bending, "0: normal (default), 1: never use frequency bending, 2: always use frequency bending"); +module_param(dvb_force_auto_inversion, int, 0444); +MODULE_PARM_DESC(dvb_force_auto_inversion, "0: normal (default), 1: INVERSION_AUTO forced always"); +module_param(dvb_override_tune_delay, int, 0444); +MODULE_PARM_DESC(dvb_override_tune_delay, "0: normal (default), >0 => delay in milliseconds to wait for lock after a tune attempt"); + +#define dprintk if (dvb_frontend_debug) printk + #define FESTATE_IDLE 1 #define FESTATE_RETUNE 2 #define FESTATE_TUNING_FAST 4 @@ -67,17 +87,6 @@ * FESTATE_LOSTLOCK. When the lock has been lost, and we're searching it again. */ - -static int dvb_frontend_debug = 0; -static int dvb_shutdown_timeout = 5; -static int dvb_override_frequency_bending = 0; -static int dvb_force_auto_inversion = 0; -static int dvb_override_tune_delay = 0; - -static int do_frequency_bending = 0; - -#define dprintk if (dvb_frontend_debug) printk - #define MAX_EVENT 8 struct dvb_fe_events { @@ -1303,14 +1312,3 @@ int dvb_unregister_frontend_new (int (*ioctl) (struct dvb_frontend *frontend, return -EINVAL; } -MODULE_PARM(dvb_frontend_debug,"i"); -MODULE_PARM(dvb_shutdown_timeout,"i"); -MODULE_PARM(dvb_override_frequency_bending,"i"); -MODULE_PARM(dvb_force_auto_inversion,"i"); -MODULE_PARM(dvb_override_tune_delay,"i"); - -MODULE_PARM_DESC(dvb_frontend_debug, "enable verbose debug messages"); -MODULE_PARM_DESC(dvb_shutdown_timeout, "wait <shutdown_timeout> seconds after close() before suspending hardware"); -MODULE_PARM_DESC(dvb_override_frequency_bending, "0: normal (default), 1: never use frequency bending, 2: always use frequency bending"); -MODULE_PARM_DESC(dvb_force_auto_inversion, "0: normal (default), 1: INVERSION_AUTO forced always"); -MODULE_PARM_DESC(dvb_override_tune_delay, "0: normal (default), >0 => delay in milliseconds to wait for lock after a tune attempt"); diff --git a/linux/drivers/media/dvb/dvb-core/dvbdev.c b/linux/drivers/media/dvb/dvb-core/dvbdev.c index 239284435..5066ff0aa 100644 --- a/linux/drivers/media/dvb/dvb-core/dvbdev.c +++ b/linux/drivers/media/dvb/dvb-core/dvbdev.c @@ -33,7 +33,11 @@ #include "dvbdev.h" #include "dvb_functions.h" -static int dvbdev_debug = 0; +static int dvbdev_debug; + +module_param(dvbdev_debug, int, 0644); +MODULE_PARM_DESC(dvbdev_debug, "Turn on/off device debugging (default:off)."); + #define dprintk if (dvbdev_debug) printk static LIST_HEAD(dvb_adapter_list); @@ -334,6 +338,3 @@ MODULE_DESCRIPTION("DVB Core Driver"); MODULE_AUTHOR("Marcus Metzler, Ralph Metzler, Holger Waechtler"); MODULE_LICENSE("GPL"); -MODULE_PARM(dvbdev_debug,"i"); -MODULE_PARM_DESC(dvbdev_debug, "enable verbose debug messages"); - diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c index bbc099909..f8a34b67c 100644 --- a/linux/drivers/media/dvb/ttpci/av7110.c +++ b/linux/drivers/media/dvb/ttpci/av7110.c @@ -62,9 +62,6 @@ #include "dvb_functions.h" #include "dvb_i2c.h" - -#define DEBUG_VARIABLE av7110_debug - #include "ttpci-eeprom.h" #include "av7110.h" #include "av7110_hw.h" @@ -72,10 +69,7 @@ #include "av7110_ca.h" #include "av7110_ipack.h" - -static void restart_feeds(struct av7110 *av7110); - -int av7110_debug; +static int av7110_debug; static int vidmode = CVBS_RGB_OUT; static int pids_off; static int adac = DVB_ADAC_TI; @@ -84,6 +78,7 @@ static int rgb_on; static int volume = 255; module_param_named(debug, av7110_debug, int, 0644); +MODULE_PARM_DESC(av7110_debug, "Turn on/off debugging (default:off)."); 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); @@ -98,6 +93,8 @@ MODULE_PARM_DESC(rgb_on, "For Siemens DVB-C cards only: Enable RGB control" module_param(volume, int, 0444); MODULE_PARM_DESC(volume, "initial volume: default 255 (range 0-255)"); +static void restart_feeds(struct av7110 *av7110); + int av7110_num = 0; static void init_av7110_av(struct av7110 *av7110) diff --git a/linux/drivers/media/dvb/ttpci/av7110_av.c b/linux/drivers/media/dvb/ttpci/av7110_av.c index a6c678af1..05d6e57d3 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_av.c +++ b/linux/drivers/media/dvb/ttpci/av7110_av.c @@ -37,9 +37,6 @@ #include <linux/smp_lock.h> #include <linux/fs.h> -#define DEBUG_VARIABLE av7110_debug -extern int av7110_debug; - #include "av7110.h" #include "av7110_hw.h" #include "av7110_av.h" diff --git a/linux/drivers/media/dvb/ttpci/av7110_ca.c b/linux/drivers/media/dvb/ttpci/av7110_ca.c index fc3f3f2e4..cf91bb318 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_ca.c +++ b/linux/drivers/media/dvb/ttpci/av7110_ca.c @@ -38,9 +38,6 @@ #include <linux/byteorder/swabb.h> #include <linux/smp_lock.h> -#define DEBUG_VARIABLE av7110_debug -extern int av7110_debug; - #include "av7110.h" #include "av7110_hw.h" #include "dvb_functions.h" diff --git a/linux/drivers/media/dvb/ttpci/av7110_hw.c b/linux/drivers/media/dvb/ttpci/av7110_hw.c index 3945fdbde..8b4388a61 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_hw.c +++ b/linux/drivers/media/dvb/ttpci/av7110_hw.c @@ -38,9 +38,6 @@ #include <linux/smp_lock.h> #include <linux/fs.h> -#define DEBUG_VARIABLE av7110_debug -extern int av7110_debug; - #include "av7110.h" #include "av7110_hw.h" diff --git a/linux/drivers/media/dvb/ttpci/av7110_ir.c b/linux/drivers/media/dvb/ttpci/av7110_ir.c index 535516acd..8691df9b5 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_ir.c +++ b/linux/drivers/media/dvb/ttpci/av7110_ir.c @@ -10,12 +10,12 @@ #define UP_TIMEOUT (HZ/4) -#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"); +MODULE_PARM_DESC(av7110_ir_debug, "Turn on/off IR debugging (default:off)."); + +#define dprintk(x...) do { if (av7110_ir_debug) printk (x); } while (0) static struct input_dev input_dev; diff --git a/linux/drivers/media/dvb/ttpci/av7110_v4l.c b/linux/drivers/media/dvb/ttpci/av7110_v4l.c index dac4dde47..213871506 100644 --- a/linux/drivers/media/dvb/ttpci/av7110_v4l.c +++ b/linux/drivers/media/dvb/ttpci/av7110_v4l.c @@ -35,9 +35,6 @@ #include <linux/byteorder/swabb.h> #include <linux/smp_lock.h> -#define DEBUG_VARIABLE av7110_debug -extern int av7110_debug; - #include "av7110.h" #include "av7110_hw.h" #include "av7110_av.h" diff --git a/linux/drivers/media/dvb/ttpci/budget-core.c b/linux/drivers/media/dvb/ttpci/budget-core.c index cdaddbf8c..1c5dd1b87 100644 --- a/linux/drivers/media/dvb/ttpci/budget-core.c +++ b/linux/drivers/media/dvb/ttpci/budget-core.c @@ -42,6 +42,7 @@ static int budget_debug; module_param_named(debug, budget_debug, int, 0644); +MODULE_PARM_DESC(budget_debug, "Turn on/off budget debugging (default:off)."); /**************************************************************************** * TT budget / WinTV Nova diff --git a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c index ff22dd7d0..ef68eed62 100644 --- a/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c +++ b/linux/drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c @@ -49,7 +49,10 @@ this unless the device doesn't load at all. > 2 for bandwidth statistics. */ -static int debug = 0; +static int debug; + +module_param(debug, int, 0644); +MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off)."); #define dprintk(x...) do { if (debug) printk(KERN_DEBUG x); } while (0) @@ -1222,9 +1225,6 @@ static void __exit ttusb_exit(void) module_init(ttusb_init); module_exit(ttusb_exit); -MODULE_PARM(debug, "i"); -MODULE_PARM_DESC(debug, "Debug or not"); - MODULE_AUTHOR("Holger Waechtler <holger@convergence.de>"); MODULE_DESCRIPTION("TTUSB DVB Driver"); MODULE_LICENSE("GPL"); diff --git a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c index 170b9bc9d..59b047865 100644 --- a/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c +++ b/linux/drivers/media/dvb/ttusb-dec/ttusb_dec.c @@ -43,8 +43,13 @@ #include "dvb_frontend.h" #include "dvb_net.h" -static int debug = 0; -static int output_pva = 0; +static int debug; +static int output_pva; + +module_param(debug, int, 0644); +MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off)."); +module_param(output_pva, int, 0444); +MODULE_PARM_DESC(output_pva, "Output PVA from dvr device (default:off)"); #define dprintk if (debug) printk @@ -1847,7 +1852,3 @@ MODULE_DESCRIPTION(DRIVER_NAME); MODULE_LICENSE("GPL"); MODULE_DEVICE_TABLE(usb, ttusb_dec_table); -MODULE_PARM(debug, "i"); -MODULE_PARM_DESC(debug, "Debug level"); -MODULE_PARM(output_pva, "i"); -MODULE_PARM_DESC(output_pva, "Output PVA from dvr device"); diff --git a/linux/drivers/media/dvb/vp7041/vp7041.c b/linux/drivers/media/dvb/vp7041/vp7041.c index e3d530faa..f5d93be73 100644 --- a/linux/drivers/media/dvb/vp7041/vp7041.c +++ b/linux/drivers/media/dvb/vp7041/vp7041.c @@ -59,10 +59,11 @@ #include "dvb_frontend.h" #include "dvb_net.h" -// module parameters -static int debug = 0; +static int debug; + +module_param(debug, int, 0x644); +MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off)."); -// debug macro #define dprintk if (debug) printk /* Version information */ @@ -1013,10 +1014,6 @@ static void __exit usb_vp7041_exit(void) module_init (usb_vp7041_init); module_exit (usb_vp7041_exit); -/* module parameters */ -module_param(debug, int,0x644); -MODULE_PARM_DESC(debug, "enable debugging (or not)"); - MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); MODULE_LICENSE("GPL"); |