[zaptel-commits] kpfleming: branch 1.4 r4622 - in /branches/1.4/kernel/hpec: hpec.h hpec_zaptel.h

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Mon Feb 2 08:03:50 CST 2009


Author: kpfleming
Date: Mon Feb  2 08:03:49 2009
New Revision: 4622

URL: http://svn.digium.com/svn-view/zaptel?view=rev&rev=4622
Log:
correct a minor mistake... the hpec_channel_update function actually accepts the 'received' audio (isig) as its first argument, and the 'transmitted' audio (iref) as its second argument. in spite of the prototype and function argument names being reversed, zaptel-base.c passed the data in the correct order, and the HPEC binary modules processed the data properly. this commit changes the definition of the argument order, but causes no functional change.

(a similar change will be made in DAHDI shortly)


Modified:
    branches/1.4/kernel/hpec/hpec.h
    branches/1.4/kernel/hpec/hpec_zaptel.h

Modified: branches/1.4/kernel/hpec/hpec.h
URL: http://svn.digium.com/svn-view/zaptel/branches/1.4/kernel/hpec/hpec.h?view=diff&rev=4622&r1=4621&r2=4622
==============================================================================
--- branches/1.4/kernel/hpec/hpec.h (original)
+++ branches/1.4/kernel/hpec/hpec.h Mon Feb  2 08:03:49 2009
@@ -41,7 +41,7 @@
 
 void __attribute__((regparm(0))) hpec_channel_free(struct echo_can_state *channel);
 
-void __attribute__((regparm(0))) hpec_channel_update(struct echo_can_state *channel, short *iref, short *isig);
+void __attribute__((regparm(0))) hpec_channel_update(struct echo_can_state *channel, short *isig, short *iref);
 
 #endif /* !defined(_HPEC_H) */
 

Modified: branches/1.4/kernel/hpec/hpec_zaptel.h
URL: http://svn.digium.com/svn-view/zaptel/branches/1.4/kernel/hpec/hpec_zaptel.h?view=diff&rev=4622&r1=4621&r2=4622
==============================================================================
--- branches/1.4/kernel/hpec/hpec_zaptel.h (original)
+++ branches/1.4/kernel/hpec/hpec_zaptel.h Mon Feb  2 08:03:49 2009
@@ -80,9 +80,9 @@
 	hpec_channel_free(ec);
 }
 
-static inline void echo_can_array_update(struct echo_can_state *ec, short *iref, short *isig)
+static inline void echo_can_array_update(struct echo_can_state *ec, short *isig, short *iref)
 {
-	hpec_channel_update(ec, iref, isig);
+	hpec_channel_update(ec, isig, iref);
 }
 
 DECLARE_MUTEX(alloc_lock);




More information about the zaptel-commits mailing list