<p>dexter has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13093">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">codec_pref: purify S-Bits<br><br>WHen the resulting intersection (MSC/BSC) of the S15 to S0 bits<br>indicates that "Config-NB-Code = 1" (S1 = 1) shall be used, then make<br>sure that all other single rate modes are set to zero.<br><br>Change-Id: Ie52376b51fe07ed07056e8df2e9557293ff67a78<br>Related: SYS#4470<br>---<br>M src/osmo-bsc/codec_pref.c<br>1 file changed, 8 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/93/13093/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/codec_pref.c b/src/osmo-bsc/codec_pref.c</span><br><span>index a94d6a8..a0a3cfc 100644</span><br><span>--- a/src/osmo-bsc/codec_pref.c</span><br><span>+++ b/src/osmo-bsc/codec_pref.c</span><br><span>@@ -355,6 +355,14 @@</span><br><span>     } else</span><br><span>               ch_mode_rate->s15_s0 = 0;</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+      /* Prefer "Config-NB-Code = 1" (S1) over all other AMR rates setttings.</span><br><span style="color: hsl(120, 100%, 40%);">+      * When S1 is set, the active set will automatically include 12.2k, 7.4k,</span><br><span style="color: hsl(120, 100%, 40%);">+      * 5.9k, 4.75k, in case of HR 12,2k is left out. */</span><br><span style="color: hsl(120, 100%, 40%);">+   if (ch_mode_rate->s15_s0 & GSM0808_SC_CFG_AMR_4_75_5_90_7_40_12_20) {</span><br><span style="color: hsl(120, 100%, 40%);">+          ch_mode_rate->s15_s0 &= 0xff00;</span><br><span style="color: hsl(120, 100%, 40%);">+                ch_mode_rate->s15_s0 |= GSM0808_SC_CFG_AMR_4_75_5_90_7_40_12_20;</span><br><span style="color: hsl(120, 100%, 40%);">+   }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  return 0;</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13093">change 13093</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/13093"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ie52376b51fe07ed07056e8df2e9557293ff67a78 </div>
<div style="display:none"> Gerrit-Change-Number: 13093 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>