]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - pasdk/test_dsp/framework/audioStreamInpProcNewIO.c
PASDK-577:Update asitSelectDevices() to call interace specific initialization
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / framework / audioStreamInpProcNewIO.c
index bd9adc2868a6f8b9c22c32054d8371eda55b3c8d..e07c9f1a725a1098216562a7e8b3c383d409ff64 100644 (file)
@@ -1184,24 +1184,23 @@ 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
                 //McaspDevice_init();
                 
                 // Initialize Tx clock mux
-                //D10_init((void *)pD10Params);
                 D10_initClkMux((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)