[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / application / itopo / evmk2g / atboot.c
diff --git a/pasdk/test_dsp/application/itopo/evmk2g/atboot.c b/pasdk/test_dsp/application/itopo/evmk2g/atboot.c
index 6b755a3d766655d2599f3d80ad68c9fc3d7f908a..b20d170c3cccef8db5b2d9b88b604d3b72ce46b5 100644 (file)
/*
-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
#include <pa_i13_evmk2g_io_a.h> //<pa_i13_evmda830_io_a.h>
-#ifndef SIMULATE_SIO
-#define DTS
-//#define DDP
-#ifdef TEST_MULTICHANNEL
-
-#ifdef DTS
- //DTS
- #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), \
- writeVOLControlMasterN(0), \
- writeVOLOffsetMasterN(0x7fff), \
- writeSYSRecreationModeDirect, \
- writeSYSChannelConfigurationRequestSurround4_1, \
- execPAIOutAnalog, \
- execPAIInHDMI
-#else
- #ifndef DDP
- //THD
- #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), \
- writeVOLControlMasterN(0), \
- writeVOLOffsetMasterN(0x7fff), \
- writeSYSRecreationModeDirect, \
- writeSYSChannelConfigurationRequestSurround4_1, \
- execPAIOutAnalog, \
- execPAIInHDMI
- #else
- //DDP
- #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), \
- writeVOLControlMasterN(0), \
- writeVOLOffsetMasterN(0x7fff), \
- writeSYSRecreationModeDirect, \
- writeSYSChannelConfigurationRequestSurround2ATMOS_1(4), \
- execPAIOutAnalog, \
- execPAIInHDMIStereo
- #endif
+#include "dbgBenchmark.h" // PCM high-sampling rate + SRC + CAR benchmarking
+
+#ifdef DTS_BUILD
+#define DTS_ATBOOT_CFG 1
#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
- //
- //writeVOLControlMasterN(-80), \
- //
- //
- //writeSYSChannelConfigurationRequestSurround4_1, \
- //writeSYSChannelConfigurationRequestSurround2ATMOS_1(4), \ // L/R,C,LFE,Ls/Rs,Ltm/Rtm
- //
- //writeDDPJOCDecodeModeDisable, \
- //
- //
- //execPAIOutAnalogSlave, \
- //execPAIInAnalog
- //execPAIOutAnalog, \
- //execPAIInHDMI
- //execPAIOutAnalog, \
- //execPAIInDigital
- //
-#else
+#ifdef DTS_ATBOOT_CFG
+//DTS_ATBOOT_CFG
#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, \
+ writeSYSChannelConfigurationRequestSurround4_1, \
+ execPAIOutAnalog, \
+ execPAIInHDMIStereo
+#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,10,11,-3,-3,-3,-3,-3,-3,-3,-3), \
writeVOLControlMasterN(0), \
writeVOLOffsetMasterN(0x7fff), \
writeSYSRecreationModeDirect, \
- writeSYSChannelConfigurationRequestStereo, \
+ writeSYSChannelConfigurationRequestSurround4_1, \
execPAIOutAnalog, \
- execPAIInHDMIStereo
-#endif
-
-#else // SIMULATE_SIO
-
+ execPAIInHDMI
+#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,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
+ execPAIInHDMI, \
+ writeSRCModeDisable, \
+ writeCARModeDisable
+#endif
+
+#else // DDP_ATBOOT_CFG
-#endif // SIMULATE_SIO
+//
+// DDP at-boot configuration
+//
+#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), \
+ writeVOLControlMasterN(0), \
+ writeVOLOffsetMasterN(0x7fff), \
+ writeSYSRecreationModeDirect, \
+ writeSYSChannelConfigurationRequestSurround4_1, \
+ execPAIOutAnalog, \
+ execPAIInHDMIStereo
+
+#endif // DDP_ATBOOT_CFG
+#endif // NOT DTS_ATBOOT_CFG
#pragma DATA_SECTION(cus_atboot_s0_patch, ".none")
const ACP_Unit cus_atboot_s0_patch[] = {