index 520db2d96249d578b47d249eb239238a09004074..2fd92e19968bbc7eb8765b3cc57167ff23be6b54 100644 (file)
--- a/pasdk/test_dsp/mib/mib.c
+++ b/pasdk/test_dsp/mib/mib.c
};
// IEC framelengths (in 16bit words)
-static const MdUns iecFrameLength[23] =
+const MdUns iecFrameLength[23] =
{
0,
1536*2,
- 0, 0, 0,
+ 0,
+ 0,
+ 0,
1152*2,
0,
1024*2,
- 0, 0, 0,
+ 0,
+ 0,
+ 0,
512*2,
1024*2,
2048*2,
- 0, 0,
+ 0,
+ 0,
15*1024*2, //THD
1*1024, // DTSHD, actual framelength is adjusted by DTSsubType
4096*2,
- 0,0,
+ 0,
+ 0,
1536*2*4,
15*1024*2 //THD
};
#define min(a, b) (((a) < (b)) ? (a) : (b))
#define max(a, b) (((a) > (b)) ? (a) : (b))
-// FL: (***) debug
-#include "evmc66x_gpio_dbg.h"
+// debug
+//#include "evmc66x_gpio_dbg.h"
// -----------------------------------------------------------------------------
// i.e. it is ok to adjust the input buffer pointers.
// if successful then this sets
// pSync = address of PA (for IEC)
- status = DIB_FTABLE_initFrame (device, &pDevExt->bufConfig);
+ status = DIB_FTABLE_initFrame (device, &pDevExt->bufConfig); // DIB_initFrame
if (status) {
if (pBufConfig->pBufStatus->lastFrameMask & (1 << pDevExt->sourceProgram)) {
pDevExt->deferredError = status;
if (status)
return status;
-#if 0 // (***) FL: shows timing of Input Rx SIO reclaim during autodet
- // (***) debug // B5
+#if 0 // debug
+ // Shows timing of Input Rx SIO reclaim during autodet
+ // ADC B5
{
static Uint8 toggleState = 0;
if (toggleState == 0)
@@ -1517,10 +1524,10 @@ Int DIB_syncScan (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, XDAS_UInt32
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)