summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-06-22 14:43:14 +0000
committermattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-06-22 14:43:14 +0000
commit0794d42d58203776433b1b01c89a1ee809d772d7 (patch)
treeae4f39c6422d51283756aaf58e2ea3779ccef44a
parent7876ba00032d1117816414899497de867bf3eb31 (diff)
New Zealand fixes
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@681 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xusbfxstest.c2
-rwxr-xr-xwct4xxp.c2
-rwxr-xr-xwctdm.c5
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;
}