diff options
author | Thomas Jarosch <tomj@simonv.com> | 2011-12-09 20:04:41 +0000 |
---|---|---|
committer | Thomas Jarosch <tomj@simonv.com> | 2011-12-09 20:04:41 +0000 |
commit | 33d3f05d77c8fc2e187d9a8d71588772400bced3 (patch) | |
tree | 726ad6d48ac1a54d7e3734afacf34a9c77a91f79 | |
parent | 9d9d867bce364f1381a21c2a09eb7bac6b5c7df2 (diff) | |
download | rockbox-33d3f05d77c8fc2e187d9a8d71588772400bced3.tar.gz rockbox-33d3f05d77c8fc2e187d9a8d71588772400bced3.zip |
Nokia N900: Increase the number of samples for the software mixer
This lowers the CPU usage back to normal by around 15%.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31191 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/export/pcm_mixer.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/export/pcm_mixer.h b/firmware/export/pcm_mixer.h index be10601ffd..ea26060452 100644 --- a/firmware/export/pcm_mixer.h +++ b/firmware/export/pcm_mixer.h | |||
@@ -28,9 +28,13 @@ | |||
28 | #if CONFIG_CPU == PP5002 | 28 | #if CONFIG_CPU == PP5002 |
29 | /* There's far less time to do mixing because HW FIFOs are short */ | 29 | /* There's far less time to do mixing because HW FIFOs are short */ |
30 | #define MIX_FRAME_SAMPLES 64 | 30 | #define MIX_FRAME_SAMPLES 64 |
31 | #else | 31 | #elif (CONFIG_PLATFORM & PLATFORM_MAEMO5) |
32 | /* Maemo 5 needs 2048 samples for decent performance. | ||
33 | Otherwise the locking overhead inside gstreamer costs too much */ | ||
34 | #define MIX_FRAME_SAMPLES 2048 | ||
32 | /* Assume HW DMA engine is available or sufficient latency exists in the | 35 | /* Assume HW DMA engine is available or sufficient latency exists in the |
33 | PCM pathway */ | 36 | PCM pathway */ |
37 | #else | ||
34 | #define MIX_FRAME_SAMPLES 256 | 38 | #define MIX_FRAME_SAMPLES 256 |
35 | #endif | 39 | #endif |
36 | 40 | ||