[zaptel-commits] mattf: branch 1.2 r3215 - /branches/1.2/wctdm24xxp/base.c
SVN commits to the Zaptel project
zaptel-commits at lists.digium.com
Tue Nov 6 15:13:11 CST 2007
Author: mattf
Date: Tue Nov 6 15:13:09 2007
New Revision: 3215
URL: http://svn.digium.com/view/zaptel?view=rev&rev=3215
Log:
Cross port fxo line voltage monitoring patch from wctdm to wctdm24xxp
Modified:
branches/1.2/wctdm24xxp/base.c
Modified: branches/1.2/wctdm24xxp/base.c
URL: http://svn.digium.com/view/zaptel/branches/1.2/wctdm24xxp/base.c?view=diff&rev=3215&r1=3214&r2=3215
==============================================================================
--- branches/1.2/wctdm24xxp/base.c (original)
+++ branches/1.2/wctdm24xxp/base.c Tue Nov 6 15:13:09 2007
@@ -256,6 +256,7 @@
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 @@
}
}
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 @@
#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 @@
#endif
#else
MODULE_PARM(debug, "i");
+MODULE_PARM(fxovoltage, "i");
MODULE_PARM(loopcurrent, "i");
MODULE_PARM(robust, "i");
MODULE_PARM(_opermode, "i");
More information about the zaptel-commits
mailing list