diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2009-04-30 19:49:36 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2009-04-30 19:49:36 +0000 |
commit | a3c1757829cfed4b86369e7e21d9fcbf22b1add0 (patch) | |
tree | 13ed2b3e7e8e46ad796ab5dd29e2463382d0692c /drivers/dahdi/wct4xxp | |
parent | 722485874fcfe22dfa6e0eb69150dbda75561935 (diff) |
Ensure that vpmsupport=0 module parameter takes proper effect
For these drivers, when the vpmsupport module parameter is set to zero, don't
even register the span as supporting echo cancellation.
DAHDI-250
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6544 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wct4xxp')
-rw-r--r-- | drivers/dahdi/wct4xxp/base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index 3bfd9cc..96fabde 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -1661,7 +1661,8 @@ static void init_spans(struct t4 *wc) ts->span.hdlc_hard_xmit = t4_hdlc_hard_xmit; if (gen2) { #ifdef VPM_SUPPORT - ts->span.echocan_create = echocan_create; + if (vpmsupport) + ts->span.echocan_create = echocan_create; #endif ts->span.dacs = t4_dacs; } |