<p>osmith <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/25570">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  dexter: Looks good to me, but someone else must approve
  daniel: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">sched_lchan_tch_x: do not use cmr as ft<br><br>CMR and FT are updated each time an AMR voice frame is received from the<br>radio interface. The transmission phase decides whether the voice frame<br>contains CMR or FT. The code follows the transmission phase and keeps<br>ul_cmr and ul_ft up to date.<br><br>In contrast to the AMR frames on the radio interface, an AMR RTP packet<br>always contains the CMR and the FT value.<br><br>When generating the RTP payloed, The present implementation uses the CMR<br>in the position where the FT should be and the FT is ignored. This is not<br>correct.<br><br>Change-Id: I6bb10ff3c76f67b9830787497653b546cf27fe8e<br>Related: SYS#5549<br>---<br>M src/osmo-bts-trx/sched_lchan_tchf.c<br>M src/osmo-bts-trx/sched_lchan_tchh.c<br>2 files changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bts-trx/sched_lchan_tchf.c b/src/osmo-bts-trx/sched_lchan_tchf.c</span><br><span>index b1453dc..b3649cd 100644</span><br><span>--- a/src/osmo-bts-trx/sched_lchan_tchf.c</span><br><span>+++ b/src/osmo-bts-trx/sched_lchan_tchf.c</span><br><span>@@ -191,7 +191,7 @@</span><br><span>             /* only good speech frames get rtp header */</span><br><span>                 if (rc != GSM_MACBLOCK_LEN && rc >= 4) {</span><br><span>                  if (chan_state->amr_last_dtx == AMR_OTHER) {</span><br><span style="color: hsl(0, 100%, 40%);">-                         ft = chan_state->codec[chan_state->ul_cmr];</span><br><span style="color: hsl(120, 100%, 40%);">+                             ft = chan_state->codec[chan_state->ul_ft];</span><br><span>                     } else {</span><br><span>                             /* SID frames will always get Frame Type Index 8 (AMR_SID) */</span><br><span>                                ft = AMR_SID;</span><br><span>diff --git a/src/osmo-bts-trx/sched_lchan_tchh.c b/src/osmo-bts-trx/sched_lchan_tchh.c</span><br><span>index 378d47a..0692f9d 100644</span><br><span>--- a/src/osmo-bts-trx/sched_lchan_tchh.c</span><br><span>+++ b/src/osmo-bts-trx/sched_lchan_tchh.c</span><br><span>@@ -215,7 +215,7 @@</span><br><span>                 /* only good speech frames get rtp header */</span><br><span>                 if (rc != GSM_MACBLOCK_LEN && rc >= 4) {</span><br><span>                  if (chan_state->amr_last_dtx == AMR_OTHER) {</span><br><span style="color: hsl(0, 100%, 40%);">-                         ft = chan_state->codec[chan_state->ul_cmr];</span><br><span style="color: hsl(120, 100%, 40%);">+                             ft = chan_state->codec[chan_state->ul_ft];</span><br><span>                     } else {</span><br><span>                             /* SID frames will always get Frame Type Index 8 (AMR_SID) */</span><br><span>                                ft = AMR_SID;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/25570">change 25570</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/c/osmo-bts/+/25570"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: 2021q1 </div>
<div style="display:none"> Gerrit-Change-Id: I6bb10ff3c76f67b9830787497653b546cf27fe8e </div>
<div style="display:none"> Gerrit-Change-Number: 25570 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>