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 /* */ 21 /* Includes */ 22 /* */ 23 /************************************************************************************/ 24 #ifndef __LVBDE_TABLES_H__ 25 #define __LVBDE_TABLES_H__ 26 27 #ifdef __cplusplus 28 extern "C" { 29 #endif /* __cplusplus */ 30 31 #include "BIQUAD.h" 32 #include "LVM_Types.h" 33 34 /************************************************************************************/ 35 /* */ 36 /* Coefficients constant table */ 37 /* */ 38 /************************************************************************************/ 39 40 /* 41 * High Pass Filter Coefficient table 42 */ 43 extern const BQ_C32_Coefs_t LVDBE_HPF_Table[]; 44 45 /* 46 * Band Pass Filter coefficient table 47 */ 48 extern const BP_C32_Coefs_t LVDBE_BPF_Table[]; 49 50 /************************************************************************************/ 51 /* */ 52 /* AGC constant tables */ 53 /* */ 54 /************************************************************************************/ 55 56 /* Attack time (signal too large) */ 57 extern const LVM_INT16 LVDBE_AGC_ATTACK_Table[]; 58 59 /* Decay time (signal too small) */ 60 extern const LVM_INT16 LVDBE_AGC_DECAY_Table[]; 61 62 /* Gain for use without the high pass filter */ 63 extern const LVM_INT32 LVDBE_AGC_GAIN_Table[]; 64 65 /* Gain for use with the high pass filter */ 66 extern const LVM_INT32 LVDBE_AGC_HPFGAIN_Table[]; 67 68 /************************************************************************************/ 69 /* */ 70 /* Volume control gain and time constant tables */ 71 /* */ 72 /************************************************************************************/ 73 74 /* dB to linear conversion table */ 75 extern const LVM_INT16 LVDBE_VolumeTable[]; 76 77 extern const LVM_INT16 LVDBE_VolumeTCTable[]; 78 79 extern const LVM_INT16 LVDBE_MixerTCTable[]; 80 81 #ifdef __cplusplus 82 } 83 #endif /* __cplusplus */ 84 85 #endif /* __LVBDE_TABLES_H__ */ 86