Commit graph

13079 commits

Author SHA1 Message Date
Alexander Levin
4cf50e2bb0 Change the file name extension for the shopper plugin from 'list' to a more descriptive 'shopper'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27989 a1c6a512-1295-4272-9138-f99709370657
2010-09-02 21:40:29 +00:00
Rafaël Carré
a92d316972 fix test_codec broken after r27968
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27985 a1c6a512-1295-4272-9138-f99709370657
2010-09-02 12:10:37 +00:00
Jonathan Gordon
216ed29e4d fix FS#11588 - %t(0) inside conditionals wasnt making that subline skip
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27983 a1c6a512-1295-4272-9138-f99709370657
2010-09-02 11:43:33 +00:00
Rafaël Carré
5cc11a1914 Clip WPS keymap: move pitchscreen to long up
Make users happy, as now short down does nothing (but bring backlight on)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27982 a1c6a512-1295-4272-9138-f99709370657
2010-09-02 07:50:01 +00:00
Rafaël Carré
bd7af68ccd battery_bench: make functions/struct/variables static
remove useless declarations

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27979 a1c6a512-1295-4272-9138-f99709370657
2010-09-02 02:26:26 +00:00
Thomas Martitz
24424bab2a Fix reds. The battery_capacity setting is used even for fixed-battery targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27976 a1c6a512-1295-4272-9138-f99709370657
2010-09-01 23:49:28 +00:00
Thomas Martitz
f05cdc46f2 Android: don't compile powermgmt-sim.c
Instead implement a bit of battery monitoring. Currently it only fetches the battery level (in %) every 30s,
but it could do more like battery status, charger connected, voltage...
Theoretically, we could also exit/quit after some time of inactivity too
(perhaps not a bad idea since Rockbox puts a slight but still non-zero CPU load even if doing nothing).

Ironically, Rockbox is now the only way to get the exact battery level (at least I haven't found anything yet) on my phone :-)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27974 a1c6a512-1295-4272-9138-f99709370657
2010-09-01 23:36:15 +00:00
Thomas Martitz
c00fbc4d06 Android: Don't compile sim_tasks.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27973 a1c6a512-1295-4272-9138-f99709370657
2010-09-01 22:09:43 +00:00
Thomas Martitz
eac36d5a09 struct DIR -> DIR, should fix most if not all reds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27970 a1c6a512-1295-4272-9138-f99709370657
2010-09-01 21:45:58 +00:00
Thomas Martitz
6eaab4d004 Ged rid of uisimulator/common/io.c for android builds.
Use host's functions for file i/o directly (open(), close() ,etc.), not the sim_* variants.
Some dir functions need to be wrapped still because we need to cache the parents dir's path (host's dirent doesn't let us know).
For the same reason (incompatibility) with host's dirent) detach some members from Rockbox' dirent struct and put it into an extra one,
the values can be retrieved via the new dir_get_info().

Get rid of the sim_ prefix for sleep as well and change the signature to unix sleep().

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27968 a1c6a512-1295-4272-9138-f99709370657
2010-09-01 21:29:34 +00:00
Rafaël Carré
21c7b9debb load_plugin_screen(): handle all plugin_load() return values
Fixes crashes when pictureflow returns PLUGIN_GOTO_WPS

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27965 a1c6a512-1295-4272-9138-f99709370657
2010-09-01 14:12:14 +00:00
Fred Bauer
55704d8942 font_table[].name wasn't filled
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27963 a1c6a512-1295-4272-9138-f99709370657
2010-09-01 05:21:39 +00:00
Rafaël Carré
ca91d0fd7a FS#11587 : voice for SWCODEC and low memory
On these targets the full voice file can't be loaded so only load 64
clips at a time (the size of the queue)
Voice now works on clipv1

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27962 a1c6a512-1295-4272-9138-f99709370657
2010-09-01 00:08:50 +00:00
Frank Gevaerts
a1cf4ced83 Unify 32mb and 64mb ipod video builds - FS#11580
Since memory on 32mb ipod videos is mapped twice, a 64mb build still has codecs and plugins mapped in a usable area. This means that all that needs to be done to support 32mb and 64mb boards with the same build is to adjust audiobufend to avoid using more than the actually present RAM.



git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27960 a1c6a512-1295-4272-9138-f99709370657
2010-08-31 19:06:04 +00:00
Jonathan Gordon
4dd6b14453 Should fix the line alternator issue described in http://forums.rockbox.org/index.php?topic=25545
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27956 a1c6a512-1295-4272-9138-f99709370657
2010-08-31 02:19:48 +00:00
Rafaël Carré
589490c6c5 don't cast to int when not needed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27954 a1c6a512-1295-4272-9138-f99709370657
2010-08-30 23:08:12 +00:00
Rafaël Carré
99207d6475 panicf() is declared in panic.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27952 a1c6a512-1295-4272-9138-f99709370657
2010-08-30 23:02:35 +00:00
Rafaël Carré
634028385d audio_reset_buffer: check audiobuffer size not only in DEBUG builds
(DEBUG builds do not work/build anyway)
Also use a shorter message

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27951 a1c6a512-1295-4272-9138-f99709370657
2010-08-30 22:57:02 +00:00
Andree Buschmann
9c00d1a643 Fix FS#11586. Corrects rebuffering behaviour which did not allow to play several m4a files. Thanks to Magnus Holmgren.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27950 a1c6a512-1295-4272-9138-f99709370657
2010-08-30 22:35:32 +00:00
Thomas Martitz
ce0d2b1d47 Update comments in the helloword plugin.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27949 a1c6a512-1295-4272-9138-f99709370657
2010-08-30 20:58:38 +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
Jens Arnold
811877e5b3 libdemac: ARMv7 assembler optimisation for the filters, tested on Nokia N900. Speedup is 2.1x for -c5000 compared to the ARMv6 asm. Note that actually compiling it on device requires hand-assembling the 'vadd' and 'vsub' instructions due to a bug in binutils 2.18.50, and making the standalone decoder use it requires Makefile and demac_config.h hacks.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27944 a1c6a512-1295-4272-9138-f99709370657
2010-08-30 06:31:47 +00:00
Andree Buschmann
7def0f5cbd Restore libfaad's IRAM configuration.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27942 a1c6a512-1295-4272-9138-f99709370657
2010-08-29 19:27:11 +00:00
Andree Buschmann
cdca5efce9 Fix FS#11539. Undo r23967 and use another way to achieve results for negative exponents for pow(2,x). This solves heavy distortions on some aac encoded files and clicks/noise on track change.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27941 a1c6a512-1295-4272-9138-f99709370657
2010-08-29 19:03:05 +00:00
Andree Buschmann
5be1c33521 Fix red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27940 a1c6a512-1295-4272-9138-f99709370657
2010-08-29 16:46:03 +00:00
Andree Buschmann
d4567b64ba Clean up alac/acc demux structure on next track. Solves issues with some files only being playable on direct selection, but not if switched to via playback engine or skip.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27939 a1c6a512-1295-4272-9138-f99709370657
2010-08-29 16:43:11 +00:00
Magnus Holmgren
7c8a49dbff Make M4A demuxer more flexible when handling the stsd atom. Allows file reported in the forum to play.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27938 a1c6a512-1295-4272-9138-f99709370657
2010-08-29 13:48:29 +00:00
Rafaël Carré
bf82ac06bf output_dyn_value() : don't use strlen() to check string emptiness
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27933 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 23:11:59 +00:00
Rafaël Carré
0011cb5911 archos player debug menu: factorize and use lcd_putsf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27932 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 23:11:54 +00:00
Rafaël Carré
f739a685d6 Fix r27923: folder size displayed "lld" in properties
Our printf format doesn't support "ll", restore the cast to long

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27931 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 22:16:27 +00:00
Rafaël Carré
e02e1db528 disktidy: store the number of removed files as global scope
no need to transmit it through function arguments, remove a warning on
charcell as a side effect

also, snprintf+splash -> splashf

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27930 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 22:01:44 +00:00
Rafaël Carré
502997c042 cube: only needs text buffer on LCD_BITMAP
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27929 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 21:55:47 +00:00
Rafaël Carré
b08ad5eb48 fix r27926 : lcd_puts() not changed to lcd_putsf()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27928 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 21:54:24 +00:00
Rafaël Carré
ab9fd1840b plugins: use lcd_putsf/lcd_putsxyf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27926 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 21:46:45 +00:00
Rafaël Carré
8418a2c94a splitedit: fix snprintf() argument (size of wrong buffer)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27925 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 21:46:36 +00:00
Rafaël Carré
db92d58b02 wormlet: remove some text buffers
use lcd_putsxyf()
rework a bit DEBUG_WORMLET to remove a buffer (doesn't compile anwyay)

also use a table to get worm state, instead of switch/case

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27924 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 21:46:32 +00:00
Rafaël Carré
bc2b74b0fb properties: remove some text buffers
use lcd_putsf()
remove filesize2string, instead get the "logarithm" (rounded towards
zero) and use the this value to compute the size displayed and the
unit prefix (nothing/k/m/g)

also use struct initializer in dir_properties()

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27923 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 21:46:27 +00:00
Rafaël Carré
cf2ce17d09 pitch_detector: use lcd_putsxyf(), not lcd_putsf()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27922 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 21:46:22 +00:00
Rafaël Carré
0f063b7d72 Implement lcd(_remote)_putsxyf() and export to plugins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27921 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 21:46:18 +00:00
Rafaël Carré
e78a12bca7 pitch detector: remove more unused functions for sim builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27920 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 19:15:07 +00:00
Rafaël Carré
0bdd362ab9 pitch detector: remove unused functions for sim builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27919 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 19:07:38 +00:00
Rafaël Carré
e09ebc4213 pitch_detector: cleanup
- cosmetics: remove trailing white space
- mark all functions and variables as static
- merge struct definition and declaration when possible
- rename tuner_settings -> settings (because it's shorter)
- remove unused enums
- don't give pointer to settings struct as argument since there is only
  one struct, same for the settings filename
- fix error cases in settings load:
    reset settings when loading failed
    close file when it hasn't the right size
- inline small load/save functions only used once
- remove unused print_char_xy
- inline print_str and print_int_xy, and use lcd_putsf (added to the
  plugin API)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27918 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 17:52:31 +00:00
Rafaël Carré
5628096e51 pitch_detector: avoid a division by zero when changing 'lowest frequency' setting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27917 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 17:52:27 +00:00
Frank Gevaerts
67096fae73 Fix typo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27916 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 15:06:06 +00:00
Bertrik Sikken
a290ce4222 tcc77x targets: various minor cleanups
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27913 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 10:17:19 +00:00
Marianne Arnold
032502182b Clip keymap: the pitchscreen action should only hit on button release (short press) instead of every button press which made it impossible to get to the hotkey action (long press of the same button) after r27897. Reported in IRC.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27912 a1c6a512-1295-4272-9138-f99709370657
2010-08-28 09:00:19 +00:00
Fred Bauer
cf8f526d16 change get_glyph_size() to font_glyphs_to_bufsize(). fixes a bug when font glyph buffer < font header
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27911 a1c6a512-1295-4272-9138-f99709370657
2010-08-27 18:25:23 +00:00
Teruaki Kawashima
9067fe3031 tweak lrcplayer.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27908 a1c6a512-1295-4272-9138-f99709370657
2010-08-27 13:50:19 +00:00
Teruaki Kawashima
251c8d411a Fix bug adding a playlist to another playlist doesn't finish if it has UTF-8 BOM introduced by r24718.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27906 a1c6a512-1295-4272-9138-f99709370657
2010-08-27 13:16:20 +00:00
Thomas Martitz
2c2e261648 Use system headers a bit more: use host's fcntl.h for O_RDONLY etc.
Removes the need to fix up those in the simulator.

Also work around some posix-mingw incompatibilities (e.g. getcwd()).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27904 a1c6a512-1295-4272-9138-f99709370657
2010-08-27 12:38:25 +00:00