xref: /OK3568_Linux_fs/kernel/sound/soc/rockchip/vad_preprocess.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Rockchip VAD Preprocess
4  *
5  * Copyright (C) 2018 Fuzhou Rockchip Electronics Co., Ltd
6  *
7  */
8 
9 #ifndef _ROCKCHIP_VAD_PREPROCESS_H
10 #define _ROCKCHIP_VAD_PREPROCESS_H
11 
12 struct vad_params {
13 	int noise_abs;
14 	int noise_level;
15 	int sound_thd;
16 	int vad_con_thd;
17 	int voice_gain;
18 };
19 
20 struct vad_uparams {
21 	int noise_abs;
22 };
23 
24 void vad_preprocess_init(struct vad_params *params);
25 void vad_preprocess_destroy(void);
26 void vad_preprocess_update_params(struct vad_uparams *uparams);
27 int vad_preprocess(int data);
28 
29 #endif
30