index 08c4ba815bd13d19e5bd6997a4e3f43e107be43f..ce7183a7e3eb8d184d1127fe30d9d820493b6ae1 100644 (file)
--- a/pasdk/test_dsp/mib/mib.c
+++ b/pasdk/test_dsp/mib/mib.c
#define HEAPMALLOC (IHeap_Handle)heapMemDdr3
extern HeapMem_Handle DEV2_memSpaceToHeap (IALG_MemSpace space);
-#if 0
-#if ((PAF_DEVICE&0xFF000000) == 0xD8000000)
-#ifndef dMAX_CFG
-#include <dap_dmax.h>
-#else
-#include <dmax_struct.h>
-#include <dmax_params.h>
-#endif /* dMAX_CFG */
-#include "psdkaf_hjt.h"
-extern Uint32 DAT_cacheop_and_copy (void *src, void *dst, Uint16 byteCnt);
-#undef DAT_copy
-#define DAT_copy DAT_cacheop_and_copy
-#else
-#include "pafhjt.h"
-#include "dmax_dat.h" // this has to come after pafhjt
-#endif
-
-#else
#include "pafhjt.h"
-#endif
#include <ti/sysbios/knl/Clock.h>
#include <xdc/runtime/Log.h>
};
// IEC framelengths (in 16bit words)
-static const MdUns iecFrameLength[23] =
+const MdUns iecFrameLength[23] =
{
0,
1536*2,
// This is used at a couple of locations to ensure the transfer
// size is sufficiently long to be useful.
-//#define NOMINAL_XFERSIZE 128
#define NOMINAL_XFERSIZE 128 //GJ Debug
-//#define NOMINAL_XFERSIZE 512 //GJ Debug
#define min(a, b) (((a) < (b)) ? (a) : (b))
#define max(a, b) (((a) > (b)) ? (a) : (b))
Queue_put (device->fromdevice, (Queue_Elem *)srcFrame);
-//GJ: PAF_SIO_REQUEST_AUTO, Not Supported, yet.
- if (srcFrame->arg == PAF_SIO_REQUEST_AUTO) {
-#if 0
- // if not yet running, prime input buffer
- if (pDevExt->syncState == SYNC_NONE) {
-
- status = DIB_FTABLE_reset (device, pBufConfig);
- if (status)
- return status;
-
- pDevExt->sourceProgram = PAF_SOURCE_UNKNOWN;
-
- status = DIB_FTABLE_issueChild (device, &pDevExt->bufConfig, pDevExt->autoRequestSize, 0);
- if (status)
- return status;
-
- // * also reset pDevExt->zeroCount, as in DIB_getSync()?
- // just for PAF_SOURCE_PCMAUTO? *
- pDevExt->pcmTimeout =
- pDevExt->sourceSelect == PAF_SOURCE_PCMAUTO ? 0 :
- 2 * pBufConfig->pBufStatus->unknownTimeout;
- pDevExt->syncState = SYNC_AUTO;
-
- // allows PCM decoder to be used to generate zero-valued audio frames while scanning
- pBufConfig->deliverZeros = 1;
- }
- // no action if already sync'ed
- else if (pDevExt->syncState != SYNC_AUTO)
- return 0;
-
- status = DIB_FTABLE_issueChild (device, &pDevExt->bufConfig, pDevExt->autoRequestSize, 0);
- if (status)
- return status;
-#endif
- }
- else if (srcFrame->arg == PAF_SIO_REQUEST_NEWFRAME) {
+ if (srcFrame->arg == PAF_SIO_REQUEST_NEWFRAME) {
// do nothing if not synced since syncing done in reclaim
// This is executed in force modes from the first call to PAF_AST_decodeInit
// Although interface allows for arbitrary BufConfigs we only support 1 -- so
// we can assume the one on the fromdevice is the one we want
-extern int gIsrInputCnt; // GJ Debug
-extern int gIsrOutputCnt; // GJ Debug
+extern int gIsrInputCnt;
+extern int gIsrOutputCnt;
Int DIB_reclaim (DEV2_Handle device)
{
// .........................................................................
- if (dstFrame->arg == PAF_SIO_REQUEST_AUTO) {
-//GJ: PAF_SIO_REQUEST_AUTO - not supported, yet.
-#if 0
- Log_info0("DIB: At case = PAF_SIO_REQUEST_AUTO"); // GJ Debug
-
- // verify set up by prior DIB_issue()
- // no action if already sync'ed
- if (pDevExt->syncState == SYNC_NONE)
- return DIBERR_AUTO;
- else if (pDevExt->syncState != SYNC_AUTO)
- return 0;
-
- // get next block of data to scan
- status = DIB_FTABLE_waitForData (device, &pDevExt->bufConfig, pDevExt->autoRequestSize);
- if (status)
- return status;
-
- if (pDevExt->sourceSelect == PAF_SOURCE_NONE) {
- IncrementPtr (pBufConfig, &pDevExt->bufConfig.pntr.pVoid, pDevExt->autoRequestSize);
- return 0;
- }
-
- // this function updates the tail pointer; it WON'T reset to SYNC_NONE
- status = DIB_FTABLE_syncScan (device, &pDevExt->bufConfig, &pDevExt->pcmTimeout);
- if (status)
- return status;
-
- // if not yet sync'ed ...
- if (pDevExt->syncState == SYNC_AUTO) {
- // if timeout, harness tail of DIB_getSync()
- if (!pDevExt->pcmTimeout) {
-
- // checks pDevExt->zeroCount, runs DIB_reset(),
- // updates pBufConfig->deliverZeros/sizeofElement/sizeofBuffer,
- // sets pDevExt->sourceProgram = PAF_SOURCE_PCM/DSD?
- // and pDevExt->syncState = SYNC_PCM[_FORCED]
- status = DIB_FTABLE_getSync (device, &pDevExt->bufConfig);
- if (status)
- return status;
- }
- }
-
- // if sync'ed to bitstream, this requests add'l input;
- // if PCM, this "kickstarts" the input,
- // using settings per above call to DIB_getSync()
- if (pDevExt->syncState != SYNC_AUTO) {
-
- status = DIB_FTABLE_initFrame (device, &pDevExt->bufConfig);
- if (status)
- return status;
-
- // this situation may occur for various IEC types,
- // w/ no matching PAF_SOURCE_ type is defined
- // (see iecPafSource[] table for the latter mapping)
- // most like cases are null & pause packets
- if (pDevExt->sourceProgram == PAF_SOURCE_UNKNOWN)
- return DIBERR_SYNC;
-
- // request timing frame
- status = DIB_FTABLE_requestFrame (device, &pDevExt->bufConfig);
- if (status)
- return status;
- }
-
-#endif
- } //dstFrame->arg == PAF_SIO_REQUEST_AUTO
-
- // .........................................................................
-
if ((pDevExt->syncState == SYNC_NONE) || (dstFrame->arg == PAF_SIO_REQUEST_SYNC)) {
- Log_info0("DIB: At case: syncState == SYNC_NONE (or PAF_SIO_REQUEST_SYNC)"); // GJ Debug
+ Log_info0("DIB: At case: syncState == SYNC_NONE (or PAF_SIO_REQUEST_SYNC)");
// pass in external buffer config which used to initialize the internal view
status = DIB_FTABLE_reset (device, pBufConfig);
// (i.e. no need to reset it here)
if (pDevExt->syncState == SYNC_NONE)
{
- Log_info0("Returning DIBERR_SYNC after DIB_FTABLE_getSync"); // GJ Debug
+ Log_info0("Returning DIBERR_SYNC after DIB_FTABLE_getSync");
return DIBERR_SYNC;
}
if (status)
{
- Log_info1("Returning %d after DIB_FTABLE_initFrame", status); // GJ Debug
+ Log_info1("Returning %d after DIB_FTABLE_initFrame", status);
return status;
}
status = DIB_FTABLE_requestFrame (device, &pDevExt->bufConfig);
if (status)
{
- Log_info1("Returning %d after DIB_FTABLE_requestFrame", status); // GJ Debug
+ Log_info1("Returning %d after DIB_FTABLE_requestFrame", status);
return status;
}
// update external view of bufConfig. In particular for slave force PCM
if (dstFrame->arg == PAF_SIO_REQUEST_NEWFRAME) {
- Log_info0("DIB: At case = PAF_SIO_REQUEST_NEWFRAME"); // GJ Debug
+ Log_info0("DIB: At case = PAF_SIO_REQUEST_NEWFRAME");
// wait for enough data to check for sync at expected location
status = DIB_FTABLE_waitForData (device, &pDevExt->bufConfig, pDevExt->bufConfig.frameLength);
if (status)
{
- Log_info2("DIB_reclaim.%d DIB_FTABLE_waitForData returned %d", __LINE__, status); // GJ Debug
+ Log_info2("DIB_reclaim.%d DIB_FTABLE_waitForData returned %d", __LINE__, status);
//TRACE((&TR_MOD, "DIB_reclaim.%d DIB_FTABLE_waitForData returned %d\n", __LINE__, status));
return status;
}
status = DIB_FTABLE_syncScan (device, pBufConfig, &pDevExt->pcmTimeout);
if (status) {
pDevExt->sourceProgram = PAF_SOURCE_UNKNOWN;
- Log_info2("DIB_reclaim.%d DIB_FTABLE_syncScan returned %d", __LINE__, status); // GJ Debug
+ Log_info2("DIB_reclaim.%d DIB_FTABLE_syncScan returned %d", __LINE__, status);
//TRACE((&TR_MOD, "DIB_reclaim.%d DIB_FTABLE_syncScan returned %d\n", __LINE__, status));
return status;
}
// if scan found something other than PCM, then exit with error
if (pDevExt->syncState != SYNC_PCM)
{
- Log_info1("DIB_reclaim.%d error: syncState != SYNC_PCM", __LINE__); // GJ Debug
+ Log_info1("DIB_reclaim.%d error: syncState != SYNC_PCM", __LINE__);
//TRACE((&TR_MOD, "DIB_reclaim.%d error: syncState != SYNC_PCM\n", __LINE__));
return DIBERR_SYNC;
}
if ((ibMode == MODE_DEFAULT) &&
(pDevExt->zeroCount >= 2*pBufConfig->pBufStatus->zeroRunRestart)) {
// if zeroRunRestart me then reset input to unknown
- Log_info1("DIB_reclaim.%d error: zeroRunRestart, setting PAF_SOURCE_UNKNOWN", __LINE__); // GJ Debug
+ Log_info1("DIB_reclaim.%d error: zeroRunRestart, setting PAF_SOURCE_UNKNOWN", __LINE__);
//TRACE((&TR_MOD, "DIB_reclaim.%d error: zeroRunRestart, setting PAF_SOURCE_UNKNOWN\n", __LINE__));
pDevExt->sourceProgram = PAF_SOURCE_UNKNOWN;
return DIBERR_SYNC;
// since, at least for THD, it is needed by decoders.
*pBufConfig = pDevExt->bufConfig;
pBufConfig->lengthofData -= pDevExt->headerSize;
- Log_info4("DIB_reclaim.%d lengthofData = %d; InISRCNT=%d; OutISRCNT=%d", __LINE__, pBufConfig->lengthofData, gIsrInputCnt, gIsrInputCnt); // GJ Debug
+ Log_info4("DIB_reclaim.%d lengthofData = %d; InISRCNT=%d; OutISRCNT=%d", __LINE__, pBufConfig->lengthofData, gIsrInputCnt, gIsrInputCnt);
//TRACE((&TR_MOD, "DIB_reclaim.%d lengthofData = %d\n", __LINE__, pBufConfig->lengthofData));
// HACK: for DSD the frameLength needs to be the number of samples to generate.
if ((pDevExt->sourceSelect >= PAF_SOURCE_DSD1) &&
(pDevExt->sourceSelect <= PAF_SOURCE_DSD3))
pBufConfig->frameLength /= pBufConfig->stride;
- Log_info2("DIB_reclaim.%d frameLength = %d", __LINE__, pBufConfig->frameLength); // GJ Debug
+ Log_info2("DIB_reclaim.%d frameLength = %d", __LINE__, pBufConfig->frameLength);
//TRACE((&TR_MOD, "DIB_reclaim.%d frameLength = %d\n", __LINE__, pBufConfig->frameLength));
// set external view to point at synch position of the frame guaranteed
if (status) {
if (pBufConfig->pBufStatus->lastFrameMask & (1 << pDevExt->sourceProgram)) {
pDevExt->deferredError = status;
- Log_info1("DIB_reclaim.%d last frame\n", __LINE__); // GJ Debug
+ Log_info1("DIB_reclaim.%d last frame\n", __LINE__);
//TRACE((&TR_MOD, "DIB_reclaim.%d last frame\n", __LINE__));
pBufConfig->pBufStatus->lastFrameFlag = 1;
return 0;
}
else {
- Log_info1("DIB_reclaim.%d setting PAF_SOURCE_UNKNOWN", __LINE__); // GJ Debug
+ Log_info1("DIB_reclaim.%d setting PAF_SOURCE_UNKNOWN", __LINE__);
//TRACE((&TR_MOD, "DIB_reclaim.%d setting PAF_SOURCE_UNKNOWN\n", __LINE__));
pDevExt->sourceProgram = PAF_SOURCE_UNKNOWN;
return status;
// .........................................................................
- Log_info4("DIB_reclaim.%d exit status = %d, InISRCNT = %d OutISRCNT = %d", __LINE__, status, gIsrInputCnt, gIsrOutputCnt); // GJ Debug
+ Log_info4("DIB_reclaim.%d exit status = %d, InISRCNT = %d OutISRCNT = %d", __LINE__, status, gIsrInputCnt, gIsrOutputCnt);
//TRACE((&TR_MOD, "DIB_reclaim.%d exit status = %d\n", __LINE__, status));
return status;
}
else
{
- Log_info3("DIB: Inside DIB_getSync with syncState != SYNC_ONE. localTimeout = %d, syncBufSize = %d, timeout = %d", localTimeout,syncBufSize, timeout); // GJ Debug
+ Log_info3("DIB: Inside DIB_getSync with syncState != SYNC_ONE. localTimeout = %d, syncBufSize = %d, timeout = %d", localTimeout,syncBufSize, timeout);
localTimeout -= syncBufSize;
}
}
@@ -1173,11 +1048,11 @@ Int DIB_issueChild (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, int size,
return DIBERR_UNSPECIFIED;
pBufConfig->futureHead.pVoid = endAddr[i];
- // GJ Debug
+
if (i==1)
{
gWrapCtr++;
- Log_info4("DIB: Inside DIB_issueChild Wrap Around Point #%d, with Future Head: 0x%x, current addr: 0x%x, current size: %d", gWrapCtr, pBufConfig->futureHead.pVoid, dstFrame->addr, dstFrame->size ); // GJ Debug
+ Log_info4("DIB: Inside DIB_issueChild Wrap Around Point #%d, with Future Head: 0x%x, current addr: 0x%x, current size: %d", gWrapCtr, (xdc_IArg)pBufConfig->futureHead.pVoid, (xdc_IArg)dstFrame->addr, dstFrame->size );
}
}
DEV2_Frame *srcFrame;
int status, bufEnd;
- //Log_info3("DIB_reclaimChild.%d: Inside DEV2_reclaim(pChild) pChild = 0x%x DEV2_reclaim = 0x%x", __LINE__, pChild, &pChild->fxns.reclaim); // GJ Debug
+ //Log_info3("DIB_reclaimChild.%d: Inside DEV2_reclaim(pChild) pChild = 0x%x DEV2_reclaim = 0x%x", __LINE__, pChild, &pChild->fxns.reclaim);
//TRACE((&TR_MOD, "DIB_reclaimChild.%d: calling DEV2_reclaim(pChild) pChild = 0x%x DEV2_reclaim = 0x%x", __LINE__, pChild, &pChild->fxns.reclaim));
status = DEV2_reclaim (pChild);
if (status)
{
- Log_info2("DIB_reclaimChild.%d DEV2_reclaim() returned (%d) DIBERR_UNSPECIFIED", __LINE__, status); // GJ Debug
+ Log_info2("DIB_reclaimChild.%d DEV2_reclaim() returned (%d) DIBERR_UNSPECIFIED", __LINE__, status);
//TRACE((&TR_MOD, "DIB_reclaimChild.%d DEV2_reclaim() returned (%d) DIBERR_UNSPECIFIED \n", __LINE__, status));
return DIBERR_UNSPECIFIED;
}
- //Log_info1("DIB_reclaimChild.%d calling Queue_get()", __LINE__); // GJ Debug
+ //Log_info1("DIB_reclaimChild.%d calling Queue_get()", __LINE__);
//TRACE((&TR_MOD, "DIB_reclaimChild.%d calling Queue_get()\n", __LINE__));
srcFrame = Queue_get (pChild->fromdevice);
- //Log_info2("DIB_reclaimChild.%d calling Queue_put(), srcFrame = 0x%x", __LINE__, srcFrame); // GJ Debug
+ //Log_info2("DIB_reclaimChild.%d calling Queue_put(), srcFrame = 0x%x", __LINE__, srcFrame);
//TRACE((&TR_MOD, "DIB_reclaimChild.%d calling Queue_put(), srcFrame = 0x%x\n", __LINE__, srcFrame));
Queue_put (Queue_handle(&((SIO2_Handle) pChild)->framelist), (Queue_Elem *)srcFrame);
// Only for non-fill requests do we update ptrs
if (srcFrame->addr != NULL) {
- //Log_info2("DIB_reclaimChild.%d update pointers with srcFrame->size = %d", __LINE__, srcFrame->size); // GJ Debug
+ //Log_info2("DIB_reclaimChild.%d update pointers with srcFrame->size = %d", __LINE__, srcFrame->size);
//TRACE((&TR_MOD, "DIB_reclaimChild.%d update pointers\n", __LINE__));
pBufConfig->head.pVoid = (Ptr) ((int)srcFrame->addr + srcFrame->size);
bufEnd = (int) pBufConfig->base.pVoid + pBufConfig->sizeofBuffer;
if( (int) pBufConfig->head.pVoid >= bufEnd )
{
- Log_info1("DIB_reclaimChild.%d wrap pointer", __LINE__); // GJ Debug
+ Log_info1("DIB_reclaimChild.%d wrap pointer", __LINE__);
//TRACE((&TR_MOD, "DIB_reclaimChild.%d wrap pointer\n", __LINE__));
pBufConfig->head.pVoid = (Ptr) ((int) pBufConfig->base.pVoid + (int) pBufConfig->head.pVoid - bufEnd);
}
}
- Log_info2("DIB_reclaimChild.%d exit with status = %d", __LINE__, status); // GJ Debug
+ Log_info2("DIB_reclaimChild.%d exit with status = %d", __LINE__, status);
//TRACE((&TR_MOD, "DIB_reclaimChild.%d exit with status = %d\n", __LINE__, status));
return status;
@@ -1420,7 +1295,7 @@ Int DIB_syncScan (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, XDAS_UInt32
// if scratch buffer present then assume it is needed for paging
pageSize = numLeft*pBufConfig->sizeofElement;
- Log_info3("DIB: Entered DIB_syncScan with pTail = 0x%x & numLeft = %d, timeout = %d", pTail, numLeft, *pTimeout); // GJ Debug
+ Log_info3("DIB: Entered DIB_syncScan with pTail = 0x%x & numLeft = %d, timeout = %d", (xdc_IArg)pTail, numLeft, *pTimeout);
if ((pAlgConfig->numRec > 1) && pAlgConfig->pMemRec[1].base && (pAlgConfig->pMemRec[1].size >= pageSize)) {
@@ -1430,7 +1305,7 @@ Int DIB_syncScan (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, XDAS_UInt32
}
if (pBufConfig->sizeofElement == 4) {
- Log_info0("DIB: SyncScan - Inside pBufConfig->sizeofElement == 4"); // GJ Debug
+ Log_info0("DIB: SyncScan - Inside pBufConfig->sizeofElement == 4");
stride = 2;
pTail += 1; // point at MSB
pShadowTail += 1;
@@ -1446,7 +1321,7 @@ Int DIB_syncScan (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, XDAS_UInt32
scanState = pDevExt->scanState;
pSync = pDevExt->pSync.pMdInt;
- Log_info4("DIB: Entered DIB_syncScan with zeroCount = %d & scanState = %d, stride = %d, pSync = 0x%x", zeroCount, scanState, stride, pSync); // GJ Debug
+ Log_info4("DIB: Entered DIB_syncScan with zeroCount = %d & scanState = %d, stride = %d, pSync = 0x%x", zeroCount, scanState, stride, (xdc_IArg)pSync);
// scan until out of available data or a sync found
for (i=0; i < numLeft; i++) {
@@ -1488,7 +1363,7 @@ Int DIB_syncScan (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, XDAS_UInt32
// . the last sample was non-zero
if (scanCount || (tail != 0x0000) || timeoutChanged)
{
- //Log_info3("DIB: DIB_syncScan scanCount = %d tail = %d timeoutChanged = %d", scanCount, tail, timeoutChanged); // GJ Debug
+ //Log_info3("DIB: DIB_syncScan scanCount = %d tail = %d timeoutChanged = %d", scanCount, tail, timeoutChanged);
scanCount += 1;
}
@@ -1575,11 +1450,11 @@ Int DIB_syncScan (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, XDAS_UInt32
if (tail == IEC_PB) {
scanState = SCANNED_IEC_PB;
scanCount += 1;
- Log_info0("DIB: SyncScan Inside case - SCANNED_IEC_PA - if path"); // GJ Debug
+ Log_info0("DIB: SyncScan Inside case - SCANNED_IEC_PA - if path");
}
else
{
- Log_info0("DIB: SyncScan Inside case - SCANNED_IEC_PA - else path"); // GJ Debug
+ Log_info0("DIB: SyncScan Inside case - SCANNED_IEC_PA - else path");
scanState = SCANNED_NONE;
}
break;
@@ -1611,7 +1486,7 @@ Int DIB_syncScan (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, XDAS_UInt32
pc = *pLocalTail & 0x1F;
pDevExt->headerSize = IEC_HEADER_SIZE;
- Log_info0("DIB: Sync Scan - Inside case: SCANNED_IEC_PC"); // GJ Debug
+ Log_info0("DIB: Sync Scan - Inside case: SCANNED_IEC_PC");
// Handle DTSHD subtype (LBR)
if (pc == 0x11) {
pDevExt->headerSize +=6;
@@ -1632,7 +1507,7 @@ Int DIB_syncScan (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, XDAS_UInt32
// don't know how to support other types
if (pc > 22)
{
- Log_info1("DIB: Unknown IEC type 0x%x encountered.\n", pc); // GJ Debug
+ Log_info1("DIB: Unknown IEC type 0x%x encountered.\n", pc);
return DIBERR_SYNC;
}
@@ -1640,12 +1515,12 @@ Int DIB_syncScan (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, XDAS_UInt32
pBufConfig->pntr.pMdInt = pSync;
pDevExt->sourceProgram = iecPafSource[pc];
- Log_info2("source is %d. pc is %d.", iecPafSource[pc], pc); // GJ Debug
+ Log_info2("source is %d. pc is %d.", iecPafSource[pc], pc);
//TRACE((&TR_MOD, "source is %d. pc is %d.\n", iecPafSource[pc], pc));
-
+#if 0 //No need to differentiate LBR subtype from DTSHD as DXP source program as LBR is handled inside DTSX decoder like other subtypes.
if (pc == 0x11 && DTSHDSubType == 3 && (PAF_ASP_sampleRateHzTable[pBufConfig->pBufStatus->sampleRateStatus][PAF_SAMPLERATEHZ_STD] <=48000.0))
pDevExt->sourceProgram = PAF_SOURCE_DXP; // LBR is 23
-
+#endif
pDevExt->frameLength = pDevExt->pIECFrameLength[pc];
pDevExt->lengthofData = pDevExt->frameLength;
if (pc == 1)
@@ -1663,7 +1538,7 @@ Int DIB_syncScan (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, XDAS_UInt32
// .............................................................................
syncScanExit:
- Log_info4("DIB inside syncScanExit. pTimeout = %d, scanCount = %d, zeroCount = %d, numLeft = %d", *pTimeout,scanCount, zeroCount, numLeft ); // GJ Debug
+ Log_info4("DIB inside syncScanExit. pTimeout = %d, scanCount = %d, zeroCount = %d, numLeft = %d", *pTimeout,scanCount, zeroCount, numLeft );
pDevExt->zeroCount = zeroCount;
pDevExt->scanState = scanState;
pDevExt->pSync.pMdInt = pSync;
@@ -2001,7 +1876,7 @@ Int DIB_waitForData (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, XDAS_UInt
DEV2_Handle pChild = (DEV2_Handle) &pDevExt->child;
Int status, lock;
- Log_info2("DIB_waitForData.%d count = %d", __LINE__, count); // GJ Debug
+ Log_info2("DIB_waitForData.%d count = %d", __LINE__, count);
//TRACE((&TR_MOD, "DIB_waitForData.%d count = %d\n", __LINE__, count));
while (GetNumAvail(pBufConfig) < count) {
@@ -2012,7 +1887,7 @@ Int DIB_waitForData (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, XDAS_UInt
status = SIO2_ctrl (pChild, (Uns)PAF_SIO_CONTROL_GET_INPUT_STATUS, (Arg) &inputStatus);
if (status)
{
- Log_info2("DIB_waitForData.%d SIO2_ctrl() returned %d", __LINE__, status); // GJ Debug
+ Log_info2("DIB_waitForData.%d SIO2_ctrl() returned %d", __LINE__, status);
//TRACE((&TR_MOD, "DIB_waitForData.%d SIO2_ctrl() returned %d\n", __LINE__, status));
return status;
}
@@ -2020,14 +1895,14 @@ Int DIB_waitForData (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, XDAS_UInt
#ifndef IGNORE_LOCK_OVERRIDE
if ((pBufConfig->pBufStatus->lockOverride & (XDAS_Int8)0x80) == 0)
{
- Log_info1("DIB_waitForData.%d lock = lockOverride\n", __LINE__); // GJ Debug
+ Log_info1("DIB_waitForData.%d lock = lockOverride\n", __LINE__);
//TRACE((&TR_MOD, "DIB_waitForData.%d lock = lockOverride\n", __LINE__));
lock = pBufConfig->pBufStatus->lockOverride;
}
#endif
if (!lock)
{
- Log_info1("DIB_waitForData.%d no lock, return DIBERR_SYNC\n", __LINE__); // GJ Debug
+ Log_info1("DIB_waitForData.%d no lock, return DIBERR_SYNC\n", __LINE__);
//TRACE((&TR_MOD, "DIB_waitForData.%d no lock, return DIBERR_SYNC\n", __LINE__));
return DIBERR_SYNC;
}
@@ -2036,18 +1911,18 @@ Int DIB_waitForData (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, XDAS_UInt
if (pDevExt->pDecodeStatus) {
if (pDevExt->pDecodeStatus->sourceSelect == PAF_SOURCE_NONE)
{
- Log_info1("DIB_waitForData.%d sourceSelect is NONE, return DIBERR_SYNC", __LINE__); // GJ Debug
+ Log_info1("DIB_waitForData.%d sourceSelect is NONE, return DIBERR_SYNC", __LINE__);
//TRACE((&TR_MOD, "DIB_waitForData.%d sourceSelect is NONE, return DIBERR_SYNC\n", __LINE__));
return DIBERR_SYNC;
}
}
- Log_info1("DIB_waitForData.%d calling DIB_FTABLE_reclaimChild()", __LINE__); // GJ Debug
+ Log_info1("DIB_waitForData.%d calling DIB_FTABLE_reclaimChild()", __LINE__);
//TRACE((&TR_MOD, "DIB_waitForData.%d calling DIB_FTABLE_reclaimChild()\n", __LINE__));
status = DIB_FTABLE_reclaimChild (device, pBufConfig);
if(status)
{
- Log_info2("DIB_waitForData.%d DIB_FTABLE_reclaimChild() returned %d", __LINE__, status); // GJ Debug
+ Log_info2("DIB_waitForData.%d DIB_FTABLE_reclaimChild() returned %d", __LINE__, status);
//TRACE((&TR_MOD, "DIB_waitForData.%d DIB_FTABLE_reclaimChild() returned %d\n", __LINE__, status));
return status;
}