PASDK-218:Update flag only after AF written for Out IS write.
authorFrank Livingston <frank-livingston@ti.com>
Sun, 2 Jul 2017 19:04:24 +0000 (14:04 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Sun, 2 Jul 2017 19:04:24 +0000 (14:04 -0500)
Code is logically correct this way. Note entire function is gated, so
functionality won't change.

pasdk/test_arm/framework/aspOutInitSync_slave.c

index 154179e2e32a007824fdd3bf1607c9feb4406680..a0c778f3ef886933131c9deb5fb642a9c5849aa3 100644 (file)
@@ -144,15 +144,15 @@ Int outIsWriteDecStageFlagAndAf(
     // Get address of Decoder Output Init-Sync Info
     pDecStageOutISI = &pOutISI->decStageOutInitSyncInfo[decStageIdx];
 
-    // Write flag value
-    pDecStageOutISI->decFlag = decFlag;    
-
     // Write audio frame
     if (decFlag != 0)
     {
         pDecStageOutISI->decAf = *pDecAfWrt;        
     }
 
+    // Write flag value
+    pDecStageOutISI->decFlag = decFlag;
+
     // Leave the gate
     GateMP_leave(gateHandle, key);