[PATCH] libosmocore[master]: gsm0808: add speech codec type constants

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

dexter gerrit-no-reply at lists.osmocom.org
Thu Jun 1 16:05:06 UTC 2017


Hello Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/2818

to look at the new patch set (#2).

gsm0808: add speech codec type constants

The codec type to be set in member type in struct gsm0808_speech_codec
has its own coding scheme to reference the used codec types. This patch
declares an enum with valid speech codec types.

Change-Id: Icaa768071d4364e671bc7e6d48b82d1f07f93f93
---
M include/osmocom/gsm/protocol/gsm_08_08.h
1 file changed, 14 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/18/2818/2

diff --git a/include/osmocom/gsm/protocol/gsm_08_08.h b/include/osmocom/gsm/protocol/gsm_08_08.h
index 1e8d430..94fd4f6 100644
--- a/include/osmocom/gsm/protocol/gsm_08_08.h
+++ b/include/osmocom/gsm/protocol/gsm_08_08.h
@@ -406,6 +406,20 @@
 	GSM0808_PERM_HR6	= 0x45, /* OHR AMR */
 };
 
+/* 3GPP TS 48.008, 3.2.2.103 Speech Codec Type */
+enum gsm0808_speech_codec_type {
+	GSM0808_SCT_FR1	= 0x0, /* GSM FR */
+	GSM0808_SCT_FR2	= 0x2, /* GSM EFR */
+	GSM0808_SCT_FR3	= 0x3, /* FR AMR */
+	GSM0808_SCT_FR4	= 0xc, /* OFR AMR-WB */
+	GSM0808_SCT_FR5	= 0x9, /* FR AMR-WB */
+	GSM0808_SCT_HR1	= 0x1, /* GSM_HR */
+	GSM0808_SCT_HR3	= 0x4, /* HR_AMR */
+	GSM0808_SCT_HR4	= 0xd, /* OHR AMR-WB */
+	GSM0808_SCT_HR6	= 0xb, /* OHR AMR */
+	GSM0808_SCT_CSD = 0xfd, /* CSData (see also TS 26.103) */
+};
+
 /* GSM 08.08 3.2.2.44 Chosen Encryption Algorithm */
 enum gsm0808_chosen_enc_alg {
 	GSM0808_ALG_ID_A5_0	= 0x01,

-- 
To view, visit https://gerrit.osmocom.org/2818
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Icaa768071d4364e671bc7e6d48b82d1f07f93f93
Gerrit-PatchSet: 2
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list