]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/commitdiff
PASDK 568: fixed ASIT decoding FSM bug.
authorJianzhong Xu <a0869574@ti.com>
Fri, 20 Apr 2018 19:59:27 +0000 (15:59 -0400)
committerJianzhong Xu <a0869574@ti.com>
Fri, 20 Apr 2018 19:59:27 +0000 (15:59 -0400)
pasdk/test_dsp/framework/audioStreamInpDec.c

index 0e65ea2673842506c11d1e74d60fd56a6d7b2d30..e98dceb6d8190a67fd270cc486c4eb183052f26e 100644 (file)
@@ -246,8 +246,9 @@ Int decDecodeFsm(
                     }
                 }
             }
-            
-            if (decMsg & DEC_MSGMSK_INPDATA) {
+            // If both INPDATA and RXACK are received, INPDATA message will be 
+            // processed in next iteration, in state DEC_STATE_INFO_SND.
+            else if (decMsg & DEC_MSGMSK_INPDATA) {
                 // If we're here, it means decode acknowledgment from decoder
                 // is delayed, i.e., a new frame of input data is ready before
                 // current frame decoding is finished.
@@ -258,8 +259,7 @@ Int decDecodeFsm(
 
                 TRACE_VERBOSE0("decDecodeFsm: receiving INPDATA in DEC_STATE_DECODE_ACK");
             }
-            
-            if (decMsg != 0) {
+            else {
                 decErr = DEC_ERR_WRONG_MSG;
             }
         break;