Get rid of tbf->first_ts

There's no big benefit in keeping it stored since it can be quickly
found. This makes the tbf data structure simplier and easier to
maintain, and discharges the alloc_algorithm functions from an extra
step.

Change-Id: I5d2f665f648f8637466bfdd3bf7b924cb61ede33
diff --git a/src/encoding.cpp b/src/encoding.cpp
index c5f4dd4..370dbe2 100644
--- a/src/encoding.cpp
+++ b/src/encoding.cpp
@@ -553,7 +553,7 @@
 	Direct_encoding_1_t fh_params;
 
 	/* Check one PDCH, if it's hopping then all other should too */
-	pdch = tbf->pdch[tbf->first_ts];
+	pdch = tbf_get_first_ts_const(tbf);
 	OSMO_ASSERT(pdch != NULL);
 
 	/* Training Sequence Code */
@@ -562,7 +562,7 @@
 	/* If frequency hopping is not in use, encode a single ARFCN */
 	if (!pdch->fh.enabled) {
 		freq_params->UnionType = 0x00;
-		freq_params->u.ARFCN = tbf->trx->arfcn;
+		freq_params->u.ARFCN = pdch->trx->arfcn;
 		return;
 	}