Skip to content

Commit

Permalink
Crossover: move some inline functions to header file
Browse files Browse the repository at this point in the history
This is a clean up, purpose is declutter headers, toml files,
Readme.md etc per module basis, since today everything is scattered
in current code base.

Signed-off-by: Baofeng Tian <baofeng.tian@intel.com>
  • Loading branch information
btian1 committed Dec 20, 2023
1 parent f5e24e6 commit 458619d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 1 addition & 7 deletions src/audio/crossover/crossover.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,11 @@ DECLARE_SOF_RT_UUID("crossover", crossover_uuid, 0x948c9ad1, 0x806a, 0x4131,

DECLARE_TR_CTX(crossover_tr, SOF_UUID(crossover_uuid), LOG_LEVEL_INFO);

static inline void crossover_free_config(struct sof_crossover_config **config)
{
rfree(*config);
*config = NULL;
}

/**
* \brief Reset the state (coefficients and delay) of the crossover filter
* across all channels
*/
static inline void crossover_reset_state(struct comp_data *cd)
static void crossover_reset_state(struct comp_data *cd)
{
int i;

Expand Down
6 changes: 6 additions & 0 deletions src/audio/crossover/crossover.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,10 @@ static inline int32_t crossover_generic_process_lr4(int32_t in,
return iir_df2t(lr4, in);
}

static inline void crossover_free_config(struct sof_crossover_config **config)
{
rfree(*config);
*config = NULL;
}

#endif // __SOF_AUDIO_CROSSOVER_CROSSOVER_H__

0 comments on commit 458619d

Please sign in to comment.