summaryrefslogtreecommitdiff
path: root/firmware (follow)
Commit message (Collapse)AuthorAge
...
* Buflib: Stop caching the first unallocated block. It has little benefit but ↵Thomas Martitz2011-09-09
| | | | | | is complicated to keep up-to-date. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30487 a1c6a512-1295-4272-9138-f99709370657
* Buflib: Handle not having enough space for new handles (fixes FS#12265).Thomas Martitz2011-09-09
| | | | | | | | | | Handles are allocated at the end, growing downwards. The tiny allocations from r30478 broke buflib, since it was assumed that the only shrinkable allocation (the audiobuffer) is the very last allocation. The tiny allocations however fit into the reserve buffer for new handles, breaking the above assumption, and they can't shrink to make room for handles. Now, move any allocations before audiobuf (or shrink audiobuf like before) to make room for handles. This also unifies some duplicated code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30486 a1c6a512-1295-4272-9138-f99709370657
* Exit of SDL_WaitEvent() returns an error.Thomas Martitz2011-09-08
| | | | | | It doesn't appear recoverable, but instead only spams the commandline. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30482 a1c6a512-1295-4272-9138-f99709370657
* Remove unecessary castingThomas Martitz2011-09-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30470 a1c6a512-1295-4272-9138-f99709370657
* Buflib: Clarification about invalid handlesThomas Martitz2011-09-07
| | | | | | | | * Enhance allocation function comments to better state the return value and what an invalid value is * Change clients to check for "< 0" instead of "<= 0" or "== 0" * Return -1 or -2 depending on the exact failure in buflib_alloc_ex. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30469 a1c6a512-1295-4272-9138-f99709370657
* sansa clipzip: fix lcd init delay (remove lcd_delay and replace it with a sleep)Bertrik Sikken2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30465 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - update firmware/SOURCESMarcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30457 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - enable cacheMarcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30456 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - update config filesMarcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30455 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - adjust core files for rk27xx internal codecMarcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30454 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - arm7ej-s doesn't have MMU/MPU (just like arm7tdmi)Marcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30453 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - disable core_sleep() as it simply hangs when cache is enabled for ↵Marcin Bukat2011-09-06
| | | | | | unknown reason. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30452 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - implement cache handling functionsMarcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30451 a1c6a512-1295-4272-9138-f99709370657
* rk27xx adc - fix function nameMarcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30450 a1c6a512-1295-4272-9138-f99709370657
* remove references to ipod nano 2g rom ata-nand-rk27xx.cMarcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30449 a1c6a512-1295-4272-9138-f99709370657
* add lcd_blit_yuv() stub to the rk27xx lcd driverMarcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30448 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - tweak a bit sd driver and add some debuging codeMarcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30447 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - app linker scriptMarcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30445 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - implement pcm driver.Marcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30444 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - basic power management related functionsMarcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30443 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - nand stubMarcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30442 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - implement driver for usb controller in rk27xx. This does not quite ↵Marcin Bukat2011-09-06
| | | | | | work now because of the way how controller and our usb stack are implemented. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30441 a1c6a512-1295-4272-9138-f99709370657
* rk27xx - implement dbg_hw_info() and dbg_ports()Marcin Bukat2011-09-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30440 a1c6a512-1295-4272-9138-f99709370657
* Implement driver for internal codec in rk27xx (shCODlp-100.01-HD IP core ↵Marcin Bukat2011-09-06
| | | | | | from Dolphin) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30439 a1c6a512-1295-4272-9138-f99709370657
* imx233/fuze+: implement user time api, implement a stub function, protect ↵Amaury Pouly2011-09-06
| | | | | | timrot against irq git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30437 a1c6a512-1295-4272-9138-f99709370657
* imx233/fuze+: fix apps linker script, add comment in bootloaderAmaury Pouly2011-09-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30436 a1c6a512-1295-4272-9138-f99709370657
* imx233/fuze+: don't reboot after usb more, enter usb more after storage ↵Amaury Pouly2011-09-05
| | | | | | init, remove useless printf git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30434 a1c6a512-1295-4272-9138-f99709370657
* usb: make sure device init happens *after* queue/thread creationAmaury Pouly2011-09-05
| | | | | | Albeit unlikely, usb_init_devide() could cause de transfer completion before queue creation and the core would push onto a uninitialized queue ! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30433 a1c6a512-1295-4272-9138-f99709370657
* imx233:fuze+: major memory and usb reworkAmaury Pouly2011-09-05
| | | | | | | | | | | - now identity map dram uncached and have a cached and buffered virtual alias - rework dma to handle virtual to physical pointers conversion - fix lcd frame pointer - implement usb detection properly - implement bootloader usb properly - allow the bootloader to disable MMC windowing (useful for recovery) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30432 a1c6a512-1295-4272-9138-f99709370657
* Rework c200wipe to use proper partitioning and formatting code, which makes ↵Frank Gevaerts2011-09-02
| | | | | | | | | the code size-independent. Also support the e200 with this code. Apparently it's also possible to get the e200 in a state where .fmt files don't help. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30413 a1c6a512-1295-4272-9138-f99709370657
* sansa clipzip: annotate lcd registersBertrik Sikken2011-09-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30411 a1c6a512-1295-4272-9138-f99709370657
* sansa clipzip: add lcd_brightness function (to be used later to set the ↵Bertrik Sikken2011-09-02
| | | | | | 'backlight' brightness) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30410 a1c6a512-1295-4272-9138-f99709370657
* sansa clipzip: implement lcd reset in the lcd driverBertrik Sikken2011-09-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30408 a1c6a512-1295-4272-9138-f99709370657
* sansa clipzip: implement lcd_enableBertrik Sikken2011-09-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30407 a1c6a512-1295-4272-9138-f99709370657
* Oops. "void void" doesn't work in C :p.Michael Sevakis2011-09-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30404 a1c6a512-1295-4272-9138-f99709370657
* Shuffle some functions around so that interfacing with playback.c in ↵Michael Sevakis2011-09-01
| | | | | | particular isn't required. Though playback does finish the audio init, pcm doesn't care who does it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30403 a1c6a512-1295-4272-9138-f99709370657
* Dircache: Allow dircache to be enabled without reboot.Thomas Martitz2011-08-30
| | | | | | | Also add two dircache function, one of which does what dircache_disable() did previously as this now also frees the dircache buffer. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30393 a1c6a512-1295-4272-9138-f99709370657
* sansa clipzip: implement backlightBertrik Sikken2011-08-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30390 a1c6a512-1295-4272-9138-f99709370657
* sansa clipzip: fix bounds check/correction in lcd_update_rectBertrik Sikken2011-08-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30389 a1c6a512-1295-4272-9138-f99709370657
* Fix last yellows.Thomas Martitz2011-08-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30385 a1c6a512-1295-4272-9138-f99709370657
* Fix h100 red and other warnings.Thomas Martitz2011-08-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30384 a1c6a512-1295-4272-9138-f99709370657
* GSoC/Buflib: Enable compaction in buflib.Thomas Martitz2011-08-30
| | | | | | | | | | | | | | | | | | | This enables the ability to allocate (and free) memory dynamically without fragmentation, through compaction. This means allocations can move and fragmentation be reduced. Most changes are preparing Rockbox for this, which many times means adding a move callback which can temporarily disable movement when the corresponding code is in a critical section. For now, the audio buffer allocation has a central role, because it's the one having allocated most. This buffer is able to shrink itself, for which it needs to stop playback for a very short moment. For this, audio_buffer_available() returns the size of the audio buffer which can possibly be used by other allocations because the audio buffer can shrink. lastfm scrobbling and timestretch can now be toggled at runtime without requiring a reboot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30381 a1c6a512-1295-4272-9138-f99709370657
* GSoC/Buflib: Add buflib memory alocator to the core.Thomas Martitz2011-08-30
| | | | | | | | | | | | | | | | | The buflib memory allocator is handle based and can free and compact, move or resize memory on demand. This allows to effeciently allocate memory dynamically without an MMU, by avoiding fragmentation through memory compaction. This patch adds the buflib library to the core, along with convinience wrappers to omit the context parameter. Compaction is not yet enabled, but will be in a later patch. Therefore, this acts as a replacement for buffer_alloc/buffer_get_buffer() with the benifit of a debug menu. See buflib.h for some API documentation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30380 a1c6a512-1295-4272-9138-f99709370657
* sansa clipzip: correct GPIO used for backlightBertrik Sikken2011-08-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30377 a1c6a512-1295-4272-9138-f99709370657
* sansa clipzip: implement more functions in the lcd driverBertrik Sikken2011-08-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30376 a1c6a512-1295-4272-9138-f99709370657
* Commit work started in FS#12153 to put timing/position information in PCMMichael Sevakis2011-08-28
| | | | | | | | | | | | | | | | | | | | | | | | | buffer chunks. * Samples and position indication is closely associated with audio data instead of compensating by a latency constant. Alleviates problems with using the elapsed as a track indicator where it could be off by several steps. * Timing is accurate throughout track even if resampling for pitch shift, whereas before it updated during transition latency at the normal 1:1 rate. * Simpler PCM buffer with a constant chunk size, no linked lists. In converting crossfade, a minor change was made to not change the WPS until the fade-in of the incoming track, whereas before it would change upon the start of the fade-out of the outgoing track possibly having the WPS change with far too much lead time. Codec changes are to set elapsed times *before* writing next PCM frame because time and position data last set are saved in the next committed PCM chunk. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30366 a1c6a512-1295-4272-9138-f99709370657
* Initial framework for the Sandisk Sansa Clip ZipBertrik Sikken2011-08-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30365 a1c6a512-1295-4272-9138-f99709370657
* Dircache: Fix memory leak (and recently panic).Thomas Martitz2011-08-16
| | | | | | | | | | | | | If the dircache was interrupted during generation (e.g. through USB insertion), then the allocated buffer was leaked and a new one was allocated for the second cache generation. This causes a panic since r30308 since playback holds the control over the audiobuffer at that time. The fix is to simply check allocated_size instead of dircache_size which is reset to 0 upon cancellation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30321 a1c6a512-1295-4272-9138-f99709370657
* Dircache: Fix bug introduced in r30308.Thomas Martitz2011-08-15
| | | | | | | dircache_root wasn't initialized at all and the giving allocated_size passed to buffer_release_buffer() didn't account for alignment padding. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30318 a1c6a512-1295-4272-9138-f99709370657
* Add a 100ms delay before calling disk_mount_all(). Some players (especially ↵Frank Gevaerts2011-08-15
| | | | | | some gigabeat Fs) seem to need a delay after disabling USB if we want disk access to work. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30316 a1c6a512-1295-4272-9138-f99709370657