summaryrefslogtreecommitdiffstats
path: root/apps/codecs/libtremor/config-tremor.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libtremor/config-tremor.h')
-rw-r--r--apps/codecs/libtremor/config-tremor.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/codecs/libtremor/config-tremor.h b/apps/codecs/libtremor/config-tremor.h
index d360b5fd73..403fdfd88b 100644
--- a/apps/codecs/libtremor/config-tremor.h
+++ b/apps/codecs/libtremor/config-tremor.h
@@ -1,4 +1,8 @@
+#ifndef _CONFIG_TREMOR_H
+#define _CONFIG_TREMOR_H
+
#include "codeclib.h"
+
#ifdef CPU_ARM
#define _ARM_ASSEM_
#endif
@@ -17,6 +21,14 @@
#define ICODE_ATTR_TREMOR_MDCT ICODE_ATTR
#endif
+/* Workaround for gcc bug where all static functions are called with short
+ calls */
+#if !defined(ICODE_ATTR_TREMOR_NOT_MDCT) && (CONFIG_CPU==S5L8701)
+#define STATICIRAM_NOT_MDCT
+#else
+#define STATICIRAM_NOT_MDCT static
+#endif
+
#ifndef ICODE_ATTR_TREMOR_NOT_MDCT
#define ICODE_ATTR_TREMOR_NOT_MDCT ICODE_ATTR
#endif
@@ -47,3 +59,5 @@
#define CHANNELS 2
// #define _LOW_ACCURACY_
+
+#endif /* _CONFIG_TREMOR_H */