[svn-commits] mattf: branch mattf/zaptel-1.2-vpmadt032fwupdate r3991 - /team/mattf/zaptel-1...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Mar 14 11:54:10 CDT 2008


Author: mattf
Date: Fri Mar 14 11:54:09 2008
New Revision: 3991

URL: http://svn.digium.com/view/zaptel?view=rev&rev=3991
Log:
Update wcte12xp driver with new firmware changes

Modified:
    team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/GpakApi.c
    team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/GpakApi.h
    team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/GpakHpi.h
    team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/VPMADT032.bin
    team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/gpakenum.h

Modified: team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/GpakApi.c
URL: http://svn.digium.com/view/zaptel/team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/GpakApi.c?view=diff&rev=3991&r1=3990&r2=3991
==============================================================================
--- team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/GpakApi.c (original)
+++ team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/GpakApi.c Fri Mar 14 11:54:09 2008
@@ -128,10 +128,10 @@
     DSP_ADDRESS IfBlockPntr; /* Interface Block pointer */
     DSP_WORD DspStatus;      /* DSP Status */
     DSP_WORD DspChannels;    /* number of DSP channels */
-    //DSP_WORD DspConfs;       /* number of DSP conferences */
-    //DSP_ADDRESS PktBufrMem;  /* address of Packet Buffer */
+    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 */
+    unsigned short int i;    /* loop index / counter */
 
     /* Read the pointer to the Interface Block. */
     gpakReadDspMemory(DspId, DSP_IFBLK_ADDRESS, 2, Temp);
@@ -560,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) |
@@ -672,7 +672,7 @@
                        ((pChanConfig->SoftwareCompand & 3) << 2) |
                         (pChanConfig->EcanEnableB << 1) | 
                         (pChanConfig->EcanEnableA & 1)
-						);
+                        );
                         
         MsgBuffer[7]   = (DSP_WORD)
                          pChanConfig->EcanParametersA.EcanTapLength;       
@@ -732,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;
 
 
@@ -889,7 +897,7 @@
     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  */
-    //DSP_WORD *pDebugData;   /* debug data buffer pointer in event data struct */
+    DSP_WORD *pDebugData;   /* debug data buffer pointer in event data struct */
 
     /* Make sure the DSP Id is valid. */
     if (DspId >= MAX_DSP_CORES)

Modified: team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/GpakApi.h
URL: http://svn.digium.com/view/zaptel/team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/GpakApi.h?view=diff&rev=3991&r1=3990&r2=3991
==============================================================================
--- team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/GpakApi.h (original)
+++ team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/GpakApi.h Fri Mar 14 11:54:09 2008
@@ -36,7 +36,7 @@
 
 #ifndef _GPAKAPI_H  /* prevent multiple inclusion */
 #define _GPAKAPI_H
-#include "GpakErrs.h"
+#include "gpakErrs.h"
 #include "gpakenum.h"
 
 // Bit masks to select which algorithm's parameters to update: Or-together the
@@ -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.2-vpmadt032fwupdate/wcte12xp/GpakHpi.h
URL: http://svn.digium.com/view/zaptel/team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/GpakHpi.h?view=diff&rev=3991&r1=3990&r2=3991
==============================================================================
--- team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/GpakHpi.h (original)
+++ team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/GpakHpi.h Fri Mar 14 11:54:09 2008
@@ -75,6 +75,6 @@
 #define MSG_READ_DSP_MEMORY         49 /* read small section of DSP's memory */
 #define MSG_READ_DSP_MEMORY_REPLY   50 /* read memory reply */
 
-#define MSG_ACCESSGPIO				51
-#define MSG_ACCESSGPIO_REPLY		52
+#define MSG_ACCESSGPIO              51
+#define MSG_ACCESSGPIO_REPLY        52
 #endif  /* prevent multiple inclusion */

Modified: team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/VPMADT032.bin
URL: http://svn.digium.com/view/zaptel/team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/VPMADT032.bin?view=diff&rev=3991&r1=3990&r2=3991
==============================================================================
Binary files - no diff available.

Modified: team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/gpakenum.h
URL: http://svn.digium.com/view/zaptel/team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/gpakenum.h?view=diff&rev=3991&r1=3990&r2=3991
==============================================================================
--- team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/gpakenum.h (original)
+++ team/mattf/zaptel-1.2-vpmadt032fwupdate/wcte12xp/gpakenum.h Fri Mar 14 11:54:09 2008
@@ -114,7 +114,7 @@
 
     EnableMuLawSwCompanding  = 6,// Enable Mu-law Software companding
     EnableALawSwCompanding  = 7, // Enable Mu-law Software companding
-    BypassSwCompanding  = 8,     // Bypass Software companding
+    BypassSwCompanding   = 8,    // Bypass Software companding
 	EnableDTMFMuteA       = 9,   // Mute A side Dtmf digit after tone detected
 	DisableDTMFMuteA      = 10,  // Do not mute A side Dtmf digit once tone detected
 	EnableDTMFMuteB       = 11,  // Mute B side Dtmf digit after tone detected
@@ -174,7 +174,7 @@
     DtmfDigitPnd = 14,    // DTMF Digit # 
     DtmfDigitD   = 15,    // DTMF Digit D 
 
-	FaxCngDigit  = 90,    // Fax Calling Tone (1100 Hz)
+    FaxCngDigit = 90,       // Fax Calling Tone (1100 Hz) 
 
     EndofMFDigit = 100,     // End of MF digit 
     EndofCngDigit = 101     // End of Cng Digit
@@ -188,4 +188,5 @@
 	GPIO_DIR = 2
 } GpakGPIOCotrol_t;
 
+
 #endif // end multiple inclusion




More information about the svn-commits mailing list