aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-07-25 05:35:02 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2023-07-30 20:29:12 +0700
commitca418643b387bda2b7529445851900a3779573c8 (patch)
tree982c87d2b538ac5bf25b6bb6beb1659718eb612f /include
parentd1f8f3429cc77361ade0176f801acd979d3c5ca1 (diff)
csd_v110_rtp_encode(): properly set E1/E2/E3 bits
The E1/E2/E3 bits are set based on out-of-band knowledge of the current user data rate. The actual bit values are defined in 3GPP TS 44.021, Figure 4 "Coding of data rates". TODO: this is only valid for transparent services, for non-transparent services see 3GPP TS 48.020. TODO: lchan->csd_mode is never set to the actual CSD mode... Change-Id: I1a14597dff746cf975140b294400a2cc05badccd Related: OS#1572
Diffstat (limited to 'include')
-rw-r--r--include/osmo-bts/lchan.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/osmo-bts/lchan.h b/include/osmo-bts/lchan.h
index a0e99bf3..05c395a3 100644
--- a/include/osmo-bts/lchan.h
+++ b/include/osmo-bts/lchan.h
@@ -75,15 +75,17 @@ struct amr_multirate_conf {
};
enum lchan_csd_mode {
- LCHAN_CSD_M_NT,
+ LCHAN_CSD_M_NT = 0,
LCHAN_CSD_M_T_1200_75,
LCHAN_CSD_M_T_600,
LCHAN_CSD_M_T_1200,
LCHAN_CSD_M_T_2400,
+ LCHAN_CSD_M_T_4800,
LCHAN_CSD_M_T_9600,
LCHAN_CSD_M_T_14400,
LCHAN_CSD_M_T_29000,
LCHAN_CSD_M_T_32000,
+ _LCHAN_CSD_M_NUM,
};
/* State of the SAPIs in the lchan */