Commit Graph

4 Commits

Author SHA1 Message Date
Harald Welte ce70074476 trau_sync: Fix typo tray_sync_pat_id -> trau_sync_pat_id
... plus add a #define for compatibility with old source code.

Change-Id: I472107bfbed10a8cadd4736ce84120b24a5579f8
2022-11-30 18:11:29 +01:00
Harald Welte 9d90eb9960 trau_sync: Add the V.110 sync pattern
ITU-T V.110 is used in GSM CSD (Circuit Switched Data).  The frames
are rather similar to TRAU frames, so we can use the trau_sync code
for it.  This commit adds the related definition.

Related: OS#4395
Change-Id: I3aab5c3f494f6ea2b11f3cf69fb09bc77ea941d8
2022-11-30 15:35:15 +01:00
Philipp Maier 8d15001910 trau_sync: make sync pattern configurable
When a trau sync fsm is allocated, the user must set the sync pattern,
which can not be changed during the whole fsm lifecycle. However on
codec changes it might be necessary to change the sync pattern on the
fly.

- Add function to change the sync pattern

Change-Id: I1caff93b4c8eace8ba8cd6e32e996a9e1503232b
Related: OS#2659
2020-08-07 17:18:46 +02:00
Harald Welte 78861c0aef Add new TRAU frame sync code
This code is able to detect and sync against a variety of TRAU
frame sync patterns.  Focus is so far on those patterns present on
16k sub-slots, but 8k sub-slots are expected to be supported soon,
too.

A new codebase for this is required as the old OsmoNITB code had
conflated a 16k sub-slot multiplexer with TRAU frame synchronization,
so there was no way to separate those two parts and hence no way to
support 8k sub-slots.

Change-Id: Ia6fe6228b0b8b9a27999f37ce1115ed5558881ea
2020-08-03 02:29:21 +02:00