diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-11-10 15:46:18 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-11-10 15:46:18 +0000 |
commit | 6156a368154539bffd429e755698d16bbabd3f58 (patch) | |
tree | 74507ab6ba547798837163dc7ac141618d0f32f3 /drivers | |
parent | 88e4e5a674a4167530c76d96a9631be4fa6f728c (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')
-rw-r--r-- | drivers/dahdi/wcte12xp/base.c | 5 |
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); } |