summaryrefslogtreecommitdiff
path: root/drivers/dahdi/voicebus
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-10-20 12:22:35 +0000
committerShaun Ruffell <sruffell@digium.com>2010-10-20 12:22:35 +0000
commit4b968afdc960a655d85a556fd9e960fc8526ffa7 (patch)
tree4df7acd3ededdd94c504ce1549cdc376741b12df /drivers/dahdi/voicebus
parente773b2061ac058c9be11e9e9ce3ae5e27315e499 (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> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9432 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/voicebus')
-rw-r--r--drivers/dahdi/voicebus/GpakCust.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dahdi/voicebus/GpakCust.c b/drivers/dahdi/voicebus/GpakCust.c
index 08ba579..d33779d 100644
--- a/drivers/dahdi/voicebus/GpakCust.c
+++ b/drivers/dahdi/voicebus/GpakCust.c
@@ -759,7 +759,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;