changeset 112:ecea132f1ac3

l1_init.c: l1_dsp_init() reconstructed
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Fri, 08 Apr 2016 20:37:10 +0000
parents ba0b349e718e
children 50187ed1cd7d
files chipsetsw/layer1/cfile/l1_init.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/cfile/l1_init.c	Fri Apr 08 06:00:22 2016 +0000
+++ b/chipsetsw/layer1/cfile/l1_init.c	Fri Apr 08 20:37:10 2016 +0000
@@ -493,7 +493,7 @@
       l1s_dsp_com.dsp_ndb_ptr->d_thr_soft_bits    = 0; // thresh detection SPEECH DEGRADED/NO_DATA
     #endif
 
-    #if ((DSP==36 || (DSP == 37) || (DSP == 38) || (DSP == 39))&&(W_A_AMR_THRESHOLDS==1))
+    #if ((DSP >= 36) && (AMR_THRESHOLDS_WORKAROUND == 1))
       // init of the afs thresholds parameters
       l1s_dsp_com.dsp_ndb_ptr->a_d_macc_thr_afs[0]=0;
       l1s_dsp_com.dsp_ndb_ptr->a_d_macc_thr_afs[1]=0;
@@ -502,7 +502,7 @@
       l1s_dsp_com.dsp_ndb_ptr->a_d_macc_thr_afs[4]=0;
       l1s_dsp_com.dsp_ndb_ptr->a_d_macc_thr_afs[5]=0;
       l1s_dsp_com.dsp_ndb_ptr->a_d_macc_thr_afs[6]=0;
-      l1s_dsp_com.dsp_ndb_ptr->a_d_macc_thr_afs[7]=1950;
+      l1s_dsp_com.dsp_ndb_ptr->a_d_macc_thr_afs[7]=1500;
 
       // init of the ahs thresholds parameters
       l1s_dsp_com.dsp_ndb_ptr->a_d_macc_thr_ahs[0]=1500;
@@ -514,7 +514,9 @@
     #endif
 
     // init of of the threshold for USF detection
-    #if (L1_FALSE_USF_DETECTION == 1)
+    #if 1	/* match TCS211 object */
+      l1s_dsp_com.dsp_ndb_ptr->d_thr_usf_detect = 2140;
+    #elif (L1_FALSE_USF_DETECTION == 1)
       l1s_dsp_com.dsp_ndb_ptr->d_thr_usf_detect = 2300;
     #else
       l1s_dsp_com.dsp_ndb_ptr->d_thr_usf_detect = 0;