PASDK-401:Clean up compile-time component selection in ARM&DSP patchs files
authorFrank Livingston <frank-livingston@ti.com>
Mon, 2 Oct 2017 21:21:22 +0000 (16:21 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Mon, 2 Oct 2017 21:21:22 +0000 (16:21 -0500)
pasdk/test_arm/framework/itopo/patchs.c
pasdk/test_dsp/application/itopo/evmk2g/alpha/i13_a.h
pasdk/test_dsp/framework/itopo/patchs.c

index 0bfb8fcb1ce2c52aae9043c801a044039c88ae41..00407121bec9370d4c5efdc072f9b5260d80a68d 100644 (file)
@@ -53,32 +53,28 @@ All rights reserved.
 #include <pcm.h>
 #include <pcm_mds.h>
 
-#ifdef DTS_BUILD
-//
-// DTS build
-//
-#define _DTS_
-
-#elif defined DH_BUILD
+#ifdef DH_BUILD
 //
 // DH build
 //
-
 #define _DDPAT_
 #define _THD_
-    
-#else
+#else    
+#undef  _DDPAT_
+#undef  _THD_
+#endif // DH_BUILD
+
+#ifdef DTS_BUILD
 //
-// NO-IP build
+// DTS build
 //
-#undef _DTS_
-#undef _DDPAT_
-#undef _THD_ 
-    
-#endif
+#define _DTS_
+#else
+#undef  _DTS_
+#endif // DTS_BUILD
 
-//#define _SRC4_
 
+//#define _SRC4_
 
 
 #ifdef _DDPAT_
index 4fcc75be75256405c2420ac5521ae781adf92989..aef66be377a850a72e7bbe5fb05da6bced906cb0 100644 (file)
@@ -65,11 +65,11 @@ All rights reserved.
 #include <car_a.h>
 #include <oar_a.h>
 #include <bmda_a.h>
+#endif // DH_BUILD
 
-#elif defined DTS_BUILD
+#ifdef DTS_BUILD
 #include <dtsuhda_a.h>
 #include <dtsuhdb_a.h>
-
-#endif
+#endif // DTS_BUILD
 
 #endif /* _I13_A_H_ */
index baa4c4e50fde3f237c03b77d965204316b43b419..374e8066e16c9f51574527b7f9c0696090b483a1 100644 (file)
@@ -53,51 +53,36 @@ All rights reserved.
 // DTS build
 //
 #define _DTS_
-
-#elif defined DH_BUILD
+#else
+#undef  _DTS_
+#endif // DTS_BUILD
+   
+#ifdef DH_BUILD
 //
 // DH build
 //
-    
-#ifndef _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
-//
-// NOT performing PCM high-sampling rate + SRC + CAR benchmarking
-//
-
-//#define _AE0_
 #define _SRC4_
 #define _CAR_
 #define _OAR_
 #define _BMDA_
-//#define _ML0_
 
-#else // _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
-//
-// Performing PCM high-sampling rate + SRC + CAR benchmarking
+#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 _SRC4_
-#define _CAR_
-//#define _OAR_
-#define _BMDA_
-//#define _ML0_
 
-#endif // _ENABLE_BENCHMARK_PCMHSR_SRC_CAR_
-    
-#else 
-//
-// NO-IP build
-//
-#undef _DTS_
-#undef _CAR_
-#undef _OAR_
-#undef _BMDA_
 //#define _AE0_
 //#define _ML0_
-    
-#endif
-
 
 
 //