From 33d3f05d77c8fc2e187d9a8d71588772400bced3 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Fri, 9 Dec 2011 20:04:41 +0000 Subject: 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 --- firmware/export/pcm_mixer.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/export/pcm_mixer.h b/firmware/export/pcm_mixer.h index be10601..ea26060 100644 --- a/firmware/export/pcm_mixer.h +++ b/firmware/export/pcm_mixer.h @@ -28,9 +28,13 @@ #if CONFIG_CPU == PP5002 /* There's far less time to do mixing because HW FIFOs are short */ #define MIX_FRAME_SAMPLES 64 -#else +#elif (CONFIG_PLATFORM & PLATFORM_MAEMO5) +/* Maemo 5 needs 2048 samples for decent performance. + Otherwise the locking overhead inside gstreamer costs too much */ +#define MIX_FRAME_SAMPLES 2048 /* Assume HW DMA engine is available or sufficient latency exists in the PCM pathway */ +#else #define MIX_FRAME_SAMPLES 256 #endif -- cgit v1.1