diff --git a/pasdk/test_dsp/framework/audioStreamInpProc.c b/pasdk/test_dsp/framework/audioStreamInpProc.c
index 7b1dbf891eacd612781ff3f497cc19bd8c421803..e791f6c141cb30bb34f29dbb030135f1a0d37177 100644 (file)
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
} IACP_STD_BETA_TABLE;
// FL: debug
-#include "evmc66x_pinmux.h"
#include "evmc66x_gpio_dbg.h"
/*
#ifdef NON_CACHE_STATUS
Int8 tempVar8;
#endif
+ Task_Handle taskHandle;
Log_info0("Enter taskAsipFxn()");
pAstCfg->as = as;
TRACE_TERSE1("TaskAsip: Started with AS%d.", as);
+ taskHandle = Task_self();
+
//
// Initialize message log trace and line number reporting
//
TRACE_VERBOSE1(procName[sourceProgram], as+zMS);
+ // Reduce priority level since autodetection complete
+ Task_setPri(taskHandle, Task_getPri(taskHandle)-1);
+
TRACE_VERBOSE0("TaskAsip: calling decodeProcessing.");
errno = pP->fxns->decodeProcessing(pP, pQ, pC, sourceSelect);
if (errno)
TRACE_VERBOSE0("TaskAsip: decodeProcessing complete with no error.");
}
+ // Increase priority level since decoding complete
+ Task_setPri(taskHandle, Task_getPri(taskHandle)+1);
+
// FL: send dec exit 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 */
nbytes = SIO_reclaim(pAstCfg->xInp[zMI].hRxSio, (Ptr)&pAstCfg->xInp[zMI].pInpBuf, NULL);
if (nbytes == -DIBERR_SYNC)
{
+#if 0 // (***) FL: shows timing of autosync restart
+ // (***) debug // B5
+ {
+ static Uint8 toggleState = 0;
+ if (toggleState == 0)
+ GPIOSetOutput(GPIO_PORT_0, GPIO_PIN_99);
+ else
+ GPIOClearOutput(GPIO_PORT_0, GPIO_PIN_99);
+ toggleState = ~(toggleState);
+ }
+#endif
+
TRACE_TERSE2("PAF_ASIT_autoProcessing: AS%d: SIO_reclaim returned 0x%x, ignoring", as+zMS, nbytes);
return nbytes;
}
capIb(pAstCfg->xInp[zMI].pInpBuf);
gcapIb_cnt++;
-#if 0
+#if 1 // (***) FL: shows timing of Input Rx SIO reclaim after decoding has started (autodet complete)
{
static Uint8 toggleState = 0;
if (toggleState == 0)
cbErrno = *(Int32 *)&pAspMsg->buf[argIdx];
if (cbErrno != 0)
{
- gCbErrnoCnt++;
+ gCbWrtAfErrCnt++;
TRACE_TERSE1("CB write error=%d", cbErrno);
//SW_BREAKPOINT; // temporary
}