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 #ifndef __LVCS_TABLES_H__ 19 #define __LVCS_TABLES_H__ 20 21 /************************************************************************************/ 22 /* */ 23 /* Includes */ 24 /* */ 25 /************************************************************************************/ 26 27 #include "BIQUAD.h" /* Biquad definitions */ 28 29 /************************************************************************************/ 30 /* */ 31 /* Stereo Enhancer coefficient constant tables */ 32 /* */ 33 /************************************************************************************/ 34 35 /* Coefficient table for the middle filter */ 36 extern const BiquadA01B1CoefsSP_t LVCS_SEMidCoefTable[]; 37 38 /* Coefficient table for the side filter */ 39 extern const BiquadA012B12CoefsSP_t LVCS_SESideCoefTable[]; 40 41 /************************************************************************************/ 42 /* */ 43 /* Equaliser coefficient constant tables */ 44 /* */ 45 /************************************************************************************/ 46 47 extern const BiquadA012B12CoefsSP_t LVCS_EqualiserCoefTable[]; 48 49 /************************************************************************************/ 50 /* */ 51 /* Reverb delay constant tables */ 52 /* */ 53 /************************************************************************************/ 54 55 /* Stereo delay table for Concert Sound */ 56 extern const LVM_UINT16 LVCS_StereoDelayCS[]; 57 58 /************************************************************************************/ 59 /* */ 60 /* Reverb coefficients constant table */ 61 /* */ 62 /************************************************************************************/ 63 64 extern const BiquadA012B12CoefsSP_t LVCS_ReverbCoefTable[]; 65 66 /************************************************************************************/ 67 /* */ 68 /* Bypass mixer constant tables */ 69 /* */ 70 /************************************************************************************/ 71 72 extern const Gain_t LVCS_OutputGainTable[]; 73 74 /************************************************************************************/ 75 /* */ 76 /* Volume correction table */ 77 /* */ 78 /* Coefficient order: */ 79 /* Compression 100% effect */ 80 /* Compression 0% effect */ 81 /* Gain 100% effect */ 82 /* Gain 0% effect */ 83 /* */ 84 /* The Compression gain is represented by a Q1.15 number to give a range of 0dB */ 85 /* to +6dB, E.g.: */ 86 /* 0 is 0dB compression (no effect) */ 87 /* 5461 is 1dB compression gain */ 88 /* 10923 is 2dB compression gain */ 89 /* 32767 is 6dB compression gain */ 90 /* */ 91 /* The Gain is represented as a Q3.13 number to give a range of +8 to -infinity */ 92 /* E.g.: */ 93 /* 0 is -infinity */ 94 /* 32767 is +18dB (x8) gain */ 95 /* 4096 is 0dB gain */ 96 /* 1024 is -12dB gain */ 97 /* */ 98 /************************************************************************************/ 99 100 extern const LVCS_VolCorrect_t LVCS_VolCorrectTable[]; 101 extern const LVM_INT16 LVCS_VolumeTCTable[]; 102 103 /************************************************************************************/ 104 /* */ 105 /* Sample rates */ 106 /* */ 107 /************************************************************************************/ 108 109 extern const LVM_INT32 LVCS_SampleRateTable[]; 110 111 /*Speaker coeffient tables*/ 112 extern LVM_UINT16 LVCS_MS_Small_SEMiddleGainTable[]; 113 extern BiquadA012B12CoefsSP_t LVCS_MS_Small_SESideCoefTable[]; 114 extern BiquadA012B12CoefsSP_t LVCS_MS_Small_EqualiserCoefTable[]; 115 extern BiquadA012B12CoefsSP_t LVCS_MS_Small_ReverbCoefTable[]; 116 extern LVM_UINT16 LVCS_MS_Small_StereoDelayCS4MS[]; 117 extern Gain_t LVCS_MS_Small_OutputGainTable[]; 118 extern LVCS_VolCorrect_t LVCS_MS_Small_VolCorrectTable[]; 119 extern LVM_UINT16 LVCS_MS_Small_ReverbGainTable[]; 120 121 extern LVM_UINT16 LVCS_MS_Medium_SEMiddleGainTable[]; 122 extern BiquadA012B12CoefsSP_t LVCS_MS_Medium_SESideCoefTable[]; 123 extern BiquadA012B12CoefsSP_t LVCS_MS_Medium_EqualiserCoefTable[]; 124 extern BiquadA012B12CoefsSP_t LVCS_MS_Medium_ReverbCoefTable[]; 125 extern LVM_UINT16 LVCS_MS_Medium_StereoDelayCS4MS[]; 126 extern Gain_t LVCS_MS_Medium_OutputGainTable[]; 127 extern LVCS_VolCorrect_t LVCS_MS_Medium_VolCorrectTable[]; 128 extern LVM_UINT16 LVCS_MS_Medium_ReverbGainTable[]; 129 130 extern LVM_UINT16 LVCS_MS_Large_SEMiddleGainTable[]; 131 extern BiquadA012B12CoefsSP_t LVCS_MS_Large_SESideCoefTable[]; 132 extern BiquadA012B12CoefsSP_t LVCS_MS_Large_EqualiserCoefTable[]; 133 extern BiquadA012B12CoefsSP_t LVCS_MS_Large_ReverbCoefTable[]; 134 extern LVM_UINT16 LVCS_MS_Large_StereoDelayCS4MS[]; 135 extern Gain_t LVCS_MS_Large_OutputGainTable[]; 136 extern LVCS_VolCorrect_t LVCS_MS_Large_VolCorrectTable[]; 137 extern LVM_UINT16 LVCS_MS_Large_ReverbGainTable[]; 138 139 #endif /* __LVCS_TABLES_H__ */ 140