diff options
| author | Thomas Jarosch <tomj@simonv.com> | 2011-02-08 20:05:25 +0000 |
|---|---|---|
| committer | Thomas Jarosch <tomj@simonv.com> | 2011-02-08 20:05:25 +0000 |
| commit | 5f037ac015e6d76d030a163753db5ff58cdff49b (patch) | |
| tree | f5eb7dcdc0e0c3e373227e45061c1d99a14a0819 /firmware/export/config | |
| parent | 4d129044390a087b6193b6ce63e035b2550b3ce4 (diff) | |
| download | rockbox-5f037ac015e6d76d030a163753db5ff58cdff49b.zip rockbox-5f037ac015e6d76d030a163753db5ff58cdff49b.tar.gz rockbox-5f037ac015e6d76d030a163753db5ff58cdff49b.tar.bz2 rockbox-5f037ac015e6d76d030a163753db5ff58cdff49b.tar.xz | |
Initial maemo platform support
Adds Nokia N900, N810 and N800 support.
Features:
- Introduce maemo specific platform defines
- Play audio in silent mode
- Stop playback on incoming calls
- Battery level readout
- Bluetooth headset support
- Save CPU by disabling screen updates if the display
is off or the app doesn't have input focus
- N900: GStreamer audio backend
Kudos to kugel for the code review.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29248 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config')
| -rw-r--r-- | firmware/export/config/application.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/firmware/export/config/application.h b/firmware/export/config/application.h index b731f0c..64ebbf3 100644 --- a/firmware/export/config/application.h +++ b/firmware/export/config/application.h @@ -6,6 +6,10 @@ /* We don't run on hardware directly */ #ifdef ANDROID #define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_ANDROID) +#elif MAEMO5 +#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_MAEMO5) +#elif MAEMO4 +#define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_MAEMO4) #else #define CONFIG_PLATFORM (PLATFORM_HOSTED|PLATFORM_SDL) #endif @@ -75,17 +79,20 @@ /* Define this if you do software codec */ #define CONFIG_CODEC SWCODEC +#if (CONFIG_PLATFORM & (PLATFORM_ANDROID|PLATFORM_MAEMO)) +#define HAVE_MULTIMEDIA_KEYS +#endif + #if (CONFIG_PLATFORM & PLATFORM_ANDROID) #define CONFIG_KEYPAD ANDROID_PAD -#define HAVE_MULTIMEDIA_KEYS -#elif (CONFIG_PLATFORM & PLATFORM_SDL) +#elif (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO)) #define HAVE_SCROLLWHEEL #define CONFIG_KEYPAD SDL_PAD #else #error unknown platform #endif -#if (CONFIG_PLATFORM & PLATFORM_SDL) +#if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO)) /* Use SDL audio/pcm in a SDL app build */ #define HAVE_SDL #define HAVE_SDL_AUDIO |