diff options
-rwxr-xr-x | usbfxstest.c | 2 | ||||
-rwxr-xr-x | wct4xxp.c | 2 | ||||
-rwxr-xr-x | 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) { @@ -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 */ @@ -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; } |