Bertrik Sikken
0ca7b83595
cook: fix incorrect memset size argument
...
Change-Id: I927380cd789c1a86ac2d4d6af667c6f39cf933d9
2012-04-22 16:21:12 +02:00
Bertrik Sikken
f3211e6461
libgme: fix incorrect memset size argument
...
Change-Id: If663b3881cedaefd837a06e3f60e4d28938c2295
2012-04-22 16:20:51 +02:00
Michael Sevakis
f458888a4c
Build libspc with -03 on m68k (Coldfire).
...
Change-Id: I00d918735bde2a03f17c3bb68400bf619a8429d4
2012-04-05 07:26:08 -04:00
Thomas Martitz
4b56ee048a
Refactor and unify objcopy calls in the build system. Also now properly handles DEBUG builds on hosted targets to keep debug symbols if necessary.
...
Change-Id: I884031b79c6d49479e4d95752f35ced68872dd5d
2012-04-04 21:48:19 +02:00
Michael Giacomelli
bc41926b8f
More completely flush WMA decoder state on seek to prevent artifact.
...
Each MDCT depends on the previous frame for reconstruction. Previosly these were not zeroed out when seeking, resulting in a few milliseconds of the previous frame playing with the current one. Fix that.
Additionally, since the codec treats seeks to the start of a track as a "reset", flush the entire codec state in this event to ensure that everything is reset.
Change-Id: If593621a2922b0bbfa34f926f9bff31bee6b8c6a
2012-04-03 20:15:16 -04:00
Thomas Martitz
7b1a369cf7
build system: completely autodetect target cpu architecture.
...
The existing ARCH Makefile variable is exported to the C code as well.
Additionally the version (arm-only for now) is detected as well. This
allows to for complete autodetection, i.e. that optimized ASM is picked up
if determined by preprocessor (CPU_ARM, etc).
Building a sim/raaa on a arm host will now automatically generate a arm
optmized build like we have for native targets.
Change-Id: I0b35393f8fb3ebd20beaa9e7371fa57bf3782107
2012-03-28 23:02:39 +02:00
Thomas Martitz
c56950ea3a
tlsf: move to /lib (it's also used by plugins).
...
Change-Id: I5e37b28c1ce4608d60b036343f280af3311ad490
2012-03-28 23:02:39 +02:00
Thomas Martitz
f269aa0060
build system: unify/simplify library handling a bit.
...
libs in $ROOT/lib now add to $(CORE_LIBS) and $(EXTRA_LIBS) and are
automatically linked by the core and codecs/plugins respectively.
Change-Id: Iff482c792a8c8142718f6a16a450c6e2f1497c9a
2012-03-26 22:27:40 +02:00
Michael Sevakis
71e35ed446
Fix FS#12580 - Elapsed time nit reset after track change when playing AC3 files.
...
It wasn't only a52 but also a52_rm that didn't reset the elapsed counter on
each new track. The problems seemed obvious enough so fixes are being added
blind. Will leave task open for feedback from bug reporter.
Change-Id: Ic6d8eb98690ff4be47547d13b6bbafeadf4da745
2012-02-07 12:25:23 -05:00
Thomas Martitz
74c8746595
Don't filter out -O for sims.
...
It's not useful as it means we test code at a different -O level than
we run it at.
Fixes build errors caused by gcc 4.3. Fix some warnings
the change would introduce as well.
Change-Id: Id9ff31dc08694b0bfc5272f5e690c41f7918ed22
2012-01-22 20:33:37 +01:00
Thomas Martitz
a5f7f6e4bb
Use ARCH instead of CPU for selecting optimization levels.
...
This way it works for sim/application too.
Change-Id: I27aa7ce9971e7cb4521106a4f8b37d02503d9d09
2012-01-22 18:46:45 +01:00
Thomas Martitz
a0d54b09a6
libspeex: Get rid of some bad trickery with the stack pointer.
...
Using the stack pointer for anything else than pointing to the
current stack can have in very bad effects, especially on hosted
platforms (e.g. when mixed with signals). Remove this at a
neglible performance cost.
Change-Id: I9545d701bd13c32456c224b87c708d907880c0ff
2012-01-21 18:39:19 +01:00
Thomas Martitz
6d19275876
Hosted: Output map files after linking.
...
Change-Id: I5ac64d781aaa1aa2b3157589f8e689c0d946a39f
2012-01-21 18:39:19 +01:00
Thomas Martitz
cf333a61c7
Move supprt-arm.S to separate library.
...
Core, codecs and plugins link it separately so this gets rid of SOURCES trickery.
Don't build it for hosted targets.
Change-Id: If15ef90e93cd218a4352ae8e89eea95d3122452f
2012-01-21 18:39:19 +01:00
Thomas Martitz
4343011955
libmad: Get rid of some bad trickery with the stack pointer.
...
Using the stack pointer for anything else than pointing to the
current stack can have in very bad effects, especially on hosted
platforms (e.g. when mixed with signals). Remove this at
very slight performance cost.
2012-01-21 18:39:19 +01:00
Thomas Martitz
cdb28789ec
libmad: Fix section attrs for hosted platforms.
2012-01-21 18:39:19 +01:00
Magnus Holmgren
fd5524ff92
AAC/M4A: Playback time wrapped after 2 hours and 42 minutes. Increase the wrap limit to about 27 hours.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31581 a1c6a512-1295-4272-9138-f99709370657
2012-01-04 20:33:34 +00:00
Thomas Martitz
0bc64a6bb3
Adjust a few makefiles to generate smaller (upto 80%) binaries on RaaA through
...
stripping.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31541 a1c6a512-1295-4272-9138-f99709370657
2012-01-03 21:15:11 +00:00
Nils Wallménius
2c85013434
libtremor: fix memory corruption bug introduced in r30728 that could cause crashes or playback failures for some album art infested files. Closes FS#12448.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31393 a1c6a512-1295-4272-9138-f99709370657
2011-12-21 15:47:21 +00:00
Andree Buschmann
07405841c6
FS#12463: Improve performance for multichannel FLAC decoding. Speeds up decoding by 3 MHz on PP5022, 6-7 MHz on S5L870x and 11-12 MHz on MCF5250. 5.1-88kHz-files still do not decode in realtime on Coldfire and PP502x.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31367 a1c6a512-1295-4272-9138-f99709370657
2011-12-19 19:46:10 +00:00
Michael Sevakis
6a67707b5e
Commit to certain names for cache coherency APIs and discard the aliases.
...
Wouldn't surprise me a bit to get some non-green.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31339 a1c6a512-1295-4272-9138-f99709370657
2011-12-17 07:27:24 +00:00
Andree Buschmann
5b8ed62922
FS#12443: Implement downmixing to stereo for multichannel flac.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31253 a1c6a512-1295-4272-9138-f99709370657
2011-12-14 18:02:57 +00:00
Andree Buschmann
6b45019077
Correct decorrelation within flac decoding. Finally fixes FS#12371.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31252 a1c6a512-1295-4272-9138-f99709370657
2011-12-14 17:47:19 +00:00
Andree Buschmann
2b3bb1e84b
Roll back the latest mpc upstream sync as this introduced a regression. Fixes FS#12429.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31211 a1c6a512-1295-4272-9138-f99709370657
2011-12-11 16:08:53 +00:00
Andree Buschmann
a6653a9bb6
Fix decoding of multichannel flac, refactor sample buffer handling and decorrelation (taken from ffmpeg sources) and add some flac details to the manual. Solves FS#12371.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31207 a1c6a512-1295-4272-9138-f99709370657
2011-12-10 22:28:16 +00:00
Michael Sevakis
a43df152c2
Collect the 16-bit signed range sample clipping routines scattered about, which can be optimized on armv6 and create firmware/export/dsp-util.h (for lack of better place right now).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31142 a1c6a512-1295-4272-9138-f99709370657
2011-12-04 18:19:39 +00:00
Andree Buschmann
bdaac8ba04
Rockbox does not support encrypted ADX. Clearly state this in the manual and the debug messages.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31094 a1c6a512-1295-4272-9138-f99709370657
2011-11-29 20:36:11 +00:00
Andree Buschmann
3c63cb29e9
Resync mpc to r476 of svn.musepack.org. Improves error handling after seek.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31093 a1c6a512-1295-4272-9138-f99709370657
2011-11-29 19:48:57 +00:00
Andree Buschmann
fabbeba59a
Solve FS#12396 through rolling back r26592. This fixes distortions while mpc playback on Coldfire targets with GCC 4.5.2.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31054 a1c6a512-1295-4272-9138-f99709370657
2011-11-25 19:42:26 +00:00
Torne Wuff
569285794b
Bulk convert all DOS line endings to UNIX.
...
For the git migration we want a nice clean repository with UNIX line
endings. git does not use svn:eol-style, we just need the file contents to be
sane.
Sorry everybody. I know this messes up blame.
Scumbag *NIX developer says migrating to git will make line ending issues go
away; commits giant change to svn which changes line endings anyway. :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30924 a1c6a512-1295-4272-9138-f99709370657
2011-11-06 22:44:25 +00:00
Thomas Jarosch
670da39093
Remove errorneous ; after "for" statement.
...
Detected by my upcoming cppcheck check
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30731 a1c6a512-1295-4272-9138-f99709370657
2011-10-08 11:11:22 +00:00
Nils Wallménius
000c706896
libtremor: build with -O2 for cf, gives a slight speedup on high bitrate files (~1%)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30730 a1c6a512-1295-4272-9138-f99709370657
2011-10-08 10:24:17 +00:00
Nils Wallménius
1b8f81d796
fix warning in debug code
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30729 a1c6a512-1295-4272-9138-f99709370657
2011-10-08 10:18:04 +00:00
Nils Wallménius
e1ea13ee75
libtremor: hack to work around huge allocations for the comment packet in files with embedded album art. Should fix playback of such files on targets with large codec buffers.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30728 a1c6a512-1295-4272-9138-f99709370657
2011-10-08 10:09:11 +00:00
Jeffrey Goode
b76f197ff6
Silence build warning
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30708 a1c6a512-1295-4272-9138-f99709370657
2011-10-04 13:08:04 +00:00
Andree Buschmann
da09f7f0f1
Fix detuned VRC7. In VRC7 apu the 2413 emu must run at the default clock rate. Thanks to Mauricio Garrido.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30623 a1c6a512-1295-4272-9138-f99709370657
2011-10-01 08:16:33 +00:00
Nils Wallménius
d1e241f55a
libtremor: arm asm for ff_vector_fmul_window_c on v4 and v5 cores, speeds up c200v1 and fuzev1 by ~0.4MHz and ipod classic by ~1MHz.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30584 a1c6a512-1295-4272-9138-f99709370657
2011-09-23 14:01:48 +00:00
Nils Wallménius
2abb52a084
libtremor: small whitespace cleanup.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30583 a1c6a512-1295-4272-9138-f99709370657
2011-09-23 13:54:36 +00:00
Nils Wallménius
c2bd876e89
libtremor: cf asm for ff_vector_fmul_window_c, gives a speedup of ~0.3MHz.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30582 a1c6a512-1295-4272-9138-f99709370657
2011-09-22 17:32:02 +00:00
Nils Wallménius
3afdedaef2
libtremor: rename file that now contains more ffmpeg code.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30581 a1c6a512-1295-4272-9138-f99709370657
2011-09-22 11:54:17 +00:00
Nils Wallménius
412cdd6cf7
libtremor: port over ffmpeg's windowing code
...
Use the windowing approach from ffmpeg in tremor, does the mdct doubling, windowing and overlap add in one go.
Also uses less memory so all the processing buffers fit in iram on targets with small iram for the common blocksizes (256/2048) now.
Speeds up decoding of vorbis files by 3MHz for 256/2048 and 20MHz for 512/4096 files on h300.
Speeds up decoding of vorbis files by 3MHz for 256/2048 and 4.5MHz for 512/4096 on the beast.
Speeds up decoding of vorbis files by 0.3MHz for 256/2048 and 1MHz for 512/4096 on c200v1.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30580 a1c6a512-1295-4272-9138-f99709370657
2011-09-22 11:47:51 +00:00
Nils Wallménius
151424a6fd
codeclib/libtremor: Clean up duplication of inline funcs, constify the ones in codeclib and copy over the slightly faster MULT31_SHIFT15 from tremor for cf.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30578 a1c6a512-1295-4272-9138-f99709370657
2011-09-21 15:38:54 +00:00
Nils Wallménius
d3904712e1
libtremor: pass the floor1 lookup table pointer as a param to the render_line function to make this a little nicer.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30573 a1c6a512-1295-4272-9138-f99709370657
2011-09-19 16:37:37 +00:00
Nils Wallménius
769996654b
libtremor: save a kB or two limiting an array size to the maximum number of channels we support and using a shorter type for another. No speed diff.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30559 a1c6a512-1295-4272-9138-f99709370657
2011-09-16 14:00:06 +00:00
Nils Wallménius
bcfb2b53eb
libtremor: small tweak to cf channel coupling asm, speeding up vorbis decoding by ~0.1MHz. Drop unused macro params and add some comments.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30558 a1c6a512-1295-4272-9138-f99709370657
2011-09-16 12:51:22 +00:00
Nils Wallménius
3f08357f2b
codeclib: more cf asm for the mdct, saves ~0.7MHz decoding vorbis on h300.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30552 a1c6a512-1295-4272-9138-f99709370657
2011-09-15 08:31:39 +00:00
Nils Wallménius
4f27931a58
codeclib: further tweaks to the cf fft asm for a small speedup.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30541 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 09:34:01 +00:00
Andree Buschmann
c3cffb766e
Roll back r30509 after discussion on irc. Activating AAC-HE SBR will not work on Sansa Clip v1.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30540 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 06:00:10 +00:00
Nils Wallménius
85ef10826f
codeclib: tweak coldfire mdct asm a bit more, flip usage of mac/msac instead of explicit negation, changes output slightly but is as close to the c version as before. Gives about 0.4MHz speedup of vorbis on cf.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30516 a1c6a512-1295-4272-9138-f99709370657
2011-09-13 16:53:13 +00:00
Nils Wallménius
f93530c4ba
codeclib: coldfire asm for the TRANSFORM* functions in the fft and a little for the mdct, speeds up codecs using the codeclib mdct 0.5-1.5MHz on h300.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30513 a1c6a512-1295-4272-9138-f99709370657
2011-09-12 11:27:48 +00:00