summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wctdm24xxp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wctdm24xxp.c b/wctdm24xxp.c
index ded188f..eb9b9d8 100644
--- a/wctdm24xxp.c
+++ b/wctdm24xxp.c
@@ -237,7 +237,7 @@ static struct fxo_mode {
#define FLAG_WRITE 1
#define FLAG_READ 2
-#define RING_DEBOUNCE 64 /* Ringer Debounce (in ms) */
+#define RING_DEBOUNCE 128 /* Ringer Debounce (in ms) */
#define DEFAULT_BATT_DEBOUNCE 64 /* Battery debounce (in ms) */
#define POLARITY_DEBOUNCE 64 /* Polarity debounce (in ms) */
#define DEFAULT_BATT_THRESH 3 /* Anything under this is "no battery" */
@@ -1100,14 +1100,14 @@ static inline void wctdm_voicedaa_check_hook(struct wctdm *wc, int card)
res = wc->cmdq[card].isrshadow[0]; /* Hook/Ring state */
if ((res & 0x60) && wc->mods[card].fxo.battery) {
wc->mods[card].fxo.ringdebounce += (ZT_CHUNKSIZE * 4);
- if (wc->mods[card].fxo.ringdebounce >= ZT_CHUNKSIZE * 64) {
+ if (wc->mods[card].fxo.ringdebounce >= ZT_CHUNKSIZE * RING_DEBOUNCE) {
if (!wc->mods[card].fxo.wasringing) {
wc->mods[card].fxo.wasringing = 1;
zt_hooksig(&wc->chans[card], ZT_RXSIG_RING);
if (debug)
printk("RING on %d/%d!\n", wc->span.spanno, card + 1);
}
- wc->mods[card].fxo.ringdebounce = ZT_CHUNKSIZE * 64;
+ wc->mods[card].fxo.ringdebounce = ZT_CHUNKSIZE * RING_DEBOUNCE;
}
} else {
wc->mods[card].fxo.ringdebounce -= ZT_CHUNKSIZE;