mirror of https://github.com/thesofproject/sof.git
Audio: TDFB: Simplify processing function select set_func()
The optimized processing functions are handled other way, so these processing set functions were never used for the purpose of selecting different code versions. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
ef12d4c6fb
commit
eb2e6fe985
|
@ -57,19 +57,19 @@ static inline int set_func(struct processing_module *mod, enum sof_ipc_frame fmt
|
|||
#if CONFIG_FORMAT_S16LE
|
||||
case SOF_IPC_FRAME_S16_LE:
|
||||
comp_dbg(mod->dev, "set_func(), SOF_IPC_FRAME_S16_LE");
|
||||
set_s16_fir(cd);
|
||||
cd->tdfb_func = tdfb_fir_s16;
|
||||
break;
|
||||
#endif /* CONFIG_FORMAT_S16LE */
|
||||
#if CONFIG_FORMAT_S24LE
|
||||
case SOF_IPC_FRAME_S24_4LE:
|
||||
comp_dbg(mod->dev, "set_func(), SOF_IPC_FRAME_S24_4LE");
|
||||
set_s24_fir(cd);
|
||||
cd->tdfb_func = tdfb_fir_s24;
|
||||
break;
|
||||
#endif /* CONFIG_FORMAT_S24LE */
|
||||
#if CONFIG_FORMAT_S32LE
|
||||
case SOF_IPC_FRAME_S32_LE:
|
||||
comp_dbg(mod->dev, "set_func(), SOF_IPC_FRAME_S32_LE");
|
||||
set_s32_fir(cd);
|
||||
cd->tdfb_func = tdfb_fir_s32;
|
||||
break;
|
||||
#endif /* CONFIG_FORMAT_S32LE */
|
||||
default:
|
||||
|
|
|
@ -135,30 +135,6 @@ static inline void tdfb_cdec_s16(int16_t **ptr, int16_t *start, size_t size)
|
|||
*ptr = (int16_t *)((uint8_t *)*ptr + size);
|
||||
}
|
||||
|
||||
/*
|
||||
* The optimized FIR functions variants need to be updated into function
|
||||
* set_func.
|
||||
*/
|
||||
|
||||
#if CONFIG_FORMAT_S16LE
|
||||
static inline void set_s16_fir(struct tdfb_comp_data *cd)
|
||||
{
|
||||
cd->tdfb_func = tdfb_fir_s16;
|
||||
}
|
||||
#endif /* CONFIG_FORMAT_S16LE */
|
||||
#if CONFIG_FORMAT_S24LE
|
||||
static inline void set_s24_fir(struct tdfb_comp_data *cd)
|
||||
{
|
||||
cd->tdfb_func = tdfb_fir_s24;
|
||||
}
|
||||
#endif /* CONFIG_FORMAT_S24LE */
|
||||
#if CONFIG_FORMAT_S32LE
|
||||
static inline void set_s32_fir(struct tdfb_comp_data *cd)
|
||||
{
|
||||
cd->tdfb_func = tdfb_fir_s32;
|
||||
}
|
||||
#endif /* CONFIG_FORMAT_S32LE */
|
||||
|
||||
int tdfb_ipc_notification_init(struct processing_module *mod);
|
||||
void tdfb_send_ipc_notification(struct processing_module *mod);
|
||||
int tdfb_get_ipc_config(struct processing_module *mod,
|
||||
|
|
Loading…
Reference in New Issue