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
This commit is contained in:
Harald Welte 2022-11-30 18:07:36 +01:00
parent 9d90eb9960
commit ce70074476
2 changed files with 8 additions and 5 deletions

View File

@ -2,7 +2,10 @@
#include <osmocom/core/bits.h>
#include <osmocom/core/fsm.h>
enum osmo_tray_sync_pat_id {
/* backwards compatibility */
#define osmo_tray_sync_pat_id osmo_trau_sync_pat_id
enum osmo_trau_sync_pat_id {
OSMO_TRAU_SYNCP_16_FR_EFR,
OSMO_TRAU_SYNCP_8_HR,
OSMO_TRAU_SYNCP_8_AMR_LOW,
@ -15,7 +18,7 @@ typedef void (*frame_out_cb_t)(void *user_data, const ubit_t *bits, unsigned int
struct osmo_fsm_inst *
osmo_trau_sync_alloc(void *ctx, const char *name, frame_out_cb_t frame_out_cb,
enum osmo_tray_sync_pat_id pat_id, void *user_data);
enum osmo_trau_sync_pat_id pat_id, void *user_data);
void osmo_trau_sync_rx_ubits(struct osmo_fsm_inst *fi, const ubit_t *bits, size_t n_bits);
void osmo_trau_sync_set_pat(struct osmo_fsm_inst *fi, enum osmo_tray_sync_pat_id pat_id);
void osmo_trau_sync_set_pat(struct osmo_fsm_inst *fi, enum osmo_trau_sync_pat_id pat_id);

View File

@ -492,7 +492,7 @@ static struct osmo_fsm trau_sync_fsm = {
struct osmo_fsm_inst *
osmo_trau_sync_alloc(void *ctx, const char *name, frame_out_cb_t frame_out_cb,
enum osmo_tray_sync_pat_id pat_id, void *user_data)
enum osmo_trau_sync_pat_id pat_id, void *user_data)
{
struct trau_rx_sync_state *tss;
struct osmo_fsm_inst *fi;
@ -523,7 +523,7 @@ osmo_trau_sync_alloc(void *ctx, const char *name, frame_out_cb_t frame_out_cb,
return fi;
}
void osmo_trau_sync_set_pat(struct osmo_fsm_inst *fi, enum osmo_tray_sync_pat_id pat_id)
void osmo_trau_sync_set_pat(struct osmo_fsm_inst *fi, enum osmo_trau_sync_pat_id pat_id)
{
struct trau_rx_sync_state *tss = fi->priv;