Packard Bell Vibe: imageviewer - add button to quit immediately, like in r24904.
[kugel-rb.git] / apps / dsp_asm.h
blob9204266c53ffc67eff23b451895587f34dc3e526
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_APPLY_GAIN
30 #define DSP_HAVE_ASM_RESAMPLING
31 #define DSP_HAVE_ASM_CROSSFEED
32 #define DSP_HAVE_ASM_SOUND_CHAN_MONO
33 #define DSP_HAVE_ASM_SOUND_CHAN_KARAOKE
34 #define DSP_HAVE_ASM_SAMPLE_OUTPUT_MONO
35 #define DSP_HAVE_ASM_SAMPLE_OUTPUT_STEREO
36 #elif defined (CPU_COLDFIRE)
37 #define DSP_HAVE_ASM_APPLY_GAIN
38 #define DSP_HAVE_ASM_RESAMPLING
39 #define DSP_HAVE_ASM_CROSSFEED
40 #define DSP_HAVE_ASM_SOUND_CHAN_MONO
41 #define DSP_HAVE_ASM_SOUND_CHAN_CUSTOM
42 #define DSP_HAVE_ASM_SOUND_CHAN_KARAOKE
43 #define DSP_HAVE_ASM_SAMPLE_OUTPUT_MONO
44 #define DSP_HAVE_ASM_SAMPLE_OUTPUT_STEREO
45 #endif /* CPU_COLDFIRE */
47 /* Declare prototypes based upon what's #defined above */
48 #ifdef DSP_HAVE_ASM_CROSSFEED
49 void apply_crossfeed(int count, int32_t *buf[]);
50 #endif
52 #ifdef DSP_HAVE_ASM_APPLY_GAIN
53 void dsp_apply_gain(int count, struct dsp_data *data, int32_t *buf[]);
54 #endif /* DSP_HAVE_ASM_APPLY_GAIN* */
56 #ifdef DSP_HAVE_ASM_RESAMPLING
57 int dsp_upsample(int count, struct dsp_data *data,
58 const int32_t *src[], int32_t *dst[]);
59 int dsp_downsample(int count, struct dsp_data *data,
60 const int32_t *src[], int32_t *dst[]);
61 #endif /* DSP_HAVE_ASM_RESAMPLING */
63 #ifdef DSP_HAVE_ASM_SOUND_CHAN_MONO
64 void channels_process_sound_chan_mono(int count, int32_t *buf[]);
65 #endif
67 #ifdef DSP_HAVE_ASM_SOUND_CHAN_CUSTOM
68 void channels_process_sound_chan_custom(int count, int32_t *buf[]);
69 #endif
71 #ifdef DSP_HAVE_ASM_SOUND_CHAN_KARAOKE
72 void channels_process_sound_chan_karaoke(int count, int32_t *buf[]);
73 #endif
75 #ifdef DSP_HAVE_ASM_SAMPLE_OUTPUT_STEREO
76 void sample_output_stereo(int count, struct dsp_data *data,
77 const int32_t *src[], int16_t *dst);
78 #endif
80 #ifdef DSP_HAVE_ASM_SAMPLE_OUTPUT_MONO
81 void sample_output_mono(int count, struct dsp_data *data,
82 const int32_t *src[], int16_t *dst);
83 #endif
85 #endif /* _DSP_ASM_H */