summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-01-08 22:34:30 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2008-01-08 22:34:30 -0500
commit4f1f745b3b369eceda529e6679baf80afea3bcd9 (patch)
treed972ed63bbcc4b0528c38ac3651138f25c763f08
parent4dce926cdcf69656dea38221d328f1152368ae93 (diff)
downloadmediapointer-dvb-s2-4f1f745b3b369eceda529e6679baf80afea3bcd9.tar.gz
mediapointer-dvb-s2-4f1f745b3b369eceda529e6679baf80afea3bcd9.tar.bz2
tda18271: give calibration debug a separate debug mask
From: Michael Krufky <mkrufky@linuxtv.org> We don't usually want to see the calibration debug messages, but sometimes it is useful. Assign it to a separate debug mask. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
-rw-r--r--linux/drivers/media/dvb/frontends/tda18271-fe.c6
-rw-r--r--linux/drivers/media/dvb/frontends/tda18271-priv.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda18271-fe.c b/linux/drivers/media/dvb/frontends/tda18271-fe.c
index f0f949693..f9fd3889d 100644
--- a/linux/drivers/media/dvb/frontends/tda18271-fe.c
+++ b/linux/drivers/media/dvb/frontends/tda18271-fe.c
@@ -26,7 +26,7 @@
int tda18271_debug;
module_param_named(debug, tda18271_debug, int, 0644);
MODULE_PARM_DESC(debug, "set debug level "
- "(info=1, map=2, reg=4, adv=8 (or-able))");
+ "(info=1, map=2, reg=4, adv=8, cal=16 (or-able))");
static LIST_HEAD(tda18271_list);
static DEFINE_MUTEX(tda18271_list_mutex);
@@ -483,7 +483,7 @@ static int tda18271_powerscan(struct dvb_frontend *fe,
} else
bcal = 0;
- tda_dbg("bcal = %d, freq_in = %d, freq_out = %d (freq = %d)\n",
+ tda_cal("bcal = %d, freq_in = %d, freq_out = %d (freq = %d)\n",
bcal, *freq_in, *freq_out, freq);
return bcal;
@@ -546,7 +546,7 @@ static int tda18271_rf_tracking_filters_init(struct dvb_frontend *fe, u32 freq)
for (rf = RF1; rf <= RF3; rf++) {
if (0 == rf_default[rf])
return 0;
- tda_dbg("freq = %d, rf = %d\n", freq, rf);
+ tda_cal("freq = %d, rf = %d\n", freq, rf);
/* look for optimized calibration frequency */
bcal = tda18271_powerscan(fe, &rf_default[rf], &rf_freq[rf]);
diff --git a/linux/drivers/media/dvb/frontends/tda18271-priv.h b/linux/drivers/media/dvb/frontends/tda18271-priv.h
index c55decdb3..877509346 100644
--- a/linux/drivers/media/dvb/frontends/tda18271-priv.h
+++ b/linux/drivers/media/dvb/frontends/tda18271-priv.h
@@ -139,6 +139,7 @@ extern int tda18271_debug;
#define DBG_MAP 2
#define DBG_REG 4
#define DBG_ADV 8
+#define DBG_CAL 16
#define tda_printk(kern, fmt, arg...) \
printk(kern "%s: " fmt, __FUNCTION__, ##arg)
@@ -153,6 +154,7 @@ extern int tda18271_debug;
#define tda_dbg(fmt, arg...) dprintk(KERN_DEBUG, DBG_INFO, fmt, ##arg)
#define tda_map(fmt, arg...) dprintk(KERN_DEBUG, DBG_MAP, fmt, ##arg)
#define tda_reg(fmt, arg...) dprintk(KERN_DEBUG, DBG_REG, fmt, ##arg)
+#define tda_cal(fmt, arg...) dprintk(KERN_DEBUG, DBG_CAL, fmt, ##arg)
/*---------------------------------------------------------------------*/