Rockboy: Significantly reduce the number of palette updates, add support for hardware...
[kugel-rb.git] / apps / dsp_asm.h
blob85db57b6efabdf41a8d3516be4fa1a7aa1981c78
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2006 Thom Johansen
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #include <config.h>
24 #ifndef _DSP_ASM_H
25 #define _DSP_ASM_H
27 /* Set the appropriate #defines based on CPU or whatever matters */
28 #if defined(CPU_ARM)
29 #define DSP_HAVE_ASM_RESAMPLING
30 #define DSP_HAVE_ASM_CROSSFEED
31 #define DSP_HAVE_ASM_SOUND_CHAN_MONO
32 #define DSP_HAVE_ASM_SOUND_CHAN_KARAOKE
33 #define DSP_HAVE_ASM_SAMPLE_OUTPUT_MONO
34 #define DSP_HAVE_ASM_SAMPLE_OUTPUT_STEREO
35 #elif defined (CPU_COLDFIRE)
36 #define DSP_HAVE_ASM_APPLY_GAIN
37 #define DSP_HAVE_ASM_RESAMPLING
38 #define DSP_HAVE_ASM_CROSSFEED
39 #define DSP_HAVE_ASM_SOUND_CHAN_MONO
40 #define DSP_HAVE_ASM_SOUND_CHAN_CUSTOM
41 #define DSP_HAVE_ASM_SOUND_CHAN_KARAOKE
42 #define DSP_HAVE_ASM_SAMPLE_OUTPUT_MONO
43 #define DSP_HAVE_ASM_SAMPLE_OUTPUT_STEREO
44 #endif /* CPU_COLDFIRE */
46 /* Declare prototypes based upon what's #defined above */
47 #ifdef DSP_HAVE_ASM_CROSSFEED
48 void apply_crossfeed(int count, int32_t *buf[]);
49 #endif
51 #ifdef DSP_HAVE_ASM_APPLY_GAIN
52 void dsp_apply_gain(int count, struct dsp_data *data, int32_t *buf[]);
53 #endif /* DSP_HAVE_ASM_APPLY_GAIN* */
55 #ifdef DSP_HAVE_ASM_RESAMPLING
56 int dsp_upsample(int count, struct dsp_data *data,
57 const int32_t *src[], int32_t *dst[]);
58 int dsp_downsample(int count, struct dsp_data *data,
59 const int32_t *src[], int32_t *dst[]);
60 #endif /* DSP_HAVE_ASM_RESAMPLING */
62 #ifdef DSP_HAVE_ASM_SOUND_CHAN_MONO
63 void channels_process_sound_chan_mono(int count, int32_t *buf[]);
64 #endif
66 #ifdef DSP_HAVE_ASM_SOUND_CHAN_CUSTOM
67 void channels_process_sound_chan_custom(int count, int32_t *buf[]);
68 #endif
70 #ifdef DSP_HAVE_ASM_SOUND_CHAN_KARAOKE
71 void channels_process_sound_chan_karaoke(int count, int32_t *buf[]);
72 #endif
74 #ifdef DSP_HAVE_ASM_SAMPLE_OUTPUT_STEREO
75 void sample_output_stereo(int count, struct dsp_data *data,
76 const int32_t *src[], int16_t *dst);
77 #endif
79 #ifdef DSP_HAVE_ASM_SAMPLE_OUTPUT_MONO
80 void sample_output_mono(int count, struct dsp_data *data,
81 const int32_t *src[], int16_t *dst);
82 #endif
84 #endif /* _DSP_ASM_H */