mirror of https://gerrit.osmocom.org/libosmocore
i460: Add back-pointer from sub-channel to timeslot
A user may want to walk back from a sub-channel to the timeslot to which it belongs. Change-Id: Id6e5e208c5daa63fd23ac719d62314622b5d0ed9
This commit is contained in:
parent
b5518a8f1f
commit
eb8240d564
|
@ -62,6 +62,7 @@ struct osmo_i460_subchan_mux {
|
|||
};
|
||||
|
||||
struct osmo_i460_subchan {
|
||||
struct osmo_i460_timeslot *ts; /* back-pointer */
|
||||
enum osmo_i460_rate rate; /* 8/16/32/64k */
|
||||
uint8_t bit_offset; /* bit offset inside each byte of the B-channel */
|
||||
struct osmo_i460_subchan_demux demux;
|
||||
|
|
|
@ -339,6 +339,7 @@ void osmo_i460_ts_init(struct osmo_i460_timeslot *ts)
|
|||
|
||||
for (i = 0; i < ARRAY_SIZE(ts->schan); i++) {
|
||||
struct osmo_i460_subchan *schan = &ts->schan[i];
|
||||
schan->ts = ts;
|
||||
subchan_reset(schan, true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue