diff options
-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 70aa969..6fe0f04 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; |