diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-03 15:33:15 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-23 12:47:10 -0500 |
commit | 6e794c9a2d9e91a926f70d0fcc66e255b0bdc221 (patch) | |
tree | 3a0d1371a0a259f2ed761e5db871064867b2a7ce /lib/rbcodec/dsp/resample.h | |
parent | 34a092a99729dd4de014aa1f76c48660f28a9c97 (diff) | |
download | rockbox-6e794c9a2d9e91a926f70d0fcc66e255b0bdc221.tar.gz rockbox-6e794c9a2d9e91a926f70d0fcc66e255b0bdc221.zip |
rbcodec dsp: Refactor DSP init routines, restore INIT_ATTR
Refactor DSP init routines so there is a dedicated init function
for the stages that need it. Remove the DSP_INIT configure message.
This allows the init code to be safely marked INIT_ATTR, saving a
bit of code size, and allowing the linker to verify that there are
no unsafe references to the init routines.
Change-Id: I1702f0f579bbb300a6fe7d0e67b13aa2e9dd7f8a
Diffstat (limited to 'lib/rbcodec/dsp/resample.h')
-rw-r--r-- | lib/rbcodec/dsp/resample.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/rbcodec/dsp/resample.h b/lib/rbcodec/dsp/resample.h new file mode 100644 index 0000000000..1f6edf00ca --- /dev/null +++ b/lib/rbcodec/dsp/resample.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2022 Aidan MacDonald | ||
11 | * | ||
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. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | #ifndef _DSP_RESAMPLE_H | ||
22 | #define _DSP_RESAMPLE_H | ||
23 | |||
24 | void dsp_resample_init(struct dsp_config *dsp, unsigned int dsp_id) INIT_ATTR; | ||
25 | |||
26 | #endif /* _DSP_RESAMPLE_H */ | ||