1. added setting ASOT priority in DSP systemInit.c.
authorSu <qsu@ti.com>
Fri, 29 Jul 2016 15:03:33 +0000 (11:03 -0400)
committerSu <qsu@ti.com>
Fri, 29 Jul 2016 15:03:33 +0000 (11:03 -0400)
2. added re-enable the readstart/writestart flags of cb in ASIT.

procsdk_audio_x_xx_xx_xx/common/paf_decOpCircBuf.c
procsdk_audio_x_xx_xx_xx/common/paf_decOpCircBuf.h
procsdk_audio_x_xx_xx_xx/test_dsp/framework/audioStreamInpProc.c
procsdk_audio_x_xx_xx_xx/test_dsp/framework/systemInit.c

index b7e8462d495c0190c8fdceb719dbc6fac65fff6a..f660bdd47a77d4e90987a1b635412a4abec93070 100644 (file)
@@ -209,6 +209,25 @@ Int cbReadStop(
 
     return PAF_DECOP_CB_SOK;
 }
+// restore read/write flags of the circular buffer. - QIN
+Int cbReadWriteRestore(
+    PAF_DecodeOpCircBuf *pCb    // decoder output circular buffer
+)
+{
+    // Invalidate circular buffer configuration.
+    Cache_inv(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+    Cache_wait();
+
+    // update flags
+    pCb->readerActiveFlag = 1;
+    pCb->writerActiveFlag = 1;
+    
+    // (***) FL: hackin'
+    // Write back circular buffer configuration
+    Cache_wb(pCb, sizeof(PAF_DecodeOpCircBuf), Cache_Type_ALLD, 0);
+
+    return PAF_DECOP_CB_SOK;
+}
 
 // Read audio frame from circular buffer
 Int cbReadAf(
index 2bc567b9cd487412ac28b1ff499a2e4746ddc15c..7d907cd8eac8c3782d7698a268306906c62ee888 100644 (file)
@@ -76,5 +76,9 @@ Int cbLog(
     PAF_DecodeOpCircBuf *pCb,
     Int8 fullLog
 );
+// restore read/write flags of the circular buffer. - QIN
+Int cbReadWriteRestore(
+    PAF_DecodeOpCircBuf *pCb    // decoder output circular buffer
+);
 
 #endif /* _DEC_OP_CIRC_BUF_H_ */
index 1c172e2d5b66a0671924ce82594a89c16fffc8e2..c4e9b8c378cb15a19f1a84562502df3080cc0960 100644 (file)
@@ -2378,6 +2378,11 @@ PAF_ASIT_decodeInit(
             pCb = &pC->xDec[z].decOpCb;
             errno = cbInit(sourceSelect, frameLength, FRAMELENGTH, pCb);
             if (errno)
+            {
+                return errno;
+            }
+                       errno = cbReadWriteRestore(pCb); //QIN
+            if (errno)
             {
                 return errno;
             }
index 9f4df11a4d99eb37e408252442b795929c49aec5..5d6a6f7d7050b1d17946176d7dec9076e9ea629e 100644 (file)
@@ -122,6 +122,7 @@ Void taskSysInitFxn(Void)
     Task_setPri(TaskAfp, TASK_AFP_PRI);
     Task_setPri(TaskAip, TASK_AIP_PRI);
     Task_setPri(TaskAsip, TASK_ASIP_PRI);
+    Task_setPri(TaskAsop, TASK_ASIP_PRI);
 
     Log_info0("Exit taskSysInitFxn()");
 }