aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-02-14 12:22:42 +0100
committerHarald Welte <laforge@gnumonks.org>2015-09-22 16:41:26 +0200
commitb9880bc81289fa13b12801abcfc77fe6e83b8a94 (patch)
tree63fed901ddd797879725593a6f2531d1540e1b07 /tests
parentd10eaee4cce04aee4907b87e5bd73b9d866061b7 (diff)
TRX: Allow transcoding of TCH FR with MSB first (RTP) or LSB first (E1)
Diffstat (limited to 'tests')
-rw-r--r--tests/bursts/bursts_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bursts/bursts_test.c b/tests/bursts/bursts_test.c
index 9e64e3f1..9fc7df04 100644
--- a/tests/bursts/bursts_test.c
+++ b/tests/bursts/bursts_test.c
@@ -191,7 +191,7 @@ static void test_fr(uint8_t *speech, int len)
printd("Encoding: %s\n", osmo_hexdump(speech, len));
/* encode */
- tch_fr_encode(bursts_u, speech, len);
+ tch_fr_encode(bursts_u, speech, len, 1);
printd("U-Bits:\n");
printd("%s %02x %02x ", osmo_hexdump(bursts_u, 57),
@@ -246,7 +246,7 @@ static void test_fr(uint8_t *speech, int len)
printd("%s\n", osmo_hexdump((uint8_t *)bursts_s + 59 + 812, 57));
/* decode */
- rc = tch_fr_decode(result, bursts_s);
+ rc = tch_fr_decode(result, bursts_s, 1);
ASSERT_TRUE(rc == len);