aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-11-07 14:26:48 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-11-07 14:26:48 +0100
commit26608120842761bfae612eed1b5cf3c881855fc7 (patch)
treedcdd6acd535f70ba4e36dc150fe3750e464dfbf9
parent5cdcf8a83789fa58a27114e84d4749bd36876f7a (diff)
audio: Make bts_model_rtp_rx_cb compatible with the prototype
-rw-r--r--include/osmo-bts/bts_model.h2
-rw-r--r--src/osmo-bts-sysmo/tch.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/include/osmo-bts/bts_model.h b/include/osmo-bts/bts_model.h
index 79eed89c..7ccec4cb 100644
--- a/include/osmo-bts/bts_model.h
+++ b/include/osmo-bts/bts_model.h
@@ -34,7 +34,7 @@ int bts_model_rsl_mode_modify(struct gsm_lchan *lchan);
int bts_model_trx_deact_rf(struct gsm_bts_trx *trx);
-void bts_model_rtp_rx_cb(struct osmo_rtp_socket *rs, uint8_t *rtp_pl,
+void bts_model_rtp_rx_cb(struct osmo_rtp_socket *rs, const uint8_t *rtp_pl,
unsigned int rtp_pl_len);
int bts_model_vty_init(struct gsm_bts *bts);
diff --git a/src/osmo-bts-sysmo/tch.c b/src/osmo-bts-sysmo/tch.c
index 77fd4f87..3533d500 100644
--- a/src/osmo-bts-sysmo/tch.c
+++ b/src/osmo-bts-sysmo/tch.c
@@ -119,7 +119,7 @@ static struct msgb *l1_to_rtppayload_fr(uint8_t *l1_payload, uint8_t payload_len
* \param[in] payload_len length of \a rtp_payload
* \returns number of \a l1_payload bytes filled
*/
-static int rtppayload_to_l1_fr(uint8_t *l1_payload, uint8_t *rtp_payload,
+static int rtppayload_to_l1_fr(uint8_t *l1_payload, const uint8_t *rtp_payload,
unsigned int payload_len)
{
/* step2: we need to shift the RTP payload left by one nibble*/
@@ -179,7 +179,7 @@ static struct msgb *l1_to_rtppayload_hr(uint8_t *l1_payload, uint8_t payload_len
* \param[in] payload_len length of \a rtp_payload
* \returns number of \a l1_payload bytes filled
*/
-static int rtppayload_to_l1_hr(uint8_t *l1_payload, uint8_t *rtp_payload,
+static int rtppayload_to_l1_hr(uint8_t *l1_payload, const uint8_t *rtp_payload,
unsigned int payload_len)
{
@@ -262,7 +262,7 @@ int get_amr_mode_idx(const struct amr_multirate_conf *amr_mrc, uint8_t cmi)
* \param[in] payload_len length of \a rtp_payload
* \returns number of \a l1_payload bytes filled
*/
-static int rtppayload_to_l1_amr(uint8_t *l1_payload, uint8_t *rtp_payload,
+static int rtppayload_to_l1_amr(uint8_t *l1_payload, const uint8_t *rtp_payload,
uint8_t payload_len,
struct gsm_lchan *lchan)
{
@@ -370,7 +370,7 @@ static int rtppayload_to_l1_amr(uint8_t *l1_payload, uint8_t *rtp_payload,
* yet, as things like the frame number, etc. are unknown at the time we
* pre-fill the primtive.
*/
-void bts_model_rtp_rx_cb(struct osmo_rtp_socket *rs, uint8_t *rtp_pl,
+void bts_model_rtp_rx_cb(struct osmo_rtp_socket *rs, const uint8_t *rtp_pl,
unsigned int rtp_pl_len)
{
struct gsm_lchan *lchan = rs->priv;