comparison gsm-fw/L1/audio_cfile/l1audio_drive.c @ 830:56e3d8560d69

L1 audio: vocoder mute functions made independent of AUDIO_TASK
author Space Falcon <falcon@ivan.Harhan.ORG>
date Wed, 22 Apr 2015 16:30:11 +0000
parents c5286d24539e
children
comparison
equal deleted inserted replaced
829:f74c5d3d3b06 830:56e3d8560d69
9 9
10 /************************************/ 10 /************************************/
11 /* Include files... */ 11 /* Include files... */
12 /************************************/ 12 /************************************/
13 13
14 #include "config.h"
15 #include "l1_confg.h"
14 #include "l1_macro.h" 16 #include "l1_macro.h"
15 #include "l1_confg.h" 17
16 18 #if 1 //(AUDIO_TASK == 1)
17 #if (AUDIO_TASK == 1)
18 19
19 #include "l1_types.h" 20 #include "l1_types.h"
20 #include "sys_types.h" 21 #include "sys_types.h"
21 22
22 #if (CODE_VERSION == SIMULATION) && (AUDIO_SIMULATION) 23 #if (CODE_VERSION == SIMULATION) && (AUDIO_SIMULATION)
111 #if (L1_AAC == 1) 112 #if (L1_AAC == 1)
112 #include "l1aac_defty.h" 113 #include "l1aac_defty.h"
113 #endif 114 #endif
114 115
115 #include "l1_defty.h" 116 #include "l1_defty.h"
116 #include "cust_os.h" 117 #include "../../gpf/inc/cust_os.h"
117 #include "l1_msgty.h" 118 #include "l1_msgty.h"
118 #include "tpudrv.h" // TPU drivers. ("eva3.lib") 119 #include "tpudrv.h" // TPU drivers. ("eva3.lib")
119 #include "l1_varex.h" 120 #include "l1_varex.h"
120 121
121 #include "l1_proto.h" 122 #include "l1_proto.h"
122 #include "l1_mftab.h" 123 #include "l1_mftab.h"
123 #include "l1_tabs.h" 124 #include "l1_tabs.h"
124 #include "mem.h" 125 #include "../../bsp/mem.h"
125 #include "armio.h" 126 #include "../../bsp/armio.h"
126 #include "timer.h" 127 #include "../../bsp/timer.h"
127 #include "timer1.h" 128 #include "../../bsp/timer1.h"
128 #include "dma.h" 129 #include "../../bsp/dma.h"
129 #include "inth.h" 130 #include "../../bsp/inth.h"
130 #include "ulpd.h" 131 #include "../../bsp/ulpd.h"
131 #include "rhea_arm.h" 132 #include "../../bsp/rhea_arm.h"
132 #include "clkm.h" // Clockm ("eva3.lib") 133 #include "../../bsp/clkm.h" // Clockm ("eva3.lib")
133 #include "l1_ctl.h" 134 #include "l1_ctl.h"
134 135
135 #include "l1_time.h" 136 #include "l1_time.h"
136 #if L2_L3_SIMUL 137 #if L2_L3_SIMUL
137 #include "l1_scen.h" 138 #include "l1_scen.h"
171 { 172 {
172 if (mute) 173 if (mute)
173 { 174 {
174 // Set the DL vocoder mute bit in the d_tch_mode register 175 // Set the DL vocoder mute bit in the d_tch_mode register
175 l1s_dsp_com.dsp_ndb_ptr->d_tch_mode |= (0x01<<14); 176 l1s_dsp_com.dsp_ndb_ptr->d_tch_mode |= (0x01<<14);
176 } 177 }
177 else 178 else
178 { 179 {
179 // Reset the DL vocoder mute bit in the d_tch_mode register 180 // Reset the DL vocoder mute bit in the d_tch_mode register
180 l1s_dsp_com.dsp_ndb_ptr->d_tch_mode &= ~(0x01<<14); 181 l1s_dsp_com.dsp_ndb_ptr->d_tch_mode &= ~(0x01<<14);
181 } 182 }
196 { 197 {
197 if (mute) 198 if (mute)
198 { 199 {
199 // Set the UL vocoder mute bit in the d_tch_mode register 200 // Set the UL vocoder mute bit in the d_tch_mode register
200 l1s_dsp_com.dsp_ndb_ptr->d_tch_mode |= (0x01<<15); 201 l1s_dsp_com.dsp_ndb_ptr->d_tch_mode |= (0x01<<15);
201 } 202 }
202 else 203 else
203 { 204 {
204 // Reset the UL vocoder mute bit in the d_tch_mode register 205 // Reset the UL vocoder mute bit in the d_tch_mode register
205 l1s_dsp_com.dsp_ndb_ptr->d_tch_mode &= ~(0x01<<15); 206 l1s_dsp_com.dsp_ndb_ptr->d_tch_mode &= ~(0x01<<15);
206 } 207 }