PASDK-577:Add back run-once code to asitSelectDevices()
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / framework / audioStreamInpProcNewIO.c
index 6400252941abd461e026217fae7636b14f382610..4e6b92cd39af8504329d44bab98f1dae4743c862 100644 (file)
@@ -1181,8 +1181,8 @@ Int asitSelectDevices(
             // Requested device is other than InNone
             //
             
-            //if (!d10Initialized)
-            //{
+            if (!d10Initialized)
+            {
                 // FL: probably no harm in calling this for every new i/f request.
                 //     However, it can probably be moved to main() or sys init task.
                 // Initialize McASP HW details
@@ -1191,13 +1191,13 @@ Int asitSelectDevices(
                 // Initialize Rx hardware
                 D10_init((void *)pD10Params);
                 
-            //    d10Initialized=1;
-            //}
-            
-            if (!d10Initialized)
-            {
-                d10Initialized=1; // global flag indicating D10 init completed
+                d10Initialized=1;
             }
+            
+            //if (!d10Initialized)
+            //{
+            //    d10Initialized=1; // global flag indicating D10 init completed
+            //}
 
             pReqLldCfg = (mcaspLLDconfig *)pD10Params->sio.pConfig;
             if (pReqLldCfg->hMcaspChan == NULL)