[svn-commits] mspiceland: branch mspiceland/zaptel-1.4-adtapiupdatefor117 r4420 - in /team/...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jul 17 20:26:09 CDT 2008


Author: mspiceland
Date: Thu Jul 17 20:26:09 2008
New Revision: 4420

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4420
Log:
Apply Matt F's patch from VPMADT032 which should configure the ADT firmware 
to match HPEC.


Modified:
    team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wctdm24xxp/base.c
    team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wcte12xp/base.c
    team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wcte12xp/vpmadt032.c

Modified: team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wctdm24xxp/base.c
URL: http://svn.digium.com/view/zaptel/team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wctdm24xxp/base.c?view=diff&rev=4420&r1=4419&r2=4420
==============================================================================
--- team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wctdm24xxp/base.c (original)
+++ team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wctdm24xxp/base.c Thu Jul 17 20:26:09 2008
@@ -207,7 +207,7 @@
  * 4 : Suppression NLP - In order to use this, you must set the vpmnlpmaxsupp parameter to
  * 	some value in order to give the amount of dB to suppress to the suppressor
  */
-static int vpmnlptype = 1;
+static int vpmnlptype = 3; /* Hoth noise */
 /* This is the threshold (in dB) for enabling and disabling of the NLP */
 static int vpmnlpthresh = 24;
 /* See vpmnlptype = 4 for more info */
@@ -2946,7 +2946,7 @@
 	chanconfig->EcanParametersA.EcanMaxDoubleTalkThres = 40;
 	chanconfig->EcanParametersA.EcanNlpThreshold = parms->nlp_threshold;
 	chanconfig->EcanParametersA.EcanNlpConv = 0;
-	chanconfig->EcanParametersA.EcanNlpUnConv = 0;
+	chanconfig->EcanParametersA.EcanNlpUnConv = 12;
 	chanconfig->EcanParametersA.EcanNlpMaxSuppress = parms->nlp_max_suppress;
 	chanconfig->EcanParametersA.EcanCngThreshold = 43;
 	chanconfig->EcanParametersA.EcanAdaptLimit = 50;
@@ -2954,6 +2954,8 @@
 	chanconfig->EcanParametersA.EcanNumFirSegments = 3;
 	chanconfig->EcanParametersA.EcanFirSegmentLen = 48;
 	chanconfig->EcanParametersA.EcanReconvergenceCheckEnable = 1;
+	chanconfig->EcanParametersA.EcanTandemOperationEnable = 1;
+	chanconfig->EcanParametersA.EcanMixedFourWireMode = 1;
 
 	chanconfig->EcanParametersB.EcanTapLength = 1024;
 	chanconfig->EcanParametersB.EcanNlpType = parms->nlp_type;
@@ -2963,7 +2965,7 @@
 	chanconfig->EcanParametersB.EcanMaxDoubleTalkThres = 40;
 	chanconfig->EcanParametersB.EcanNlpThreshold = parms->nlp_threshold;
 	chanconfig->EcanParametersB.EcanNlpConv = 0;
-	chanconfig->EcanParametersB.EcanNlpUnConv = 0;
+	chanconfig->EcanParametersB.EcanNlpUnConv = 12;
 	chanconfig->EcanParametersB.EcanNlpMaxSuppress = parms->nlp_max_suppress;
 	chanconfig->EcanParametersB.EcanCngThreshold = 43;
 	chanconfig->EcanParametersB.EcanAdaptLimit = 50;
@@ -2971,6 +2973,8 @@
 	chanconfig->EcanParametersB.EcanNumFirSegments = 3;
 	chanconfig->EcanParametersB.EcanFirSegmentLen = 48;
 	chanconfig->EcanParametersB.EcanReconvergenceCheckEnable = 1;
+	chanconfig->EcanParametersB.EcanTandemOperationEnable = 1;
+	chanconfig->EcanParametersB.EcanMixedFourWireMode = 1;
 }
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)

Modified: team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wcte12xp/base.c
URL: http://svn.digium.com/view/zaptel/team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wcte12xp/base.c?view=diff&rev=4420&r1=4419&r2=4420
==============================================================================
--- team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wcte12xp/base.c (original)
+++ team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wcte12xp/base.c Thu Jul 17 20:26:09 2008
@@ -95,7 +95,7 @@
 int vpmsupport = 1;
 int vpmdtmfsupport = 0;
 int vpmtsisupport = 0;
-int vpmnlptype = 1;
+int vpmnlptype = 3; /* Hoth noise */
 int vpmnlpthresh = 24;
 int vpmnlpmaxsupp = 0;
 #endif

Modified: team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wcte12xp/vpmadt032.c
URL: http://svn.digium.com/view/zaptel/team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wcte12xp/vpmadt032.c?view=diff&rev=4420&r1=4419&r2=4420
==============================================================================
--- team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wcte12xp/vpmadt032.c (original)
+++ team/mspiceland/zaptel-1.4-adtapiupdatefor117/kernel/wcte12xp/vpmadt032.c Thu Jul 17 20:26:09 2008
@@ -1252,7 +1252,7 @@
 		chanconfig.EcanParametersA.EcanMaxDoubleTalkThres = 40;
 		chanconfig.EcanParametersA.EcanNlpThreshold = vpmnlpthresh;
 		chanconfig.EcanParametersA.EcanNlpConv = 0;
-		chanconfig.EcanParametersA.EcanNlpUnConv = 0;
+		chanconfig.EcanParametersA.EcanNlpUnConv = 12;
 		chanconfig.EcanParametersA.EcanNlpMaxSuppress = vpmnlpmaxsupp;
 		chanconfig.EcanParametersA.EcanCngThreshold = 43;
 		chanconfig.EcanParametersA.EcanAdaptLimit = 50;
@@ -1260,6 +1260,8 @@
 		chanconfig.EcanParametersA.EcanNumFirSegments = 3;
 		chanconfig.EcanParametersA.EcanFirSegmentLen = 48;
 		chanconfig.EcanParametersA.EcanReconvergenceCheckEnable = 1;
+		chanconfig.EcanParametersA.EcanTandemOperationEnable = 1;
+		chanconfig.EcanParametersA.EcanMixedFourWireMode = 1;
 	
 		chanconfig.EcanParametersB.EcanTapLength = 1024;
 		chanconfig.EcanParametersB.EcanNlpType = vpmnlptype;
@@ -1269,7 +1271,7 @@
 		chanconfig.EcanParametersB.EcanMaxDoubleTalkThres = 40;
 		chanconfig.EcanParametersB.EcanNlpThreshold = vpmnlpthresh;
 		chanconfig.EcanParametersB.EcanNlpConv = 0;
-		chanconfig.EcanParametersB.EcanNlpUnConv = 0;
+		chanconfig.EcanParametersB.EcanNlpUnConv = 12;
 		chanconfig.EcanParametersB.EcanNlpMaxSuppress = vpmnlpmaxsupp;
 		chanconfig.EcanParametersB.EcanCngThreshold = 43;
 		chanconfig.EcanParametersB.EcanAdaptLimit = 50;
@@ -1278,6 +1280,8 @@
 		chanconfig.EcanParametersB.EcanFirSegmentLen = 64;
 		chanconfig.EcanParametersB.EcanFirSegmentLen = 48;
 		chanconfig.EcanParametersB.EcanReconvergenceCheckEnable = 1;
+		chanconfig.EcanParametersB.EcanTandemOperationEnable = 1;
+		chanconfig.EcanParametersB.EcanMixedFourWireMode = 1;
 	
 		if ((res = gpakConfigureChannel(vpm150m->dspid, i, tdmToTdm, &chanconfig, &cstatus))) {
 			module_printk("Unable to configure channel (%d)\n", res);




More information about the svn-commits mailing list