diff --git a/pasdk/test_dsp/framework/audioStreamInpProc.c b/pasdk/test_dsp/framework/audioStreamInpProc.c
index 112d17715faf224cb260d766c30d0049f4cbe372..b1917494cbc73ae7776d65756832c6cd299c3c68 100644 (file)
};
// Global debug counters */
-UInt32 gTaskAsipCnt =0;
+UInt32 gAsipRxSioReclaimCnt =0;
UInt32 gAsipInitCnt =0;
UInt32 gAsipInfo1Cnt =0;
UInt32 gAsipInfo2Cnt =0;
UInt32 gAsipInfo1_ErrCnt =0;
UInt32 gAsipInfo2_PrimaryErrCnt =0;
UInt32 gAsipInfo2_ErrCnt =0;
+// debug
UInt32 gCapIbReset_cnt =0;
UInt32 gCapIb_cnt =0;
-// debug
UInt32 gCbWrtAfErrCnt =0; // decoder output circular buffer write error count (returned from ARM to DSP)
Int errno; /* error number */
Int zMD, zMI, zMS, zX;
Int loopCount = 0; // used to stop trace to see startup behavior.
- UInt32 curTime;
Int size;
// Messaging
ASP_Msg *pAspMsg;
// - AlgKey: Dec/Enc chain to Array Initialization
// - Device: I/O Device Initialization
// - DecOpCircBuf: Decoder Output Circular Buffer
- // - Unused: (available)
+ // - OutIS: Output Init-Sync
//
LINNO_RPRT(TaskAsip, -2);
for (i=0; i < lengthof(pP->fxns->initPhase); i++)
continue;
}
- // FL: debug, reset IB capture buffer
+#if 0 // debug, reset IB capture buffer
capIbReset();
gCapIbReset_cnt++;
Log_info0("capIbReset()");
+#endif
- // FL: send source select message to slave
+ // send source select message to slave
*(Int32 *)&asipMsgBuf[0] = sourceSelect;
if(AspMsgSend(ASP_SLAVE_DEC_SOURCE_SELECT, ASP_MASTER_DEC_SOURCE_SELECT_DONE,
asipMsgBuf, NULL) != ASP_MSG_NO_ERR)
enum { INIT, INFO1, INFO2, DECODE, FINAL, QUIT } state;
ALG_Handle alg[DECODEN_MAX];
Int zMD;
- Int zMS;
- Int size;
- //PAF_InpBufConfig *pIpBufConfig;
+ //Int zMS;
Int frame; // decoder input frame count
Int block; // (***) FL: formerly -- decoder output block count / input frame
Int8 tempVar8, temp2Var8;
pAstCfg = pAsitCfg->pAstCfg; // get pointer to AST common (shared) configuration
zMD = pAstCfg->masterDec;
- zMS = pAstCfg->masterStr;
+ //zMS = pAstCfg->masterStr;
for (z=DECODE1; z < DECODEN; z++)
{
Int zMD;
Int zMI;
Int zMS;
- UInt32 curTime;
Int argIdx;
Int8 tempVar8;
Int tempVar;
// FL: revisit
//Int size;
//PAF_InpBufConfig *pIpBufConfig;
+ // debug
+ //UInt32 curTime;
pAstCfg = pAsitCfg->pAstCfg; // get pointer to AST common (shared) configuration
as = pAstCfg->as;
return ASPERR_RECLAIM;
}
- //// FL: debug, capture input buffer
- //capIb(pAstCfg->xInp[zMI].pInpBuf);
- //gCapIb_cnt++;
+#if 0 // debug, capture input buffer
+ capIb(pAstCfg->xInp[zMI].pInpBuf);
+ gCapIb_cnt++;
+#endif
#if 0 // (***) FL: shows timing of Input Rx SIO reclaim after decoding has started (autodet complete)
// (***) debug // B5
// Simulate Rx SIO_reclaim() pend
//
//Semaphore_pend(semaphoreRxAudio, BIOS_WAIT_FOREVER);
- gTaskAsipCnt++;
- curTime = Clock_getTicks();
+ //curTime = Clock_getTicks();
//System_printf("System time in TaskAsipFxn Rx audio = %lu\n", (ULong)curTime);
//Log_info1("System time in TaskAsipFxn Rx audio = %u", curTime);
//Log_info1("decodeInfo():Rx SIO reclaim(), system time = %u", curTime);
+
+ gAsipRxSioReclaimCnt++;
} //pAstCfg->xInp[zMI].hRxSio
// Decode info
(IArg)pAstCfg->xInp[z].pInpBuf->base.pVoid,
(IArg)pAstCfg->xInp[z].pInpBuf->head.pVoid);
- // FL: debug, capture input buffer
- //capIbPcm(pAstCfg->xInp[z].pInpBuf);
+#if 0 // debug, capture input buffer
+ capIbPcm(pAstCfg->xInp[z].pInpBuf);
+#endif
// (***) FL: revisit
// write back Dec configuration
Int as; /* Audio Stream Number (1, 2, etc.) */
Int z; /* decode/encode counter */
Int argIdx;
- Int errno; /* error number */
Int8 tempVar8;
char decMsgBuf[ASP_MSG_BUF_LEN];