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/wctdm24xxp | |
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/wctdm24xxp')
-rw-r--r-- | drivers/dahdi/wctdm24xxp/base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index 0985a57..7b21b5b 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -3254,7 +3254,8 @@ static int wctdm_initialize(struct wctdm *wc) wc->span.watchdog = wctdm_watchdog; wc->span.dacs= wctdm_dacs; #ifdef VPM_SUPPORT - wc->span.echocan_create = echocan_create; + if (vpmsupport) + wc->span.echocan_create = echocan_create; #endif init_waitqueue_head(&wc->span.maintq); |