summaryrefslogtreecommitdiff
path: root/firmware/target (follow)
Commit message (Collapse)AuthorAge
...
* Android: Partly revert r29569 and only call the new getJavaEnvironment() ↵Thomas Martitz2011-03-16
| | | | | | | | | when needed. The environment is fine to share in general, just not across OS threads, so it's only needed for functions which are possibly called from multiple OS threads (only 1 currently). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29601 a1c6a512-1295-4272-9138-f99709370657
* Listen to and follow external Android volume changes. (Based on FS#11914 by ↵Björn Stenberg2011-03-14
| | | | | | Maurus Cuelenaere) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29586 a1c6a512-1295-4272-9138-f99709370657
* Android: allocate native_buffer locally, which does away with the need to holdMaurus Cuelenaere2011-03-12
| | | | | | a global reference to it (fixes bug). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29576 a1c6a512-1295-4272-9138-f99709370657
* Android: Switch to pthread_cond+SIGEV_THREAD for tick task handling.Thomas Martitz2011-03-11
| | | | | | The implementation wasn't really safe (sem_post from signal handler), and the new one simplifies things a bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29575 a1c6a512-1295-4272-9138-f99709370657
* Create GlobalRef in surfaceCreated, in accordance to r29572.Thomas Martitz2011-03-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29574 a1c6a512-1295-4272-9138-f99709370657
* Android: delete the global reference in surfaceDestroyedMaurus Cuelenaere2011-03-11
| | | | | | This gets rid of the lcd_deinit() boilerplate. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29572 a1c6a512-1295-4272-9138-f99709370657
* Android: no need to keep RockboxPCM_class aroundMaurus Cuelenaere2011-03-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29571 a1c6a512-1295-4272-9138-f99709370657
* Partly revert "Android: use NewGlobalRef for references that are used globally"Maurus Cuelenaere2011-03-11
| | | | | | | The added complexity wasn't needed for most subsystems, as main() never returns so local references can't be freed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29570 a1c6a512-1295-4272-9138-f99709370657
* Android: Don't share the JNI environment across threads, but obtain it theMaurus Cuelenaere2011-03-11
| | | | | | correct way git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29569 a1c6a512-1295-4272-9138-f99709370657
* Android: use NewGlobalRef for references that are used globallyMaurus Cuelenaere2011-03-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29568 a1c6a512-1295-4272-9138-f99709370657
* Enable volume keys in Android.Björn Stenberg2011-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29559 a1c6a512-1295-4272-9138-f99709370657
* Return -1 for not implemented RTC functions.Thomas Martitz2011-03-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29546 a1c6a512-1295-4272-9138-f99709370657
* RaaA: Add RTC supportThomas Jarosch2011-03-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29544 a1c6a512-1295-4272-9138-f99709370657
* Bring idle poweroff to RaaA and the simThomas Jarosch2011-03-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29543 a1c6a512-1295-4272-9138-f99709370657
* Android: Fix black display after unzipping libmisc.so.Thomas Martitz2011-03-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29527 a1c6a512-1295-4272-9138-f99709370657
* Change the thread api a bit.Thomas Martitz2011-03-05
| | | | | | | * Remove THREAD_ID_CURRENT macro in favor of a thread_self() function, this allows thread functions to be simpler. * thread_self_entry() shortcut for kernel.c. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29521 a1c6a512-1295-4272-9138-f99709370657
* Add rockbox copyright header with proper credits for kugelThomas Jarosch2011-03-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29517 a1c6a512-1295-4272-9138-f99709370657
* Add svn:keywords to firmware/target/hosted source filesThomas Jarosch2011-03-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29516 a1c6a512-1295-4272-9138-f99709370657
* Fix compilation issues for sdl when HAVE_BUTTON_DATA is not definedFrank Gevaerts2011-03-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29511 a1c6a512-1295-4272-9138-f99709370657
* Remove redundant function prototypeThomas Jarosch2011-03-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29505 a1c6a512-1295-4272-9138-f99709370657
* Fix red on Archos RecorderThomas Jarosch2011-03-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29504 a1c6a512-1295-4272-9138-f99709370657
* Fix redThomas Jarosch2011-03-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29502 a1c6a512-1295-4272-9138-f99709370657
* Introduce "power" thread for RaaAThomas Jarosch2011-03-02
| | | | | | | | | | | | I tried to move the #ifdefs and the code in firmware/powermgmt.c around and it was still a big mess for hosted applications (RaaA/sim builds). Create our own "power" thread as recently discussed on IRC. Fixes the sleep timer for RaaA. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29501 a1c6a512-1295-4272-9138-f99709370657
* Merge functionality of wakeups and semaphores-- fewer APIs and object types. ↵Michael Sevakis2011-03-02
| | | | | | semaphore_wait takes a timeout now so codecs and plugins have to be made incompatible. Don't make semaphores for targets not using them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29492 a1c6a512-1295-4272-9138-f99709370657
* Expose sys_poweroff() and cancel_shutdown() to RaaA. Hopefully fixes android ↵Thomas Jarosch2011-03-01
| | | | | | build git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29485 a1c6a512-1295-4272-9138-f99709370657
* Move drivers/i2c.c into target tree as it contains SH specific bits. Leave ↵Marcin Bukat2011-03-01
| | | | | | associated header file intact as it is used in many places for historical reasons. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29480 a1c6a512-1295-4272-9138-f99709370657
* Move ata_mmc.c into target tree as it is SH (ondio) specific. Associated ↵Marcin Bukat2011-03-01
| | | | | | header file is left intact as it seems to be used in many places for historical reasons git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29478 a1c6a512-1295-4272-9138-f99709370657
* iPod Classic: Use DMA (and double buffering) for LCD updatesMichael Sparmann2011-03-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29474 a1c6a512-1295-4272-9138-f99709370657
* Move sleep timer code outside of PLATFORM_NATIVE ifdef so RaaA can access itThomas Jarosch2011-02-28
| | | | | | Also remove redundant RaaA stubs for it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29467 a1c6a512-1295-4272-9138-f99709370657
* iPod Classic: Enable RGB LCD update assembler codeMichael Sparmann2011-02-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29466 a1c6a512-1295-4272-9138-f99709370657
* iPod Classic: Fix YUV blitting. Mpegplayer works now.Michael Sparmann2011-02-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29460 a1c6a512-1295-4272-9138-f99709370657
* brackets are important! fix the mouse being hidden in simsJonathan Gordon2011-02-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29458 a1c6a512-1295-4272-9138-f99709370657
* Hopefully get shutdown/exit handling on SDL/maemo right.Thomas Martitz2011-02-28
| | | | | | Make shutdown_hw() not return as it's supposed to, ensure sim_do_exit() is called from main thread and move sim_kernel_shutdown() into it to simplify things. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29455 a1c6a512-1295-4272-9138-f99709370657
* Pandora port: Exit rockbox by pressing the SELECT buttonThomas Jarosch2011-02-28
| | | | | | | | Might get remapped to another button later on, for example if we map the START button to the main menu, then those two buttons are too close together. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29453 a1c6a512-1295-4272-9138-f99709370657
* RaaA: Add initial Pandora supportThomas Jarosch2011-02-27
| | | | | | | | | | | | More information: www.openpandora.org Possible things to implement: - Special button mappings - Battery monitoring - ALSA audio backend - Automate creation of "pnd" (=binary) file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29451 a1c6a512-1295-4272-9138-f99709370657
* iPod Classic CE-ATA Support (Part 4 of 4: S5L8702 ATA driver)Michael Sparmann2011-02-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29448 a1c6a512-1295-4272-9138-f99709370657
* Byteswap routines don't really need 'asm volatile', just 'asm' since it ↵Michael Sevakis2011-02-25
| | | | | | should be safe to move them for optimizing. Clean up the line endings for ARM. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29394 a1c6a512-1295-4272-9138-f99709370657
* Use thumb-compatible byte swap routines when building with -mthumb.Michael Sevakis2011-02-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29391 a1c6a512-1295-4272-9138-f99709370657
* Android:Thomas Martitz2011-02-23
| | | | | | | | | * Re-create RockboxFramebuffer instance with every time there's a new Activity. * Also, allow Rockbox to be started via multimedia buttons, immediately starting playback if wanted. We don't need to keep the fb instance around when it backround, and it makes us less depending on it and the activity (less race conditions). And this is how you usually do it in Android apps. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29384 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S: Smoother bootup. Don't do full drive reset at boot since it's ↵Michael Sevakis2011-02-23
| | | | | | not really a coldstart. Seems to work alright in both the bootloader and firmware. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29383 a1c6a512-1295-4272-9138-f99709370657
* Return valid tuner ID even when tuner is not detected properly. Fixes FS#11791Michael Chicoine2011-02-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29378 a1c6a512-1295-4272-9138-f99709370657
* Calibrate iPod Classic battery gauge a bit betterMichael Sparmann2011-02-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29365 a1c6a512-1295-4272-9138-f99709370657
* Android: Rewrite lcd subsystem to use the SurfaceView API.Thomas Martitz2011-02-19
| | | | | | | | That enables drawing from outside the apps UI thread, i.e. from within the Rockbox native thread, without needing synchronization means, and adds determinism as to when the draw happens. It simplifies the drawing routines and adds a convinient way of detecting whether drawing should happen or not (surfaceCreated/Destroyed). It also restores max. fps on my phone which went down drastically with the gingerbread(CM7) update. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29333 a1c6a512-1295-4272-9138-f99709370657
* N900: Prevent stuck up/down keys on systems with shared up/down cursor mappingThomas Jarosch2011-02-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29331 a1c6a512-1295-4272-9138-f99709370657
* Fix red caused by incorrect includes.Thomas Martitz2011-02-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29329 a1c6a512-1295-4272-9138-f99709370657
* Implement cooperative threads on hosted platforms using C code.Thomas Martitz2011-02-18
| | | | | | | | This replaces SDL threads with real cooperative threads, which are less cpu intensive and allow priority scheduling. The backend for context switching is dependant on the host (sigaltstack/longjmp on Unix, Fibers on Windows). configure has options to force or disallow SDL threads. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29327 a1c6a512-1295-4272-9138-f99709370657
* Fix the shutdown sequence for maemo, SDL and simulator buildsThomas Jarosch2011-02-15
| | | | | | | Do proper shutdown in RaaA builds like writeout of last.FM scrobbler file and other neat things. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29309 a1c6a512-1295-4272-9138-f99709370657
* All kernel objects in code shared amongs targets (core, plugins, codecs) ↵Michael Sevakis2011-02-14
| | | | | | should be declared SHAREDBSS_ATTR as any core could potentially touch them even though they seem only to involve threads on one core. The exception is target code for particular CPUs where proper allocation is fixed. playlist.c was a little odd too-- use one mutex for the current playlist and a separate one for created playlists (still pondering the necessity of more than one). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29305 a1c6a512-1295-4272-9138-f99709370657
* Submit FS#11926, calibrate charge curve for e200v1. Thanks to Martin Ritter.Andree Buschmann2011-02-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29282 a1c6a512-1295-4272-9138-f99709370657
* iPod Nano2g/Classic clickwheel: Configure GPIO pins as Hi-Z while hold ↵Michael Sparmann2011-02-10
| | | | | | switch is engaged git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29276 a1c6a512-1295-4272-9138-f99709370657