<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12008">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lms: Use a default Tx gain value of 64 dB.<br><br>As recommended by Lime Microsystems, the Tx gain should be around<br>61..66 dB when using 16 bit signed integer samples to full scale<br>(which we do since Change-Id I71702feaa11f53e7614a6938a984dd748405474a)<br><br>This default value is used only as long as osmo-bts-trx doesn't change<br>it using a 'osmotrx tx-attenuation' override setting.  So the safe<br>default configuration should be to use osmo-trx after this patch<br>with no 'osmotrx tx-attenuation' setting in osmo-bts-trx configuration.<br><br>Change-Id: Id018b27b1d8a2f48d60b29e688583c9a5ac49a81<br>---<br>M Transceiver52M/device/lms/LMSDevice.cpp<br>1 file changed, 3 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/08/12008/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Transceiver52M/device/lms/LMSDevice.cpp b/Transceiver52M/device/lms/LMSDevice.cpp</span><br><span>index 1cda4f9..25b8198 100644</span><br><span>--- a/Transceiver52M/device/lms/LMSDevice.cpp</span><br><span>+++ b/Transceiver52M/device/lms/LMSDevice.cpp</span><br><span>@@ -221,8 +221,9 @@</span><br><span>           if (LMS_EnableChannel(m_lms_dev, LMS_CH_TX, i, true) < 0)</span><br><span>                         return false;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-               // Set gains to midpoint</span><br><span style="color: hsl(0, 100%, 40%);">-                setTxGain((minTxGain() + maxTxGain()) / 2, i);</span><br><span style="color: hsl(120, 100%, 40%);">+                /* use a magic value recommended by Lime Microsystems (61..66 dB) */</span><br><span style="color: hsl(120, 100%, 40%);">+          setTxGain(64.0);</span><br><span style="color: hsl(120, 100%, 40%);">+              // Set Rx gain to midpoint</span><br><span>           setRxGain((minRxGain() + maxRxGain()) / 2, i);</span><br><span> </span><br><span>           m_lms_stream_rx[i] = {};</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12008">change 12008</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/12008"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-trx </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Id018b27b1d8a2f48d60b29e688583c9a5ac49a81 </div>
<div style="display:none"> Gerrit-Change-Number: 12008 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>