Andree Buschmann
0a070c5420
Fix last known 'set but not used' warning by GCC 4.6.1.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29875 a1c6a512-1295-4272-9138-f99709370657
2011-05-13 19:40:17 +00:00
Andree Buschmann
2aa0759077
Fix even more 'set but not used' warnings and a regression.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29873 a1c6a512-1295-4272-9138-f99709370657
2011-05-13 19:23:27 +00:00
Andree Buschmann
4f4edd89e4
Fix further 'set but not used' warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29872 a1c6a512-1295-4272-9138-f99709370657
2011-05-13 19:06:04 +00:00
Andree Buschmann
f7808c1fe5
Fix several 'variable set but not used' warnings reported by GCC 6.4.1.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29871 a1c6a512-1295-4272-9138-f99709370657
2011-05-13 18:47:42 +00:00
Teruaki Kawashima
01313d5039
* Rename backlight_force_on to backlight_ignore_timeout to make it clear what the function does.
...
* Add backlight_force_on() which forces to turn on backlight even when the setting is set to Off. use this in lamp.
No functional change except lamp.
See aslo FS#9883.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29128 a1c6a512-1295-4272-9138-f99709370657
2011-01-24 12:29:16 +00:00
Teruaki Kawashima
930a8a5050
set mode argument for open() where O_CREAT flag is/can be set.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28527 a1c6a512-1295-4272-9138-f99709370657
2010-11-07 11:45:20 +00:00
Rafaël Carré
da16248e47
Plugins: modify IRAM copying code
...
Move to plugin_crt0.c, plugins don't need PLUGIN_IRAM_* macros anymore
IRAM is no longered zeroed before copying (as it is at the same address
than BSS) -> Fix FS#11581
Use cpucache_invalidate() (and not cpucache_flush), needed for self-modifying code on cached IRAM
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27948 a1c6a512-1295-4272-9138-f99709370657
2010-08-30 20:47:53 +00:00
Thomas Martitz
cae4ae2c71
Second try: Introduce plugin_crt0.c that every plugin links.
...
It handles exit() properly, calling the handler also when the plugin returns
normally (also make exit() more standard compliant while at it).
It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore.
To work better together with callbacks passed to rb->default_event_handler_ex() introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it.
In most cases rb->default_event_handler_ex() was passed a callback which was manually called at all other return points. This can now be done via atexit().
In future plugin_crt0.c could also handle clearing bss, initializing iram and more.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27873 a1c6a512-1295-4272-9138-f99709370657
2010-08-24 14:30:46 +00:00
Thomas Martitz
93cb949372
Revert "Introduce plugin_crt0.c that every plugin links."
...
Too much errors and no time to fix them now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27863 a1c6a512-1295-4272-9138-f99709370657
2010-08-23 17:12:26 +00:00
Thomas Martitz
abdc5935be
Introduce plugin_crt0.c that every plugin links.
...
It handles exit() properly, calling the handler also when the plugin returns
normally (also it makes exit() more standard compliant while at it).
It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore.
To work better together with callbacks passed to rb->default_event_handler_ex introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it.
In most cases it was passed a callback which was manually called at all other return points. This can now be done via atexit().
In future plugin_crt0.c could also handle clearing bss, initializing iram and more.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27862 a1c6a512-1295-4272-9138-f99709370657
2010-08-23 16:56:49 +00:00
Nils Wallménius
28ba570e68
pdbox: disable strict aliasing optimizations since pdbox breaks the strict aliasing rules which causes warnings.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27530 a1c6a512-1295-4272-9138-f99709370657
2010-07-23 08:56:18 +00:00
Rafaël Carré
aa3c676945
pdbox: avoid making own DEBUG clash with rockbox define
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27388 a1c6a512-1295-4272-9138-f99709370657
2010-07-11 16:46:49 +00:00
Thomas Martitz
57613ea5fa
Rename/change SIMVER to APP_TYPE in the Makefiles.
...
SIMVER was really only used to detect a simulator build. With APP_TYPE you can
now differentiate between simulator, application, checkwps and database builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27372 a1c6a512-1295-4272-9138-f99709370657
2010-07-10 13:49:49 +00:00
Wincent Balin
9bb36b0c8e
pdbox: Now backlight does not fade out -- making music requires attention.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27368 a1c6a512-1295-4272-9138-f99709370657
2010-07-10 06:21:21 +00:00
Wincent Balin
38fe596cd5
pdbox: Optimizations in the audio output code.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27288 a1c6a512-1295-4272-9138-f99709370657
2010-07-05 01:35:04 +00:00
Wincent Balin
d5342fd129
pdbox: Added Sansa e200 to supported devices.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27287 a1c6a512-1295-4272-9138-f99709370657
2010-07-05 01:31:57 +00:00
Wincent Balin
53425ad604
pdbox: Added different sampling rates based on hardware capabilities.
...
Also a minor code cleanup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27286 a1c6a512-1295-4272-9138-f99709370657
2010-07-05 01:26:41 +00:00
Frank Gevaerts
64276fc0ff
Add -lm to pdbox sim build
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27261 a1c6a512-1295-4272-9138-f99709370657
2010-07-03 21:16:59 +00:00
Frank Gevaerts
9e5846e7fc
Fix include file
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27017 a1c6a512-1295-4272-9138-f99709370657
2010-06-21 16:39:55 +00:00
Frank Gevaerts
3c78cb35e8
Remove plugin-specific defines from the pdbox makefile, and add them to m_pd.h, which is the global pdbox header. This makes sure that the defines are set during depency generation so dependencies are correct.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27016 a1c6a512-1295-4272-9138-f99709370657
2010-06-21 16:34:13 +00:00
Wincent Balin
988b32383e
pdbox: Moved all global variables in pdbox.c to IRAM.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26581 a1c6a512-1295-4272-9138-f99709370657
2010-06-05 15:00:53 +00:00
Wincent Balin
0133a4f052
pdbox: Reverted premature commit of Coldfire optimization.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26560 a1c6a512-1295-4272-9138-f99709370657
2010-06-04 21:32:14 +00:00
Wincent Balin
58d875e441
pdbox: Fixing yellows.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26552 a1c6a512-1295-4272-9138-f99709370657
2010-06-04 18:54:07 +00:00
Wincent Balin
66cc643402
pdbox: Corrected inclusion of m_fixed.h .
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26551 a1c6a512-1295-4272-9138-f99709370657
2010-06-04 18:37:55 +00:00
Wincent Balin
d166d61b09
pdbox: Added Coldfire multiplication optimization by Buschel.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26550 a1c6a512-1295-4272-9138-f99709370657
2010-06-04 18:21:47 +00:00
Wincent Balin
2464eaeba1
pdbox: Reduced (visible) precision of numbers shown in the GUI.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26549 a1c6a512-1295-4272-9138-f99709370657
2010-06-04 18:07:01 +00:00
Wincent Balin
97fef6b0c5
pdbox: The values on of widgets are reset on start now.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26548 a1c6a512-1295-4272-9138-f99709370657
2010-06-04 18:05:59 +00:00
Andree Buschmann
dbfb90672b
Ensure CPU is defined.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26546 a1c6a512-1295-4272-9138-f99709370657
2010-06-04 16:22:10 +00:00
Wincent Balin
2e5b1b1a9c
pdbox: Applied several changes by Buschel. Reintroduced compilation for iPods.
...
Changes by Buschel:
* Reduced footprint by making cosine table of size 1^13 instead of 1^15
* Corrected interpolation in the cos~ object
* Optimized multiplication on ARM platforms
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26534 a1c6a512-1295-4272-9138-f99709370657
2010-06-03 22:03:37 +00:00
Rafaël Carré
da2dd97705
pdbox: fix build on ARM with eabi
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26514 a1c6a512-1295-4272-9138-f99709370657
2010-06-03 15:27:59 +00:00
Wincent Balin
d2f848fe39
pdbox: Added keypad for iPod 1G-4G. Reordered SOURCES alphabetically.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26500 a1c6a512-1295-4272-9138-f99709370657
2010-06-03 02:34:19 +00:00
Wincent Balin
c1ae4414d4
pdbox: Source cleanup. Removed unneeded files.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26497 a1c6a512-1295-4272-9138-f99709370657
2010-06-03 00:39:13 +00:00
Wincent Balin
5edd8cf736
pdbox: Syntax cleanup for the cosine table.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26496 a1c6a512-1295-4272-9138-f99709370657
2010-06-02 23:26:12 +00:00
Rafaël Carré
ef57475f14
pdbox: add fuze keymap
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26489 a1c6a512-1295-4272-9138-f99709370657
2010-06-02 20:15:44 +00:00
Wincent Balin
36f3a8d67e
Added myself and Pure Data team to credits.
...
Updated copyright years where needed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26457 a1c6a512-1295-4272-9138-f99709370657
2010-06-01 21:44:55 +00:00
Wincent Balin
921d10f86f
pdbox: Updated CPU boosting API
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26456 a1c6a512-1295-4272-9138-f99709370657
2010-06-01 21:31:55 +00:00
Wincent Balin
f52c9aae3a
pdbox: Code cleanup, optimizations.
...
* Reverted minimal working memory to 4 MB
* Reverted size of a single audio buffer
* Optimized sound output loop
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26454 a1c6a512-1295-4272-9138-f99709370657
2010-06-01 20:37:16 +00:00
Wincent Balin
c225b17015
pdbox: Removed unnecessary code from the main include file. Reduced neede memory to 2 MB.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26440 a1c6a512-1295-4272-9138-f99709370657
2010-06-01 00:26:28 +00:00
Wincent Balin
a266ff185a
pdbox: Solved issue with WAV file import on big-endian targets (signed 16-bit files only); small I/O-related workaround in g_array.c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26439 a1c6a512-1295-4272-9138-f99709370657
2010-06-01 00:23:59 +00:00
Wincent Balin
112ad0ac42
pdbox: Code cleanup
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26274 a1c6a512-1295-4272-9138-f99709370657
2010-05-24 23:38:04 +00:00
Wincent Balin
cb185d2860
pdbox: Successfully resolved issue with loading of audio files
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26272 a1c6a512-1295-4272-9138-f99709370657
2010-05-24 23:13:37 +00:00
Wincent Balin
c208486fcc
pdbox: Rewrote recently added bugfixes
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26184 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 04:23:40 +00:00
Wincent Balin
ae2659e633
pdbox: Got rid of signedness-related warnings
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26183 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 03:38:53 +00:00
Wincent Balin
6274944942
pdbox: Made size value signed
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26182 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 03:33:18 +00:00
Wincent Balin
5ea0dc83ec
pdbox: Adjusted return values for functions read() and write()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26181 a1c6a512-1295-4272-9138-f99709370657
2010-05-20 03:27:12 +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
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
Wincent Balin
a607a6c3c2
pdbox: Fixed loading of sound files, pdpod_drums.pd works now.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25769 a1c6a512-1295-4272-9138-f99709370657
2010-05-02 00:32:50 +00:00
Frank Gevaerts
ca755f767c
Fix pdbox makefile to actually take part in dependency generation
...
Change pdbox include paths to handle this
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24916 a1c6a512-1295-4272-9138-f99709370657
2010-02-25 23:35:16 +00:00
Teruaki Kawashima
e3fc65cfff
change dependencies in make files:
...
* apps.make: depends on ctype.o instead of errno.o to depend on config-*.h so that it works for simulator.
* lang.make: add dependency of lang.h to make it sure that the file is updated properly when needed.
* plugins.make: object files don't depend on libpluginbitmaps.a.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24256 a1c6a512-1295-4272-9138-f99709370657
2010-01-17 13:03:10 +00:00