mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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
This commit is contained in:
parent
4d12904439
commit
5f037ac015
22 changed files with 970 additions and 22 deletions
|
|
@ -33,7 +33,7 @@ struct dirinfo {
|
|||
#include <stdbool.h>
|
||||
#include "file.h"
|
||||
|
||||
#if (CONFIG_PLATFORM & PLATFORM_SDL)
|
||||
#if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO))
|
||||
# define dirent_uncached sim_dirent
|
||||
# define DIR_UNCACHED SIM_DIR
|
||||
# define opendir_uncached sim_opendir
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ extern int app_open(const char *name, int o, ...);
|
|||
extern int app_creat(const char *name, mode_t mode);
|
||||
extern int app_remove(const char* pathname);
|
||||
extern int app_rename(const char* path, const char* newname);
|
||||
# if (CONFIG_PLATFORM & PLATFORM_SDL)
|
||||
# if (CONFIG_PLATFORM & (PLATFORM_SDL|PLATFORM_MAEMO))
|
||||
# define filesize(x) sim_filesize(x)
|
||||
# define fsync(x) sim_fsync(x)
|
||||
# define ftruncate(x,y) sim_ftruncate(x,y)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue