PASDK242: updated trigger of ASP profiling to sampling rate.
authorChitresh Gupta <chitresh.g@pathpartnertech.com>
Tue, 28 Feb 2017 12:13:46 +0000 (17:43 +0530)
committerChitresh Gupta <chitresh.g@pathpartnertech.com>
Tue, 28 Feb 2017 12:13:46 +0000 (17:43 +0530)
pasdk/test_dsp/framework/audioStreamInpProc.c

index 463993e19f507b4ff6997fb4581e61437c684a25..9c54402a923db91601cd06c020e48d92ab5e96f4 100644 (file)
@@ -2866,7 +2866,17 @@ PAF_ASIT_decodeInfo(
                 break;
             }
         }
-
+#ifdef PROFILER
+            // modify for different sampling rate
+            if (pAstCfg->xInp[z].inpBufStatus.sampleRateStatus == PAF_SAMPLERATE_96000HZ)
+            {
+               start_profiling = 1;
+            }
+            else
+            {
+                start_profiling = 0;
+            }
+#endif
         if (pAstCfg->xInp[z].hRxSio) 
         {
             //determine associated decoder
@@ -3470,17 +3480,17 @@ PAF_ASIT_decodeDecode(
 #endif
 
 
-#ifdef PROFILER
-            // modify for different decoders
-            if (sourceSelect == PAF_SOURCE_THD)
-            {
-               start_profiling = 1;
-            }
-            else
-            {
-                start_profiling = 0;
-            }
-#endif
+//#ifdef PROFILER
+//            // modify for different decoders
+//            if (sourceSelect == PAF_SOURCE_THD)
+//            {
+//             start_profiling = 1;
+//            }
+//            else
+//            {
+//                start_profiling = 0;
+//            }
+//#endif
 
 
 // ............................................................................