]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - pasdk/test_dsp/framework/audioStreamInpProc.c
* Fixes towards PASDK-53 include --- PART I (HDMI-Input CleanUp, mainly):
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / framework / audioStreamInpProc.c
index 94cdf30f01e83a375d616aa562e2f78495f7c273..d618d6c573f4de75c5834de882d770e95e478dde 100644 (file)
@@ -301,8 +301,14 @@ UInt32 gAsipInitCnt     =0;
 UInt32 gAsipInfo1Cnt    =0;
 UInt32 gAsipInfo2Cnt    =0;
 UInt32 gAsipDecodeCnt   =0;
+UInt32 gAsipDecodeErrCnt   =0;
 UInt32 gAsipFinalCnt    =0;
 UInt32 gAsipQuitCnt     =0;
+UInt32 gIbReset_cnt    =0;
+UInt32 gcapIb_cnt              =0;
+UInt32 gAsipInfo2_PrimaryErrCnt =0;
+UInt32 gAsipInfo2_ErrCnt               =0;
+
 #include "dbgDib.h"
 
 extern struct {
@@ -749,9 +755,10 @@ Void taskAsipFxn(
         }
 
         // 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 */
         MessageQ_setReplyQueue(hAspMsgMaster->masterQue, (MessageQ_Msg)pAspMsg);            /* set the return address in the message header */
@@ -2077,6 +2084,7 @@ PAF_ASIT_decodeProcessing(
                 if (errno = pP->fxns->decodeInfo(pP, pQ, pC, frame, block))
                 {
                     TRACE_TERSE1("PAF_ASIT_decodeProcessing: INFO2 break on decodeInfo. errno 0x%x", errno);
+                    gAsipInfo2_PrimaryErrCnt++;
                     break;
                 }
 
@@ -2090,6 +2098,7 @@ PAF_ASIT_decodeProcessing(
                 if (errno = pP->fxns->decodeInfo2(pP, pQ, pC, frame, block))
                 {
                     TRACE_TERSE1("PAF_ASIT_decodeProcessing. %d: INFO2 break on decodeInfo2. errno 0x%x", errno);
+                    gAsipInfo2_ErrCnt++;
                     break;
                 }
 
@@ -2110,7 +2119,8 @@ PAF_ASIT_decodeProcessing(
             
                 if (errno = pP->fxns->decodeDecode(pP, pQ, pC, sourceSelect, frame, block))
                 {
-                    TRACE_TERSE1("PAF_ASIT_decodeProcessing: state: DECODE.  decodeDecode err 0x%04x", errno);
+                       gAsipDecodeErrCnt++;
+                       TRACE_TERSE1("PAF_ASIT_decodeProcessing: state: DECODE.  decodeDecode err 0x%04x", errno);
                     break;
                 }
       
@@ -2295,7 +2305,7 @@ PAF_ASIT_decodeInit(
             // write back Dec configuration
             Cache_wb(&pAstCfg->xDec[z], sizeof(PAF_AST_Decode), Cache_Type_ALLD, 0);
             Cache_wait();
-            
+
             // FL: send dec activate message to slave
             pAspMsg = (ASP_Msg *)MessageQ_alloc(hAspMsgMaster->heapId, hAspMsgMaster->msgSize);  /* allocate message */
             if (pAspMsg == NULL)
@@ -2543,8 +2553,8 @@ PAF_ASIT_decodeInfo(
     Int argIdx;
     Int status;
     // FL: revisit
-    //Int size;
-    //PAF_InpBufConfig *pIpBufConfig;
+    Int size;
+    PAF_InpBufConfig *pIpBufConfig;
 
     pAstCfg = pC->pAstCfg; // get pointer to common (shared) configuration
     as = pAstCfg->as;
@@ -2610,8 +2620,12 @@ PAF_ASIT_decodeInfo(
             return ASPERR_RECLAIM;
         }
         
-        // FL: debug, capture input buffer
-        //capIb(pAstCfg->xInp[zMI].pInpBuf);
+        // FL: debug, capture input buffer AFTER cache_inv
+        //Cache_inv (pAstCfg->xInp[zMI].pInpBuf->pntr.pSmInt, (pAstCfg->xInp[zMI].pInpBuf->frameLength * pAstCfg->xInp[zMI].pInpBuf->sizeofElement), Cache_Type_ALLD, 0);
+        //Cache_wait();
+
+        capIb(pAstCfg->xInp[zMI].pInpBuf);
+        gcapIb_cnt++;
         
         //
         // Simulate Rx SIO_reclaim() pend