[dahdi-commits] sruffell: branch linux/sruffell/dahdi-linux-13562 r9148 - in /linux/team/sruf...
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Tue Aug 17 15:32:20 CDT 2010
Author: sruffell
Date: Tue Aug 17 15:32:12 2010
New Revision: 9148
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9148
Log:
dahdi: 'echocan_hpf_tx' -> 'echocan_process_tx'
The echo cancelers could do more than apply a high pass filter.
(issue #13562)
Modified:
linux/team/sruffell/dahdi-linux-13562/drivers/dahdi/dahdi-base.c
linux/team/sruffell/dahdi-linux-13562/drivers/dahdi/dahdi_echocan_oslec.c
linux/team/sruffell/dahdi-linux-13562/include/dahdi/kernel.h
Modified: linux/team/sruffell/dahdi-linux-13562/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/dahdi-linux-13562/drivers/dahdi/dahdi-base.c?view=diff&rev=9148&r1=9147&r2=9148
==============================================================================
--- linux/team/sruffell/dahdi-linux-13562/drivers/dahdi/dahdi-base.c (original)
+++ linux/team/sruffell/dahdi-linux-13562/drivers/dahdi/dahdi-base.c Tue Aug 17 15:32:12 2010
@@ -2259,11 +2259,11 @@
chan->writen[res] = amnt;
}
if (chan->ec_state && (ECHO_MODE_ACTIVE == chan->ec_state->status.mode) &&
- chan->ec_state->ops->echocan_hpf_tx) {
+ chan->ec_state->ops->echocan_process_tx) {
for (x=0; x < chan->writen[res]; ++x) {
short tx;
tx = DAHDI_XLAW(chan->writebuf[res][x], chan);
- chan->ec_state->ops->echocan_hpf_tx(chan->ec_state, &tx, 1);
+ chan->ec_state->ops->echocan_process_tx(chan->ec_state, &tx, 1);
chan->writebuf[res][x] = DAHDI_LIN2X((int) tx, chan);
}
}
Modified: linux/team/sruffell/dahdi-linux-13562/drivers/dahdi/dahdi_echocan_oslec.c
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/dahdi-linux-13562/drivers/dahdi/dahdi_echocan_oslec.c?view=diff&rev=9148&r1=9147&r2=9148
==============================================================================
--- linux/team/sruffell/dahdi-linux-13562/drivers/dahdi/dahdi_echocan_oslec.c (original)
+++ linux/team/sruffell/dahdi-linux-13562/drivers/dahdi/dahdi_echocan_oslec.c Tue Aug 17 15:32:12 2010
@@ -56,7 +56,7 @@
.echocan_free = echo_can_free,
.echocan_process = echo_can_process,
.echocan_traintap = echo_can_traintap,
- .echocan_hpf_tx = echo_can_hpf_tx,
+ .echocan_process_tx = echo_can_hpf_tx,
};
struct ec_pvt {
Modified: linux/team/sruffell/dahdi-linux-13562/include/dahdi/kernel.h
URL: http://svnview.digium.com/svn/dahdi/linux/team/sruffell/dahdi-linux-13562/include/dahdi/kernel.h?view=diff&rev=9148&r1=9147&r2=9148
==============================================================================
--- linux/team/sruffell/dahdi-linux-13562/include/dahdi/kernel.h (original)
+++ linux/team/sruffell/dahdi-linux-13562/include/dahdi/kernel.h Tue Aug 17 15:32:12 2010
@@ -256,11 +256,11 @@
*/
void (*echocan_NLP_toggle)(struct dahdi_echocan_state *ec, unsigned int enable);
- /*! \brief Process an array of TX audio samples through the HPF.
+ /*! \brief Process an array of TX audio samples.
*
* \return Nothing.
*/
- void (*echocan_hpf_tx)(struct dahdi_echocan_state *ec, short *tx, u32 size);
+ void (*echocan_process_tx)(struct dahdi_echocan_state *ec, short *tx, u32 size);
};
/*! A factory for creating instances of software echo cancelers to be used on DAHDI channels. */
More information about the dahdi-commits
mailing list