]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - pasdk/test_dsp/mob/mob.c
PASDK-284:Merge branch 'dev_pasdk_govind_pasdk284' of ssh://bitbucket.itg.ti.com...
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / mob / mob.c
index 184a23d61dc77239f607f4dca992159baba5739d..e4c29da4c6ed88852d157ea5e387215376896c22 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
-Copyright (c) 2016, Texas Instruments Incorporated - http://www.ti.com/
+Copyright (c) 2017, Texas Instruments Incorporated - http://www.ti.com/
 All rights reserved.
 
 * Redistribution and use in source and binary forms, with or without 
@@ -168,10 +168,10 @@ Int DOB_close (DEV2_Handle device)
     return (SIO2_EBADIO);
 } // DOB_close
 
-// GJ Debug Counters
+// Debug Counters
 Uint32 gMobStart_Idle=0;
-Uint32 gMobIdle_ClocksElse=0;
-Uint32 gMobIdle_ClocksIf=0;
+Uint32 gMobIdle_Ctrl=0;
+Uint32 gMobIdle_API=0;
 Uint32 gMobOutRateX_Cnt=0;
 Uint32 gMobStart_Open=0;
 Uint32 gMobStart_Clocks=0;
@@ -198,6 +198,7 @@ Int DOB_ctrl (DEV2_Handle  device, Uns code, Arg arg)
                 if (status)
                     return status;
 
+                Log_info0("MOB: Inside PAF_SIO_CONTROL_OUTPUT_START_CLOCKS, starting output clocks ");
                 status = DOB_FTABLE_startClocks (device);
                 gMobStart_Idle++;
             }
@@ -244,10 +245,12 @@ Int DOB_ctrl (DEV2_Handle  device, Uns code, Arg arg)
             if (pDevExt->state == DOB_STATE_IDLE)
                 return SYS_OK;
 
+            gMobIdle_Ctrl++;
+
             if (arg) {
                 // flush data (and keep clocks)
                 DOB_FTABLE_shutdown (device);
-                gMobIdle_ClocksIf++;
+                //gMobIdle_ClocksIf++;
                 status = DEV2_ctrl (pChild, PAF_SIO_CONTROL_IDLE_WITH_CLOCKS, arg);
                 if (!status)
                     pDevExt->state = DOB_STATE_CLOCKING;
@@ -256,7 +259,7 @@ Int DOB_ctrl (DEV2_Handle  device, Uns code, Arg arg)
                 // truncate data (stops clocks)
                 DEV2_idle (device, 0);
                 status = DEV2_ctrl (pChild, code, arg);
-                gMobIdle_ClocksElse++;
+                //gMobIdle_ClocksElse++;
             }
             break;
 
@@ -304,6 +307,7 @@ Int DOB_idle (DEV2_Handle device, Bool flush)
     DEV2_Handle             pChild  = (DEV2_Handle)&pDevExt->child;
     Int                    status;
 
+    gMobIdle_API++;
 
     status = DEV2_idle (pChild, flush); 
     if (status != SYS_OK)
@@ -742,7 +746,7 @@ Int DOB_startClocks (DEV2_Handle device)
 
     // specify minimal transfer size while still maintaining channel alignment
     //xferSize = numChan * wordSize * 1;
-    xferSize = numChan * wordSize * 4; // GJ: Experiment with longer startup transfers
+    xferSize = numChan * wordSize * 1; // GJ: Experiment with longer startup transfers
 
     pChildFrame = Queue_get (Queue_handle(&((SIO2_Handle)pChild)->framelist));
     if (pChildFrame == (DEV2_Frame *)&((SIO2_Handle)pChild)->framelist)