summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2009-08-11 02:05:38 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2009-08-11 02:05:38 +0000
commit6469926b889f1533134233c63c894ac471f2f53c (patch)
treeb1d0cfce47546917e49dbf4607216770f5bda721 /firmware
parent47a090105adac2c7d63165a28f46126df08ce494 (diff)
downloadrockbox-6469926b889f1533134233c63c894ac471f2f53c.tar.gz
rockbox-6469926b889f1533134233c63c894ac471f2f53c.tar.bz2
rockbox-6469926b889f1533134233c63c894ac471f2f53c.zip
FS#10506. Don't compile various crossfade only functions in pcmbuf.c on low memory targets (mainly AMS) to save memory. Some crossfade related items remain in the code, but they're not worth cluttering the code with ifdefs over. Also, introduce HAVE_CROSSFADE define for neatness.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22248 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/export/config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 0082f3ab31..8871abcb88 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -139,6 +139,11 @@
* for example in hardware, but not controllable*/
#define BACKLIGHT_FADING_TARGET 0x8
+/*include support for crossfading - requires significant PCM buffer space*/
+#if MEMORYSIZE > 2
+#define HAVE_CROSSFADE
+#endif
+
/* CONFIG_CHARGING */
/* Generic types */