diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-06-02 20:01:49 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-06-02 20:01:49 +0000 |
commit | da4fb491de5e3b51407f5902b0bc78c2286e890a (patch) | |
tree | 64a460a242f119ddf3569c51bdc107c151903efa /drivers/dahdi/wct4xxp/base.c | |
parent | 914882bb844f05c3e1e7bd23b570abc55838a6df (diff) |
dahdi: Do not allow 'hwec' to be attached to channels that do not have one.
This defines a NULL value for the name of an echocan as invalid. This
will allow dahdi_genconf to probe for the presence of a hardware echocan
on a channel by trying to attach one. If there is not a hardware echocan
available DAHDI_ATTACH_ECHOCAN ioctl will return -EINVAL if 'hwec' was
specified as the name of the echo canceler now.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9943 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wct4xxp/base.c')
-rw-r--r-- | drivers/dahdi/wct4xxp/base.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index f49fa43..2dbb00f 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -246,7 +246,6 @@ static int altab[] = { static const char *vpm400_name = "VPM400M"; static const char *vpmoct064_name = "VPMOCT064"; static const char *vpmoct128_name = "VPMOCT128"; -static const char *noec_name = "NONE"; #define PORTS_PER_FRAMER 4 @@ -1296,7 +1295,7 @@ static const char *t4_echocan_name(const struct dahdi_chan *chan) else if (wc->numspans == 4) return vpmoct128_name; } - return noec_name; + return NULL; } static int t4_echocan_create(struct dahdi_chan *chan, |