summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6982150)
raw | patch | inline | side by side (parent: 6982150)
author | Frank Livingston <frank-livingston@ti.com> | |
Fri, 30 Jun 2017 21:59:26 +0000 (16:59 -0500) | ||
committer | Frank Livingston <frank-livingston@ti.com> | |
Fri, 30 Jun 2017 21:59:26 +0000 (16:59 -0500) |
pasdk/test_dsp/framework/audioStreamOutProc.c | patch | blob | history |
diff --git a/pasdk/test_dsp/framework/audioStreamOutProc.c b/pasdk/test_dsp/framework/audioStreamOutProc.c
index 58e692840fdcc2dac6c0a80d6e13d61c1c20e7a8..4a0c140a9d57758ec0a4385880479d1bf54ade4d 100644 (file)
// status codes
// Output FSM
-#define ASOP_INITSYNC_NOTREADY ( 1 ) // ok, init-sync not ready
-#define ASOP_SOK ( 0 ) // ok
-#define ASOP_FORWARD_ERR ( -1 ) // forward (ASIT) error
-#define ASOP_ENCRESET_ERR ( -2 ) // enc reset error
-#define ASOP_DECINFO1_ERR ( -3 ) // dec info1 error
+#define ASOP_INITSYNC_NOTREADY ( 1 ) // ok, init-sync not ready
+#define ASOP_SOK ( 0 ) // ok
+#define ASOP_FORWARD_ERR ( -1 ) // forward (ASIT) error
+#define ASOP_ENCRESET_ERR ( -2 ) // enc reset error
+#define ASOP_DECINFO1_ERR ( -3 ) // dec info1 error
// Decode Processing
-#define ASOP_DP_OUT_SIO_UPDATE ( 3 ) // new output selected
-#define ASOP_DP_CB_DRAINED ( 2 ) // circular buffer drained
-#define ASOP_DP_SOK ( 0 ) // ok
-#define ASOP_DP_FORWARD_ERR ( -1 ) // forward (ASIT) error
-#define ASOP_DP_DECINIT_ERR ( -2 ) // decode init error
-#define ASOP_DP_DECSTREAM_ERR ( -3 ) // decode stream error
-#define ASOP_DP_DECENC_ERR ( -4 ) // decode encode error
-#define ASOP_DP_DECFINAL_ERR ( -5 ) // decode final error
+#define ASOP_DP_OUT_SIO_UPDATE ( 3 ) // new output selected
+#define ASOP_DP_CB_DRAINED ( 2 ) // circular buffer drained
+#define ASOP_DP_SOK ( 0 ) // ok
+#define ASOP_DP_FORWARD_ERR ( -1 ) // forward (ASIT) error
+#define ASOP_DP_DECINIT_ERR ( -2 ) // decode init error
+#define ASOP_DP_DECSTREAM_ERR ( -3 ) // decode stream error
+#define ASOP_DP_DECENC_ERR ( -4 ) // decode encode error
+#define ASOP_DP_DECINFO2_ERR ( -5 ) // decode encode error
+#define ASOP_DP_DECFINALTEST_ERR ( -6 ) // decode final error
loopCount++;
TRACE_GEN2("TaskAsop (begin Main loop %d) (errno 0x%x)", loopCount, errno);
+ //
+ // Check forward (ASIT) error here, TBD
+ //
+
// any error forces idling of output
if (errno)
{
for (;;)
{
- // FL: Check if any change in output SIO, e.g. from Output shortcut.
+ //
+ // Check forward (ASIT) error here, TBD
+ //
+
+
+ // Check if any change in output SIO, e.g. from Output shortcut.
// Changes will break FSM and allow Output reconfiguration.
errno = checkOutSio(pP, pAsotCfg, &outSioUpdate);
if (errno < 0)
if (errno)
{
TRACE_TERSE1("PAF_ASOT_decodeProcessing: ENCODE break on decodeInfo2. errno 0x%x", errno);
- errno = ASOP_DP_DECENC_ERR;
+ errno = ASOP_DP_DECINFO2_ERR;
break;
}
if (errno < 0)
{
TRACE_TERSE1("PAF_ASOT_decodeProcessing: DECODE FINAL break. errno 0x%x", errno);
- errno = ASOP_DP_DECFINAL_ERR;
+ errno = ASOP_DP_DECFINALTEST_ERR;
break;
}
else if (errno == ASOP_DP_CB_DRAINED)