summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/ttpci-budget/budget-core.c3
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c25
2 files changed, 15 insertions, 13 deletions
diff --git a/linux/drivers/media/dvb/ttpci-budget/budget-core.c b/linux/drivers/media/dvb/ttpci-budget/budget-core.c
index 0d9225d39..47ec3a8fe 100644
--- a/linux/drivers/media/dvb/ttpci-budget/budget-core.c
+++ b/linux/drivers/media/dvb/ttpci-budget/budget-core.c
@@ -507,5 +507,8 @@ EXPORT_SYMBOL_GPL(budget_register);
EXPORT_SYMBOL_GPL(budget_irq);
EXPORT_SYMBOL_GPL(budget_attach);
EXPORT_SYMBOL_GPL(budget_detach);
+EXPORT_SYMBOL_GPL(budget_debug);
MODULE_PARM(budget_debug,"i");
+MODULE_LICENSE("GPL");
+
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c
index fbc0606e9..24ff9d7ba 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.c
+++ b/linux/drivers/media/dvb/ttpci/av7110.c
@@ -73,6 +73,14 @@
#include "dvb_i2c.h"
#include "dvb_frontend.h"
+#if 1
+ #define DEBUG_VARIABLE av7110_debug
+#else
+ #define DEB_S(x)
+ #define DEB_D(x)
+ #define DEB_EE(x)
+#endif
+
#include "av7110.h"
#include "av7110_ipack.h"
@@ -88,19 +96,6 @@ void pes_to_ts(u8 const *buf, long int length, u16 pid, p2t_t *p);
void p_to_t(u8 const *buf, long int length, u16 pid, u8 *counter, struct dvb_demux_feed *feed);
static int av7110_debug = 0;
-#if 1
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,51)
- #define KBUILD_MODNAME av7110
-#endif
-#define DEBUG_PROLOG printk("%s: %s(): ",__stringify(KBUILD_MODNAME),__FUNCTION__)
-#define DEB_S(x) if (0!=(av7110_debug&0x01)) { DEBUG_PROLOG; printk x; } /* simple debug messages */
-#define DEB_D(x) if (0!=(av7110_debug&0x02)) { DEBUG_PROLOG; printk x; } /* more detailed debug messages */
-#define DEB_EE(x) if (0!=(av7110_debug&0x04)) { DEBUG_PROLOG; printk x; } /* print enter and exit of functions */
-#else
-#define DEB_S(x)
-#define DEB_D(x)
-#define DEB_EE(x)
-#endif
static int vidmode=CVBS_RGB_OUT;
static int pids_off;
@@ -108,6 +103,10 @@ static int adac=DVB_ADAC_TI;
int av7110_num = 0;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,51)
+ #define KBUILD_MODNAME av7110
+#endif
+
/****************************************************************************
* General helper functions
****************************************************************************/