summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte12xp/base.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2009-04-30 19:49:36 +0000
committerKevin P. Fleming <kpfleming@digium.com>2009-04-30 19:49:36 +0000
commita3c1757829cfed4b86369e7e21d9fcbf22b1add0 (patch)
tree13ed2b3e7e8e46ad796ab5dd29e2463382d0692c /drivers/dahdi/wcte12xp/base.c
parent722485874fcfe22dfa6e0eb69150dbda75561935 (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/wcte12xp/base.c')
-rw-r--r--drivers/dahdi/wcte12xp/base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c
index 03eb34c..b97cd5f 100644
--- a/drivers/dahdi/wcte12xp/base.c
+++ b/drivers/dahdi/wcte12xp/base.c
@@ -1232,7 +1232,8 @@ static int t1_software_init(struct t1 *wc)
wc->span.close = t1xxp_close;
wc->span.ioctl = t1xxp_ioctl;
#ifdef VPM_SUPPORT
- wc->span.echocan_create = echocan_create;
+ if (vpmsupport)
+ wc->span.echocan_create = echocan_create;
#endif
if (wc->spantype == TYPE_E1) {