summaryrefslogtreecommitdiff
path: root/firmware/asm/arm/pcm-mixer-armv5.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-02-23 08:14:46 -0500
committerMichael Sevakis <jethead71@rockbox.org>2012-03-03 07:23:38 +0100
commit286a4c5caa1945c8d1cb365a3d90fb09d5700cb2 (patch)
tree4835f46d16ec78d035ec9f49333079fe618384c1 /firmware/asm/arm/pcm-mixer-armv5.c
parent3f82f3aca14eb954e55f761721ffdd2684f0e812 (diff)
downloadrockbox-286a4c5caa1945c8d1cb365a3d90fb09d5700cb2.tar.gz
rockbox-286a4c5caa1945c8d1cb365a3d90fb09d5700cb2.zip
Revise the PCM callback system after adding multichannel audio.
Additional status callback is added to pcm_play/rec_data instead of using a special function to set it. Status includes DMA error reporting to the status callback. Playback and recording callback become more alike except playback uses "const void **addr" (because the data should not be altered) and recording uses "void **addr". "const" is put in place throughout where appropriate. Most changes are fairly trivial. One that should be checked in particular because it isn't so much is telechips, if anyone cares to bother. PP5002 is not so trivial either but that tested as working. Change-Id: I4928d69b3b3be7fb93e259f81635232df9bd1df2 Reviewed-on: http://gerrit.rockbox.org/166 Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Tested-by: Michael Sevakis <jethead71@rockbox.org>
Diffstat (limited to 'firmware/asm/arm/pcm-mixer-armv5.c')
-rw-r--r--firmware/asm/arm/pcm-mixer-armv5.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/asm/arm/pcm-mixer-armv5.c b/firmware/asm/arm/pcm-mixer-armv5.c
index 64f2c86f52..add1522fd9 100644
--- a/firmware/asm/arm/pcm-mixer-armv5.c
+++ b/firmware/asm/arm/pcm-mixer-armv5.c
@@ -24,9 +24,9 @@
24 24
25/* Mix channels' samples and apply gain factors */ 25/* Mix channels' samples and apply gain factors */
26static FORCE_INLINE void mix_samples(void *out, 26static FORCE_INLINE void mix_samples(void *out,
27 void *src0, 27 const void *src0,
28 int32_t src0_amp, 28 int32_t src0_amp,
29 void *src1, 29 const void *src1,
30 int32_t src1_amp, 30 int32_t src1_amp,
31 size_t size) 31 size_t size)
32{ 32{
@@ -57,7 +57,7 @@ static FORCE_INLINE void mix_samples(void *out,
57 57
58/* Write channel's samples and apply gain factor */ 58/* Write channel's samples and apply gain factor */
59static FORCE_INLINE void write_samples(void *out, 59static FORCE_INLINE void write_samples(void *out,
60 void *src, 60 const void *src,
61 int32_t amp, 61 int32_t amp,
62 size_t size) 62 size_t size)
63{ 63{