PASDK183: Updates for DTS legacy stream decode.
authorChitresh Gupta <chitresh.g@pathpartnertech.com>
Thu, 9 Feb 2017 09:43:31 +0000 (15:13 +0530)
committerChitresh Gupta <chitresh.g@pathpartnertech.com>
Thu, 9 Feb 2017 09:43:31 +0000 (15:13 +0530)
pasdk/common/aspDecOpCircBuf_common.c
pasdk/common/aspDecOpCircBuf_common.h
pasdk/test_arm/.cproject
pasdk/test_arm/framework/audioStreamDecodeProc.c
pasdk/test_dsp/.cproject
pasdk/test_dsp/application/itopo/evmk2g/atboot.c
pasdk/test_dsp/framework/aspDecOpCircBuf_master.c
pasdk/test_dsp/framework/audioStreamInpProc.c

index 5eeca5e2ea1769b3f3105b5f5d90e21ee7a712b4..3448b2f6ae2522ea28de8706204929c79a6871ad 100644 (file)
@@ -99,7 +99,7 @@ Int cbReset(
 
         pCb->afWrtIdx = ASP_DECOP_CB_INIT_WRTIDX_DTS;
         pCb->afRdIdx = ASP_DECOP_CB_INIT_RDIDX_DTS;
-        pCb->pcmRdIdx = 0;
+        pCb->pcmRdIdx = pCb->decOpFrameLen - ASP_DECOP_CB_INIT_LAG_DTS*pCb->strFrameLen;
     }
 
     // initialize circular buffer current number of frames
index 96125b3cc886354f6ef52ceaf090c93587f6c38e..207bbdbcd291a65eb094485605613d83fb845295 100644 (file)
@@ -81,8 +81,8 @@ All rights reserved.
 
 // DTS - TODO: to update for DTS
 #define ASP_DECOP_CB_MAX_NUM_AF_DTS         ( 10 )
-#define ASP_DECOP_CB_INIT_LAG_DTS           ( 1 )
-#define ASP_DECOP_CB_INIT_WRTIDX_DTS        ( 1 )
+#define ASP_DECOP_CB_INIT_LAG_DTS           ( 2 )
+#define ASP_DECOP_CB_INIT_WRTIDX_DTS        ( 3 )
 #define ASP_DECOP_CB_INIT_RDIDX_DTS         ( 0 )
 
 #define ASP_DECODE_CB_GATE_NAME             ( "AspDecOpCbGate" )
index 9e43c5486cbd2eadc346c284ec13014549e42aa1..17c5b649de9070b40abbeba20225ac614c8d9697 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="DTS_BUILD"/>
                                                                        <listOptionValue builtIn="false" value="arm0"/>
                                                                        <listOptionValue builtIn="false" value="ARMCOMPILE"/>
                                                                        <listOptionValue builtIn="false" value="PAF_DEVICE=0xDA000000"/>
index e3f74834a878f71cc6c467e5d012b43ab3841676..c28ae9226feb702b88c177b6f059986657f6a243 100644 (file)
@@ -1499,7 +1499,7 @@ Int resetAf(
         case PAF_SOURCE_DTS14:
         case PAF_SOURCE_DTS16:
         case PAF_SOURCE_DTSALL:
-            pAudioFrame->data.nSamples = 8192; // max Sample output
+            pAudioFrame->data.nSamples = 512; // TODO: Need to set correct value, max Sample output
             break;
         default:  
             pAudioFrame->data.nSamples = FRAMELENGTH;
index cd0dc1259f244c00b31c1a4f320a0e179a5d62f3..59caf6c3187b2e3998046812d766d6a1d588bb62 100644 (file)
@@ -79,6 +79,7 @@
                                                                        <listOptionValue builtIn="false" value="UARTCALLBACK"/>
                                                                        <listOptionValue builtIn="false" value="EVM_K2G"/>
                                                                        <listOptionValue builtIn="false" value="NON_CACHE_STATUS"/>
+                                                                       <listOptionValue builtIn="false" value="DTS_BUILD"/>
                                                                </option>
                                                                <option id="com.ti.ccstudio.buildDefinitions.C6000_8.1.compilerID.SILICON_VERSION.1342965662" name="Target processor version (--silicon_version, -mv)" superClass="com.ti.ccstudio.buildDefinitions.C6000_8.1.compilerID.SILICON_VERSION" value="6600" valueType="string"/>
                                                                <option id="com.ti.ccstudio.buildDefinitions.C6000_8.1.compilerID.DEBUGGING_MODEL.204446227" name="Debugging model" superClass="com.ti.ccstudio.buildDefinitions.C6000_8.1.compilerID.DEBUGGING_MODEL" value="com.ti.ccstudio.buildDefinitions.C6000_8.1.compilerID.DEBUGGING_MODEL.SYMDEBUG__DWARF" valueType="enumerated"/>
index 6b755a3d766655d2599f3d80ad68c9fc3d7f908a..49795b7e8424655dfdad7580692488737727dd92 100644 (file)
@@ -61,7 +61,7 @@ All rights reserved.
         writeSYSRecreationModeDirect, \
         writeSYSChannelConfigurationRequestSurround4_1, \
         execPAIOutAnalog, \
-        execPAIInHDMI
+        execPAIInHDMIStereo
 #else
     #ifndef DDP
     //THD
index fa06b6b1d524fa6c44beb0dabb4608edfb6ce313..2382aa12cd2816a03b0bdd0b264d80c127816531 100644 (file)
@@ -364,10 +364,9 @@ Int cbInitSourceSel(
             )
     {
         pCb->maxNumAfCb = ASP_DECOP_CB_MAX_NUM_AF_DTS;
-                // 0 in behind
         pCb->afWrtIdx = ASP_DECOP_CB_INIT_WRTIDX_DTS;
         pCb->afRdIdx = ASP_DECOP_CB_INIT_RDIDX_DTS;
-        pCb->pcmRdIdx = 0;
+        pCb->pcmRdIdx = decOpFrameLen - ASP_DECOP_CB_INIT_LAG_DTS*strFrameLen;
         pCb->maxAFChanNum = ASP_DECOP_CB_MAX_NUM_PCM_CH;
         pCb->maxAFSampCount = ASP_DECOP_CB_MAX_PCM_FRAME_LEN_48kDTS;
 
index 860134145e29cf466a2877549cc038cbaff010bc..ee7f587bc421d7b89472457b75ea76223b198b66 100644 (file)
@@ -3470,7 +3470,7 @@ PAF_ASIT_decodeDecode(
                      (sourceSelect == PAF_SOURCE_DTSALL)
                     )
             {
-                frameLength = 1536; // TODO: Chitresh FIX ME
+                frameLength = 512; // TODO: Chitresh FIX ME
             }
             else
             {