diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-11-19 16:11:20 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-11-19 16:11:20 +0000 |
commit | c1991c4b02607561dd56d93d372fa25255b55901 (patch) | |
tree | 5c14e3dd294cb125bb864feec95a5b0156879cd8 /drivers/dahdi/wctdm24xxp | |
parent | dee2861f4ed9d4f87a9671b21230eb59927a40be (diff) |
wctdm24xxp: Honor the alawoverride parameter when using the VPMADT032.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@7601 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm24xxp')
-rw-r--r-- | drivers/dahdi/wctdm24xxp/base.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index eca3b1a..13e1ec2 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -417,6 +417,9 @@ static int config_vpmadt032(struct vpmadt032 *vpm, struct wctdm *wc) return -1; } + vpm->companding = (wc->span.deflaw == DAHDI_LAW_MULAW) ? + ADT_COMP_ULAW : ADT_COMP_ALAW; + for (i = 0; i < vpm->options.channels; ++i) { vpm->curecstate[i].tap_length = 0; vpm->curecstate[i].nlp_type = vpm->options.vpmnlptype; |