Change in osmo-bsc[master]: codec_pref: purify S-Bits

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

dexter gerrit-no-reply at lists.osmocom.org
Fri Mar 1 17:06:27 UTC 2019


dexter has uploaded this change for review. ( https://gerrit.osmocom.org/13093


Change subject: codec_pref: purify S-Bits
......................................................................

codec_pref: purify S-Bits

WHen the resulting intersection (MSC/BSC) of the S15 to S0 bits
indicates that "Config-NB-Code = 1" (S1 = 1) shall be used, then make
sure that all other single rate modes are set to zero.

Change-Id: Ie52376b51fe07ed07056e8df2e9557293ff67a78
Related: SYS#4470
---
M src/osmo-bsc/codec_pref.c
1 file changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/93/13093/1

diff --git a/src/osmo-bsc/codec_pref.c b/src/osmo-bsc/codec_pref.c
index a94d6a8..a0a3cfc 100644
--- a/src/osmo-bsc/codec_pref.c
+++ b/src/osmo-bsc/codec_pref.c
@@ -355,6 +355,14 @@
 	} else
 		ch_mode_rate->s15_s0 = 0;
 
+	/* Prefer "Config-NB-Code = 1" (S1) over all other AMR rates setttings.
+	 * When S1 is set, the active set will automatically include 12.2k, 7.4k,
+	 * 5.9k, 4.75k, in case of HR 12,2k is left out. */
+	if (ch_mode_rate->s15_s0 & GSM0808_SC_CFG_AMR_4_75_5_90_7_40_12_20) {
+		ch_mode_rate->s15_s0 &= 0xff00;
+		ch_mode_rate->s15_s0 |= GSM0808_SC_CFG_AMR_4_75_5_90_7_40_12_20;
+	}
+
 	return 0;
 }
 

-- 
To view, visit https://gerrit.osmocom.org/13093
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie52376b51fe07ed07056e8df2e9557293ff67a78
Gerrit-Change-Number: 13093
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190301/49735fec/attachment.htm>


More information about the gerrit-log mailing list