summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-06-02 13:22:34 +0200
committerHarald Welte <laforge@gnumonks.org>2017-06-22 17:08:15 +0000
commit3149b0d076477303a38df735fe579b1b06ee17b2 (patch)
treeb4d6d5c5db72eeff2acf722c4329e596cdefe0d1 /include
parenta9b92769482585b17467008fa0d78085d7b10820 (diff)
gsm0808: add function gsm0808_chan_type_to_speech_code()
The permitted speech field used in channel type element (struct gsm0808_channel_type) uses a different representation as the type field in the speech codec element (struct gsm0808_speech_codec) This patch adds a function to convert from permitted speech to speech codec type. Change-Id: Ib26a9c20864459b2baaa04f49b6e7902ba44b7cb
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/gsm/gsm0808_utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm0808_utils.h b/include/osmocom/gsm/gsm0808_utils.h
index c11bf8d3..b5106447 100644
--- a/include/osmocom/gsm/gsm0808_utils.h
+++ b/include/osmocom/gsm/gsm0808_utils.h
@@ -71,3 +71,5 @@ uint8_t gsm0808_enc_cell_id_list(struct msgb *msg,
/* Decode Cell Identifier List element */
int gsm0808_dec_cell_id_list(struct gsm0808_cell_id_list *cil,
const uint8_t *elem, uint8_t len);
+
+int gsm0808_chan_type_to_speech_code(uint8_t perm_spch);