summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte12xp/base.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2009-11-10 15:46:18 +0000
committerShaun Ruffell <sruffell@digium.com>2009-11-10 15:46:18 +0000
commit6dbcb501a17b0b8b84a44a1a76de90d2a2c5936a (patch)
tree74507ab6ba547798837163dc7ac141618d0f32f3 /drivers/dahdi/wcte12xp/base.c
parent69a273fd5b6082283335eb4fb6bda1c29310d693 (diff)
wcte12xp: Export features and operations for VPMADT032.
Fixes a regression in dahdi-linux 2.2.0 where it was impossible for userspace to reset the state of a channel in the VPM. (issue #15724) Patches: mantis-15724-2.patch uploaded by sruffell (license 456) Tested by: alecdavis git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7549 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte12xp/base.c')
-rw-r--r--drivers/dahdi/wcte12xp/base.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c
index 70f6fe3..4da240d 100644
--- a/drivers/dahdi/wcte12xp/base.c
+++ b/drivers/dahdi/wcte12xp/base.c
@@ -1158,6 +1158,11 @@ static int echocan_create(struct dahdi_chan *chan, struct dahdi_echocanparams *e
if (!wc->vpmadt032) {
return -ENODEV;
}
+
+ *ec = wc->ec[chan->chanpos - 1];
+ (*ec)->ops = &vpm150m_ec_ops;
+ (*ec)->features = vpm150m_ec_features;
+
return vpmadt032_echocan_create(wc->vpmadt032, chan->chanpos - 1,
ecp, p);
}