]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - pasdk/test_dsp/application/itopo/evmk2g/atboot.c
Merge remote-tracking branch 'origin/dev_pasdk_frank_pasdk577RunTimeAudioIoCfg' into...
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / application / itopo / evmk2g / atboot.c
index b089d97f07d4f0c9665cee32fe64ed9b684272fe..bd43f338b8ef607289417df2201f9705e8ed67aa 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
-Copyright (c) 2016, Texas Instruments Incorporated - http://www.ti.com/
+Copyright (c) 2017, Texas Instruments Incorporated - http://www.ti.com/
 All rights reserved.
 
 * Redistribution and use in source and binary forms, with or without 
@@ -46,11 +46,14 @@ All rights reserved.
 
 #include <pa_i13_evmk2g_io_a.h> //<pa_i13_evmda830_io_a.h>
 
-#ifndef SIMULATE_SIO
-#define DDP
-#ifdef TEST_MULTICHANNEL
-#ifndef DDP
-//THD
+#include "dbgBenchmark.h" // PCM high-sampling rate + SRC + CAR benchmarking
+
+#ifdef DTS_BUILD
+#define DTS_ATBOOT_CFG 1
+#endif
+
+#ifdef DTS_ATBOOT_CFG    
+//DTS_ATBOOT_CFG
 #define CUS_ATBOOT_S \
     writeDECChannelMapTo16(PAF_LEFT,PAF_RGHT,8,9,2,12,10,11,-3,-3,-3,-3,-3,-3,-3,-3), \
     writeENCChannelMapFrom16(PAF_LEFT,PAF_RGHT,8,9,2,12,10,11,-3,-3,-3,-3,-3,-3,-3,-3), \
@@ -58,80 +61,65 @@ All rights reserved.
     writeVOLOffsetMasterN(0x7fff), \
     writeSYSRecreationModeDirect, \
     writeSYSChannelConfigurationRequestSurround4_1, \
-    execPAIOutAnalog, \
-    execPAIInHDMI
-#else
-//DDP
+    execPAIInAnalog, \
+    execPAIOutAnalogSlave
+#else 
+//Not DTS_ATBOOT_CFG
+
+#ifndef DDP_ATBOOT_CFG
+//
+// NOT DDP at-boot configuration
+//
+
+#ifndef _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
+//
+// THD at-boot configuration
+//
+
+// NOT Performing PCM high-sampling rate + SRC + CAR benchmarking
+// 4XI2S HDMI input for multi-ch PCM
 #define CUS_ATBOOT_S \
     writeDECChannelMapTo16(PAF_LEFT,PAF_RGHT,8,9,2,12,10,11,-3,-3,-3,-3,-3,-3,-3,-3), \
-    writeENCChannelMapFrom16(PAF_LEFT,PAF_RGHT,8,9,2,12,6,7,-3,-3,-3,-3,-3,-3,-3,-3), \
+    writeENCChannelMapFrom16(PAF_LEFT,PAF_RGHT,8,9,2,12,10,11,-3,-3,-3,-3,-3,-3,-3,-3), \
     writeVOLControlMasterN(0), \
     writeVOLOffsetMasterN(0x7fff), \
     writeSYSRecreationModeDirect, \
     writeSYSChannelConfigurationRequestSurround4_1, \
-    execPAIOutAnalog, \
-    execPAIInHDMIStereo
-#endif
-    //
-    //writeENCChannelMapFrom16(PAF_LEFT,PAF_RGHT,8,9,2,12,10,11,-3,-3,-3,-3,-3,-3,-3,-3), \     // Lrs/Rrs
-    //writeENCChannelMapFrom16(PAF_LEFT,PAF_RGHT,8,9,2,12,6,7,-3,-3,-3,-3,-3,-3,-3,-3), \       // Ltm/Rtm
-    //writeENCChannelMapFrom16(PAF_LEFT,PAF_RGHT,PAF_LSUR,PAF_RSUR,PAF_CNTR,PAF_SUBW,PAF_LBAK,PAF_RBAK,PAF_LTFT,PAF_RTFT,PAF_LTRR,PAF_RTRR,-3,-3,-3,-3), \      // Ltf/Rtf,Ltr/Rtr
-    //
-    //writeVOLControlMasterN(-80), \
-    //
-    //
-    //7.1
-    //writeSYSChannelConfigurationRequestSurround4_1, \
-    //
-    //5.1.2
-    //writeSYSChannelConfigurationRequestSurround2ATMOS_1(4), \                                 // L/R,C,LFE,Ls/Rs,Ltm/Rtm
-    //writeBMDAspeakerBackNone, \
-    //writeBMDAspeakerTopmiddleLarge, \
-    //
-    //writeDDPJOCDecodeModeDisable, \
-    //
-    //writeTHDDRCDisable, \
-    //writeTHDDRCCutN(0), \
-    //writeTHDDRCBoostN(0), \
-    //writeTHDLosslessDisable, \
-    //
-    //execPAIOutNone, \
-    //execPAIInNone
-    //execPAIOutAnalogSlave, \
-    //execPAIInAnalog
-    //execPAIOutAnalog, \
-    //execPAIInHDMI
-    //execPAIOutAnalog, \
-    //execPAIInDigital    
-    //
+    execPAIInDigital, \
+    execPAIOutAnalog
 #else
-
+// Performing PCM high-sampling rate + SRC + CAR benchmarking
+// 4XI2S HDMI input for multi-ch PCM
 #define CUS_ATBOOT_S \
-    writeDECChannelMapTo16(PAF_LEFT,PAF_RGHT,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3), \
-    writeENCChannelMapFrom16(PAF_LEFT,PAF_RGHT,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3,-3), \
+    writeDECChannelMapTo16(PAF_LEFT,PAF_RGHT,8,9,2,12,10,11,-3,-3,-3,-3,-3,-3,-3,-3), \
+    writeENCChannelMapFrom16(PAF_LEFT,PAF_RGHT,8,9,2,12,10,11,-3,-3,-3,-3,-3,-3,-3,-3), \
     writeVOLControlMasterN(0), \
     writeVOLOffsetMasterN(0x7fff), \
     writeSYSRecreationModeDirect, \
-    writeSYSChannelConfigurationRequestStereo, \
+    writeSYSChannelConfigurationRequestSurround4_1, \
+    execPAIInHDMI, \
     execPAIOutAnalog, \
-    execPAIInHDMIStereo
-#endif
-
-#else // SIMULATE_SIO
+    writeSRCModeDisable, \
+    writeCARModeDisable
+#endif    
+    
+#else // DDP_ATBOOT_CFG
 
+//
+// DDP at-boot configuration
+//
 #define CUS_ATBOOT_S \
-    writeDECChannelMapTo16  (PAF_LEFT,PAF_RGHT,PAF_LSUR,PAF_RSUR,PAF_CNTR,PAF_SUBW,PAF_LBAK,PAF_RBAK,PAF_LWID,PAF_RWID,PAF_LHED,PAF_RHED,-3,-3,-3,-3), \
-    writeENCChannelMapFrom16(PAF_LEFT,PAF_RGHT,PAF_LSUR,PAF_RSUR,PAF_CNTR,PAF_SUBW,PAF_LBAK,PAF_RBAK,PAF_LWID,PAF_RWID,PAF_LHED,PAF_RHED,-3,-3,-3,-3), \
+    writeDECChannelMapTo16(PAF_LEFT,PAF_RGHT,8,9,2,12,10,11,-3,-3,-3,-3,-3,-3,-3,-3), \
+    writeENCChannelMapFrom16(PAF_LEFT,PAF_RGHT,8,9,2,12,10,11,-3,-3,-3,-3,-3,-3,-3,-3), \
     writeVOLControlMasterN(0), \
     writeVOLOffsetMasterN(0x7fff), \
     writeSYSRecreationModeDirect, \
     writeSYSChannelConfigurationRequestSurround4_1, \
-    execPAIOutAnalog, \
-    execPAIInAnalog
-    //execPAIOutNone, \
-    //execPAIInNone
-
-#endif // SIMULATE_SIO
+    execPAIInHDMIStereo, \
+    execPAIOutAnalog
+    
+#endif // DDP_ATBOOT_CFG
+#endif // NOT DTS_ATBOOT_CFG
 
 #pragma DATA_SECTION(cus_atboot_s0_patch, ".none")
 const ACP_Unit cus_atboot_s0_patch[] = {