From 8cde4916b6b140ec3f6803d9fce6175d80523ffa Mon Sep 17 00:00:00 2001 From: Doug Bailey Date: Mon, 4 May 2009 20:36:36 +0000 Subject: 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 --- drivers/dahdi/voicebus/GpakCust.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3