[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 1b3b8d9fb29090642f9b529d28b568f871a18b4d..bd43f338b8ef607289417df2201f9705e8ed67aa 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 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), \
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, \
- writeSYSChannelConfigurationRequestSurround2ATMOS_1(4), \
- 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
- //
- //writeVOLControlMasterN(-80), \
- //
- //
- //writeSYSChannelConfigurationRequestSurround4_1, \
- //writeSYSChannelConfigurationRequestSurround2ATMOS_1(4), \ // L/R,C,LFE,Ls/Rs,Ltm/Rtm
- //
- //writeDDPJOCDecodeModeDisable, \
- //
- //
- //execPAIOutAnalogSlave, \
- //execPAIInAnalog
- //execPAIOutAnalog, \
- //execPAIInHDMI
- //execPAIOutAnalog, \
- //execPAIInDigital
- //
+ writeSYSChannelConfigurationRequestSurround4_1, \
+ 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[] = {