PASDK242: Added PAF_SYS_FRAMELENGTH for system framelength.
authorChitresh Gupta <chitresh.g@pathpartnertech.com>
Thu, 2 Mar 2017 10:20:43 +0000 (15:50 +0530)
committerChitresh Gupta <chitresh.g@pathpartnertech.com>
Thu, 2 Mar 2017 10:20:43 +0000 (15:50 +0530)
pasdk/common/dbgCapAf.h
pasdk/test_arm/.cproject
pasdk/test_arm/framework/itopo/params.c
pasdk/test_dsp/.cproject
pasdk/test_dsp/framework/aspDecOpCircBuf_master.c
pasdk/test_dsp/framework/audioStreamInpProc.c
pasdk/test_dsp/framework/itopo/params.c

index 60ccac4a2554b2709ecd9c96009132a71a8aa1aa..f6e054edee9d414f072dd1431fdbadfd8c0e6ed0 100644 (file)
@@ -45,7 +45,7 @@ All rights reserved.
 
 // buffer capture parameters
 #define CAP_AF_MAX_NUM_FRAME       ( 5625 ) //( 100 )
-#define CAP_AF_MAX_SAMP_PER_FRAME  ( 256 )
+#define CAP_AF_MAX_SAMP_PER_FRAME  ( PAF_SYS_FRAMELENGTH )
 #define CAP_AF_MAX_NUM_SAMP        ( CAP_AF_MAX_NUM_FRAME * CAP_AF_MAX_SAMP_PER_FRAME )
 
 extern PAF_AudioData gCapAfBuf[CAP_AF_MAX_NUM_SAMP];
index 439426e0dc85b38e99d07d6083028e7bbe32b652..40968aa3b42d628bdb449a3242b1bfdf768e3e34 100644 (file)
@@ -70,6 +70,7 @@
                                                        <tool id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_4.0.exe.compilerDebug.1227706836" name="GNU Compiler" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_4.0.exe.compilerDebug">
                                                                <option id="com.ti.ccstudio.buildDefinitions.TMS470_GNU_4.0.compilerID.DEFINE.1708873009" name="Define symbols (-D)" superClass="com.ti.ccstudio.buildDefinitions.TMS470_GNU_4.0.compilerID.DEFINE" valueType="definedSymbols">
                                                                        <listOptionValue builtIn="false" value="k2g02"/>
+                                                                       <listOptionValue builtIn="false" value="PAF_SYS_FRAMELENGTH=512"/>
                                                                        <listOptionValue builtIn="false" value="arm0"/>
                                                                        <listOptionValue builtIn="false" value="ARMCOMPILE"/>
                                                                        <listOptionValue builtIn="false" value="PAF_DEVICE=0xDA000000"/>
index 711331e871a04485bb3ec55b7aaa68fb80d0fc86..c70e68acc336c316239bf86281f05461a835daa5 100644 (file)
@@ -438,7 +438,7 @@ const PAF_ASDT_Params asdp_params_PAi =
         params_memspace_PAi_Slave,                          // space
     },
     PAF_AST_params_numchan,                                 // z_numchan
-    512, //256,                                                    // framelength
+    PAF_SYS_FRAMELENGTH,                                    // framelength
     &PAF_ASDT_params_audioFrameFunctions,                   // pAudioFrameFunctions
     &PAF_ASP_chainFxns,                                     // pChainFxns
     PAF_ASDT_params_decodeStatus,                           // z_pDecodeStatus
index 5b275b9a2271d815e6d68d541276560170c7e26f..62546f7d8f20b650dedad41b02af205a6e746692 100644 (file)
@@ -68,6 +68,7 @@
                                                        <builder buildPath="${BuildDirectory}" id="com.ti.ccstudio.buildDefinitions.C6000_8.1.exe.builderDebug.1984605958" keepEnvironmentInBuildfile="false" name="GNU Make" superClass="com.ti.ccstudio.buildDefinitions.C6000_8.1.exe.builderDebug"/>
                                                        <tool id="com.ti.ccstudio.buildDefinitions.C6000_8.1.exe.compilerDebug.1216493005" name="C6000 Compiler" superClass="com.ti.ccstudio.buildDefinitions.C6000_8.1.exe.compilerDebug">
                                                                <option id="com.ti.ccstudio.buildDefinitions.C6000_8.1.compilerID.DEFINE.903477341" name="Pre-define NAME (--define, -D)" superClass="com.ti.ccstudio.buildDefinitions.C6000_8.1.compilerID.DEFINE" valueType="definedSymbols">
+                                                                       <listOptionValue builtIn="false" value="PAF_SYS_FRAMELENGTH=512"/>
                                                                        <listOptionValue builtIn="false" value="dsp0"/>
                                                                        <listOptionValue builtIn="false" value="k2g02"/>
                                                                        <listOptionValue builtIn="false" value="SOC_K2G"/>
index f1e6dfd14de5016c4040af4d2663079a30e35d3d..06bd13cd6f5cd8d780c0fa86cc0f376b8f9ed6df 100644 (file)
@@ -46,7 +46,7 @@ All rights reserved.
 #include "aspDecOpCircBuf_master.h"
 
 #define DEF_SOURCE_SEL          ( PAF_SOURCE_PCM ) // default source select
-#define DEF_DEC_OP_FRAME_LEN    (512 )   // ( 256 )     // default decoder output frame length
+#define DEF_DEC_OP_FRAME_LEN    (PAF_SYS_FRAMELENGTH )   // ( 256 )     // default decoder output frame length
 #define DEF_STR_FRAME_LEN       ( 256 )     // default stream frame length
 
 // Generate mute AF on circular buffer read
index 9c54402a923db91601cd06c020e48d92ab5e96f4..e6d85253ba858d5269c382e56c0deae0e7bc08fa 100644 (file)
@@ -2718,7 +2718,7 @@ PAF_ASIT_decodeInit(
 #else
             if (sourceSelect == PAF_SOURCE_PCM)
             {
-               frameLength = 512;
+               frameLength = PAF_SYS_FRAMELENGTH;
             }
             else if ((sourceSelect == PAF_SOURCE_DDP) || (sourceSelect == PAF_SOURCE_AC3))
             {
@@ -3463,7 +3463,7 @@ PAF_ASIT_decodeDecode(
 #else
             if (sourceSelect == PAF_SOURCE_PCM)
             {
-                frameLength = 512;
+                frameLength = PAF_SYS_FRAMELENGTH;
             }
             else if ((sourceSelect == PAF_SOURCE_DDP) || (sourceSelect == PAF_SOURCE_AC3))
             {
index 7f524fbd3df296ad043ac170a342eac0e9d00132..fb5e6332dcc0335a9cd88c4ee9a893b9c747a100 100644 (file)
@@ -837,7 +837,7 @@ const PAF_ASIT_Params asip_params_PAi =
     NULL,                                                   // z_rx_bufsiz
     NULL,                                                   // z_tx_bufsiz
     PAF_AST_params_numchan,                                 // z_numchan
-    512, //256,                                                    // framelength
+    PAF_SYS_FRAMELENGTH,                                    // framelength
     &PAF_AST_params_audioFrameFunctions,                    // pAudioFrameFunctions
     &PAF_ASP_chainFxns,                                     // pChainFxns
     &PAF_AST_params_inpBufStatus,                           // pInpBufStatus
@@ -901,7 +901,7 @@ const PAF_ASOT_Params asop_params_PAi =
     NULL,                                                   // z_rx_bufsiz
     NULL,                                                   // z_tx_bufsiz
     PAF_AST_params_numchan,                                 // z_numchan
-    512, //256,                                                    // framelength
+    PAF_SYS_FRAMELENGTH,                                    // framelength
     &PAF_AST_params_audioFrameFunctions,                    // pAudioFrameFunctions
     &PAF_ASP_chainFxns,                                     // pChainFxns
     &PAF_AST_params_inpBufStatus,                           // pInpBufStatus