<p><a href="https://gerrit.osmocom.org/12625">View Change</a></p><p>4 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/12625/2/include/osmocom/bsc/codec_pref.h">File include/osmocom/bsc/codec_pref.h:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12625/2/include/osmocom/bsc/codec_pref.h@24">Patch Set #2, Line 24:</a> <code style="font-family:monospace,monospace">                 const struct gsm_bts *bts, enum rate_pref rate_pref);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">in ch_mode_rate, we add a 'bool full_rate', and we also add a 'rate_pref'?<br>That seems redundant to me / more complex for error checking, because I could technically pass <br>ch_mode_rate->full_rate = false and rate_pref = RATE_PREF_HR.</p><p style="white-space: pre-wrap; word-wrap: break-word;">would it make more sense to add an enum rate_pref to channel_mode_and_rate, instead of the bool?<br>Or instead of enum rate_pref, add a "bool strict_rate_pref", to say whether the ch_mode_rate->full_rate flag is important or can be overruled?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/12625/2/src/osmo-bsc/assignment_fsm.c">File src/osmo-bsc/assignment_fsm.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12625/2/src/osmo-bsc/assignment_fsm.c@255">Patch Set #2, Line 255:</a> <code style="font-family:monospace,monospace">                                    struct channel_mode_and_rate *ch_mode_rate)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">const struct ...</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12625/2/src/osmo-bsc/assignment_fsm.c@305">Patch Set #2, Line 305:</a> <code style="font-family:monospace,monospace">static int check_voice_stream_needed(struct gsm_subscriber_connection *conn, struct osmo_fsm_inst *fi)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">(we already have a flag around called "requires_voice_stream", so prefer if this is called "check_requires_voice_stream()")</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12625/2/src/osmo-bsc/assignment_fsm.c@324">Patch Set #2, Line 324:</a> <code style="font-family:monospace,monospace">          result_pref = false;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">don't understand the name 'result_pref' ... from surrounding code I guess 'requires_voice' is better?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/12625">change 12625</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/12625"/><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: comment </div>
<div style="display:none"> Gerrit-Change-Id: I5239e05c1cfbcb8af28f43373a58fa6c2d216c51 </div>
<div style="display:none"> Gerrit-Change-Number: 12625 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 21 Jan 2019 18:17:40 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>