summaryrefslogtreecommitdiff
path: root/apps/dsp_asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dsp_asm.h')
-rw-r--r--apps/dsp_asm.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/apps/dsp_asm.h b/apps/dsp_asm.h
index aaf7e666ec..a9e7fac6b0 100644
--- a/apps/dsp_asm.h
+++ b/apps/dsp_asm.h
@@ -22,10 +22,22 @@
22#ifndef _DSP_ASM_H 22#ifndef _DSP_ASM_H
23#define _DSP_ASM_H 23#define _DSP_ASM_H
24 24
25#define ACF_SWITCHPARAM(count, buf) count, buf
26
27#ifndef SIMULATOR
28
25#if defined(CPU_COLDFIRE) || defined(CPU_ARM) 29#if defined(CPU_COLDFIRE) || defined(CPU_ARM)
26#define DSP_HAVE_ASM_CROSSFEED 30#define DSP_HAVE_ASM_CROSSFEED
27void apply_crossfeed(int32_t *src[], int count); 31#if defined(CPU_COLDFIRE)
32/* ACF_SWITCHPARAM can be stripped out if all have the same parameter
33 order - DSP_CROSSFEED_DELAY_PTR if all use a pointer instead of index */
34#define DSP_CROSSFEED_DELAY_PTR
35#else
36#undef ACF_SWITCHPARAM
37#define ACF_SWITCHPARAM(count, buf) buf, count
28#endif 38#endif
39void apply_crossfeed(ACF_SWITCHPARAM(int count, int32_t *buf[]));
40#endif /* defined(CPU_COLDFIRE) || defined(CPU_ARM) */
29 41
30#if defined (CPU_COLDFIRE) 42#if defined (CPU_COLDFIRE)
31#define DSP_HAVE_ASM_RESAMPLING 43#define DSP_HAVE_ASM_RESAMPLING
@@ -45,5 +57,8 @@ void sample_output_mono(int count, struct dsp_data *data,
45#define DSP_HAVE_ASM_SAMPLE_OUTPUT_STEREO 57#define DSP_HAVE_ASM_SAMPLE_OUTPUT_STEREO
46void sample_output_stereo(int count, struct dsp_data *data, 58void sample_output_stereo(int count, struct dsp_data *data,
47 int32_t *src[], int16_t *dst); 59 int32_t *src[], int16_t *dst);
48#endif 60#endif /* CPU_COLDFIRE */
61
62#endif /* SIMULATOR */
63
49#endif /* _DSP_ASM_H */ 64#endif /* _DSP_ASM_H */