PASDK-577:Update ASOT handling of OutNone
authorFrank Livingston <frank-livingston@ti.com>
Thu, 10 May 2018 17:27:20 +0000 (12:27 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Thu, 10 May 2018 17:27:20 +0000 (12:27 -0500)
ASOT SM state changes to "Device Select" state in case OutNone selected in
"Reset Output Processing" state

pasdk/test_dsp/framework/audioStreamOutProc.c

index 740440cc43d6875206f01087fc5b89fab509db87..d9503c0af43e5c959e1ed31a2bcae4db04db61ff 100644 (file)
@@ -470,6 +470,12 @@ Void taskAsopFxn(
                         pAsotCfg->state = ASOT_STATE_SEL_OUT_DEV;
                         break;
                     }
+                    else if (outDevSel == FALSE)
+                    {
+                        // No device selected
+                        pAsotCfg->state = ASOT_STATE_SEL_OUT_DEV;
+                        break;
+                    }
                     
                     // Reset Output processing
                     status = PAF_ASOT_resetDecOutProc(pP, pQ, pAsotCfg, &decResetAf, outDevSel, asopFrameCount);