diff chipsetsw/layer1/audio_cfile/l1audio_sync.c @ 274:fd5ae803a73e

l1audio_sync.c: l1s_vm_amr_play_manager() reconstructed
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 13 Mar 2017 17:44:10 +0000
parents a19a9953eec2
children b679dd326f4d
line wrap: on
line diff
--- a/chipsetsw/layer1/audio_cfile/l1audio_sync.c	Mon Mar 13 06:33:00 2017 +0000
+++ b/chipsetsw/layer1/audio_cfile/l1audio_sync.c	Mon Mar 13 17:44:10 2017 +0000
@@ -3413,7 +3413,6 @@
     /*-------------------------------------------------------*/
     void l1s_vm_amr_play_manager(void)
     {
-      BOOL l1_vm_amr_in_pause=FALSE;
       enum states
       {
         IDLE              = 0,
@@ -3474,6 +3473,7 @@
           *state = WAIT_DSP_START;
 #endif // L1_AUDIO_MCU_ONOFF
         }
+        break;
 
 #if (L1_AUDIO_MCU_ONOFF == 1)
         case WAIT_AUDIO_ON:
@@ -3587,8 +3587,8 @@
               }
               else
               {
-                UWORD8 temp_header =0;  //omaps00090550
-                UWORD8  data_size =0;    //omaps00090550
+                UWORD8 temp_header;
+                UWORD8  data_size;
 
                 // Identify AMR sample RX_TX_TYPE
                 temp_header = sample_header & SC_RX_TX_TYPE_MASK;
@@ -3676,11 +3676,6 @@
                 *l1s.voicememo_amr.play.a_du_x = (sample_header | B_BLOCK_READY);
               }
             }
-        if(l1_vm_amr_in_pause==TRUE)
-         {
-           (*(l1s.voicememo_amr.play.a_du_x) = *(l1s.voicememo_amr.play.a_du_x) & ~B_BLOCK_READY);
-          l1_vm_amr_in_pause=FALSE;
-          }
           }
         }
         break;