diff --git a/pasdk/test_dsp/framework/audioStreamInpProc.c b/pasdk/test_dsp/framework/audioStreamInpProc.c
index 94cdf30f01e83a375d616aa562e2f78495f7c273..d618d6c573f4de75c5834de882d770e95e478dde 100644 (file)
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 {
}
// 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 */
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;
}
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;
}
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;
}
// 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)
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;
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