[zaptel-commits] trunk r999 - /trunk/mg2ec.h

zaptel-commits at lists.digium.com zaptel-commits at lists.digium.com
Mon Apr 10 09:35:01 MST 2006


Author: kpfleming
Date: Mon Apr 10 11:35:01 2006
New Revision: 999

URL: http://svn.digium.com/view/zaptel?rev=999&view=rev
Log:
suppress annoying message that is only useful for developers :-)

Modified:
    trunk/mg2ec.h

Modified: trunk/mg2ec.h
URL: http://svn.digium.com/view/zaptel/trunk/mg2ec.h?rev=999&r1=998&r2=999&view=diff
==============================================================================
--- trunk/mg2ec.h (original)
+++ trunk/mg2ec.h Mon Apr 10 11:35:01 2006
@@ -59,6 +59,9 @@
 /* Uncomment to generate per-sample statistics - this will severely degrade system performance and audio quality */
 /* #define MEC2_STATS_DETAILED */
 
+/* Uncomment to generate per-call DC bias offset messages */
+/* #define MEC2_DCBIAS_MESSAGE */
+
 /* Get optimized routines for math */
 #include "arith.h"
 
@@ -263,7 +266,7 @@
 
 static inline void echo_can_free(struct echo_can_state *ec)
 {
-#ifdef DC_NORMALIZE
+#if defined(DC_NORMALIZE) && defined(MEC2_DCBIAS_MESSAGE)
 	printk("EC: DC bias calculated: %d V\n", ec->dc_estimate >> 15);
 #endif
 	FREE(ec);



More information about the zaptel-commits mailing list