diff options
author | Doug Bailey <dbailey@digium.com> | 2009-05-04 20:36:36 +0000 |
---|---|---|
committer | Doug Bailey <dbailey@digium.com> | 2009-05-04 20:36:36 +0000 |
commit | 8cde4916b6b140ec3f6803d9fce6175d80523ffa (patch) | |
tree | dceb316c00b287f7fd3506e257fedadbebf5adca | |
parent | fbdfd1af632eae962e851331940e10da845dd388 (diff) |
Insure that vpmnlptype, vpmnlpmaxsupp, and vpmnlpthresh are set back to module
level defaults when echo can is freed. (Previously they were zero'd out)
DAHDI-257
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6562 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r-- | drivers/dahdi/voicebus/GpakCust.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dahdi/voicebus/GpakCust.c b/drivers/dahdi/voicebus/GpakCust.c index ccd880c..c1f3c94 100644 --- a/drivers/dahdi/voicebus/GpakCust.c +++ b/drivers/dahdi/voicebus/GpakCust.c @@ -338,6 +338,9 @@ void vpmadt032_echocan_free(struct vpmadt032 *vpm, struct dahdi_chan *chan, { int channo = chan->chanpos - 1; adt_lec_init_defaults(&vpm->desiredecstate[channo], 0); + vpm->desiredecstate[channo].nlp_type = vpm->options.vpmnlptype; + vpm->desiredecstate[channo].nlp_threshold = vpm->options.vpmnlpthresh; + vpm->desiredecstate[channo].nlp_max_suppress = vpm->options.vpmnlpmaxsupp; if (vpm->options.debug & DEBUG_ECHOCAN) printk(KERN_DEBUG "echocan: Channel is %d length 0\n", channo); |