diff options
author | Matthew Fredrickson <creslin@digium.com> | 2009-09-30 16:34:11 +0000 |
---|---|---|
committer | Matthew Fredrickson <creslin@digium.com> | 2009-09-30 16:34:11 +0000 |
commit | d8052050454fd6d0ab8430384cb7131715087266 (patch) | |
tree | 84f2793c099af88f89303c01b042eab49ea9d4b4 /drivers/dahdi/voicebus | |
parent | 39ae2779179aafdf65240e27c62d967106ffb328 (diff) |
Update echocan API so it only uses channel offset in free routine
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7284 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/voicebus')
-rw-r--r-- | drivers/dahdi/voicebus/GpakCust.c | 3 | ||||
-rw-r--r-- | drivers/dahdi/voicebus/GpakCust.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/drivers/dahdi/voicebus/GpakCust.c b/drivers/dahdi/voicebus/GpakCust.c index b3228df..ca85e5d 100644 --- a/drivers/dahdi/voicebus/GpakCust.c +++ b/drivers/dahdi/voicebus/GpakCust.c @@ -370,10 +370,9 @@ int vpmadt032_echocan_create(struct vpmadt032 *vpm, int channo, } EXPORT_SYMBOL(vpmadt032_echocan_create); -void vpmadt032_echocan_free(struct vpmadt032 *vpm, struct dahdi_chan *chan, +void vpmadt032_echocan_free(struct vpmadt032 *vpm, int channo, struct dahdi_echocan_state *ec) { - 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; diff --git a/drivers/dahdi/voicebus/GpakCust.h b/drivers/dahdi/voicebus/GpakCust.h index 9b4f6a8..0546bfb 100644 --- a/drivers/dahdi/voicebus/GpakCust.h +++ b/drivers/dahdi/voicebus/GpakCust.h @@ -145,7 +145,7 @@ struct vpmadt032 *vpmadt032_alloc(struct vpmadt032_options *options, void vpmadt032_free(struct vpmadt032 *vpm); int vpmadt032_echocan_create(struct vpmadt032 *vpm, int channo, struct dahdi_echocanparams *ecp, struct dahdi_echocanparam *p); -void vpmadt032_echocan_free(struct vpmadt032 *vpm, struct dahdi_chan *chan, +void vpmadt032_echocan_free(struct vpmadt032 *vpm, int channo, struct dahdi_echocan_state *ec); struct GpakEcanParms; |