]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - pasdk/test_dsp/framework/audioStreamOutProc.h
PASDK-516:Add ASOT event creation
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / framework / audioStreamOutProc.h
index 5cb7a14421e40cd94e1fcf6f15ab0d75b9770c31..a767d8a1a2e1d8ff25a842ab899600c529247696 100644 (file)
@@ -41,6 +41,7 @@ All rights reserved.
 #define _ASOP_H_
  
 #include <xdc/std.h>
+#include <ti/sysbios/knl/Event.h>
 #include <ti/sysbios/knl/Task.h>
 
 #include "audioStreamProc_params.h"
@@ -56,6 +57,14 @@ All rights reserved.
 #define PAF_ASOT_FRAMELENGTH           256
 #define PAF_ASOT_MAX_FRAMELENGTH       1024
 
+/* Event IDs */
+#define Evt_Id_WakeTimer   Event_Id_00  // Wake Timer event
+#define Evt_Id_RxMsgAsit   Event_Id_01  // Rx ASIT message event
+#define Evt_Id_RxMsgAsdt   Event_Id_02  // Rx ASDT message event
+#define Evt_Id_TxMcaspEdma Event_Id_03  // Tx McASP EDMA event
+/* Event handle - to put in structure */
+extern Event_Handle asopEvt;
+
 // Global debug counter */
 extern Uint32 gTaskAsopCnt; // debug counter for ASOP task
 
@@ -195,6 +204,8 @@ typedef struct PAF_ASOT_Patchs {
 typedef struct PAF_AST_OutIO {
     ioPhyHandle_t        hIoPhy;     /* handle to I/O physical layer */
     ioBuffHandle_t       hIoBuff;    /* handle to I/O buffer management */
+    Ptr                  hMcaspChan; /* handle to McASP LLD channel for output */
+    uint32_t             phyXferSize;
 
     void     *mcaspTxBuf1;
     void     *mcaspTxBuf2;
@@ -213,12 +224,13 @@ typedef struct PAF_AST_OutIO {
 
 // Audio Stream Input Task (ASOT) configuration
 typedef struct PAF_ASOT_Config {
-    Task_Handle taskHandle;             // ASOT handle
-    ACP_Handle acp;                     // ASOT local ACP handle
-    Int8 cbDrainedFlag[DECODEN_MAX];    // CB drained flags
-    PAF_ASPM_Config *pAspmCfg;          // ASIT/ASOT shared configuration
-    PAF_AST_Config *pAstCfg;            // ASIT/ASOT/ASDT shared configuration
-    PAF_AST_IoOut  *pIoOut;
+    Task_Handle     taskHandle;                 // ASOT task handle
+    uint_least16_t  state;                      // ASOT state
+    ACP_Handle      acp;                        // ASOT ACP handle
+    Int8            cbDrainedFlag[DECODEN_MAX]; // CB drained flags
+    PAF_ASPM_Config *pAspmCfg;                  // ASIT/ASOT shared configuration
+    PAF_AST_Config  *pAstCfg;                   // ASIT/ASOT/ASDT shared configuration
+    PAF_AST_IoOut   *pIoOut;
 } PAF_ASOT_Config;