diff options
author | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-12-04 17:11:35 +0000 |
---|---|---|
committer | markster <markster@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-12-04 17:11:35 +0000 |
commit | 7e643dc9111ab06ffad93f38ac796d5ff717ec36 (patch) | |
tree | 2f6d2f2da201339287031c1197a06d342e0e4e2e | |
parent | 329447404b2c9ad396587b47171d2271fda81eee (diff) |
Expand VBat with heavy ringing for maximum ring voltage, don't use
boostringer by default in wctdm24xxp
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@847 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r-- | wctdm.c | 2 | ||||
-rw-r--r-- | wctdm24xxp.c | 6 |
2 files changed, 6 insertions, 2 deletions
@@ -1689,6 +1689,7 @@ static int wctdm_init_proslic(struct wctdm *wc, int card, int fast, int manual, wctdm_proslic_setreg_indirect(wc, card, 21, 0x01b9); /* Beef up Ringing voltage to 89V */ if (boostringer) { + wctdm_setreg(wc, card, 74, 0x3f); if (wctdm_proslic_setreg_indirect(wc, card, 21, 0x247)) return -1; printk("Boosting fast ringer on slot %d (89V peak)\n", card + 1); @@ -1701,6 +1702,7 @@ static int wctdm_init_proslic(struct wctdm *wc, int card, int fast, int manual, } else { /* Beef up Ringing voltage to 89V */ if (boostringer) { + wctdm_setreg(wc, card, 74, 0x3f); if (wctdm_proslic_setreg_indirect(wc, card, 21, 0x1d1)) return -1; printk("Boosting ringer on slot %d (89V peak)\n", card + 1); diff --git a/wctdm24xxp.c b/wctdm24xxp.c index 10a6a57..14e0d27 100644 --- a/wctdm24xxp.c +++ b/wctdm24xxp.c @@ -400,7 +400,7 @@ static int debug = 0; static int robust = 0; static int timingonly = 0; static int lowpower = 0; -static int boostringer = 1; +static int boostringer = 0; static int fastringer = 0; static int _opermode = 0; static char *opermode = "FCC"; @@ -911,7 +911,7 @@ static void wctdm_restart_dma(struct wctdm *wc); static int wait_access(struct wctdm *wc, int card) { - unsigned char data; + unsigned char data=0; long origjiffies; int count = 0; @@ -1999,6 +1999,7 @@ static int wctdm_init_proslic(struct wctdm *wc, int card, int fast, int manual, wctdm_proslic_setreg_indirect(wc, card, 21, 0x01b9); /* Beef up Ringing voltage to 89V */ if (boostringer) { + wctdm_setreg(wc, card, 74, 0x3f); if (wctdm_proslic_setreg_indirect(wc, card, 21, 0x247)) return -1; printk("Boosting fast ringer on slot %d (89V peak)\n", card + 1); @@ -2011,6 +2012,7 @@ static int wctdm_init_proslic(struct wctdm *wc, int card, int fast, int manual, } else { /* Beef up Ringing voltage to 89V */ if (boostringer) { + wctdm_setreg(wc, card, 74, 0x3f); if (wctdm_proslic_setreg_indirect(wc, card, 21, 0x1d1)) return -1; printk("Boosting ringer on slot %d (89V peak)\n", card + 1); |