PASDK-218:Change CB write to only skip write in case of overflow.
[processor-sdk/performance-audio-sr.git] / pasdk / test_arm / framework / aspDecOpCircBuf_slave.c
index d2f34413148dfb19ebb7ae5703d194af92514c9f..36fdccc4ee65594472eab6e6dc5feab13221dc6d 100644 (file)
@@ -210,11 +210,11 @@ Int cbWriteAf(
     //Log_info1("cbWriteAf:afCb=0x%04x", (IArg)pCb->afCb); // debug
     //Log_info2("cbWriteAf:pCb->readerActiveFlag=%d, pCb->writerActiveFlag=%d", (IArg)pCb->readerActiveFlag, (IArg)pCb->writerActiveFlag); // debug
 
-    if (pCb->readerActiveFlag == 1)
-    {
-        //
-        // Normal case, reader active.
-        //
+    //if (pCb->readerActiveFlag == 1)
+    //{
+    //    //
+    //    // Normal case, reader active.
+    //    //
         
         if (pAfWrt->sampleCount != 0)
         {
@@ -450,8 +450,9 @@ Int cbWriteAf(
             Cache_wb(pCb, sizeof(PAF_AST_DecOpCircBuf), Cache_Type_ALLD, 0);
             Cache_wait();
         }
-    }
-    else if (pCb->readerActiveFlag == 0)
+    //}
+    //else if (pCb->readerActiveFlag == 0)
+    if (pCb->readerActiveFlag == 0)
     {
         //
         // Reader inactive, don't write to circular buffer or check OVRflow.