diff options
Diffstat (limited to 'drivers/dahdi/wctdm.c')
-rw-r--r-- | drivers/dahdi/wctdm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/dahdi/wctdm.c b/drivers/dahdi/wctdm.c index 036f418..eacf33c 100644 --- a/drivers/dahdi/wctdm.c +++ b/drivers/dahdi/wctdm.c @@ -270,6 +270,7 @@ static struct wctdm *ifaces[WC_MAX_IFACES]; static void wctdm_release(struct wctdm *wc); +static unsigned int fxovoltage; static unsigned int battdebounce; static unsigned int battalarm; static unsigned int battthresh; @@ -825,6 +826,13 @@ static inline void wctdm_voicedaa_check_hook(struct wctdm *wc, int card) b = wc->reg1shadow[card]; + if (fxovoltage) { + static int count = 0; + if (!(count++ % 100)) { + printk(KERN_DEBUG "Card %d: Voltage: %d Debounce %d\n", card + 1, b, fxo->battdebounce); + } + } + if (abs(b) < battthresh) { /* possible existing states: battery lost, no debounce timer @@ -2476,6 +2484,7 @@ static void __exit wctdm_cleanup(void) } module_param(debug, int, 0600); +module_param(fxovoltage, int, 0600); module_param(loopcurrent, int, 0600); module_param(reversepolarity, int, 0600); module_param(robust, int, 0600); |