changeset 1032:6e7dd5e52650

gsm-fw feature tch-reroute: B_PLAY_UL (uplink substitution) bug fixed
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 01 Jun 2016 01:24:15 +0000
parents 6312f684cef1
children 5ab737ac3ad7
files gsm-fw/L1/cfile/tch_feature.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gsm-fw/L1/cfile/tch_feature.c	Tue May 31 18:50:32 2016 +0000
+++ b/gsm-fw/L1/cfile/tch_feature.c	Wed Jun 01 01:24:15 2016 +0000
@@ -65,7 +65,7 @@
 	read_ptr = ul_read_ptr;
 	if (read_ptr == ul_write_ptr) {
 		/* no uplink substitution */
-		l1s_dsp_com.dsp_ndb_ptr->d_tch_mode &= ~(1 << B_PLAY_UL);
+		l1s_dsp_com.dsp_ndb_ptr->d_tch_mode &= ~B_PLAY_UL;
 		return;
 	}
 	for (i = 0; i < WORDS_PER_ENTRY; i++)
@@ -74,7 +74,7 @@
 	dsp_buffer[0] = (1 << B_BLUD);		// 1st word: Set B_BLU bit.
 	dsp_buffer[1] = 0;			// 2nd word: cleared.
 	dsp_buffer[2] = 0;			// 3rd word: cleared.
-	l1s_dsp_com.dsp_ndb_ptr->d_tch_mode |= (1 << B_PLAY_UL);
+	l1s_dsp_com.dsp_ndb_ptr->d_tch_mode |= B_PLAY_UL;
 	/* advance the read pointer and send TCH_ULBITS_CONF */
 	read_ptr++;
 	if (read_ptr >= UPLINK_QUEUE_SIZE)