diff options
author | Udo Schläpfer <rockbox-2014.10@desktopwarrior.net> | 2015-02-02 21:44:29 +0100 |
---|---|---|
committer | Udo Schläpfer <rockbox-2014.10@desktopwarrior.net> | 2015-02-02 21:57:55 +0100 |
commit | dbabd0d9c34a33bc0c51243ec37f230d117db955 (patch) | |
tree | 46de348929ce739702a230a2587fdb5539585753 /firmware/export/pcm_mixer.h | |
parent | cef17e3d59ad93f766e8ee23b1610540a33dfe5e (diff) | |
download | rockbox-dbabd0d9c34a33bc0c51243ec37f230d117db955.tar.gz rockbox-dbabd0d9c34a33bc0c51243ec37f230d117db955.zip |
iBasso DX50/DX90: Major code cleanup and reorganization.
Reorganization
- Separated iBasso devices from PLATFORM_ANDROID. These are now standlone
hosted targets. Most device specific code is in the
firmware/target/hosted/ibasso directory.
- No dependency on Android SDK, only the Android NDK is needed.
32 bit Android NDK and Android API Level 16.
- Separate implementation for each device where feasible.
Code cleanup
- Rewrite of existing code, from simple reformat to complete reimplementation.
- New backlight interface, seperating backlight from touchscreen.
- Rewrite of device button handler, removing unneeded code and fixing memory
leaks.
- New Debug messages interface logging to Android adb logcat (DEBUGF, panicf,
logf).
- Rewrite of lcd device handler, removing unneeded code and fixing memory leaks.
- Rewrite of audiohw device handler/pcm interface, removing unneeded code and
fixing memory leaks, enabling 44.1/48kHz pthreaded playback.
- Rewrite of power and powermng, proper shutdown, using batterylog results
(see http://gerrit.rockbox.org/r/#/c/1047/).
- Rewrite of configure (Android NDK) and device specific config.
- Rewrite of the Android NDK specific Makefile.
Misc
- All plugins/games/demos activated.
- Update tinyalsa to latest from https://github.com/tinyalsa/tinyalsa.
Includes
- http://gerrit.rockbox.org/r/#/c/993/
- http://gerrit.rockbox.org/r/#/c/1010/
- http://gerrit.rockbox.org/r/#/c/1035/
Does not include http://gerrit.rockbox.org/r/#/c/1007/ due to new backlight
interface and new option for hold switch, touchscreen, physical button
interaction.
Rockbox needs the iBasso DX50/DX90 loader for startup, see
http://gerrit.rockbox.org/r/#/c/1099/
The loader expects Rockbox to be installed in /mnt/sdcard/.rockbox/. If
/mnt/sdcard/ is accessed as USB mass storage device, Rockbox will exit
gracefully and the loader will restart Rockbox on USB disconnect.
Tested on iBasso DX50.
Compiled (not tested) for iBasso DX90.
Compiled (not tested) for PLATFORM_ANDROID.
Change-Id: I5f5e22e68f5b4cf29c28e2b40b2c265f2beb7ab7
Diffstat (limited to 'firmware/export/pcm_mixer.h')
-rw-r--r-- | firmware/export/pcm_mixer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/export/pcm_mixer.h b/firmware/export/pcm_mixer.h index f7f869eaaf..b418a5d347 100644 --- a/firmware/export/pcm_mixer.h +++ b/firmware/export/pcm_mixer.h | |||
@@ -30,13 +30,15 @@ | |||
30 | #if CONFIG_CPU == PP5002 | 30 | #if CONFIG_CPU == PP5002 |
31 | /* There's far less time to do mixing because HW FIFOs are short */ | 31 | /* There's far less time to do mixing because HW FIFOs are short */ |
32 | #define MIX_FRAME_SAMPLES 64 | 32 | #define MIX_FRAME_SAMPLES 64 |
33 | #elif (CONFIG_PLATFORM & PLATFORM_MAEMO5) | 33 | #elif (CONFIG_PLATFORM & PLATFORM_MAEMO5) || defined(DX50) || defined(DX90) |
34 | /* Maemo 5 needs 2048 samples for decent performance. | 34 | /* Maemo 5 needs 2048 samples for decent performance. |
35 | Otherwise the locking overhead inside gstreamer costs too much */ | 35 | Otherwise the locking overhead inside gstreamer costs too much */ |
36 | /* iBasso Devices: Match Rockbox PCM buffer size to ALSA PCM buffer size | ||
37 | to minimize memory transfers. */ | ||
36 | #define MIX_FRAME_SAMPLES 2048 | 38 | #define MIX_FRAME_SAMPLES 2048 |
39 | #else | ||
37 | /* Assume HW DMA engine is available or sufficient latency exists in the | 40 | /* Assume HW DMA engine is available or sufficient latency exists in the |
38 | PCM pathway */ | 41 | PCM pathway */ |
39 | #else | ||
40 | #define MIX_FRAME_SAMPLES 256 | 42 | #define MIX_FRAME_SAMPLES 256 |
41 | #endif | 43 | #endif |
42 | 44 | ||