From 9a906586d17929ef09151e3dbfea07013c5c3092 Mon Sep 17 00:00:00 2001 From: Baofeng Tian Date: Fri, 8 Dec 2023 13:58:07 +0800 Subject: [PATCH] Audio: drc: remove incompatible inline for three functions These three functions are called by external modules and its prototype is not defined with inline, also these functions are not performance critical function, no need inline. Signed-off-by: Baofeng Tian --- src/audio/drc/drc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/audio/drc/drc.c b/src/audio/drc/drc.c index aea41080b..f27e50965 100644 --- a/src/audio/drc/drc.c +++ b/src/audio/drc/drc.c @@ -44,7 +44,7 @@ DECLARE_SOF_RT_UUID("drc", drc_uuid, 0xb36ee4da, 0x006f, 0x47f9, DECLARE_TR_CTX(drc_tr, SOF_UUID(drc_uuid), LOG_LEVEL_INFO); -inline void drc_reset_state(struct drc_state *state) +void drc_reset_state(struct drc_state *state) { int i; @@ -68,9 +68,9 @@ inline void drc_reset_state(struct drc_state *state) state->max_attack_compression_diff_db = INT32_MIN; } -inline int drc_init_pre_delay_buffers(struct drc_state *state, - size_t sample_bytes, - int channels) +int drc_init_pre_delay_buffers(struct drc_state *state, + size_t sample_bytes, + int channels) { size_t bytes_per_channel = sample_bytes * CONFIG_DRC_MAX_PRE_DELAY_FRAMES; size_t bytes_total = bytes_per_channel * channels; @@ -91,9 +91,9 @@ inline int drc_init_pre_delay_buffers(struct drc_state *state, return 0; } -inline int drc_set_pre_delay_time(struct drc_state *state, - int32_t pre_delay_time, - int32_t rate) +int drc_set_pre_delay_time(struct drc_state *state, + int32_t pre_delay_time, + int32_t rate) { int32_t pre_delay_frames;