Rafaël Carré
d3735578c3
mp3_encoder: fix a typo, put uninitialized variable in BSS
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26136 a1c6a512-1295-4272-9138-f99709370657
2010-05-18 10:23:32 +00:00
Marcin Bukat
a5c90d4986
Add memset/memcpy benches to test_mem plugin
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26135 a1c6a512-1295-4272-9138-f99709370657
2010-05-18 10:14:15 +00:00
Rafaël Carré
0ea2753d86
mp3_encoder: reduce plugin binsize
...
- reduce the size of some structs -> gain ~1kB
- since we run the code only once, we don't need to declare large
structure in bss and copy const data in them, declare them const
directly -> gain ~17kB
- steal audio buffer for encoded data buffer -> gain 64kB
this will stop playback when encoding, but it was stopped already on
targets using IRAM
- some const policy
Tested on Clipv1 & sim, 83012 bytes smaller on clipv1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26134 a1c6a512-1295-4272-9138-f99709370657
2010-05-18 10:12:23 +00:00
Rafaël Carré
ec6476c14a
plugins: reorder SOURCES conditions to be more readable
...
change a lot of conditions to be more understandable
add some spacing
remove ifp conditions as disabling plugins can be done in configure
SUBDIRS: concatenate some conditions and add comments
No changes expected (no plugins added / removed) for working targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26114 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 18:16:45 +00:00
Torne Wuff
3637ccbffc
Change default chip8 keymap on c200/m200/clip families to use up/down on the 4-way pad instead of volume up and volume down, since most chip8 games use those buttons as directions.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26107 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 13:25:23 +00:00
Teruaki Kawashima
20041b96c8
rockboy: fix format strings in snprintf. use int for slot_id and use %d tag for it in format strings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26104 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 12:49:51 +00:00
Michael Sevakis
fcf36dd4f9
Simplify mpegplayer a bit and use array-based lists rather than linked lists for stream management. Move a couple useful functions to handle pointer arrays from kernel.c into general.c; mpeglayer now makes use of them.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26101 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 12:34:05 +00:00
Nils Wallménius
9fde12676b
fft plugin: move const data into a c file and use no wider types than necessary, makes the plugin about 63kB smaller
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26100 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 11:58:22 +00:00
Rafaël Carré
487b24cbf5
rockboy: add a Clip keymap
...
the plugin is still disabled, the build condition needs work
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26099 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 10:01:49 +00:00
Michael Sevakis
18b1602797
I think I intended a different expression.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26097 a1c6a512-1295-4272-9138-f99709370657
2010-05-17 07:58:07 +00:00
Michael Sevakis
0da5399c79
How punny. Just one more whack-a-mole to get.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26092 a1c6a512-1295-4272-9138-f99709370657
2010-05-16 15:17:27 +00:00
Michael Sevakis
26230ae048
MPEGPlayer: reconceal the point puns
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26090 a1c6a512-1295-4272-9138-f99709370657
2010-05-16 15:12:23 +00:00
Michael Sevakis
b197c3b0d6
MPEGPlayer: Add a second layer of caching to help speed up byte-wise scanning and seeking a bit.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26088 a1c6a512-1295-4272-9138-f99709370657
2010-05-16 14:41:00 +00:00
Rafaël Carré
46a9c5e089
Fix alarmclock plugin time miscalculation
...
Author: Clément Pit-Claudel (CFP)
Flyspray: FS#11110
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26056 a1c6a512-1295-4272-9138-f99709370657
2010-05-15 15:20:45 +00:00
Michael Sevakis
80d0d15ca9
Gigabeat S: Fully enable access to hardware tone controls and 3-D effect feature. Under the hood, it's designated a hardware equalizer since it is one. Implement code framework for hardware EQ in general. Menu aspect is well abstracted and so the UI and strings can be changed around if taste doesn't quite suit. So far the emphasis is distinction of the UI labelling from the software EQ so that it's clear the settings are for a different thing.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26051 a1c6a512-1295-4272-9138-f99709370657
2010-05-15 13:09:45 +00:00
Jeffrey Goode
f2a56161f7
Fix yellow: missed a cast
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26041 a1c6a512-1295-4272-9138-f99709370657
2010-05-15 03:42:37 +00:00
Jeffrey Goode
6ef04a7f0e
Eliminate %zd tag in printf format strings, replace them with %ld. The %z formatter kept generating type mismatch warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26040 a1c6a512-1295-4272-9138-f99709370657
2010-05-15 03:34:31 +00:00
Frank Gevaerts
530c25130f
Make the sim buildable with mingw again
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26037 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 22:57:52 +00:00
Frank Gevaerts
ed566826f5
Fix various size_t related warnings and errors
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26035 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 22:19:45 +00:00
Rafaël Carré
9e974e4590
another cast ssize_t -> long
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26034 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 22:16:40 +00:00
Thomas Martitz
0246f0ceb4
Fix remaining reds/yellows.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26024 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 13:21:40 +00:00
Thomas Martitz
68947473e1
Move math.h to firmware/libc/include/ and fix slight incompatibilities between our and the host's math.h
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26020 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 12:43:45 +00:00
Michael Sevakis
3d1a85695b
Give pitch_detector the IRAMming it deserves.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26018 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 12:35:05 +00:00
Michael Sevakis
d665c92652
Cache align the pitch detector audiobuffer where needed. Some other misc. changes to try to make sure everything builds.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26011 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 08:44:07 +00:00
Michael Sevakis
057c11147e
Fix LUA red and yellow.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26007 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 07:17:03 +00:00
Michael Sevakis
ef0b8caac0
Fix some sim warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26006 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 06:41:40 +00:00
Michael Sevakis
7250405c70
pitch_detector: Use continuous recording, even if the algorithm is too slow for that and record a whole buffer even if the min frequency is higher. Use the minimum samplerate that allows C-4186 to be detected (usually 11.025kHz, which can reduce computational load to 1/16 compared to 44.1kHz). Get rid of 64-bit multiplies when calculating input RMS value. Stop audio playback when entering plugin. Better backlight and CPU frequency handling. audio_sample_type->int16_t. simpler buffer size rounding.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26005 a1c6a512-1295-4272-9138-f99709370657
2010-05-14 06:25:40 +00:00
Nils Wallménius
0b52d34313
FS#11272 by Gerhard Zintel fixing a bug when resetting the database in keybox
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26004 a1c6a512-1295-4272-9138-f99709370657
2010-05-13 22:21:09 +00:00
Rafaël Carré
289b6bdb69
fix pitch_detector: recording will stop itself if the callback returns <0
...
stopping recording 2 times might have harmful effects
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26002 a1c6a512-1295-4272-9138-f99709370657
2010-05-13 21:32:06 +00:00
Marcin Bukat
a62db97b38
HD200 - add support for the device in greylib
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25930 a1c6a512-1295-4272-9138-f99709370657
2010-05-10 13:06:38 +00:00
Andree Buschmann
70daf4ed4d
Submit FS#11253. Rework of test_mem plugin to bench DRAM and IRAM. Also add ARM assembler and change the result format.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25918 a1c6a512-1295-4272-9138-f99709370657
2010-05-09 19:23:26 +00:00
Michael Sevakis
a420561bf8
Gigabeat S: Reclaim about 800K of memory that was laying unused. Get rid of DEVBSS_ATTR for this target and implement as NOCACHEBSS_ATTR. Plugin and codec buffers move so all that is now incompatible (do full update). No version increase for plugins/codecs because the loader will reject them.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25895 a1c6a512-1295-4272-9138-f99709370657
2010-05-08 07:45:34 +00:00
Andree Buschmann
dbcb02832f
Use 'HZ' and remove 'volatile' as suggested by kugel.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25893 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 22:02:50 +00:00
Andree Buschmann
4c4ae04da9
Changes in test_mem plugin: Use correct formula to calculate KB/s, reasonable unrolling of read/write loops to better match memory bandwidth.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25892 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 21:42:22 +00:00
Frank Gevaerts
7a994c1e7d
Fix (hopefully) last aliasing bug (midiutil), and enable -fno-strict-aliasing again for zxbox and doom (no easy fix there)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25889 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 20:11:14 +00:00
Frank Gevaerts
e4f1bfe1c4
Fix possible buffer overflow
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25886 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 19:36:51 +00:00
Frank Gevaerts
1c9cc6846c
fix one more size_t/ssize_t misuse
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25885 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 19:35:09 +00:00
Frank Gevaerts
8d4ff638b9
Fix size_t handling in plugin_get_buffer()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25884 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 19:27:42 +00:00
Thomas Martitz
e919b5d5b9
Fix disastrous variable shadowing, change casts to unsigned in (cygwin doesn't like mode_t there, and unsigned int should be equally correct) and check the correct bitmask in sim_open().
...
Should repair filesystem accesses on the sim.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25881 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 16:56:40 +00:00
Michael Sevakis
eae0cedefe
mpegplayer: One last dealie-O for now: Change all "WVS" usage in the code for identifiers to "OSD".
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25873 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 13:33:44 +00:00
Michael Sevakis
455c34ab91
mpegplayer: make button timeout half the OSD update interval so that it updates the indicators properly when not holding a key. Add capability to show OSD without changing volume, seeking, etc. Enable this functionality on Gigabeat S using the back (<--) button since it wasn't used in playback mode at all.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25872 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 13:06:42 +00:00
Michael Sevakis
79e7375ddf
Add support for the next/prev side buttons to mpegplayer on the Gigabeat S to control seeking.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25871 a1c6a512-1295-4272-9138-f99709370657
2010-05-07 11:47:54 +00:00
Frank Gevaerts
65b875b83e
Fix last two yellows
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25863 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 23:58:33 +00:00
Thomas Martitz
54548df56e
Fix some size_t related warnings (hopefully, they seem system dependant).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25852 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 21:17:14 +00:00
Thomas Martitz
50a6ca39ad
Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes).
...
This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 21:04:40 +00:00
Thomas Martitz
0a1d7c28b7
Make open() posix compliant api-wise. A few calls (those with O_CREAT) need the additional optional mode parameter so add it. Impact for the core is almost zero, as open() is a wrapper macro for the real open function which doesn't take the variable parameter.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25844 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 17:35:13 +00:00
Thomas Martitz
c61e89c0ed
Make creat() posix compliant API-wise. Shouldn't affect the core as it's wrapped via a static inline.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25843 a1c6a512-1295-4272-9138-f99709370657
2010-05-06 17:35:04 +00:00
Delyan Kratunov
bc90a616c3
FFT plugin: The 64-bit sqrt function is no longer needed
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25791 a1c6a512-1295-4272-9138-f99709370657
2010-05-02 20:32:41 +00:00
Delyan Kratunov
af466f3cbf
FFT plugin: eliminate 64-bit math. This should result in faster and probably more accurate calculations.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25790 a1c6a512-1295-4272-9138-f99709370657
2010-05-02 20:30:44 +00:00
Jens Arnold
9a74223f7d
Test more possible alignments in the Write & Verify test. Some ata drivers apply optimisations up to line size alignment.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25787 a1c6a512-1295-4272-9138-f99709370657
2010-05-02 19:38:23 +00:00