summaryrefslogtreecommitdiffstats
path: root/firmware
AgeCommit message (Collapse)AuthorFilesLines
2010-08-12Introduce NORETURN_ATTR wrapper for __attribute__((noreturn)), using this ↵Thomas Martitz13-13/+31
and a bit further cleanup in main gets rid of a warning when compiling for android. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27788 a1c6a512-1295-4272-9138-f99709370657
2010-08-12emBIOS backports part four: Add a lot of DEBUGF()s to the FTL code, and ↵Michael Sparmann1-48/+157
return proper error codes instead of panicing in a lot of error cases. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27783 a1c6a512-1295-4272-9138-f99709370657
2010-08-12emBIOS backports part three: Make the NAND flash driver return more useful ↵Michael Sparmann2-24/+22
error codes if initialization fails. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27782 a1c6a512-1295-4272-9138-f99709370657
2010-08-12emBIOS backports part two: Fix a stupid global variable *instantiation* in a ↵Michael Sparmann1-2/+2
header file, which might have caused all hell of trouble. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27781 a1c6a512-1295-4272-9138-f99709370657
2010-08-12Fix red: Revert the const correctness part, which opened a can of worms.Michael Sparmann2-4/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27780 a1c6a512-1295-4272-9138-f99709370657
2010-08-12emBIOS backports part one: Fix an annoying race condition in the Synopsys ↵Michael Sparmann2-21/+26
OTG driver, and a bit of const correctness. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27779 a1c6a512-1295-4272-9138-f99709370657
2010-08-11Do not return negative sleeptimer valuesMichael Chicoine1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27774 a1c6a512-1295-4272-9138-f99709370657
2010-08-11Mark some local variables with 'static'.Nils Wallménius1-8/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27772 a1c6a512-1295-4272-9138-f99709370657
2010-08-11Delete useless #ifndef #endif pair.Nils Wallménius1-2/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27771 a1c6a512-1295-4272-9138-f99709370657
2010-08-08HD200 - Use DMA transfers in lcd_update() and lcd_update_rect(). Gives ↵Marcin Bukat1-16/+86
12-26% speedup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27757 a1c6a512-1295-4272-9138-f99709370657
2010-08-08ipod nano 2g: make functions/variables static where possible, add missing ↵Bertrik Sikken7-121/+116
#includes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27752 a1c6a512-1295-4272-9138-f99709370657
2010-08-08Various minor fixes for Samsung YH* targetsBertrik Sikken5-0/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27751 a1c6a512-1295-4272-9138-f99709370657
2010-08-07Android port: handle incoming calls.Thomas Martitz2-2/+24
Stop explicitely if a call comes in, and resume playback (if it was playing before the call) upon hang up. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27746 a1c6a512-1295-4272-9138-f99709370657
2010-08-04A bit of work in the pcm driver. Should be a bit more efficient, but more ↵Thomas Martitz1-0/+4
importantly more dependable. Stopping playback now properly recovers if playback crashed for some reason (shouldn't happen of course). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27698 a1c6a512-1295-4272-9138-f99709370657
2010-08-04Add a few forgotten files, Fix potential startup problem. Fix absolute ↵Thomas Martitz1-12/+1
touchscreen mode. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27693 a1c6a512-1295-4272-9138-f99709370657
2010-08-04Implement HAVE_LCD_ENABLE and lcd_update_rect(). When Rockbox runs in the ↵Thomas Martitz2-12/+52
background this greatly reduces CPU load. lcd_update_rect shoves a bit as well. CPU usage with Rockbox in background is between 3% (with a 200kbps vbr mp3) and 12% (320kbps cbr mp3), so it's low but still dependent on codecs and even particular files. Driving a WPS with peakmeter, e.g. the builtin one, adds about 30% cpu usage. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27689 a1c6a512-1295-4272-9138-f99709370657
2010-08-03Run Rockbox as a service, which allows for music decoding&playback in the ↵Thomas Martitz4-15/+11
background, the activity only attaches to the framebuffer for displaying it. An icon in the notification area is displayed (it could be prettier I guess). Note: Some HTC phones won't, includng mine, get enough CPU time to do background decoding fluently, see: http://code.google.com/p/android/issues/detail?id=9663 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27686 a1c6a512-1295-4272-9138-f99709370657
2010-08-03system-arm.c/__div0 are for ARM native builds onlyRafaël Carré1-0/+2
Android can now be built with CPU_ARM defined Needs investigation (and test_codec) to see if/how this helps git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27684 a1c6a512-1295-4272-9138-f99709370657
2010-08-03system-android: cast void* to uintptr_t*Rafaël Carré1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27682 a1c6a512-1295-4272-9138-f99709370657
2010-08-03android: declare audiohw_set_volume()Rafaël Carré1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27681 a1c6a512-1295-4272-9138-f99709370657
2010-08-02Rockbox as an application: Commit current Android port progress.Thomas Martitz25-19/+1236
General state is: Rockbox is usable (plays music, saves configuration, touchscreen works too). Problems: - Playing music in the background (i.e. when switching to another app) doesn't work reliably, but I'm working on that now. - no cabbiev2 (only some preliminary files for it), no other default theme. - screen flickers sometimes if the updates are too frequent - no multi screen apk/package - strange behavior when a phone call comes in The java files (and the eclipse project) resides in android/, which is also supposed to be the build folder. I've put a small README in there for instructions. There are some steps needed after the make part, which are described there, and which eclipse mostly handles. But there ought to be some script/makefile rules which do that instead in the future. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27668 a1c6a512-1295-4272-9138-f99709370657
2010-08-02Fix a logf bug which would trigger undefined behaviour(and probably crash) ↵Amaury Pouly1-0/+3
when both DEBUG, CONFIG_PLATFORM & PLATFORM_HOSTED are enable git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27663 a1c6a512-1295-4272-9138-f99709370657
2010-08-01Fix reds.Thomas Martitz1-0/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27657 a1c6a512-1295-4272-9138-f99709370657
2010-08-01Rockbox as an application: add get_user_file_path().Thomas Martitz10-18/+284
For RaaA it evaluates user paths at runtime. For everything but codecs/plugins it will give the path under $HOME/.config/rockbox.org if write access is needed or if the file/folder in question exists there (otherwise it gives /usr/local/share/rockbox). This allows for installing themes under $HOME as well as having config.cfg and other important files there while installing the application (and default themes) under /usr/local. On the DAPs it's a no-op, returing /.rockbox directly. Not converted to use get_user_file_path() are plugins themselves, because RaaA doesn't build plugins yet. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27656 a1c6a512-1295-4272-9138-f99709370657
2010-08-01More minor const/static/include fixes.Bertrik Sikken4-4/+7
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27652 a1c6a512-1295-4272-9138-f99709370657
2010-08-01Fix #ifdef in backlight.c from previous commitBertrik Sikken1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27648 a1c6a512-1295-4272-9138-f99709370657
2010-08-01Various minor cleanupsBertrik Sikken2-6/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27647 a1c6a512-1295-4272-9138-f99709370657
2010-08-01Various minor cleanups for cowon d2Bertrik Sikken4-2/+15
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27646 a1c6a512-1295-4272-9138-f99709370657
2010-08-01Various minor cleanups for mini2440Bertrik Sikken7-4/+12
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27645 a1c6a512-1295-4272-9138-f99709370657
2010-07-31Various minor clean-ups for mrobeBertrik Sikken3-8/+7
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27639 a1c6a512-1295-4272-9138-f99709370657
2010-07-31Fix condition for compiling audiohw_set_monitor (should fix red)Bertrik Sikken2-7/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27638 a1c6a512-1295-4272-9138-f99709370657
2010-07-31Various minor clean-ups for Zen VisionBertrik Sikken6-12/+14
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27636 a1c6a512-1295-4272-9138-f99709370657
2010-07-31Add #include to power-ipod.c, make some variables static in storage.cBertrik Sikken2-2/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27634 a1c6a512-1295-4272-9138-f99709370657
2010-07-31Let format.c #include its own format.h header fileBertrik Sikken1-0/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27633 a1c6a512-1295-4272-9138-f99709370657
2010-07-30Make some global function/variables local (by making them static)Bertrik Sikken2-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27631 a1c6a512-1295-4272-9138-f99709370657
2010-07-30AMSv1: Don't modify MPMC_DYNAMIC_CONTROLRafaël Carré1-5/+0
The last bootloaders already set it correctly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27627 a1c6a512-1295-4272-9138-f99709370657
2010-07-27Add optional CURRENT_ATA in runcurrent(). On MPIO HD200 powering ata takes ↵Marcin Bukat2-0/+7
~100mA which is sagnificant contribution to the total power consumption. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27589 a1c6a512-1295-4272-9138-f99709370657
2010-07-27HD200: comment out CURRENT_REMOTE as remote doesn't draw additional current ↵Marcin Bukat1-1/+1
(no lcd) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27588 a1c6a512-1295-4272-9138-f99709370657
2010-07-27WM8750 - add ALC and NGAT related low level functions (disabled now by default)Marcin Bukat2-5/+123
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27587 a1c6a512-1295-4272-9138-f99709370657
2010-07-26FM tuner region code cleanup - FS #11492 by me.Bertrik Sikken14-163/+54
This removes the tuner-specific region structs and makes each driver use the common one (which is now extended with a deemphasis field) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27579 a1c6a512-1295-4272-9138-f99709370657
2010-07-26Factor out opening and removing DIRCACHE_FILE into separate functions.Thomas Martitz1-9/+31
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27575 a1c6a512-1295-4272-9138-f99709370657
2010-07-25bootchart.h doesn't need _ansi.h, especially not in a relative pathRafaël Carré1-1/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27553 a1c6a512-1295-4272-9138-f99709370657
2010-07-25strncpy.c / assert.h : need to include _ansi.hRafaël Carré1-0/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27549 a1c6a512-1295-4272-9138-f99709370657
2010-07-25Move some gcc extensions to new gcc_extensions.h headerRafaël Carré8-26/+53
- Move ATTRIBUTE_PRINTF/ATTRIBUTE_SCANF from _ansi.h They are not related at all to this file, and this broke compilation with Code Sourcery GCC which ships its own _ansi.h - Move LIKELY/UNLIKELY from system.h There is likely a lot more GCC extensions used everywhere in the source, conditionally on __GNUC__ or unconditionally git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27548 a1c6a512-1295-4272-9138-f99709370657
2010-07-23Define CONFIG_REMOTE_KEYPAD for iaudio x5/m5 and add a keymap for that ↵Nils Wallménius3-4/+8
remote to the logo plugin. Fixes a warning when building with gcc 4.4.4. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27533 a1c6a512-1295-4272-9138-f99709370657
2010-07-22lcd-clip.h: mentions clipv2Rafaël Carré1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27523 a1c6a512-1295-4272-9138-f99709370657
2010-07-22Sansa clip+: fix display brightness for players with newer OLED controller ↵Bertrik Sikken7-76/+49
type (and reorganise the variant detection a bit in the process) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27522 a1c6a512-1295-4272-9138-f99709370657
2010-07-22Correction to previous commit: fix condition to include backlight-target.h ↵Bertrik Sikken1-1/+1
(not needed for clip+) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27521 a1c6a512-1295-4272-9138-f99709370657
2010-07-22Sansa Clip+: detect AMSv2 variant (just like was already done for fuze v2), ↵Bertrik Sikken6-25/+25
this makes SD transfers work for newer clip+ players ("COMBO4E" type). Variable fuzev2_variant has been renamed to amsv2_variant. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27520 a1c6a512-1295-4272-9138-f99709370657
2010-07-22as3525v1 USB: remove stubs if !defined(USE_ROCKBOX_USB)Rafaël Carré1-92/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27519 a1c6a512-1295-4272-9138-f99709370657