summaryrefslogtreecommitdiffstats
path: root/firmware
AgeCommit message (Collapse)AuthorFilesLines
2005-10-28USB power mode: Made the code ignore the power button (On for recorder ↵Jens Arnold1-1/+3
fm/v2, OnOff for Ondio) to make it easier to enter USB power mode at startup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7674 a1c6a512-1295-4272-9138-f99709370657
2005-10-22Seeking support for AC3/A52 files. We assume they are always CBR.Dave Chapman1-0/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7650 a1c6a512-1295-4272-9138-f99709370657
2005-10-22Coldfire: slight optimisations of memset().Jens Arnold1-12/+10
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7649 a1c6a512-1295-4272-9138-f99709370657
2005-10-20Now correctly interrupting the dircache rebuilding.Miika Pekkarinen1-2/+23
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7645 a1c6a512-1295-4272-9138-f99709370657
2005-10-19Two new sections for IRAM usage: .irodata (selectable with the ICONST_ATTR ↵Jens Arnold8-67/+132
attribute macro), allowing to put 'const' data into IRAM without causing a section type conflict, and .ibss (selectable with the IBSS_ATTR attribute macro) for uninitialised data. * Rockbox core: Adjusted the linker scripts and init code to not include the .ibss section in the binary, it is cleared instead. Saves ~500 bytes on archos and ~30KB on iriver. Codecs and plugins don't handle .ibss in a special way yet. * The init code properly handles empty sections now (except .stack, which should never be empty). * Unified the init code for SH1 and coldfire a bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7644 a1c6a512-1295-4272-9138-f99709370657
2005-10-18Coldfire: More compact init code.Jens Arnold1-20/+14
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7641 a1c6a512-1295-4272-9138-f99709370657
2005-10-18SH1: More compact init code, only doing the special vector copy for debug ↵Jens Arnold1-39/+33
builds. All: Added correct section flags for .init.text git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7640 a1c6a512-1295-4272-9138-f99709370657
2005-10-18H110/H115: Slightly longer initial SDRAM refresh cycle, correct comment.Jens Arnold1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7639 a1c6a512-1295-4272-9138-f99709370657
2005-10-14Removed unused variable.Jens Arnold1-2/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7630 a1c6a512-1295-4272-9138-f99709370657
2005-10-14Coldfire: (1) Keep the correct CRSEL and CLSEL values in the PLLCR register ↵Jens Arnold1-1/+4
for CPUFREQ_DEFAULT. Fixes non-working treble & bass controls in radio screen. (2) Save a bit more power by powering down the PLL at CPUFREQ_DEFAULT. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7629 a1c6a512-1295-4272-9138-f99709370657
2005-10-13Fixed non-working treble & bass settings in radio mode.Jens Arnold1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7625 a1c6a512-1295-4272-9138-f99709370657
2005-10-10Iriver: No write protection for flash ROM area, correct number of waitstates.Jens Arnold2-5/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7611 a1c6a512-1295-4272-9138-f99709370657
2005-10-09Do not try to read from dircache if directory was opened when cache was notMiika Pekkarinen1-4/+5
available. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7602 a1c6a512-1295-4272-9138-f99709370657
2005-10-08Ported the memory guard debug feature to coldfire, using the breakpoint ↵Jens Arnold1-164/+137
logic. There are 3 shortcomings compared to SH1: (1) While the setting itself survives RoLo, it cannot be read back because the debug module programming model is write only. (2) system_reboot() from a 'Debug' exception doesn't work because the CPU enters emulation mode, and the only way leaving this mode is via an rte instruction. (3) (fixable) Catching write accesses to the flash doesn't actually do anything because the flash memory area is set write protected in CSMR2, so a write attempt stalls the bus. * Cosmetic changes in system.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7600 a1c6a512-1295-4272-9138-f99709370657
2005-10-08Fixed a problem with dircache where filetree modified dircacheMiika Pekkarinen3-6/+14
structures directly. Moved #ifdef directly to SOURCES instead of dircache.c to decide whether to compile the cache or not. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7599 a1c6a512-1295-4272-9138-f99709370657
2005-10-07Fixed the bootloader compile failure by disabling new directory cacheMiika Pekkarinen1-1/+1
from bootloader builds (there is not much IRAM space in bootloader for unnecessary code). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7589 a1c6a512-1295-4272-9138-f99709370657
2005-10-07Implemented directory caching. No more waiting for disk to spin up whileMiika Pekkarinen7-4/+931
browsing when cache is enabled (system -> disk -> enable directory cache). Cache building on boot is transparent except the first boot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7588 a1c6a512-1295-4272-9138-f99709370657
2005-10-06Cosmetic correction (doesn't affect compiled code) - use letohNN instead of ↵Dave Chapman1-4/+4
htoleNN in update_fat_entry() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7586 a1c6a512-1295-4272-9138-f99709370657
2005-10-06Fix channel-swapping bug in iriver recordings. Left and Right channels ↵Dave Chapman1-3/+3
should now be correctly written to the WAV file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7585 a1c6a512-1295-4272-9138-f99709370657
2005-10-06Replace SWAB16 and SWAB32 with a comprehensive set of byte-swap macros - ↵Dave Chapman4-44/+83
letoh16, letoh32, htole16, htole32, betoh16, betoh32, htobe16 and htobe32 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7584 a1c6a512-1295-4272-9138-f99709370657
2005-10-03iRiver: remove some code that isn't needed any more.Magnus Holmgren1-67/+17
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7578 a1c6a512-1295-4272-9138-f99709370657
2005-10-03Coldfire: New timer handling on CPU frequency change, adjusting the ↵Jens Arnold6-37/+78
prescaler on the fly, for both tick and user timer. Precondition is that the higher frequencies are integer multiples of the base: now NORMAL is 45 MHz and MAX is 124 MHz. Removes the need for applications with longer timer periods (>= 10 ms) to boost the CPU all the time, e.g. the grayscale lib. Timer counts are now always based on the base frequency (CPU_FREQ). * Adjusted the RAM refresh timers to the new frequencies (all frequencies for H100) * All: Fixed the tick timer count being off by one. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7576 a1c6a512-1295-4272-9138-f99709370657
2005-09-30Ooops, forgot to fix that comment.Jens Arnold1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7572 a1c6a512-1295-4272-9138-f99709370657
2005-09-30H1x0: Changed lcd_blit() and the grayscale library to use the same internal ↵Jens Arnold1-3/+28
format as on archos (1bpp). While the slowdown of the ISR is minimal (the intermediate buffers are in IRAM), the planar grayscale buffer takes only half the space for a given depth, and gray_update[_rect]() and unbuffered drawing/scrolling are faster because less data needs to be moved. It should also make porting of video.rock somewhat easier. * Archos recorders, Ondios: Some slight optimisations of the grayscale library. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7571 a1c6a512-1295-4272-9138-f99709370657
2005-09-25Rather obvious simplification of the mpeg frametime fraction calculation.Jens Arnold1-13/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7562 a1c6a512-1295-4272-9138-f99709370657
2005-09-24H1x0 radio: Fixed the volume changing issue with non-flat tone controls.Jens Arnold1-11/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7554 a1c6a512-1295-4272-9138-f99709370657
2005-09-24H1x0: More precise tuning; corrected xtal frequency in comments + #defines.Jens Arnold3-6/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7553 a1c6a512-1295-4272-9138-f99709370657
2005-09-22Add ALAC audio typeDave Chapman2-0/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7548 a1c6a512-1295-4272-9138-f99709370657
2005-09-22Reverse previous commit - it had uneffected side-effects.Jonas Häggqvist1-6/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7546 a1c6a512-1295-4272-9138-f99709370657
2005-09-22Fix to remote-hold check by Stephan Wezel - it always returned true when the ↵Jonas Häggqvist1-1/+6
remote wasn't present. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7538 a1c6a512-1295-4272-9138-f99709370657
2005-09-15Archos recording/playback: (1) Xing header creation: * Now estimates the ↵Jens Arnold4-66/+78
framecount from the recording time if the MAS frame counter saturates, so it always writes a valid Xing header. * Reverted my brainless short-xing-header change. This was only valid for layer 3. (2) Xing/VBRI header evaluation: Fixed possible overflow in bitrate calculation. (3) MPEG thread: Avoid double chunk size limiting for the rare case of 8 MB modded Ondios. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7522 a1c6a512-1295-4272-9138-f99709370657
2005-09-14The power thread now monitors the shutdown process and forces a poweroff if ↵Linus Nielsen Feltzing3-14/+24
it takes more than 8 seconds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7517 a1c6a512-1295-4272-9138-f99709370657
2005-09-12Safety net for devices with no hardware poweroff mechanism - hold STOP for ↵Linus Nielsen Feltzing1-0/+7
several seconds to force a poweroff if the normal shutdown fails git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7512 a1c6a512-1295-4272-9138-f99709370657
2005-09-12Fixed compiler error in the X11 iriver simulatorLinus Nielsen Feltzing1-0/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7511 a1c6a512-1295-4272-9138-f99709370657
2005-09-12Now panicf() shuts off the hard drive and lowers the CPU frequency, it also ↵Linus Nielsen Feltzing2-1/+29
reboots if ON is pressed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7510 a1c6a512-1295-4272-9138-f99709370657
2005-09-10Reworked handling of MPEG audio frame & file info: * Fixed frame size ↵Jens Arnold5-146/+125
calculation for layer 1 (all versions) and layer 2 (V2/V2.5). * Exact frame time (expressed as a fraction) for way more precise playtime calculation at 44100/22050/11025Hz sample frequency. * Exact playtime<->position conversion for CBR also used for resume position. * More compact code, long policy. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7505 a1c6a512-1295-4272-9138-f99709370657
2005-09-09Exact song length calculation for CBR mpeg audio files (without Info header).Jens Arnold1-6/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7502 a1c6a512-1295-4272-9138-f99709370657
2005-09-08The previous commit had a distressing lack of words. This time I deliver the ↵Jonas Häggqvist1-3/+4
promised Christian Gangsta Rap. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7500 a1c6a512-1295-4272-9138-f99709370657
2005-09-07Added support for additional ID3v1 genres, including such gems as "Christian ↵Jonas Häggqvist1-1/+5
gangsta rap" and "Negerpunk". git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7499 a1c6a512-1295-4272-9138-f99709370657
2005-09-07coldfire_set_macsr(): (1) The argument isn't necessarily constant. (2) Let ↵Jens Arnold1-2/+2
the compiler choose whether to use a register or an immediate. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7491 a1c6a512-1295-4272-9138-f99709370657
2005-09-07Adds a filename sanity check to add_dir_entry that at the moment only checks ↵Jonas Häggqvist1-2/+20
for names ending in a period, but can easily be extended. Changes the error codes for add_dir_entry. Fixes bug #782248. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7487 a1c6a512-1295-4272-9138-f99709370657
2005-09-07Adapted codecs and DSP system to having MACSR saved in thread context.Thom Johansen1-2/+15
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7485 a1c6a512-1295-4272-9138-f99709370657
2005-09-06Moved the system_reboot() call to the correct placeLinus Nielsen Feltzing1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7483 a1c6a512-1295-4272-9138-f99709370657
2005-09-06Ondio FM: Removed S/PDIF option for recording source, as the Ondio doesn't ↵Jens Arnold3-0/+9
have S/PDIF input. Bumped config block version so save your settings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7482 a1c6a512-1295-4272-9138-f99709370657
2005-09-06Call system_reboot() instead of rolo_load() in the UIE handlerLinus Nielsen Feltzing1-2/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7479 a1c6a512-1295-4272-9138-f99709370657
2005-09-06For targets without an RTC, use the rockbox build date as the start date in ↵Jens Arnold2-3/+11
the FAT driver. No more 2003-08-01 files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7478 a1c6a512-1295-4272-9138-f99709370657
2005-09-06Changed WPS enum conditional functionality, displaying the last part in the ↵Linus Nielsen Feltzing1-0/+2
list if the tag has no value. Also added enum support for battery (5 steps) and volume (10 steps). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7476 a1c6a512-1295-4272-9138-f99709370657
2005-09-05Archos recording: yield() within audio_beep() to avoid starving the mpeg ↵Jens Arnold1-1/+2
thread; recording beep should no longer disturb prerecording. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7475 a1c6a512-1295-4272-9138-f99709370657
2005-09-04Archos recording: Always prepend ID3V2 and Xing header to a recording file, ↵Jens Arnold4-171/+184
even with prerecording and file splitting. Adjusted Xing header creation to create smaller headers. Fixed missing break; in the mpeg thread. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7472 a1c6a512-1295-4272-9138-f99709370657
2005-09-02Fixed associate problem with file extensions (.info files matched .nfo ↵Henrik Backe10-20/+20
extension) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7456 a1c6a512-1295-4272-9138-f99709370657