From 6156a368154539bffd429e755698d16bbabd3f58 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Tue, 10 Nov 2009 15:46:18 +0000 Subject: 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 --- drivers/dahdi/wcte12xp/base.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/dahdi/wcte12xp') 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); } -- cgit v1.2.3