changeset 580:d4979cdbc081

libgsmhr1 RxFE: set in_dtx in init_cn_gen()
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 13 Feb 2025 09:21:02 +0000
parents 1dc5d9320e96
children e2d5cad04cbf
files libgsmhr1/rxfe.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libgsmhr1/rxfe.c	Thu Feb 13 09:10:12 2025 +0000
+++ b/libgsmhr1/rxfe.c	Thu Feb 13 09:21:02 2025 +0000
@@ -213,6 +213,7 @@
 	st->cn_prng = PN_INIT_SEED;
 	avgGsHistQntz(st->gs_history, &L_RxDTXGs);
 	st->gs_cn_out = gsQuant(L_RxDTXGs, 0);
+	st->in_dtx = 1;
 	st->dtx_bfi_count = 0;
 	st->dtx_muting = 0;
 }
@@ -274,7 +275,6 @@
 	case CNIFIRSTSID:
 		if (dtxd_sp)
 			*dtxd_sp = 0;
-		st->in_dtx = 1;
 		if (frame_class == VALIDSID)
 			memcpy(st->saved_frame, prm_in, sizeof(Shortword) * 4);
 		init_cn_gen(st);
@@ -283,7 +283,6 @@
 	case CNICONT:
 		if (dtxd_sp)
 			*dtxd_sp = 0;
-		st->in_dtx = 1;
 		if (frame_class == VALIDSID)
 			memcpy(st->saved_frame, prm_in, sizeof(Shortword) * 4);
 		else
@@ -295,7 +294,6 @@
 	case CNIBFI:
 		if (dtxd_sp)
 			*dtxd_sp = 0;
-		st->in_dtx = 1;
 		if (st->dtx_muting) {
 			if (fast_cn_muting)
 				st->saved_frame[0] = 0;