]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/performance-audio-sr.git/blobdiff - pasdk/test_dsp/framework/itopo/patchs.c
PASDK-401:Clean up compile-time component selection in ARM&DSP patchs files
[processor-sdk/performance-audio-sr.git] / pasdk / test_dsp / framework / itopo / patchs.c
index eee73358782cd0c6573d24f1be9b1cd001682844..374e8066e16c9f51574527b7f9c0696090b483a1 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,6 +46,45 @@ All rights reserved.
 #include "audioStreamInpProc.h"
 #include "audioStreamOutProc.h"
 
+#include "dbgBenchmark.h" // PCM high-sampling rate + SRC + CAR benchmarking
+
+#ifdef DTS_BUILD
+//
+// DTS build
+//
+#define _DTS_
+#else
+#undef  _DTS_
+#endif // DTS_BUILD
+   
+#ifdef DH_BUILD
+//
+// DH build
+//
+#define _SRC4_
+#define _CAR_
+#define _OAR_
+#define _BMDA_
+
+#ifdef _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
+//
+// Performing PCM high-sampling rate + SRC + CAR benchmarking.
+// This is DH build, but with OAR removed.
+#undef  _OAR_
+#endif // _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
+
+#else
+#undef  _SRC4_
+#undef  _CAR_
+#undef  _OAR_
+#undef  _BMDA_    
+#endif // DH_BUILD
+
+
+//#define _AE0_
+//#define _ML0_
+
+
 //
 // Decoder Definitions
 //
@@ -60,13 +99,11 @@ All rights reserved.
 
 #include <aspstd.h>
 
-//#define _AE0_
 #ifdef _AE0_
 #include <ae.h>
 #include <ae_mds.h>
 #endif
 
-//#define _SRC4_
 #ifdef _SRC4_
 #include <src.h>
 #include <src_tih.h>
@@ -74,36 +111,41 @@ All rights reserved.
 #define SUC_TIH_ISUC SRC_TIH_ISRC
 #endif
 
-#define _CAR_
 #ifdef _CAR_
 #include <car.h>
 #include <car_tig.h>
 #endif
 
-#define _OAR_
 #ifdef _OAR_
 #include <oar.h>
 #include <oar_tig.h>
 #endif
 
-//#define _DAP_
-#ifdef _DAP_
-#include <dap.h>
-#include <dap_tig.h>
-#endif
-
-#define _BMDA_
 #ifdef _BMDA_
 #include <bmda.h>
 #include <bmda_tig.h>
 #endif
 
+#ifdef _ML0_
+#include <ml.h>
+#include <ml_mds.h>
+#endif
+
+#ifdef _DTS_
+#include <dtsuhdb.h>
+#include <dtsuhdb_mds.h>
+#endif
+
 const PAF_ASP_LinkInit aspLinkInitAllI13[] =
 {
 #ifdef _AE0_
     PAF_ASP_LINKINIT(CUS,AE,MDS), 
 #endif
 
+#ifdef _ML0_
+    PAF_ASP_LINKINIT(STD, ML, MDS), 
+#endif
+
 #ifdef _SRC4_
 //    PAF_ASP_LINKINIT(STD, SRC, MDS),
     PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
@@ -117,13 +159,13 @@ const PAF_ASP_LinkInit aspLinkInitAllI13[] =
     PAF_ASP_LINKINIT(STD, OAR, TIG),
 #endif
 
-#ifdef _DAP_
-    PAF_ASP_LINKINIT(STD, DAP, TIG),
-#endif
-
 #ifdef _BMDA_
     PAF_ASP_LINKINIT(STD, BMDA, TIG),
 #endif
+
+#ifdef _DTS_
+    PAF_ASP_LINKINIT(STD, DTSUHDB, MDS),
+#endif
     PAF_ASP_LINKNONE,
 };
 
@@ -138,6 +180,10 @@ const PAF_ASP_LinkInit aspLinkInitStdI13[] =
     PAF_ASP_LINKINIT(CUS,AE,MDS), 
 #endif
 
+#ifdef _ML0_
+    PAF_ASP_LINKINIT(STD, ML, MDS), 
+#endif
+
 #ifdef _SRC4_
 //    PAF_ASP_LINKINIT(STD, SRC, MDS),
     PAF_ASP_LINKINITPARAMS(STD, SRC, TIH, &ISRC_PARAMS_DS_8CH_HBW),
@@ -151,13 +197,13 @@ const PAF_ASP_LinkInit aspLinkInitStdI13[] =
     PAF_ASP_LINKINIT(STD, OAR, TIG),
 #endif
 
-#ifdef _DAP_
-    PAF_ASP_LINKINIT(STD, DAP, TIG),
-#endif
-
 #ifdef _BMDA_
     PAF_ASP_LINKINIT(STD, BMDA, TIG),
 #endif
+
+#ifdef _DTS_
+    PAF_ASP_LINKINIT(STD, DTSUHDB, MDS),
+#endif
     PAF_ASP_LINKNONE,
 };