diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-08-26 03:05:51 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-08-26 03:10:20 +0700 |
commit | 37e639cb8fea7c00daff1cdba0241fbad05f2468 (patch) | |
tree | 064ead97980f7cdb4ecfc8803c26096a3eb90872 | |
parent | 7e5a62e9f360b72985d66ab471a52ab1cbb1ec0b (diff) |
csd_v110: fix comments in csd_v110_rtp_{en,de}code()
Change-Id: I6fee665e587bfa76058187e13f0cdafaea991940
Related: OS#1572
-rw-r--r-- | src/common/csd_v110.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/csd_v110.c b/src/common/csd_v110.c index 9fc7ad31..8fa42291 100644 --- a/src/common/csd_v110.c +++ b/src/common/csd_v110.c @@ -91,11 +91,11 @@ int csd_v110_rtp_encode(const struct gsm_lchan *lchan, uint8_t *rtp, if (OSMO_UNLIKELY(data_len < (desc->num_blocks * desc->num_bits))) return -ENODATA; - /* RA1'/RA1: convert to an intermediate data rate */ + /* RA1'/RA1: convert from radio rate to an intermediate data rate */ for (unsigned int i = 0; i < desc->num_blocks; i++) { struct osmo_v110_decoded_frame df; - /* convert modified V.110 frames to normal V.110 frames */ + /* convert a V.110 36-/60-bit frame to a V.110 80-bit frame */ if (desc->num_bits == 60) osmo_csd_12k_6k_decode_frame(&df, &data[i * 60], 60); else /* desc->num_bits == 36 */ @@ -158,11 +158,11 @@ int csd_v110_rtp_decode(const struct gsm_lchan *lchan, uint8_t *data, ra_bits[i] = (rtp[i] >> 7); } - /* RA1'/RA1: convert to an intermediate data rate */ + /* RA1'/RA1: convert from an intermediate rate to radio rate */ for (unsigned int i = 0; i < desc->num_blocks; i++) { struct osmo_v110_decoded_frame df; - /* convert modified V.110 frames to normal V.110 frames */ + /* convert a V.110 80-bit frame to a V.110 36-/60-bit frame */ osmo_v110_decode_frame(&df, &ra_bits[i * 80], 80); if (desc->num_bits == 60) osmo_csd_12k_6k_encode_frame(&data[i * 60], 60, &df); |