• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2004-2010 NXP Software
3  * Copyright (C) 2010 The Android Open Source Project
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 /************************************************************************************/
19 /*                                                                                  */
20 /*    Includes                                                                      */
21 /*                                                                                  */
22 /************************************************************************************/
23 #ifndef __LVBDE_TABLES_H__
24 #define __LVBDE_TABLES_H__
25 
26 #include "BIQUAD.h"
27 #include "LVM_Types.h"
28 
29 /************************************************************************************/
30 /*                                                                                  */
31 /*    Coefficients constant table                                                   */
32 /*                                                                                  */
33 /************************************************************************************/
34 
35 /*
36  * High Pass Filter Coefficient table
37  */
38 extern const BQ_FLOAT_Coefs_t LVDBE_HPF_Table[];
39 
40 /*
41  * Band Pass Filter coefficient table
42  */
43 extern const BP_FLOAT_Coefs_t LVDBE_BPF_Table[];
44 
45 /************************************************************************************/
46 /*                                                                                  */
47 /*    AGC constant tables                                                           */
48 /*                                                                                  */
49 /************************************************************************************/
50 
51 /* Attack time (signal too large) */
52 extern const LVM_FLOAT LVDBE_AGC_ATTACK_Table[];
53 
54 /* Decay time (signal too small) */
55 extern const LVM_FLOAT LVDBE_AGC_DECAY_Table[];
56 
57 /* Gain for use without the high pass filter */
58 extern const LVM_FLOAT LVDBE_AGC_GAIN_Table[];
59 
60 /* Gain for use with the high pass filter */
61 extern const LVM_FLOAT LVDBE_AGC_HPFGAIN_Table[];
62 
63 /************************************************************************************/
64 /*                                                                                  */
65 /*    Volume control gain and time constant tables                                  */
66 /*                                                                                  */
67 /************************************************************************************/
68 
69 /* dB to linear conversion table */
70 extern const LVM_FLOAT LVDBE_VolumeTable[];
71 extern const LVM_FLOAT LVDBE_VolumeTCTable[];
72 
73 extern const LVM_INT16 LVDBE_MixerTCTable[];
74 
75 #endif /* __LVBDE_TABLES_H__ */
76