diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-01-21 05:29:17 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-01-21 05:29:17 +0000 |
commit | e9f8bb7934d8ab5713ac23f7dd1a86841e90c90e (patch) | |
tree | a32287ab3967f414d5a7a105a7743c4da13e6b80 | |
parent | 36b2f54e5cf257ad96f551e6900fef88beb9423e (diff) |
vpmadt032: Honor the CONFIG_DAHDI_NO_ECHOCAN_DISABLE flag.
Setting this configuration option would not have had any impact when a
hardware echo canceler was in use.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com>
Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9432
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.4@9667 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r-- | drivers/dahdi/voicebus/GpakCust.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dahdi/voicebus/GpakCust.c b/drivers/dahdi/voicebus/GpakCust.c index a601525..7a2589a 100644 --- a/drivers/dahdi/voicebus/GpakCust.c +++ b/drivers/dahdi/voicebus/GpakCust.c @@ -708,7 +708,13 @@ void vpmadt032_get_default_parameters(struct GpakEcanParms *p) p->EcanTapLength = 1024; p->EcanNlpType = DEFAULT_NLPTYPE; p->EcanAdaptEnable = 1; + +#ifdef CONFIG_DAHDI_NO_ECHOCAN_DISABLE + p->EcanG165DetEnable = 0; +#else p->EcanG165DetEnable = 1; +#endif + p->EcanDblTalkThresh = 6; p->EcanMaxDoubleTalkThres = 40; p->EcanNlpThreshold = DEFAULT_NLPTHRESH; |