From 0794d42d58203776433b1b01c89a1ee809d772d7 Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 22 Jun 2005 14:43:14 +0000 Subject: New Zealand fixes git-svn-id: http://svn.digium.com/svn/zaptel/trunk@681 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- usbfxstest.c | 2 +- wct4xxp.c | 2 +- wctdm.c | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/usbfxstest.c b/usbfxstest.c index 1174dda..23cd680 100755 --- a/usbfxstest.c +++ b/usbfxstest.c @@ -62,7 +62,7 @@ int main(int argc, char *argv[]) if (res < len) { res = zap_getevent(z); if (zap_dtmfwaiting(z)) { - zap_getdtmf(z, 1, NULL, 0, 1, 1, 0); + zap_getdtmf(z, 1, NULL, 0, 1, 1, 0); printf("Got DTMF: %s\n", zap_dtmfbuf(z)); zap_clrdtmfn(z); } else if (res) { diff --git a/wct4xxp.c b/wct4xxp.c index 484e1d1..f95b0bb 100755 --- a/wct4xxp.c +++ b/wct4xxp.c @@ -56,7 +56,7 @@ /* Work queues are a way to better distribute load on SMP systems */ #ifdef LINUX26 -#define ENABLE_WORKQUEUES +//#define ENABLE_WORKQUEUES #endif /* Enable prefetching may help performance */ diff --git a/wctdm.c b/wctdm.c index 226a2d5..bdcceda 100755 --- a/wctdm.c +++ b/wctdm.c @@ -1455,6 +1455,11 @@ static int wctdm_init_voicedaa(struct wctdm *wc, int card, int fast, int manual, (wctdm_getreg(wc, card, 13) >> 2) & 0xf); /* Enable on-hook line monitor */ wctdm_setreg(wc, card, 5, 0x08); + + /* NZ -- crank the tx gain up by 7 dB */ + if (!strcmp(fxo_modes[_opermode].name, "NEWZEALAND")) + wctdm_setreg(wc, card, 38, 0x7); + return 0; } -- cgit v1.2.3