[svn-commits] mattf: branch 1.4 r3216 - in /branches/1.4: ./ wctdm24xxp/base.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Nov 6 15:14:17 CST 2007


Author: mattf
Date: Tue Nov  6 15:14:12 2007
New Revision: 3216

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3216
Log:
Merged revisions 3215 via svnmerge from 
https://origsvn.digium.com/svn/zaptel/branches/1.2

........
r3215 | mattf | 2007-11-06 15:13:09 -0600 (Tue, 06 Nov 2007) | 1 line

Cross port fxo line voltage monitoring patch from wctdm to wctdm24xxp
........

Modified:
    branches/1.4/   (props changed)
    branches/1.4/wctdm24xxp/base.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/wctdm24xxp/base.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/wctdm24xxp/base.c?view=diff&rev=3216&r1=3215&r2=3216
==============================================================================
--- branches/1.4/wctdm24xxp/base.c (original)
+++ branches/1.4/wctdm24xxp/base.c Tue Nov  6 15:14:12 2007
@@ -262,6 +262,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;
@@ -1330,6 +1331,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
@@ -4192,6 +4201,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);
@@ -4216,6 +4226,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 svn-commits mailing list