[Asterisk-cvs] zaptel mec3.h,1.4,1.5
markster at lists.digium.com
markster at lists.digium.com
Tue Nov 4 23:58:04 CST 2003
Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv14709
Modified Files:
mec3.h
Log Message:
Implement training for mec3
Index: mec3.h
===================================================================
RCS file: /usr/cvsroot/zaptel/mec3.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- mec3.h 29 Jun 2003 17:15:25 -0000 1.4
+++ mec3.h 5 Nov 2003 06:24:13 -0000 1.5
@@ -225,4 +225,19 @@
return ec;
}
+static inline int echo_can_traintap(echo_can_state_t *ec, int pos, short val)
+{
+ /* Reset hang counter to avoid adjustments after
+ initial forced training */
+ ec->hcntr = ec->taps << 1;
+ if (pos >= ec->taps)
+ return 1;
+ ec->a_i[pos] = val << 17;
+ ec->a_s[pos] = val << 1;
+ if (++pos >= ec->taps)
+ return 1;
+ return 0;
+}
+
+
#endif
More information about the svn-commits
mailing list