diff options
Diffstat (limited to 'wct4xxp/vpm450m.c')
-rw-r--r-- | wct4xxp/vpm450m.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wct4xxp/vpm450m.c b/wct4xxp/vpm450m.c index d423c12..5e52b79 100644 --- a/wct4xxp/vpm450m.c +++ b/wct4xxp/vpm450m.c @@ -442,7 +442,10 @@ struct vpm450m *init_vpm450m(void *wc, int *isalaw) return NULL; } for (x=0;x<128;x++) { - if (isalaw[x >> 5]) + /* span timeslots are interleaved 12341234... + * therefore, the lower 2 bits tell us which span this timeslot/channel + */ + if (isalaw[x & 0x03]) law = cOCT6100_PCM_A_LAW; else law = cOCT6100_PCM_U_LAW; |