summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-08-24 21:03:19 +0000
committerJens Arnold <amiconn@rockbox.org>2007-08-24 21:03:19 +0000
commit163d72ff1f680f81555c9cdd664fef8bde87df24 (patch)
tree4118146cc46ba7f71765c253a2155cf118a8bdb2 /apps
parent153d74443ae4f187fae0432346d0346bddfe46f3 (diff)
downloadrockbox-163d72ff1f680f81555c9cdd664fef8bde87df24.zip
rockbox-163d72ff1f680f81555c9cdd664fef8bde87df24.tar.gz
rockbox-163d72ff1f680f81555c9cdd664fef8bde87df24.tar.bz2
rockbox-163d72ff1f680f81555c9cdd664fef8bde87df24.tar.xz
iPod 1st..3rd Gen: Nearly halve the cost of software treble/bass (and eq) by putting the filter routine in IRAM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14452 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/eq_arm.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/eq_arm.S b/apps/eq_arm.S
index 0c1961d..a18f93a 100644
--- a/apps/eq_arm.S
+++ b/apps/eq_arm.S
@@ -17,6 +17,8 @@
*
****************************************************************************/
+#include "config.h"
+
/* uncomment this to make filtering calculate lower bits after shifting.
* without this, "shift" of the lower bits will be lost here.
*/
@@ -26,7 +28,11 @@
* void eq_filter(int32_t **x, struct eqfilter *f, unsigned num,
* unsigned channels, unsigned shift)
*/
+#if CONFIG_CPU == PP5002
+ .section .icode,"ax",%progbits
+#else
.text
+#endif
.global eq_filter
eq_filter:
ldr r12, [sp] @ get shift parameter