[zaptel-commits] mattf: branch mattf/zaptel-1.4-vpmadt032fwupdate r3859 - in /team/mattf/zapte...

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Wed Feb 20 14:58:50 CST 2008


Author: mattf
Date: Wed Feb 20 14:58:50 2008
New Revision: 3859

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3859
Log:
Updates for new firmware

Modified:
    team/mattf/zaptel-1.4-vpmadt032fwupdate/Makefile
    team/mattf/zaptel-1.4-vpmadt032fwupdate/firmware/Makefile
    team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/GpakApi.c
    team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/GpakApi.h
    team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/base.c

Modified: team/mattf/zaptel-1.4-vpmadt032fwupdate/Makefile
URL: http://svn.digium.com/view/zaptel/team/mattf/zaptel-1.4-vpmadt032fwupdate/Makefile?view=diff&rev=3859&r1=3858&r2=3859
==============================================================================
--- team/mattf/zaptel-1.4-vpmadt032fwupdate/Makefile (original)
+++ team/mattf/zaptel-1.4-vpmadt032fwupdate/Makefile Wed Feb 20 14:58:50 2008
@@ -414,6 +414,7 @@
 
 install-firmware:
 ifeq ($(HOTPLUG_FIRMWARE),yes)
+	@echo "Hey"
 	$(MAKE) -C firmware hotplug-install DESTDIR=$(DESTDIR)
 endif
 

Modified: team/mattf/zaptel-1.4-vpmadt032fwupdate/firmware/Makefile
URL: http://svn.digium.com/view/zaptel/team/mattf/zaptel-1.4-vpmadt032fwupdate/firmware/Makefile?view=diff&rev=3859&r1=3858&r2=3859
==============================================================================
--- team/mattf/zaptel-1.4-vpmadt032fwupdate/firmware/Makefile (original)
+++ team/mattf/zaptel-1.4-vpmadt032fwupdate/firmware/Makefile Wed Feb 20 14:58:50 2008
@@ -20,7 +20,7 @@
 OCT6114_064_VERSION:=1.05.01
 OCT6114_128_VERSION:=1.05.01
 TC400M_VERSION:=MR6.12
-VPMADT032_VERSION:=1.07
+VPMADT032_VERSION:=1.16
 
 FIRMWARE_URL:=http://downloads.digium.com/pub/telephony/firmware/releases
 

Modified: team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/GpakApi.c
URL: http://svn.digium.com/view/zaptel/team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/GpakApi.c?view=diff&rev=3859&r1=3858&r2=3859
==============================================================================
--- team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/GpakApi.c (original)
+++ team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/GpakApi.c Wed Feb 20 14:58:50 2008
@@ -32,10 +32,9 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
  */
-
+ 
 #include <linux/version.h>
 #include <asm/semaphore.h>
-
 #include "zaptel.h"
 
 #include "GpakHpi.h"
@@ -129,12 +128,10 @@
     DSP_ADDRESS IfBlockPntr; /* Interface Block pointer */
     DSP_WORD DspStatus;      /* DSP Status */
     DSP_WORD DspChannels;    /* number of DSP channels */
-    DSP_WORD  Temp[2];
-#if 0
     DSP_WORD DspConfs;       /* number of DSP conferences */
     DSP_ADDRESS PktBufrMem;  /* address of Packet Buffer */
+    DSP_WORD  Temp[2];
     unsigned short int i;    /* loop index / counter */
-#endif
 
     /* Read the pointer to the Interface Block. */
     gpakReadDspMemory(DspId, DSP_IFBLK_ADDRESS, 2, Temp);
@@ -563,7 +560,7 @@
                     ((pPortConfig->RxFrameSyncPolarity2 << 4) & 0x0010) |
                     ((pPortConfig->TxFrameSyncPolarity2 << 3) & 0x0008) |
                     ((pPortConfig->CompandingMode2 << 1) & 0x0006) |
-                    (pPortConfig->SerialWordSize1 & 0x0001));
+                    (pPortConfig->SerialWordSize2 & 0x0001));
 
     MsgBuffer[12] = (DSP_WORD)
                    (((pPortConfig->DxDelay3 << 11) & 0x0800) |
@@ -735,8 +732,16 @@
                          pChanConfig->EcanParametersB.EcanNumFirSegments;  
         MsgBuffer[34]  = (DSP_WORD)
                          pChanConfig->EcanParametersB.EcanFirSegmentLen;   
-
-        MsgLength = 70; // byte number == 35*2 
+        MsgBuffer[35]  = (DSP_WORD)
+                         pChanConfig->EcanParametersA.EcanTandemOperationEnable;  
+        MsgBuffer[36]  = (DSP_WORD)
+                         pChanConfig->EcanParametersA.EcanMixedFourWireMode;   
+        MsgBuffer[37]  = (DSP_WORD)
+                         pChanConfig->EcanParametersB.EcanTandemOperationEnable;  
+        MsgBuffer[38]  = (DSP_WORD)
+                         pChanConfig->EcanParametersB.EcanMixedFourWireMode;   
+
+        MsgLength = 78; // byte number == 39*2 
         break;
 
 
@@ -892,32 +897,21 @@
     DSP_WORD TakeIndex;     /* event fifo take index */
     DSP_WORD WordsReady;    /* number words ready for read out of event fifo */
     DSP_WORD EventError;    /* flag indicating error with event fifo msg  */
-#if 0
     DSP_WORD *pDebugData;   /* debug data buffer pointer in event data struct */
-#endif
 
     /* Make sure the DSP Id is valid. */
-    if (DspId >= MAX_DSP_CORES) {
-#if 0
-	    printk("Invalid DSP\n");
-#endif
+    if (DspId >= MAX_DSP_CORES)
         return (RefInvalidDsp);
-    }
 
     /* Lock access to the DSP. */
     gpakLockAccess(DspId);
 
-#if 1
     /* Check if the DSP was reset and is ready. */
     if (CheckDspReset(DspId) == -1)
     {
         gpakUnlockAccess(DspId);
-#if 0
-	printk("CheckDspReset failed (DspId %d)\n", DspId);
-#endif
         return (RefDspCommFailure);
     }
-#endif
 
     /* Check if an event message is ready in the DSP. */
     EventInfoAddress = pEventFifoAddress[DspId];
@@ -958,9 +952,6 @@
             if (EventDataLength > WORD_BUFFER_SIZE)
             {
                 gpakUnlockAccess(DspId);
-#if 0
-		printk("EventDataLength > WORD_BUFFER_SIZE (%d)\n", EventDataLength);
-#endif
                 return (RefInvalidEvent);
             }
             ReadCircBuffer(DspId, BufrBaseAddress, BufrLastAddress, &TakeAddress,
@@ -973,18 +964,11 @@
             TakeIndex += EventDataLength;
             if (TakeIndex >= BufrSize)
                 TakeIndex -= BufrSize;
-            if (EventDataLength != 4) {
-#if 0
-		    printk("EventDataLength != 4 it's %d\n", EventDataLength);
-#endif
+            if (EventDataLength != 4)
                 EventError = 1;
-	    }
             break;
 
         default:
-#if 0
-	    printk("Event Code not in switch\n");
-#endif
             EventError = 1;
             break;
     };

Modified: team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/GpakApi.h
URL: http://svn.digium.com/view/zaptel/team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/GpakApi.h?view=diff&rev=3859&r1=3858&r2=3859
==============================================================================
--- team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/GpakApi.h (original)
+++ team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/GpakApi.h Wed Feb 20 14:58:50 2008
@@ -77,6 +77,9 @@
     short int EcanCrossCorrLimit;  // Echo Can Cross Correlation limit 
     short int EcanNumFirSegments;  // Echo Can Num FIR Segments 
     short int EcanFirSegmentLen;   // Echo Can FIR Segment Length 
+    short int EcanTandemOperationEnable;   //Enable tandem operation 
+    short int EcanMixedFourWireMode; 	// Handle possible 4-wire (echo-free) lines
+
 } GpakEcanParms_t;
 
 /* Definition of a Channel Configuration information structure. */

Modified: team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/base.c
URL: http://svn.digium.com/view/zaptel/team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/base.c?view=diff&rev=3859&r1=3858&r2=3859
==============================================================================
--- team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/base.c (original)
+++ team/mattf/zaptel-1.4-vpmadt032fwupdate/kernel/wctdm24xxp/base.c Wed Feb 20 14:58:50 2008
@@ -295,7 +295,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;
 /* This is the threshold (in dB) for enabling and disabling of the NLP */
 static int vpmnlpthresh = 24;
 /* See vpmnlptype = 4 for more info */
@@ -3348,13 +3348,15 @@
 	chanconfig->EcanParametersA.EcanDblTalkThresh = 6;
 	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;
 	chanconfig->EcanParametersA.EcanCrossCorrLimit = 15;
 	chanconfig->EcanParametersA.EcanNumFirSegments = 3;
 	chanconfig->EcanParametersA.EcanFirSegmentLen = 64;
+	chanconfig->EcanParametersA.EcanTandemOperationEnable = 1;
+	chanconfig->EcanParametersA.EcanMixedFourWireMode = 1;
 
 	chanconfig->EcanParametersB.EcanTapLength = 1024;
 	chanconfig->EcanParametersB.EcanNlpType = parms->nlp_type;
@@ -3363,13 +3365,15 @@
 	chanconfig->EcanParametersB.EcanDblTalkThresh = 6;
 	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;
 	chanconfig->EcanParametersB.EcanCrossCorrLimit = 15;
 	chanconfig->EcanParametersB.EcanNumFirSegments = 3;
 	chanconfig->EcanParametersB.EcanFirSegmentLen = 64;
+	chanconfig->EcanParametersB.EcanTandemOperationEnable = 1;
+	chanconfig->EcanParametersB.EcanMixedFourWireMode = 1;
 }
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)




More information about the zaptel-commits mailing list