summaryrefslogtreecommitdiff
path: root/firmware
AgeCommit message (Collapse)Author
2010-06-07as3525v1: fix r26444 which broke mic recordingRafaël Carré
preventing the DMA callback to advance in the recording buffer is not enough in pcm_rec_dma_get_peak_buffer() we need to prevent it interrupting us while we are copying the left channel data into the right channel git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26663 a1c6a512-1295-4272-9138-f99709370657
2010-06-06fix typo in r26245 (I guess not many people use rtc_alarm with gigabeat f)Robert Kukla
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26635 a1c6a512-1295-4272-9138-f99709370657
2010-06-06Use atomic GPIO manipulation where appropriate.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26632 a1c6a512-1295-4272-9138-f99709370657
2010-06-06sd-as3525v2: check the (supposedly) card data line for business when writingRafaël Carré
Fix panics when deleting large files from µSD Tested on problematic Transcend 4GB Class 6 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26631 a1c6a512-1295-4272-9138-f99709370657
2010-06-06Don't initialise disk_* for the sim, and make sure disk.c isn't built at allFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26630 a1c6a512-1295-4272-9138-f99709370657
2010-06-06Make disk_init() non-static again. I forgot to look at the bootloadersFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26629 a1c6a512-1295-4272-9138-f99709370657
2010-06-06Remove card_enable_monitoring() and use a mutex instead. The ↵Frank Gevaerts
card_enable_monitoring() method actually didn't eliminate the possible race conditions it was meant to fix. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26627 a1c6a512-1295-4272-9138-f99709370657
2010-06-06USB charging support for iPods.Torne Wuff
This adds proper full speed charging support for iPod 4G, Color, Mini 1G, Mini 2G, Nano 1G, and Video. Nano 2G already has support, so now all ipods charge (except 1G-3G whose hardware doesn't support USB charging). USB charging defaults to on, but will only charge at full speed from a USB host. To charge from an AC charger, you need to set the USB charging mode to "force". It may be possible to detect AC chargers in a future version, at least on some models. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26626 a1c6a512-1295-4272-9138-f99709370657
2010-06-06Fix most reds, I have no idea what's wrong with the gigabeats (yet).Thomas Martitz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26619 a1c6a512-1295-4272-9138-f99709370657
2010-06-06Move target-simulating specific keymaps out of button-sdl.c into a file perThomas Martitz
keypad. Copyright is restored for each keymap according to git blame. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26615 a1c6a512-1295-4272-9138-f99709370657
2010-06-05Put an #ifdef in the technically correct place. No functional change.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26599 a1c6a512-1295-4272-9138-f99709370657
2010-06-05remane hotswap.* to sdmmc.*. The contents have nothing at all to do with ↵Frank Gevaerts
hotswapping things git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26598 a1c6a512-1295-4272-9138-f99709370657
2010-06-05Fix wrongly nested commentingFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26597 a1c6a512-1295-4272-9138-f99709370657
2010-06-05Fix EOL styleFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26596 a1c6a512-1295-4272-9138-f99709370657
2010-06-05New USB charging system, part 2 - "Force" charging modeTorne Wuff
Enable support for the "force" mode of USB charging. This should work on Gigabeat S and Nano2g (and any other future target which has a RB usb stack and supports charging) - if a host connection is not detected within 10 seconds of USB insertion, assume that the connected device is an AC charger and charge anyway, if the user has specified "force" as the mode. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26594 a1c6a512-1295-4272-9138-f99709370657
2010-06-05Mini2440: Fix simulator. It's touchscreen so there's button clashes when ↵Thomas Martitz
trying to map the 6 hw buttons as well. Just remove that for now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26590 a1c6a512-1295-4272-9138-f99709370657
2010-06-05Move delay a bit in dbop_read_input for ams sansa targets using the DBOP ↵Bertrik Sikken
port for button readout git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26585 a1c6a512-1295-4272-9138-f99709370657
2010-06-05Implement backlight brightness for iPod G4 greyscale and iPod Color/Photo.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26573 a1c6a512-1295-4272-9138-f99709370657
2010-06-05New USB charging system, part 1 - API rework and user-visible setting updateTorne Wuff
1) "Charge during USB connection" option is now tristate: off/on/force. Currently "force" behaves just like "on", but in future it will allow charging even when it was not possible to positively identify a charger. 2) The H300 code has been adjusted to use the new system but there should be no functional differences, it already had the USB charging option and its USB/charging support is hardware controlled. 3) The Gigabeat S code has been adjusted to use the new system: the player now has the USB charging option, which wasn't previously available. The player will only charge at full speed when allowed to do so by a working USB host, so USB AC adapters won't work very well; however, they didn't work before either, so this is not a change in functionality. 4) The iPod Nano 2G code has been adjusted to use the new system: it already had the USB charging option. Using a USB AC adapter won't charge at full speed any more (it did before) - the old implementation was equivalent to the not-yet-implemented "force" option in the new system. No other target should be affected. Support for the "force" mode and support for at least some other iPod models will come in a future commit :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26570 a1c6a512-1295-4272-9138-f99709370657
2010-06-04Port greylib blitting optimisation to clipv2 and Clip+. Actual speedup can't ↵Jens Arnold
be measured because something is fishy with the cpu clocking (calculated load is negative??) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26562 a1c6a512-1295-4272-9138-f99709370657
2010-06-04Port greylib blitting optimisation to clipv1.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26557 a1c6a512-1295-4272-9138-f99709370657
2010-06-03Using void instead of unsigned char fixes the strict-aliasing warnings with ↵Tobias Diedrich
-Os and gets rid of some casts. And we already use void pointer arithmetic in several other places. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26518 a1c6a512-1295-4272-9138-f99709370657
2010-06-03sd-as3525v1: do not disable peripheral clocks in sd_enable()Rafaël Carré
(forward port of r26481 + cosmetics) This lead to freezes under various conditons (bug report: FS#11267) Battery life is almost not (if at all) affected: - between 4 and 8 minutes less runtime for fuzev1 - 9 minutes less runtime for c200v2 (2 minutes difference on a 2 hours run) Additional verifications of the runtime (including on other models) wouldn't hurt git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26512 a1c6a512-1295-4272-9138-f99709370657
2010-06-02Fix PP5002 builds. Somehow an #else went missing along the line.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26480 a1c6a512-1295-4272-9138-f99709370657
2010-06-02Threading: Split processor support code into respective target files. C ↵Michael Sevakis
files from /target/xxx are included into thread.c because of essential inlining and files are code, not declarations. Copyrights in each new file go to whoever implemented the first functional support. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26479 a1c6a512-1295-4272-9138-f99709370657
2010-06-01Prevent a race condition when writing VIC_INT_EN_CLEAR. Should be very ↵Tobias Diedrich
difficult to hit in this case though... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26451 a1c6a512-1295-4272-9138-f99709370657
2010-06-01as3525 ascodec: make internal functions statics and remove some details for ↵Rafaël Carré
ascodec-target.h header reorder static functions to avoid the need for early prototypes panic if the INT_AUDIO callback could not read the 3 IRQ_ENRD registers git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26445 a1c6a512-1295-4272-9138-f99709370657
2010-06-01as3525 PCM: implement locking like done for the gigabeats in r26341Rafaël Carré
this removes workaround for spurious interrupts added in r26316 side effect: make keyclicks work correctly when used intensively (with the scrollwheel for example), the clicks should be inserted fast enough for the PCM fifo to not become empty. PL190 can cause spurious interrupts if an interrupt is triggered by a peripheral shortly before the interrupt for this peripheral is cleared from VIC registers. As an effect we should only write in VIC_INT_EN_CLEAR after having disabled the source of the interrupt in the peripheral. references on PL190 spurious interrupts: - http://www.embeddedrelated.com/groups/lpc2000/show/14599.php - http://water.cse.unsw.edu.au/esdk/lpc2/spurious-irq.html git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26444 a1c6a512-1295-4272-9138-f99709370657
2010-06-01sd-as3525v1: set up bank selection data outside of the loopRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26441 a1c6a512-1295-4272-9138-f99709370657
2010-05-31Enable IRAM on TCC7801 (Cowon D2) for a 6-12% speedup in codecs that use it, ↵Rob Purchase
and a small increase in battery life. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26436 a1c6a512-1295-4272-9138-f99709370657
2010-05-31Port the greylib blitting optimisation to m:robe 100. It's even more ↵Jens Arnold
efficient on monochrome LCDs - about 20% ISR speedup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26435 a1c6a512-1295-4272-9138-f99709370657
2010-05-31Smaller & faster greylib blitting on iriver H1x0 and iAudio M5, based on the ↵Jens Arnold
ARM version but using mulu.l for the bit shuffling. ISR speedup is ~10%. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26434 a1c6a512-1295-4272-9138-f99709370657
2010-05-31ARM: use BX when branch to an address in registerRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26432 a1c6a512-1295-4272-9138-f99709370657
2010-05-31rolo: use BX for ARM branchesRafaël Carré
This is equivalent to mov pc Remove an instruction from the asm() for PP cop restart : use register constraint git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26431 a1c6a512-1295-4272-9138-f99709370657
2010-05-30Smaller & faster grey blitting on greyscale ipods, based on an idea by Mike ↵Jens Arnold
Sevakis. ISR speedup on all greyscale iPods except Mini 2nd Gen is ~10%. No speedup on the latter, because the serial transfer is the limiting factor. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26422 a1c6a512-1295-4272-9138-f99709370657
2010-05-30Update Samsung YP-S3 bootloader demoBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26417 a1c6a512-1295-4272-9138-f99709370657
2010-05-30Fix FS#9193. Remove recording source <Mic> for iPod Video and iPod nano 1G. ↵Andree Buschmann
The manual already describes the correct behaviour. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26414 a1c6a512-1295-4272-9138-f99709370657
2010-05-30Submit FS#11240 by Raphael Jakse. Allows to reduce volume on WM8985 to -89 ↵Andree Buschmann
dB (e.g. used for Cowon D2). Below -57 dB the line out is affected. The manual is updated accordingly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26413 a1c6a512-1295-4272-9138-f99709370657
2010-05-30inttypes.h: remove excessive PRI*PTR declaration when long isn't 64 bitsRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26412 a1c6a512-1295-4272-9138-f99709370657
2010-05-30inttypes.h: add (some) iso c99 fprintf format specifiersRafaël Carré
Skipped the specifiers for octal, (u)int_leastN_t, (u)int_fastN_t and (u)intmax_t as we don't use them in rockbox Specifiers use the types specified in stdint.h Specifiers for short (16 bits) and char (8 bits) use the int specifier, our format.c doesn't know about 'h' and 'hh' git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26411 a1c6a512-1295-4272-9138-f99709370657
2010-05-29fuze*/e200v2 YUV lcd code: remove a useless instruction forgotten in r21795Rafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26399 a1c6a512-1295-4272-9138-f99709370657
2010-05-29No need to break after a returnFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26398 a1c6a512-1295-4272-9138-f99709370657
2010-05-29Commit FS#10887 by me. Change the check for software poweroff to be that ↵Michael Giacomelli
the power button is held, not that the power button is held AND that no other button is held. This makes shutting down players with small tightly spaced buttons (Sandisk...) much easier. This also means that combos involving the power button can now potientially power off the player. The H10 and sansas excluding the Fuze use a combo involving power for AB repeat mode. However, the timeout for shutdown is much longer then the long press duration needed for AB repeat, and in practice seems to not be a problem on these players. I've tested this on various players for a long time and bugged other people to try it out, so I think its pretty safe, but if theres problems it can be reverted or keymaps tweaked. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26397 a1c6a512-1295-4272-9138-f99709370657
2010-05-29fix broken case handling in storage_present() and storage_removable(). Those ↵Frank Gevaerts
were buggy for targets with a hotswappable drive *and* more than one storage driver (i.e. only the D2 was probably affected) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26395 a1c6a512-1295-4272-9138-f99709370657
2010-05-29Fuze: don't change gate scan position if lcd_set_flip() is not usedRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26387 a1c6a512-1295-4272-9138-f99709370657
2010-05-29cpucache_invalidate: use bx reg instead of mov pc, reg to returnRafaël Carré
Using BX has the effect to set the T bit, so it can return to a thumb function With this change, rockbox runs fine on Clipv2 built with -mthumb (for most files which don't use inline 32 bits ARM assembly) Some other places use code which change the T bit on armv5 but not on armv4 so armv4 won't run See FS#6734 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26386 a1c6a512-1295-4272-9138-f99709370657
2010-05-29e200v2: revert r26353Rafaël Carré
invert setting isn't remembered when backlight goes off and lcd_enable() is ran again git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26374 a1c6a512-1295-4272-9138-f99709370657
2010-05-29Fuzev1/v2 : lcd_set_flip()Rafaël Carré
FS#11329 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26372 a1c6a512-1295-4272-9138-f99709370657
2010-05-28sd-as3525.c: Do not wait for TRAN state after transfer is over.Jack Halpin
Waiting for TRAN state after the end of the transfer caused writing problems for some uSD cards. Removing this wait returns write functionality to those cards. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26365 a1c6a512-1295-4272-9138-f99709370657
2010-05-28Apply FS#9194 - LCD invert for Sansa c200/c200v2Bertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26362 a1c6a512-1295-4272-9138-f99709370657