changeset 98:c78de09b1a90

l1_drive.c: l1ddsp_end_scenario() reconstructed
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Thu, 07 Apr 2016 16:34:29 +0000
parents 784c1f136e67
children 3d214116a5ba
files chipsetsw/layer1/cfile/l1_drive.c
diffstat 1 files changed, 32 insertions(+), 27 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/cfile/l1_drive.c	Thu Apr 07 16:10:01 2016 +0000
+++ b/chipsetsw/layer1/cfile/l1_drive.c	Thu Apr 07 16:34:29 2016 +0000
@@ -1062,19 +1062,19 @@
     #endif // AUDIO_SIMULATION
 
   #else // NOT_SIMULATION
-    UWORD32 dsp_task=0 ;//omaps00090550;
+    UWORD32 dsp_task;
     switch(type)
     {
       case GSM_CTL:
       // a DSP control for a GSM task
       //-----------------------------
       {
-      // set only GSM task and GSM page
-      dsp_task = B_GSM_TASK | l1s_dsp_com.dsp_w_page;
-      // change DSP page pointer for next controle
-      l1s_dsp_com.dsp_w_page  ^= 1;
-    }
-    break;
+        // set only GSM task and GSM page
+        dsp_task = B_GSM_TASK | l1s_dsp_com.dsp_w_page;
+        // change DSP page pointer for next controle
+        l1s_dsp_com.dsp_w_page  ^= 1;
+      }
+      break;
 
       case MISC_CTL:
       // a DSP control for a MISC task
@@ -1082,28 +1082,33 @@
       {
         UWORD32  previous_page = l1s_dsp_com.dsp_w_page ^ 1;
 
-      // set only MISC task and reset MISC page
-      // (don't change GSM PAGE).
-      // set DSP communication Interrupt.
-      dsp_task = B_MISC_TASK | previous_page;
+        // set only MISC task and reset MISC page
+        // (don't change GSM PAGE).
+        // set DSP communication Interrupt.
+        dsp_task = B_MISC_TASK | previous_page;
+
+        // Rem: DSP makes the DB header feedback even in case
+        //      of MISC task (like TONES). This created some
+        //      side effect which are "work-around" passing
+        //      the correct DB page to the DSP.
+      }
+      break;
 
-      // Rem: DSP makes the DB header feedback even in case
-      //      of MISC task (like TONES). This created some
-      //      side effect which are "work-around" passing
-      //      the correct DB page to the DSP.
-    }
-    break;
+      case GSM_MISC_CTL:
+      // a DSP control for a GSM and a MISC tasks
+      //-----------------------------------------
+      {
+        // set GSM task, MISC task and GSM page bit.....
+        dsp_task =  B_GSM_TASK | B_MISC_TASK | l1s_dsp_com.dsp_w_page;
+        // change DSP page pointer for next controle
+        l1s_dsp_com.dsp_w_page  ^= 1;
+      }
+      break;
 
-    case GSM_MISC_CTL:
-    // a DSP control for a GSM and a MISC tasks
-    //-----------------------------------------
-    {
-      // set GSM task, MISC task and GSM page bit.....
-      dsp_task =  B_GSM_TASK | B_MISC_TASK | l1s_dsp_com.dsp_w_page;
-      // change DSP page pointer for next controle
-      l1s_dsp_com.dsp_w_page  ^= 1;
-    }
-      break;
+      #if 0	/* enable this after TCS211 reconstruction */
+      default:
+	dsp_task = 0;
+      #endif
     }
 
     // write dsp tasks.....