PASDK-218:Change order of CB init and Dec Info Out Init-Sync
authorFrank Livingston <frank-livingston@ti.com>
Wed, 5 Jul 2017 16:52:44 +0000 (11:52 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Wed, 5 Jul 2017 16:52:44 +0000 (11:52 -0500)
pasdk/test_arm/framework/audioStreamDecodeProc.c

index d64d53f8e2fb257fd213c311fe180b5c4f5b94a6..3f82143e3d251e40ebcf9c014e3d909f04d60403 100644 (file)
@@ -682,16 +682,6 @@ Void taskAsdpFxn(
 
                             if (checkDecSync(pDecCtrlAf) == 1)
                             {
-                                // Perform Dec Info Init-Sync
-                                //  - Write Dec Info1 output audio frame
-                                //  - Set Dec Info1 decoder stage flag
-                                outIsErrno = outIsWriteDecStageFlagAndAf(pOutIsCtl, z, 
-                                    ASP_OUTIS_DEC_STAGE_INFO1_IDX, 1, pDecCtrlAf);
-                                if (outIsErrno < 0)
-                                {
-                                    SW_BREAKPOINT; // debug
-                                }
-
                                 //
                                 // FL: cbInitSourceSel() moved from DSP:ASIT:INIT:decodeInit()
                                 //  frameLength: changed to decodeControl.frameLength.
@@ -711,6 +701,16 @@ Void taskAsdpFxn(
                                 // debug
                                 cbLog(pCbCtl, z, 1, "cbInitSourceSel");
 
+                                // Perform Dec Info Init-Sync
+                                //  - Write Dec Info1 output audio frame
+                                //  - Set Dec Info1 decoder stage flag
+                                outIsErrno = outIsWriteDecStageFlagAndAf(pOutIsCtl, z, 
+                                    ASP_OUTIS_DEC_STAGE_INFO1_IDX, 1, pDecCtrlAf);
+                                if (outIsErrno < 0)
+                                {
+                                    SW_BREAKPOINT; // debug
+                                }
+
                                 outIsDecInfo1Flag = 1; // set flag to indicate OutIS Dec Info has executed                             
                             }
                         }