PASDK-53: Experimental code for circular buffer overflow/underflow handling
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / framework / audioStreamInpProc.c
index cb0adfafc00233232d16927705ba80a98f667bf4..e791f6c141cb30bb34f29dbb030135f1a0d37177 100644 (file)
@@ -311,7 +311,8 @@ UInt32 gcapIb_cnt               =0;
 UInt32 gAsipInfo2_PrimaryErrCnt =0;
 UInt32 gAsipInfo2_ErrCnt        =0;
 // debug
-UInt32 gCbErrnoCnt              =0; // decoder circular buffer error count (write on ARM returned to DSP)
+UInt32 gCbWrtAfErrCnt           =0; // // decoder output circular buffer write error count (returned from ARM to DSP)
+                                   
 
 #include "dbgDib.h" // debug
 
@@ -321,7 +322,6 @@ extern struct {
 } IACP_STD_BETA_TABLE;
 
 // FL: debug
-#include "evmc66x_pinmux.h"
 #include "evmc66x_gpio_dbg.h"
 
 /*
@@ -3447,7 +3447,7 @@ PAF_ASIT_decodeDecode(
                 cbErrno = *(Int32 *)&pAspMsg->buf[argIdx];
                 if (cbErrno != 0)
                 {
-                    gCbErrnoCnt++;
+                    gCbWrtAfErrCnt++;
                     TRACE_TERSE1("CB write error=%d", cbErrno);
                     //SW_BREAKPOINT; // temporary
                 }