Index: wctdm.c =================================================================== --- wctdm.c (revision 6846) +++ wctdm.c (working copy) @@ -283,6 +283,7 @@ static unsigned int battalarm; static unsigned int battthresh; static int ringdebounce = DEFAULT_RING_DEBOUNCE; +static int dialdebounce = 8 * 8 /* times 4, because must be a multiple of 4ms */; static int fwringdetect = 0; static int debug = 0; static int robust = 0; @@ -975,7 +976,7 @@ hook = (res & 1); if (hook != wc->mod[card].fxs.lastrxhook) { /* Reset the debounce (must be multiple of 4ms) */ - wc->mod[card].fxs.debounce = 8 * (4 * 8); + wc->mod[card].fxs.debounce = dialdebounce * 4; #if 0 printk(KERN_DEBUG "Resetting debounce card %d hook %d, %d\n", card, hook, wc->mod[card].fxs.debounce); #endif @@ -2564,6 +2565,7 @@ module_param(battalarm, uint, 0600); module_param(battthresh, uint, 0600); module_param(ringdebounce, int, 0600); +module_param(dialdebounce, int, 0600); module_param(fwringdetect, int, 0600); module_param(alawoverride, int, 0600); module_param(fastpickup, int, 0600);