summaryrefslogtreecommitdiff
path: root/wctdm24xxp
diff options
context:
space:
mode:
Diffstat (limited to 'wctdm24xxp')
-rw-r--r--wctdm24xxp/base.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/wctdm24xxp/base.c b/wctdm24xxp/base.c
index a9b7302..5101395 100644
--- a/wctdm24xxp/base.c
+++ b/wctdm24xxp/base.c
@@ -256,6 +256,7 @@ spinlock_t ifacelock = SPIN_LOCK_UNLOCKED;
static void wctdm_release(struct wctdm *wc);
+static int fxovoltage = 0;
static int battdebounce = DEFAULT_BATT_DEBOUNCE;
static int battthresh = DEFAULT_BATT_THRESH;
static int debug = 0;
@@ -1219,6 +1220,14 @@ static inline void wctdm_voicedaa_check_hook(struct wctdm *wc, int card)
}
}
b = wc->cmdq[card].isrshadow[1]; /* Voltage */
+
+ if (fxovoltage) {
+ if (!(wc->intcount % 100)) {
+ printk("Port %d: Voltage: %d Debounce %d\n", card + 1,
+ b, wc->mods[card].fxo.battdebounce);
+ }
+ }
+
if (abs(b) < battthresh) {
wc->mods[card].fxo.nobatttimer++;
#if 0
@@ -3593,6 +3602,7 @@ static void __exit wctdm_cleanup(void)
#ifdef LINUX26
module_param(debug, int, 0600);
+module_param(fxovoltage, int, 0600);
module_param(loopcurrent, int, 0600);
module_param(robust, int, 0600);
module_param(_opermode, int, 0600);
@@ -3611,6 +3621,7 @@ module_param(dtmfthreshold, int, 0600);
#endif
#else
MODULE_PARM(debug, "i");
+MODULE_PARM(fxovoltage, "i");
MODULE_PARM(loopcurrent, "i");
MODULE_PARM(robust, "i");
MODULE_PARM(_opermode, "i");