From 7c7632de3ebb1eb7706047c445845e97ab8717b4 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 31 Jul 2020 00:42:01 +0700 Subject: firmware: add possibility to configure TCH loops in the DSP Change-Id: Ide7b0527ad64a044977a10da4a82a8ecd1fbd8dc --- include/l1ctl_proto.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/l1ctl_proto.h b/include/l1ctl_proto.h index 05d65deb..cf41ac74 100644 --- a/include/l1ctl_proto.h +++ b/include/l1ctl_proto.h @@ -149,11 +149,24 @@ struct l1ctl_ccch_mode_conf { uint8_t padding[3]; } __attribute__((packed)); +/* 3GPP TS 44.014, section 5.1 (Calypso specific numbers) */ +enum l1ctl_tch_loop_mode { + L1CTL_TCH_LOOP_OPEN = 0x00, + L1CTL_TCH_LOOP_A = 0x01, + L1CTL_TCH_LOOP_B = 0x02, + L1CTL_TCH_LOOP_C = 0x03, + L1CTL_TCH_LOOP_D = 0x04, + L1CTL_TCH_LOOP_E = 0x05, + L1CTL_TCH_LOOP_F = 0x06, + L1CTL_TCH_LOOP_I = 0x07, +}; + /* TCH mode was changed */ struct l1ctl_tch_mode_conf { uint8_t tch_mode; /* enum tch_mode */ uint8_t audio_mode; - uint8_t padding[2]; + uint8_t tch_loop_mode; /* enum l1ctl_tch_loop_mode */ + uint8_t padding[1]; } __attribute__((packed)); /* data on the CCCH was found. This is following the header */ @@ -231,7 +244,8 @@ struct l1ctl_tch_mode_req { #define AUDIO_RX_SPEAKER (1<<2) #define AUDIO_RX_TRAFFIC_IND (1<<3) uint8_t audio_mode; - uint8_t padding[2]; + uint8_t tch_loop_mode; /* enum l1ctl_tch_loop_mode */ + uint8_t padding[1]; } __attribute__((packed)); /* the l1_info_ul header is in front */ -- cgit v1.2.3