diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2013-02-14 12:22:42 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-09-22 16:41:26 +0200 |
commit | b9880bc81289fa13b12801abcfc77fe6e83b8a94 (patch) | |
tree | 63fed901ddd797879725593a6f2531d1540e1b07 /src/osmo-bts-trx/scheduler.c | |
parent | d10eaee4cce04aee4907b87e5bd73b9d866061b7 (diff) |
TRX: Allow transcoding of TCH FR with MSB first (RTP) or LSB first (E1)
Diffstat (limited to 'src/osmo-bts-trx/scheduler.c')
-rw-r--r-- | src/osmo-bts-trx/scheduler.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/osmo-bts-trx/scheduler.c b/src/osmo-bts-trx/scheduler.c index d5c7bb54..f65a7025 100644 --- a/src/osmo-bts-trx/scheduler.c +++ b/src/osmo-bts-trx/scheduler.c @@ -759,9 +759,10 @@ static const ubit_t *tx_tchf_fn(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, /* encode bursts (priorize FACCH) */ if (msg_facch) - tch_fr_encode(*bursts_p, msg_facch->l2h, msgb_l2len(msg_facch)); + tch_fr_encode(*bursts_p, msg_facch->l2h, msgb_l2len(msg_facch), + 1); else - tch_fr_encode(*bursts_p, msg_tch->l2h, msgb_l2len(msg_tch)); + tch_fr_encode(*bursts_p, msg_tch->l2h, msgb_l2len(msg_tch), 1); /* unlink and free message */ if (msg_tch) @@ -1079,7 +1080,7 @@ static int rx_tchf_fn(struct trx_l1h *l1h, uint8_t tn, uint32_t fn, /* decode * also shift buffer by 4 bursts for interleaving */ - rc = tch_fr_decode(tch_data, *bursts_p); + rc = tch_fr_decode(tch_data, *bursts_p, 1); memcpy(*bursts_p, *bursts_p + 464, 464); if (rc < 0) { LOGP(DL1C, LOGL_NOTICE, "Received bad TCH frame at fn=%u " |