Commit graph

3887 commits

Author SHA1 Message Date
Miika Pekkarinen
b1a5c0ffa9 This should fix the remaining compilation issues.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12928 a1c6a512-1295-4272-9138-f99709370657
2007-03-26 17:58:45 +00:00
Miika Pekkarinen
c284685525 Fixed compilation problems with boostctrl_mtx.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12927 a1c6a512-1295-4272-9138-f99709370657
2007-03-26 17:29:04 +00:00
Miika Pekkarinen
66258a30a4 Make scheduler functions thread safe core wise. A big step towards playback running on COP (not yet possible because more protection on file system level is necessary).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12926 a1c6a512-1295-4272-9138-f99709370657
2007-03-26 16:55:17 +00:00
Robert Kukla
226cb7b0b8 Rating support for database and WPS (based on FS# 6301). A value between 0 and 10 can be assigned to the currently playing track using the WPS context menu. This value is displayed in the WPS using the %rr tag (replacing autoscore) and can be used as "rating" in tagnavi.config (examples provided).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12922 a1c6a512-1295-4272-9138-f99709370657
2007-03-26 15:08:59 +00:00
Jens Arnold
ad4e3d6657 First step of charcell LCD code rework: * Make it fully unicode aware so that adding non-ISO8859-1 scripts becomes possible (limited by the LCD capabilities of course). * Make the API more similar to the bitmap LCD code's API. * Moved hardware dependent parts to target tree. * Simplified code. * Jumpscroll temporarily non-functional.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12916 a1c6a512-1295-4272-9138-f99709370657
2007-03-26 07:52:13 +00:00
Michael Sevakis
165f62d0cd Fix a hole in the scheduler where collisions between waking blocked threads in mutexes with interrupts waking blocked threads in message queues can occur. Queue posts will put the threads on a separate list that is then added to the running list with IRQs disabled on the next task switch or CPU wakeup. Basically no overhead for other operations. Seems a likely cause of my occasional observation of the backlight fade causing playback threads to stop running and a recently reported blocking violation upon USB plugging. Time will tell but banging the backlight on and off frequently hasn't hiccuped again for me on H120.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12915 a1c6a512-1295-4272-9138-f99709370657
2007-03-26 03:24:36 +00:00
Michael Sevakis
8f04faef91 Save a couple bytes in set_irq_level on Coldfire. Should add up to something.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12912 a1c6a512-1295-4272-9138-f99709370657
2007-03-25 20:45:08 +00:00
Tomasz Malesinski
cd630c9e0a PNX0101 changes:
Make PNX0101-specific system.c and crt0.S.
Add new register names from LPC2880 user manual.
Add support for timer.
Enable CPU frequency changing. 


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12904 a1c6a512-1295-4272-9138-f99709370657
2007-03-24 19:26:13 +00:00
Barry Wardell
74b9ec0bbe FS#6860 - Battery calibration for Sansa. Thanks to Matthias Wientapper.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12898 a1c6a512-1295-4272-9138-f99709370657
2007-03-23 10:59:01 +00:00
Michael Sevakis
6d87513aa2 In reponse to a report of a blocking violation, give sync queues a going over and catch any old, obscure leftover issues. A couple spots needed interrupt stopage where there could be confict if an IRQ post wakes a waiting thread because the queue is overflowing. There does appear to be an issue with wakeup_thread, interrupts and running list modification in general.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12895 a1c6a512-1295-4272-9138-f99709370657
2007-03-23 01:00:13 +00:00
Jonathan Gordon
a76947f2a2 Enable usb detection in the sansa bootloader (loads OF if detected)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12888 a1c6a512-1295-4272-9138-f99709370657
2007-03-22 12:45:19 +00:00
Michael Sevakis
0caf3b8cae Update sync queues to use a statically allocated return value in order to facilitate upcoming COP updates.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12881 a1c6a512-1295-4272-9138-f99709370657
2007-03-21 22:58:53 +00:00
Daniel Ankers
5511611622 Fix blitting on Sansa so Mpegplayer works again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12879 a1c6a512-1295-4272-9138-f99709370657
2007-03-21 13:25:30 +00:00
Michael Sevakis
1b4eb5bcf1 Correct some color unpacking macros.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12875 a1c6a512-1295-4272-9138-f99709370657
2007-03-21 09:47:13 +00:00
Barry Wardell
3bf7f29312 Oops, shouldn't have committed this just yet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12866 a1c6a512-1295-4272-9138-f99709370657
2007-03-20 22:19:30 +00:00
Barry Wardell
7cd559dde0 Oops, the mi4 magic was being looked for in the wrong place when decrypting. Also decrease verbosity of PP bootloader a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12865 a1c6a512-1295-4272-9138-f99709370657
2007-03-20 22:18:35 +00:00
Michael Sevakis
3354531614 More logf fixes. speex.c wants to format 64bit args so I didn't change that one nor add any formatting for that.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12858 a1c6a512-1295-4272-9138-f99709370657
2007-03-20 13:53:23 +00:00
Michael Sevakis
e693bc0f5d Oops. Should've used the unsigned local variables.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12857 a1c6a512-1295-4272-9138-f99709370657
2007-03-20 13:45:38 +00:00
Michael Sevakis
658561d135 Add %u and %lu formats to format(). Coming up: logf fixes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12856 a1c6a512-1295-4272-9138-f99709370657
2007-03-20 13:36:03 +00:00
Daniel Ankers
b22e15b2bd Sansa LCD: Make the second framebuffer static
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12849 a1c6a512-1295-4272-9138-f99709370657
2007-03-20 11:19:20 +00:00
Daniel Ankers
15dfcd13ef Improved LCD driver for Sansa. Uses double-buffering to cure the flickering. Stops DMA during device initialization, which should stop the occasional hangs - based on FS#6859 by Antonius Hellmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12848 a1c6a512-1295-4272-9138-f99709370657
2007-03-20 10:52:02 +00:00
Barry Wardell
739ff041ac Do the sprintf .precision format in a safer way.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12846 a1c6a512-1295-4272-9138-f99709370657
2007-03-20 09:52:50 +00:00
Michael Sevakis
600ca577dc Rrrr. Editor shouldn't have left those tabs. Will check settings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12845 a1c6a512-1295-4272-9138-f99709370657
2007-03-19 22:14:10 +00:00
Michael Sevakis
6114f59006 Oops. Left an unneeded test line in SOURCES.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12844 a1c6a512-1295-4272-9138-f99709370657
2007-03-19 22:10:04 +00:00
Michael Sevakis
e1dd10ddfb SWCODEC: Get rid of extra swap buffer and get back 512K of RAM or 100K if the players RAM is <= 1MB. Make any needed changes to things to stabilize and facilitate this including removing flattening out initialization. Comment some things heavily. Fix a few logfs I didn't want to see the compiler complaining about.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12843 a1c6a512-1295-4272-9138-f99709370657
2007-03-19 22:04:17 +00:00
Barry Wardell
58038d86f1 Add support for the .precision format in the sprintf()-like functions to allow limiting the maximum length of a string.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12838 a1c6a512-1295-4272-9138-f99709370657
2007-03-19 10:57:23 +00:00
Dave Chapman
15638dec2e There is no need to hide CONFIG_RTC in the bootloader - it's harmless. Fixes warnings caused by enabling HAVE_RTC_ALARM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12837 a1c6a512-1295-4272-9138-f99709370657
2007-03-18 21:06:19 +00:00
Dave Chapman
f127cd598b The UI sim simulates the RTC, so there is no need to disable it - affects all ipod sims.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12836 a1c6a512-1295-4272-9138-f99709370657
2007-03-18 20:54:33 +00:00
Jens Arnold
cb1c9e447e Archos player: Introduce lcd_write_command_e (only one data byte) in the lcd driver, for cleaner C code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12835 a1c6a512-1295-4272-9138-f99709370657
2007-03-18 17:58:49 +00:00
Magnus Holmgren
01a010fd19 Fix several printf-style warnings in logf builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12830 a1c6a512-1295-4272-9138-f99709370657
2007-03-18 09:50:53 +00:00
Barry Wardell
e293bbb451 If loading rockbox.mi4 fails, then drop back to trying rockbox.h10/rockbox.e200 instead. This will allow the new bootloader to be used with older rockbox builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12824 a1c6a512-1295-4272-9138-f99709370657
2007-03-17 19:07:20 +00:00
Jens Arnold
f68362ad6f Fix simulator builds, and some debugf() format strings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12817 a1c6a512-1295-4272-9138-f99709370657
2007-03-17 09:54:28 +00:00
Miika Pekkarinen
75e1fd718f Fixed the logf builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12816 a1c6a512-1295-4272-9138-f99709370657
2007-03-17 09:38:25 +00:00
Jens Arnold
79c8a8cbbe Let GCC check arguments of some more printf-style functions, also for plugins and codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12815 a1c6a512-1295-4272-9138-f99709370657
2007-03-17 09:02:53 +00:00
Jens Arnold
2c7b127dd7 Set CONFIG_RTC to 0 for non-RTC targets, and check with #if to profit from -Wundef. No code change.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12811 a1c6a512-1295-4272-9138-f99709370657
2007-03-16 23:47:03 +00:00
Jens Arnold
85a226d4e7 Rename some macros to account for the recently added M5 port. No code changes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12809 a1c6a512-1295-4272-9138-f99709370657
2007-03-16 23:02:39 +00:00
Barry Wardell
b8a5adfcdb Partition type 0x84 is "OS/2 hidden C: drive"
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12805 a1c6a512-1295-4272-9138-f99709370657
2007-03-16 14:41:55 +00:00
Michael Sevakis
a2ee6a6681 FM Radio mishmash: Make a quieter screen for the SWCODEC targets esp. for the benefit of x5; I wasn't sure if it was good to alter timeouts for HW codec. Simplify things and prepare for eventual scanning and tuning changes (which should help quiet x5 down even more). Make things behave themselves better in general. Enable SWCODEC FM Recording menu and screen for sim as a bonus.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12804 a1c6a512-1295-4272-9138-f99709370657
2007-03-16 14:40:40 +00:00
Barry Wardell
14ed3ca8d8 In preparation for use with sansapatcher, change portalplayer bootloaders to read firmwares in mi4 format.
When loading the OF:
1) first try to load from a hidden disk partition
2) try loading /System/OF.mi4
3) finally fall back to loading /System/OF.bin which is what the old bootloader used.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12802 a1c6a512-1295-4272-9138-f99709370657
2007-03-16 14:28:00 +00:00
Barry Wardell
1146418494 Fix problem where power_off() on the H10 returns before the device is actually powered off.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12801 a1c6a512-1295-4272-9138-f99709370657
2007-03-16 13:52:16 +00:00
Linus Nielsen Feltzing
0379588361 Jan 1 1980 was a tuesday
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12789 a1c6a512-1295-4272-9138-f99709370657
2007-03-15 22:25:04 +00:00
Barry Wardell
73106a2a69 Fix problem where power_off() on the Sansa returns before the device is actually powered off.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12788 a1c6a512-1295-4272-9138-f99709370657
2007-03-15 22:17:09 +00:00
Jens Arnold
39e1b59c48 Fixed backlight voltage for M5. Now the backlight is as bright as in the original firmware.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12787 a1c6a512-1295-4272-9138-f99709370657
2007-03-15 19:08:24 +00:00
Michael Sevakis
6c8772d6db x5/M5: Finally get rid of filter selection aberrations when switching to 88.2kHz sampling rate which affected both the DAC and ADC. Turning off the DAC and ADC before changing the internal codec frequency seems to cure the remaining glitch of the filters not being correctly selected by the TLV320. Some FIFO reset changes that help keep it stable as well. Supporting 88.2KHz on iAudio has been a tricky ordeal. Also made sure to ok the HW tone controls on iRiver. :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12757 a1c6a512-1295-4272-9138-f99709370657
2007-03-14 10:06:57 +00:00
Michael Sevakis
abf41e3481 H100 Series: Fix FS#6810 - Distortion on Bass/Treble usage. Coldfire PCM needed a refinement in the init sequence for the UDA1380 after audio init changes. Apparently it doesn't like its registers altered before the Coldfire I2S is properly initialized.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12752 a1c6a512-1295-4272-9138-f99709370657
2007-03-13 15:05:46 +00:00
Barry Wardell
7f4f9aead7 Improved ADC driver for AS3514 (used in PP5024 - ie. Sansa e200) based off datasheet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12745 a1c6a512-1295-4272-9138-f99709370657
2007-03-13 01:50:13 +00:00
Barry Wardell
9e56b15e80 Fix typo. We only need to keep bit 6 set on HPH_OUT_L. Setting it on HPH_OUT_R does something completely different and probably not wanted.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12743 a1c6a512-1295-4272-9138-f99709370657
2007-03-12 23:48:00 +00:00
Barry Wardell
2370998a87 Disable bootloader messages in the H10 and Sansa bootloaders unless the PLAY (on H10) or RIGHT (on Sansa) button is being held. Messages are still displayed if an error occurs. This has already been implemented for iPod bootloaders, but still needs implementing for the other bootloaders.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12742 a1c6a512-1295-4272-9138-f99709370657
2007-03-12 22:12:20 +00:00
Nils Wallménius
62dbd97e90 Sorted and updated FILES for both apps and firmware, included features.txt preparing for the lang v2 cleanup, should fix FS# 6805 unless Lear's previous committ got it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12741 a1c6a512-1295-4272-9138-f99709370657
2007-03-12 21:31:06 +00:00
Magnus Holmgren
9fe79f183f Add missing files (for Archos and iRiver M5) to the source archive.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12739 a1c6a512-1295-4272-9138-f99709370657
2007-03-12 17:42:12 +00:00