summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-22 20:01:07 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-22 20:01:07 +0000
commitd038f89f3fc403f8a9ef03cd08461988f9c74c59 (patch)
tree820c3c9efc16ecf07f39320864e4068f425f5471 /apps/codecs
parent6117ffdde52b5ae31bdf3d36277b7a84aec133db (diff)
downloadrockbox-d038f89f3fc403f8a9ef03cd08461988f9c74c59.zip
rockbox-d038f89f3fc403f8a9ef03cd08461988f9c74c59.tar.gz
rockbox-d038f89f3fc403f8a9ef03cd08461988f9c74c59.tar.bz2
rockbox-d038f89f3fc403f8a9ef03cd08461988f9c74c59.tar.xz
S5L870x is fast enough to play spc with gaussian interpolation and echo processing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29914 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/libspc/spc_codec.h1
-rw-r--r--apps/codecs/libspc/spc_dsp.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/codecs/libspc/spc_codec.h b/apps/codecs/libspc/spc_codec.h
index 391540c..caa6860 100644
--- a/apps/codecs/libspc/spc_codec.h
+++ b/apps/codecs/libspc/spc_codec.h
@@ -51,6 +51,7 @@
/* Only some targets are fast enough for gaussian and realtime BRR decode */
#if CONFIG_CPU == S3C2440 || CONFIG_CPU == IMX31L || \
CONFIG_CPU == AS3525 || CONFIG_CPU == AS3525v2 || \
+ defined(CPU_S5L870X) || \
(CONFIG_PLATFORM & PLATFORM_HOSTED) || MEMORYSIZE <= 2
/* Don't cache BRR waves */
#define SPC_BRRCACHE 0
diff --git a/apps/codecs/libspc/spc_dsp.c b/apps/codecs/libspc/spc_dsp.c
index 4b289ca..c5833e2 100644
--- a/apps/codecs/libspc/spc_dsp.c
+++ b/apps/codecs/libspc/spc_dsp.c
@@ -766,7 +766,7 @@ void DSP_run_( struct Spc_Dsp* this, long count, int32_t* out_buf )
#if !SPC_NOINTERP
/* Interleved gauss table (to improve cache coherency). */
/* gauss [i * 2 + j] = normal_gauss [(1 - j) * 256 + i] */
- static short const gauss [512] ICONST_ATTR_SPC =
+ static short const gauss [512] ICONST_ATTR_SPC MEM_ALIGN_ATTR =
{
370,1305, 366,1305, 362,1304, 358,1304, 354,1304, 351,1304, 347,1304, 343,1303,
339,1303, 336,1303, 332,1302, 328,1302, 325,1301, 321,1300, 318,1300, 314,1299,