author | Frank Livingston <frank-livingston@ti.com> | |
Sat, 28 Jan 2017 01:38:28 +0000 (19:38 -0600) | ||
committer | Frank Livingston <frank-livingston@ti.com> | |
Sat, 28 Jan 2017 01:38:28 +0000 (19:38 -0600) |
diff --git a/pasdk/common/dbgDib.c b/pasdk/common/dbgDib.c
index 61251885950e67ffc025f5bd51fd120fa20091a2..a5f730181507a8c9b1871cdbc3996473bbff2ffd 100644 (file)
--- a/pasdk/common/dbgDib.c
+++ b/pasdk/common/dbgDib.c
Int32 gCapIbBufIdx[2]={0,0};
Int32 gCapIbBufWrapCnt[2]={0,0};
Int8 gCapIbBufPingPongSel=1;
+Int32 gCapIbAccBytes=0;
Int32 gNumDiffFrame[2]={0,0};
#endif // CAP_IP
gCapIbBufIdx[gCapIbBufPingPongSel] = 0;
gCapIbBufWrapCnt[gCapIbBufPingPongSel] = 0;
gNumDiffFrame[gCapIbBufPingPongSel] = 0;
+ gCapIbAccBytes=0;
return 0;
}
diff --git a/pasdk/common/dbgDib.h b/pasdk/common/dbgDib.h
index 6589f9adff8f4249c51ad7b04031653f5e45a83c..614ad4235597e1e328f2bedc3c631336fafb3670 100644 (file)
--- a/pasdk/common/dbgDib.h
+++ b/pasdk/common/dbgDib.h
#define CAP_IP
#ifdef CAP_IP
// IB capture buffer parameters
-#define CAP_IB_MAX_NUM_FRAME ( 938 )
+//#define CAP_IB_MAX_NUM_FRAME ( 938 )
+#define CAP_IB_MAX_NUM_FRAME ( 2000 )
//#define CAP_IB_MAX_BYTES_PER_FRAME ( 24576 ) // for DDP
-#define CAP_IB_MAX_BYTES_PER_FRAME ( 30720 ) // for MAT-THD
+#define CAP_IB_MAX_BYTES_PER_FRAME ( 2*30720 ) // for MAT-THD
#define CAP_IB_BUF_SZ ( CAP_IB_MAX_NUM_FRAME * CAP_IB_MAX_BYTES_PER_FRAME )
// IB capture buffer
index 05399991ef83d6f1bd6f8948288b53a0fce4617f..d2c0c2db622557fa7ba8c1769c7ada95ca9ff973 100644 (file)
} > COMMON_DDR3
.gCapIbPcmBuf :> CORE0_DDR3
- .gCapIbBuf :> CORE0_DDR3
+ .gCapIbBuf :> DDR3
.gCapObBuf :> CORE0_DDR3
.gCapAfBuf :> CORE0_DDR3
diff --git a/pasdk/test_dsp/framework/audioStreamInpProc.c b/pasdk/test_dsp/framework/audioStreamInpProc.c
index 9dbed6ce80cffae98f67005b1fcbfdb71b7ecbc0..4c5227dd2363f154230b74708113fc204dd00d6a 100644 (file)
return errno;
} //PAF_ASIT_autoProcessing
+UInt32 gProbe1Err=0;
+UInt32 gProbe2Err=0;
+UInt32 gMajorAuMissed=0;
+
// -----------------------------------------------------------------------------
// ASIT Processing Function - Decode Processing
//
Int frame; // decoder input frame count
Int block; // (***) FL: formerly -- decoder output block count / input frame
#ifdef NON_CACHE_STATUS
- Int8 tempVar8;
+ Int8 tempVar8, temp2Var8;
#endif
pAstCfg = pC->pAstCfg; // get pointer to common (shared) configuration
// Establish primary timing
if (errno = pP->fxns->decodeInfo(pP, pQ, pC, frame, block))
{
+ gProbe1Err++;
TRACE_TERSE1("INFO1: errno 0x%x after decodeInfo, primary timing", errno);
break;
}
&(pAstCfg->xDec[zMD].decodeStatus.sourceDecode),
sizeof(tempVar8),
GATEMP_INDEX_DEC);
+ statusOp_read(&temp2Var8,
+ &(pAstCfg->xDec[zMD].decodeStatus.sampleRate),
+ sizeof(tempVar8),
+ GATEMP_INDEX_DEC);
// Don't start decode until major access unit is found.
if (((tempVar8 == PAF_SOURCE_THD) ||
(tempVar8 == PAF_SOURCE_DXP) ||
(tempVar8 == PAF_SOURCE_DTSHD)) &&
- (pAstCfg->xStr[zMS].pAudioFrame->sampleRate == PAF_SAMPLERATE_UNKNOWN))
+ (temp2Var8 == PAF_SAMPLERATE_UNKNOWN))
#else
// Don't start decode until major access unit is found.
if (((pAstCfg->xDec[zMD].decodeStatus.sourceDecode == PAF_SOURCE_THD) ||
(pAstCfg->xDec[zMD].decodeStatus.sourceDecode == PAF_SOURCE_DXP) ||
(pAstCfg->xDec[zMD].decodeStatus.sourceDecode == PAF_SOURCE_DTSHD)) &&
- (pAstCfg->xStr[zMS].pAudioFrame->sampleRate == PAF_SAMPLERATE_UNKNOWN))
+ (pAstCfg->xDec[zMD].decodeStatus.sampleRate == PAF_SAMPLERATE_UNKNOWN))
#endif
{
Int z;
if (SIO_issue(pAstCfg->xInp[zI].hRxSio, &pAstCfg->xInp[zI].inpBufConfig,
sizeof(pAstCfg->xInp[zI].inpBufConfig), PAF_SIO_REQUEST_NEWFRAME))
{
+ gProbe2Err++;
TRACE_TERSE0("PAF_ASIT_decodeProcessing. %d: INFO1, return (ASPERR_ISSUE)");
return (ASPERR_ISSUE);
}
}
}
TRACE_VERBOSE1("PAF_ASIT_decodeProcessing: INFO1: frame %d, not major access unit", frame);
+ gMajorAuMissed++; // debug
frame++;
state = INFO1;
continue;
if (errno = pP->fxns->decodeDecode(pP, pQ, pC, sourceSelect, frame, block))
{
- gAsipDecodeErrCnt++;
- 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;
}
return ASPERR_RECLAIM;
}
- // 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();
-
+ // FL: debug, capture input buffer
capIb(pAstCfg->xInp[zMI].pInpBuf);
gcapIb_cnt++;