]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - processor_audio_sdk_1_00_00_00/pasdk/test_dsp/framework/itopo/params.c
Add support for DDR shared heap. Note:algs use IALG_EXTERNAL_SHM, which is IALG_ESDATA.
[processor-sdk/performance-audio-sr.git] / processor_audio_sdk_1_00_00_00 / pasdk / test_dsp / framework / itopo / params.c
index 5ee78d99c0531118cad2f6d1ae1bde4628645a7f..0173dfb7d72d6b478367b4a3eeed632e26128fe7 100644 (file)
@@ -43,6 +43,8 @@ All rights reserved.
 //#include <ti/procsdk_audio/procsdk_audio_typ.h>
 #include <procsdk_audio_typ.h>
 
+#include "paftyp.h"
+#include "paf_ialg.h"
 #include <stdasp.h>
 #include <pafsio_ialg.h>
 
@@ -50,6 +52,8 @@ All rights reserved.
 
 #include "asp1.h"
 #include "audioStreamProc_params.h"
+#include "audioStreamInpProc.h"
+#include "audioStreamOutProc.h"
 
 //
 // Framework Declarations
@@ -222,7 +226,7 @@ const SmInt PAF_AST_streamOrder[1] =
 //   External declarations to patched IROM provide standard functionality.
 //
 
-extern const PAF_AST_Fxns PAF_ASIT_params_fxns;
+extern const PAF_ASIT_Fxns PAF_ASIT_params_fxns;
 
 //
 // Audio Framework Status Initialization Declarations
@@ -585,16 +589,18 @@ static const IALG_MemSpace params_memspace_PAi[] = {
 // DIB memory requirements
 
 // primary input
+// IALG_SARAM_SHM: MSMC shared memory heap
+// IALG_EXTERNAL_SHM: DDR shared memory heap
 const IALG_MemRec inpMemTabPrimary[] =
 {
     // SDRAM circular buffer
     // 2 buffers * 256 samples/buffer * 8 words/sample * 3 bytes/word
     {
-        3 * 60 * 1024,                                          // size
+        (3 * 60 * 1024) + 2,                                    // size 184320 + 1 16-bit word for EDMA padding
         //180 * 1024,                                           // size
         //6 * 60 * 1024,                                        // size
         128,                                                    // alignment
-        IALG_SARAM2, //IALG_SARAM1, //IALG_EXTERNAL,                           // space
+        IALG_SARAM_SHM, //IALG_EXTERNAL_SHM, //IALG_SARAM2, //IALG_SARAM1, //IALG_EXTERNAL,                           // space
         IALG_PERSIST,                                           // attrs
         NULL,                                                   // base
      },
@@ -715,7 +721,7 @@ const PAF_ASP_outNumBufMap *const outNumBufMap[] =
 // .............................................................................
 const PAF_MetadataBufStatus PAF_AST_params_MetadataBufStatus[] =
 {
-    4 * 1024,               // bufSize
+    PAF_MAX_PRIVATE_MD_SZ,  // bufSize
     PAF_MAX_NUM_PRIVATE_MD, // NumBuf
     128,                    // alignment
     &gPafHeapIdExt //&SDRAM // &IRAM,        // pSpace
@@ -783,6 +789,7 @@ const PAF_AudioFrameBufStatus    PAF_AST_params_AudioFrameBufStatus[PAF_MAXNUMCH
     //IALG_EXTERNAL // 31
 };
 
+//(***) FL: re-visit, clean this up (remove unused members)
 // .............................................................................
 //
 // Audio Stream Parameter Definitions
@@ -790,7 +797,7 @@ const PAF_AudioFrameBufStatus    PAF_AST_params_AudioFrameBufStatus[PAF_MAXNUMCH
 //   Global definition in RAM provides standard & non-standard functionality.
 //
 
-const PAF_AST_Params asip_params_PAi =
+const PAF_ASIT_Params asip_params_PAi =
 {
     &PAF_ASIT_params_fxns,                                     // fxns
     {                                                          // zone
@@ -850,10 +857,11 @@ const PAF_AST_Params asip_params_PAi =
     PAF_AST_params_AudioFrameBufStatus                      //Audio frame buffer status
 };
 
-extern const PAF_AST_Fxns PAF_ASOT_params_fxns;
+extern const PAF_ASOT_Fxns PAF_ASOT_params_fxns;
 
-// (***) FL: initially a copy of asip
-const PAF_AST_Params asop_params_PAi =
+//(***) FL: initially a copy of asip
+//(***) FL: re-visit, clean this up (remove unused members)
+const PAF_ASOT_Params asop_params_PAi =
 {
     &PAF_ASOT_params_fxns,                                     // fxns
     {                                                          // zone