<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/19501">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">i460: Add back-pointer from sub-channel to timeslot<br><br>A user may want to walk back from a sub-channel to the timeslot<br>to which it belongs.<br><br>Change-Id: Id6e5e208c5daa63fd23ac719d62314622b5d0ed9<br>---<br>M include/osmocom/gsm/i460_mux.h<br>M src/gsm/i460_mux.c<br>2 files changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/01/19501/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/gsm/i460_mux.h b/include/osmocom/gsm/i460_mux.h</span><br><span>index dd752db..e7ea9bd 100644</span><br><span>--- a/include/osmocom/gsm/i460_mux.h</span><br><span>+++ b/include/osmocom/gsm/i460_mux.h</span><br><span>@@ -62,6 +62,7 @@</span><br><span> };</span><br><span> </span><br><span> struct osmo_i460_subchan {</span><br><span style="color: hsl(120, 100%, 40%);">+ struct osmo_i460_timeslot *ts;  /* back-pointer */</span><br><span>   enum osmo_i460_rate rate;               /* 8/16/32/64k */</span><br><span>    uint8_t bit_offset;             /* bit offset inside each byte of the B-channel */</span><br><span>   struct osmo_i460_subchan_demux demux;</span><br><span>diff --git a/src/gsm/i460_mux.c b/src/gsm/i460_mux.c</span><br><span>index dfd50e5..3b2a589 100644</span><br><span>--- a/src/gsm/i460_mux.c</span><br><span>+++ b/src/gsm/i460_mux.c</span><br><span>@@ -339,6 +339,7 @@</span><br><span> </span><br><span>         for (i = 0; i < ARRAY_SIZE(ts->schan); i++) {</span><br><span>          struct osmo_i460_subchan *schan = &ts->schan[i];</span><br><span style="color: hsl(120, 100%, 40%);">+               schan->ts = ts;</span><br><span>           subchan_reset(schan, true);</span><br><span>  }</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/19501">change 19501</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/libosmocore/+/19501"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Id6e5e208c5daa63fd23ac719d62314622b5d0ed9 </div>
<div style="display:none"> Gerrit-Change-Number: 19501 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>