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/tdspeed.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rbcodec/dsp/tdspeed.h') diff --git a/lib/rbcodec/dsp/tdspeed.h b/lib/rbcodec/dsp/tdspeed.h index 84920ac7c2..5f35990375 100644 --- a/lib/rbcodec/dsp/tdspeed.h +++ b/lib/rbcodec/dsp/tdspeed.h @@ -40,6 +40,7 @@ void dsp_timestretch_enable(bool enable); void dsp_set_timestretch(int32_t percent); int32_t dsp_get_timestretch(void); bool dsp_timestretch_available(void); +void dsp_timestretch_init(struct dsp_config *dsp, unsigned int dsp_id) INIT_ATTR; void tdspeed_move(int i, void* current, void* new); #endif /* _TDSPEED_H */ -- cgit v1.2.3