comparison chipsetsw/layer1/audio_cfile/l1audio_async.c @ 256:c024926a995e

l1audio_async.c: no l1_{dis,en}able_dsp_trace in TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 13 Mar 2017 02:01:49 +0000
parents 515720b6adfe
children da21daa2bdfb
comparison
equal deleted inserted replaced
255:515720b6adfe 256:c024926a995e
7257 7257
7258 if(l1a.dyn_dwnld.semaphore_vect[E2_STATE_MACHINE]==GREEN) 7258 if(l1a.dyn_dwnld.semaphore_vect[E2_STATE_MACHINE]==GREEN)
7259 { 7259 {
7260 7260
7261 // WARNING: code below must be duplicated in WAIT_DYN_DWNLD state 7261 // WARNING: code below must be duplicated in WAIT_DYN_DWNLD state
7262 #if ((TRACE_TYPE==1) || (TRACE_TYPE == 4)) 7262 #if 0 //((TRACE_TYPE==1) || (TRACE_TYPE == 4))
7263 // Disable trace DSP upon E2 MELODY activation 7263 // Disable trace DSP upon E2 MELODY activation
7264 l1_disable_dsp_trace(); 7264 l1_disable_dsp_trace();
7265 #endif 7265 #endif
7266 // Reset the emergency flag 7266 // Reset the emergency flag
7267 l1a_l1s_com.melody0_e2_task.parameters.emergency_stop = FALSE; 7267 l1a_l1s_com.melody0_e2_task.parameters.emergency_stop = FALSE;
7487 { 7487 {
7488 if ( ((T_L1_BACK_MELODY_E2_UNLOAD_INSTRUMENT_REQ *)(msg->SigP))->melody_id == 0 ) 7488 if ( ((T_L1_BACK_MELODY_E2_UNLOAD_INSTRUMENT_REQ *)(msg->SigP))->melody_id == 0 )
7489 { 7489 {
7490 // Send the stop confirmation message 7490 // Send the stop confirmation message
7491 l1a_audio_send_confirmation(MMI_MELODY0_E2_STOP_CON); 7491 l1a_audio_send_confirmation(MMI_MELODY0_E2_STOP_CON);
7492 #if ((TRACE_TYPE==1) || (TRACE_TYPE == 4)) 7492 #if 0 //((TRACE_TYPE==1) || (TRACE_TYPE == 4))
7493 // Enable trace DSP upon E2 MELODY deactivation 7493 // Enable trace DSP upon E2 MELODY deactivation
7494 l1_enable_dsp_trace(); 7494 l1_enable_dsp_trace();
7495 #endif 7495 #endif
7496 7496
7497 *state = M0_RESET; 7497 *state = M0_RESET;
7570 l1a_l1s_com.melody1_e2_task.parameters.loopback = ((T_MMI_MELODY_E2_REQ *)(msg->SigP))->loopback; 7570 l1a_l1s_com.melody1_e2_task.parameters.loopback = ((T_MMI_MELODY_E2_REQ *)(msg->SigP))->loopback;
7571 7571
7572 if(l1a.dyn_dwnld.semaphore_vect[E2_STATE_MACHINE] == GREEN) 7572 if(l1a.dyn_dwnld.semaphore_vect[E2_STATE_MACHINE] == GREEN)
7573 { 7573 {
7574 // WARNING: code below must be duplicated in WAIT_DYN_DWNLD state 7574 // WARNING: code below must be duplicated in WAIT_DYN_DWNLD state
7575 #if ((TRACE_TYPE==1) || (TRACE_TYPE == 4)) 7575 #if 0 //((TRACE_TYPE==1) || (TRACE_TYPE == 4))
7576 // Disable trace DSP upon E2 MELODY activation 7576 // Disable trace DSP upon E2 MELODY activation
7577 l1_disable_dsp_trace(); 7577 l1_disable_dsp_trace();
7578 #endif 7578 #endif
7579 // Reset the emergency flag 7579 // Reset the emergency flag
7580 l1a_l1s_com.melody1_e2_task.parameters.emergency_stop = FALSE; 7580 l1a_l1s_com.melody1_e2_task.parameters.emergency_stop = FALSE;
7660 break; 7660 break;
7661 case WAIT_DYN_DWNLD: 7661 case WAIT_DYN_DWNLD:
7662 { 7662 {
7663 if((SignalCode == API_L1_DYN_DWNLD_FINISHED) && (l1a.dyn_dwnld.semaphore_vect[E2_STATE_MACHINE] == GREEN)) 7663 if((SignalCode == API_L1_DYN_DWNLD_FINISHED) && (l1a.dyn_dwnld.semaphore_vect[E2_STATE_MACHINE] == GREEN))
7664 { 7664 {
7665 #if ((TRACE_TYPE==1) || (TRACE_TYPE == 4)) 7665 #if 0 //((TRACE_TYPE==1) || (TRACE_TYPE == 4))
7666 // Disable trace DSP upon E2 MELODY activation 7666 // Disable trace DSP upon E2 MELODY activation
7667 l1_disable_dsp_trace(); 7667 l1_disable_dsp_trace();
7668 #endif 7668 #endif
7669 // Reset the emergency flag 7669 // Reset the emergency flag
7670 l1a_l1s_com.melody1_e2_task.parameters.emergency_stop = FALSE; 7670 l1a_l1s_com.melody1_e2_task.parameters.emergency_stop = FALSE;
7807 { 7807 {
7808 // Send the stop confirmation message 7808 // Send the stop confirmation message
7809 l1a_audio_send_confirmation(MMI_MELODY1_E2_STOP_CON); 7809 l1a_audio_send_confirmation(MMI_MELODY1_E2_STOP_CON);
7810 7810
7811 *state = M1_RESET; 7811 *state = M1_RESET;
7812 #if ((TRACE_TYPE==1) || (TRACE_TYPE == 4)) 7812 #if 0 //((TRACE_TYPE==1) || (TRACE_TYPE == 4))
7813 // Enable trace DSP upon E2 MELODY deactivation 7813 // Enable trace DSP upon E2 MELODY deactivation
7814 l1_enable_dsp_trace(); 7814 l1_enable_dsp_trace();
7815 #endif 7815 #endif
7816 } 7816 }
7817 } 7817 }
7883 7883
7884 case M0_WAIT_START_REQ: 7884 case M0_WAIT_START_REQ:
7885 { 7885 {
7886 if (SignalCode == MMI_MELODY0_E2_START_REQ) 7886 if (SignalCode == MMI_MELODY0_E2_START_REQ)
7887 { 7887 {
7888 #if ((TRACE_TYPE==1) || (TRACE_TYPE == 4)) 7888 #if 0 //((TRACE_TYPE==1) || (TRACE_TYPE == 4))
7889 // Disable trace DSP upon E2 MELODY activation 7889 // Disable trace DSP upon E2 MELODY activation
7890 l1_disable_dsp_trace(); 7890 l1_disable_dsp_trace();
7891 #endif 7891 #endif
7892 // Download the parameters from the message: 7892 // Download the parameters from the message:
7893 l1a_l1s_com.melody0_e2_task.parameters.session_id = ((T_MMI_MELODY_E2_REQ *)(msg->SigP))->session_id; 7893 l1a_l1s_com.melody0_e2_task.parameters.session_id = ((T_MMI_MELODY_E2_REQ *)(msg->SigP))->session_id;
8024 { 8024 {
8025 // Send the stop confirmation message 8025 // Send the stop confirmation message
8026 l1a_audio_send_confirmation(MMI_MELODY0_E2_STOP_CON); 8026 l1a_audio_send_confirmation(MMI_MELODY0_E2_STOP_CON);
8027 8027
8028 *state = M0_RESET; 8028 *state = M0_RESET;
8029 #if ((TRACE_TYPE==1) || (TRACE_TYPE == 4)) 8029 #if 0 //((TRACE_TYPE==1) || (TRACE_TYPE == 4))
8030 // Enable trace DSP upon E2 MELODY deactivation 8030 // Enable trace DSP upon E2 MELODY deactivation
8031 l1_enable_dsp_trace(); 8031 l1_enable_dsp_trace();
8032 #endif 8032 #endif
8033 } 8033 }
8034 } 8034 }
8097 8097
8098 case M1_WAIT_START_REQ: 8098 case M1_WAIT_START_REQ:
8099 { 8099 {
8100 if (SignalCode == MMI_MELODY1_E2_START_REQ) 8100 if (SignalCode == MMI_MELODY1_E2_START_REQ)
8101 { 8101 {
8102 #if ((TRACE_TYPE==1) || (TRACE_TYPE == 4)) 8102 #if 0 //((TRACE_TYPE==1) || (TRACE_TYPE == 4))
8103 // Disable trace DSP upon E2 MELODY activation 8103 // Disable trace DSP upon E2 MELODY activation
8104 l1_disable_dsp_trace(); 8104 l1_disable_dsp_trace();
8105 #endif 8105 #endif
8106 8106
8107 // Download the parameters from the message: 8107 // Download the parameters from the message:
8239 { 8239 {
8240 // Send the stop confirmation message 8240 // Send the stop confirmation message
8241 l1a_audio_send_confirmation(MMI_MELODY1_E2_STOP_CON); 8241 l1a_audio_send_confirmation(MMI_MELODY1_E2_STOP_CON);
8242 8242
8243 *state = M1_RESET; 8243 *state = M1_RESET;
8244 #if ((TRACE_TYPE==1) || (TRACE_TYPE == 4)) 8244 #if 0 //((TRACE_TYPE==1) || (TRACE_TYPE == 4))
8245 // Enable trace DSP upon E2 MELODY deactivation 8245 // Enable trace DSP upon E2 MELODY deactivation
8246 l1_enable_dsp_trace(); 8246 l1_enable_dsp_trace();
8247 #endif 8247 #endif
8248 } 8248 }
8249 } 8249 }