Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317729
b: refs/heads/master
c: 3ec50be
h: refs/heads/master
i:
  317727: d1cc9ef
v: v3
  • Loading branch information
Jesper Juhl authored and Greg Kroah-Hartman committed Jul 6, 2012
1 parent 0bc077a commit b2ef754
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c01ef023ec1d2af185e55f7600405dcce1813d5d
refs/heads/master: 3ec50be588d773b408e82643c87c5a681b0354ad
9 changes: 6 additions & 3 deletions trunk/drivers/staging/echo/echo.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@
#ifdef __bfin__
static inline void lms_adapt_bg(struct oslec_state *ec, int clean, int shift)
{
int i, j;
int i;
int j;
int offset1;
int offset2;
int factor;
Expand Down Expand Up @@ -335,7 +336,8 @@ int16_t oslec_update(struct oslec_state *ec, int16_t tx, int16_t rx)
{
int32_t echo_value;
int clean_bg;
int tmp, tmp1;
int tmp;
int tmp1;

/*
* Input scaling was found be required to prevent problems when tx
Expand Down Expand Up @@ -624,7 +626,8 @@ EXPORT_SYMBOL_GPL(oslec_update);

int16_t oslec_hpf_tx(struct oslec_state *ec, int16_t tx)
{
int tmp, tmp1;
int tmp;
int tmp1;

if (ec->adaption_mode & ECHO_CAN_USE_TX_HPF) {
tmp = tx << 15;
Expand Down
28 changes: 20 additions & 8 deletions trunk/drivers/staging/echo/echo.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ What does it do?
This module aims to provide G.168-2002 compliant echo cancellation, to remove
electrical echoes (e.g. from 2-4 wire hybrids) from voice calls.
How does it work?
The heart of the echo cancellor is FIR filter. This is adapted to match the
Expand Down Expand Up @@ -128,7 +127,8 @@ a minor burden.
echo canceller.
*/
struct oslec_state {
int16_t tx, rx;
int16_t tx;
int16_t rx;
int16_t clean;
int16_t clean_nlp;

Expand All @@ -145,23 +145,35 @@ struct oslec_state {
int16_t shift;

/* Average levels and averaging filter states */
int Ltxacc, Lrxacc, Lcleanacc, Lclean_bgacc;
int Ltx, Lrx;
int Ltxacc;
int Lrxacc;
int Lcleanacc;
int Lclean_bgacc;
int Ltx;
int Lrx;
int Lclean;
int Lclean_bg;
int Lbgn, Lbgn_acc, Lbgn_upper, Lbgn_upper_acc;
int Lbgn;
int Lbgn_acc;
int Lbgn_upper;
int Lbgn_upper_acc;

/* foreground and background filter states */
struct fir16_state_t fir_state;
struct fir16_state_t fir_state_bg;
int16_t *fir_taps16[2];

/* DC blocking filter states */
int tx_1, tx_2, rx_1, rx_2;
int tx_1;
int tx_2;
int rx_1;
int rx_2;

/* optional High Pass Filter states */
int32_t xvtx[5], yvtx[5];
int32_t xvrx[5], yvrx[5];
int32_t xvtx[5];
int32_t yvtx[5];
int32_t xvrx[5];
int32_t yvrx[5];

/* Parameters for the optional Hoth noise generator */
int cng_level;
Expand Down

0 comments on commit b2ef754

Please sign in to comment.