PASDK-577:Move local var declarations outside if()
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / framework / audioStreamOutIo.c
index a48f75826fc9c2fb64ef6bf04ebad7d1868cffd1..8b2b37f85bf7f45c8ca8892e4fd6d3f201cf948d 100644 (file)
@@ -571,12 +571,12 @@ Int asopIoCompsInit(
     PAF_AST_IoOut *pOutIo
 )
 {
+    ioBuffParams_t ioBuffParams;
+    ioPhyParams_t  ioPhyParams;
+
     if (pOutIo->hMcaspChan != NULL)
     {
         // Initialize I/O BUFF and I/O PHY components for output task
-        ioBuffParams_t ioBuffParams;
-        ioPhyParams_t  ioPhyParams;
-
         ioBuffParams.base         = pOutBuf->outBufConfig.base.pVoid;
         ioBuffParams.size         = pOutBuf->outBufConfig.allocation/STRIDE_WORST_CASE*STRIDE_WORST_CASE;
         ioBuffParams.sync         = IOBUff_READ_SYNC;