summaryrefslogtreecommitdiff
path: root/firmware/pcm_playback.c
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2007-06-17 16:32:02 +0000
committerSteve Bavin <pondlife@pondlife.me>2007-06-17 16:32:02 +0000
commiteb3e102d081ea3caa3079b0e01cc23e7774f4c6a (patch)
tree842167038d881914425ec17a4cd077a01de333f4 /firmware/pcm_playback.c
parent0255489b7e8eb97658d060d5d017113f9895dfc6 (diff)
downloadrockbox-eb3e102d081ea3caa3079b0e01cc23e7774f4c6a.tar.gz
rockbox-eb3e102d081ea3caa3079b0e01cc23e7774f4c6a.zip
Fix up #endif.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13652 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/pcm_playback.c')
-rw-r--r--firmware/pcm_playback.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/firmware/pcm_playback.c b/firmware/pcm_playback.c
index 66519d6882..80f7e1f6b2 100644
--- a/firmware/pcm_playback.c
+++ b/firmware/pcm_playback.c
@@ -23,7 +23,7 @@
23#include "sound.h" 23#include "sound.h"
24#if CONFIG_CPU == PNX0101 24#if CONFIG_CPU == PNX0101
25#include "string.h" 25#include "string.h"
26#endif 26#endif /* CONFIG_CPU == PNX0101 */
27 27
28/** 28/**
29 * APIs implemented in the target-specific portion: 29 * APIs implemented in the target-specific portion:
@@ -273,7 +273,7 @@ void pcm_calculate_peaks(int *left, int *right)
273#if CONFIG_CPU == PNX0101 273#if CONFIG_CPU == PNX0101
274 size_t samples = p_size / 4; 274 size_t samples = p_size / 4;
275 addr = p; 275 addr = p;
276#endif 276#endif /* CONFIG_CPU */.
277 277
278 if (samples > PEAK_SAMPLES) 278 if (samples > PEAK_SAMPLES)
279 samples = PEAK_SAMPLES - (PEAK_STRIDE - 1); 279 samples = PEAK_SAMPLES - (PEAK_STRIDE - 1);
@@ -324,9 +324,10 @@ void pcm_calculate_peaks(int *left, int *right)
324 else 324 else
325 *right = peak_value; 325 *right = peak_value;
326 } 326 }
327#endif
328} 327}
329#endif 328#endif /* !defined(CPU_PP) */
329
330#endif /* !defined(CPU_COLDFIRE) && (CONFIG_CPU != S3C2440) */
330 331
331/**************************************************************************** 332/****************************************************************************
332 * Functions that do not require targeted implementation but only a targeted 333 * Functions that do not require targeted implementation but only a targeted