Add capIb at DSP Rx SIO reclaim
authorFrank Livingston <frank-livingston@ti.com>
Thu, 26 Jan 2017 22:59:56 +0000 (16:59 -0600)
committerFrank Livingston <frank-livingston@ti.com>
Thu, 26 Jan 2017 22:59:56 +0000 (16:59 -0600)
pasdk/test_dsp/framework/audioStreamInpProc.c

index bef354372e8709f46fb24a7c581206e5fea00a94..c3fbfe38639fb56eeaa909a10235658ed9863ff3 100644 (file)
@@ -306,10 +306,10 @@ UInt32 gAsipDecodeCnt   =0;
 UInt32 gAsipDecodeErrCnt   =0;
 UInt32 gAsipFinalCnt    =0;
 UInt32 gAsipQuitCnt     =0;
 UInt32 gAsipDecodeErrCnt   =0;
 UInt32 gAsipFinalCnt    =0;
 UInt32 gAsipQuitCnt     =0;
-UInt32 gIbReset_cnt    =0;
-UInt32 gcapIb_cnt              =0;
+UInt32 gIbReset_cnt     =0;
+UInt32 gcapIb_cnt        =0;
 UInt32 gAsipInfo2_PrimaryErrCnt =0;
 UInt32 gAsipInfo2_PrimaryErrCnt =0;
-UInt32 gAsipInfo2_ErrCnt               =0;
+UInt32 gAsipInfo2_ErrCnt        =0;
 
 #include "dbgDib.h"
 
 
 #include "dbgDib.h"
 
@@ -877,8 +877,9 @@ Void taskAsipFxn(
         }
 
         // FL: debug, reset IB capture buffer
         }
 
         // FL: debug, reset IB capture buffer
-        //capIbReset();
-        //Log_info0("capIbReset()");
+        capIbReset();
+        gIbReset_cnt++;
+        Log_info0("capIbReset()");
         
         // FL: send source select message to slave
         pAspMsg = (ASP_Msg *)MessageQ_alloc(hAspMsgMaster->heapId, hAspMsgMaster->msgSize); /* allocate message */
         
         // FL: send source select message to slave
         pAspMsg = (ASP_Msg *)MessageQ_alloc(hAspMsgMaster->heapId, hAspMsgMaster->msgSize); /* allocate message */
@@ -2298,7 +2299,7 @@ PAF_ASIT_decodeProcessing(
             
                 if (errno = pP->fxns->decodeDecode(pP, pQ, pC, sourceSelect, frame, block))
                 {
             
                 if (errno = pP->fxns->decodeDecode(pP, pQ, pC, sourceSelect, frame, block))
                 {
-                       gAsipDecodeErrCnt++;
+                    gAsipDecodeErrCnt++;
                     TRACE_TERSE1("PAF_ASIT_decodeProcessing: state: DECODE.  decodeDecode err 0x%04x", errno);
                     break;
                 }
                     TRACE_TERSE1("PAF_ASIT_decodeProcessing: state: DECODE.  decodeDecode err 0x%04x", errno);
                     break;
                 }
@@ -2915,7 +2916,9 @@ PAF_ASIT_decodeInfo(
         }
         
         // FL: debug, capture input buffer
         }
         
         // FL: debug, capture input buffer
-        //capIb(pAstCfg->xInp[zMI].pInpBuf);
+
+        capIb(pAstCfg->xInp[zMI].pInpBuf);
+        gcapIb_cnt++;
         
         //
         // Simulate Rx SIO_reclaim() pend
         
         //
         // Simulate Rx SIO_reclaim() pend