aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/gsm_data_shared.h
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-12-06 18:08:38 +0100
committerPhilipp Maier <pmaier@sysmocom.de>2018-04-17 16:34:53 +0200
commit69d0d506775c82eb2bde66fe748100a94a3173a0 (patch)
tree4e94b55c6b97cde07d40a4e76b13611894d21385 /include/osmo-bts/gsm_data_shared.h
parentdd4a6518f2118775c12affc02ac1e0dcc848d89a (diff)
osmo-bts-trx: perform error concealment for FR frames
When a bad voice frame is received, it is replaced by a silence frame. This may cause unpleasant audio effects. This change implements a functionality to craft a replacement frame from the last known good frame using ECU implementation from libosmocodec. At the moment, only FR is supported. Depends: libosmocore I06a21f60db01bfe1c2b838f93866fad1d53fdcd1 Change-Id: Iae9e69a9578ae305bca42f834694af96a29084e6
Diffstat (limited to 'include/osmo-bts/gsm_data_shared.h')
-rw-r--r--include/osmo-bts/gsm_data_shared.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/osmo-bts/gsm_data_shared.h b/include/osmo-bts/gsm_data_shared.h
index c6557ee7..37d30aba 100644
--- a/include/osmo-bts/gsm_data_shared.h
+++ b/include/osmo-bts/gsm_data_shared.h
@@ -5,6 +5,7 @@
#include <stdbool.h>
#include <stdint.h>
+#include <osmocom/codec/ecu.h>
#include <osmocom/core/timer.h>
#include <osmocom/core/bitvec.h>
#include <osmocom/core/statistics.h>
@@ -316,6 +317,11 @@ struct gsm_lchan {
} ms_power_ctrl;
struct msgb *pending_rel_ind_msg;
+
+ /* ECU (Error Concealment Unit) state */
+ union {
+ struct osmo_ecu_fr_state fr;
+ } ecu_state;
};
extern const struct value_string lchan_ciph_state_names[];