From 6e794c9a2d9e91a926f70d0fcc66e255b0bdc221 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 3 Dec 2022 15:33:15 +0000 Subject: 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 --- lib/rbcodec/dsp/resample.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 lib/rbcodec/dsp/resample.h (limited to 'lib/rbcodec/dsp/resample.h') 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 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2022 Aidan MacDonald + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ +#ifndef _DSP_RESAMPLE_H +#define _DSP_RESAMPLE_H + +void dsp_resample_init(struct dsp_config *dsp, unsigned int dsp_id) INIT_ATTR; + +#endif /* _DSP_RESAMPLE_H */ -- cgit v1.2.3