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 /* Mixer library tables */ 21 /* */ 22 /* Coefficients and table values for the mixer library, generated by the Matlab */ 23 /* Script: Mixer_GenerateCoeffs.m */ 24 /* */ 25 /************************************************************************************/ 26 27 #ifndef __LVM_MIXER_FILTER_COEFFS_H__ 28 #define __LVM_MIXER_FILTER_COEFFS_H__ 29 30 /************************************************************************************/ 31 /* */ 32 /* Alpha Time Constant table */ 33 /* */ 34 /************************************************************************************/ 35 36 #define Alpha_TableSize 50 /* The number of table entires */ 37 #define ALPHA_0 2147480769 /* Floating point Alpha = 0.999999 */ 38 #define ALPHA_1 2147479577 /* Floating point Alpha = 0.999998 */ 39 #define ALPHA_2 2147477892 /* Floating point Alpha = 0.999997 */ 40 #define ALPHA_3 2147475510 /* Floating point Alpha = 0.999996 */ 41 #define ALPHA_4 2147472141 /* Floating point Alpha = 0.999995 */ 42 #define ALPHA_5 2147467377 /* Floating point Alpha = 0.999992 */ 43 #define ALPHA_6 2147460642 /* Floating point Alpha = 0.999989 */ 44 #define ALPHA_7 2147451118 /* Floating point Alpha = 0.999985 */ 45 #define ALPHA_8 2147437651 /* Floating point Alpha = 0.999979 */ 46 #define ALPHA_9 2147418608 /* Floating point Alpha = 0.999970 */ 47 #define ALPHA_10 2147391683 /* Floating point Alpha = 0.999957 */ 48 #define ALPHA_11 2147353611 /* Floating point Alpha = 0.999939 */ 49 #define ALPHA_12 2147299779 /* Floating point Alpha = 0.999914 */ 50 #define ALPHA_13 2147223662 /* Floating point Alpha = 0.999879 */ 51 #define ALPHA_14 2147116037 /* Floating point Alpha = 0.999829 */ 52 #define ALPHA_15 2146963865 /* Floating point Alpha = 0.999758 */ 53 #define ALPHA_16 2146748712 /* Floating point Alpha = 0.999658 */ 54 #define ALPHA_17 2146444522 /* Floating point Alpha = 0.999516 */ 55 #define ALPHA_18 2146014472 /* Floating point Alpha = 0.999316 */ 56 #define ALPHA_19 2145406527 /* Floating point Alpha = 0.999033 */ 57 #define ALPHA_20 2144547188 /* Floating point Alpha = 0.998633 */ 58 #define ALPHA_21 2143332669 /* Floating point Alpha = 0.998067 */ 59 #define ALPHA_22 2141616514 /* Floating point Alpha = 0.997268 */ 60 #define ALPHA_23 2139192215 /* Floating point Alpha = 0.996139 */ 61 #define ALPHA_24 2135768939 /* Floating point Alpha = 0.994545 */ 62 #define ALPHA_25 2130937774 /* Floating point Alpha = 0.992295 */ 63 #define ALPHA_26 2124125153 /* Floating point Alpha = 0.989123 */ 64 #define ALPHA_27 2114529263 /* Floating point Alpha = 0.984654 */ 65 #define ALPHA_28 2101034612 /* Floating point Alpha = 0.978370 */ 66 #define ALPHA_29 2082100030 /* Floating point Alpha = 0.969553 */ 67 #define ALPHA_30 2055617398 /* Floating point Alpha = 0.957221 */ 68 #define ALPHA_31 2018744824 /* Floating point Alpha = 0.940051 */ 69 #define ALPHA_32 1967733015 /* Floating point Alpha = 0.916297 */ 70 #define ALPHA_33 1897794587 /* Floating point Alpha = 0.883729 */ 71 #define ALPHA_34 1803123234 /* Floating point Alpha = 0.839645 */ 72 #define ALPHA_35 1677262220 /* Floating point Alpha = 0.781036 */ 73 #define ALPHA_36 1514142675 /* Floating point Alpha = 0.705078 */ 74 #define ALPHA_37 1310197875 /* Floating point Alpha = 0.610108 */ 75 #define ALPHA_38 1067813480 /* Floating point Alpha = 0.497239 */ 76 #define ALPHA_39 799601371 /* Floating point Alpha = 0.372343 */ 77 #define ALPHA_40 531183049 /* Floating point Alpha = 0.247351 */ 78 #define ALPHA_41 297904007 /* Floating point Alpha = 0.138722 */ 79 #define ALPHA_42 131499768 /* Floating point Alpha = 0.061234 */ 80 #define ALPHA_43 41375282 /* Floating point Alpha = 0.019267 */ 81 #define ALPHA_44 8065899 /* Floating point Alpha = 0.003756 */ 82 #define ALPHA_45 799076 /* Floating point Alpha = 0.000372 */ 83 #define ALPHA_46 30398 /* Floating point Alpha = 0.000014 */ 84 #define ALPHA_47 299 /* Floating point Alpha = 0.000000 */ 85 #define ALPHA_48 0 /* Floating point Alpha = 0.000000 */ 86 #define ALPHA_49 0 /* Floating point Alpha = 0.000000 */ 87 #define ALPHA_50 0 /* Floating point Alpha = 0.000000 */ 88 89 #define ALPHA_Float_0 0.999999f 90 #define ALPHA_Float_1 0.999998f 91 #define ALPHA_Float_2 0.999997f 92 #define ALPHA_Float_3 0.999996f 93 #define ALPHA_Float_4 0.999995f 94 #define ALPHA_Float_5 0.999992f 95 #define ALPHA_Float_6 0.999989f 96 #define ALPHA_Float_7 0.999985f 97 #define ALPHA_Float_8 0.999979f 98 #define ALPHA_Float_9 0.999970f 99 #define ALPHA_Float_10 0.999957f 100 #define ALPHA_Float_11 0.999939f 101 #define ALPHA_Float_12 0.999914f 102 #define ALPHA_Float_13 0.999879f 103 #define ALPHA_Float_14 0.999829f 104 #define ALPHA_Float_15 0.999758f 105 #define ALPHA_Float_16 0.999658f 106 #define ALPHA_Float_17 0.999516f 107 #define ALPHA_Float_18 0.999316f 108 #define ALPHA_Float_19 0.999033f 109 #define ALPHA_Float_20 0.998633f 110 #define ALPHA_Float_21 0.998067f 111 #define ALPHA_Float_22 0.997268f 112 #define ALPHA_Float_23 0.996139f 113 #define ALPHA_Float_24 0.994545f 114 #define ALPHA_Float_25 0.992295f 115 #define ALPHA_Float_26 0.989123f 116 #define ALPHA_Float_27 0.984654f 117 #define ALPHA_Float_28 0.978370f 118 #define ALPHA_Float_29 0.969553f 119 #define ALPHA_Float_30 0.957221f 120 #define ALPHA_Float_31 0.940051f 121 #define ALPHA_Float_32 0.916297f 122 #define ALPHA_Float_33 0.883729f 123 #define ALPHA_Float_34 0.839645f 124 #define ALPHA_Float_35 0.781036f 125 #define ALPHA_Float_36 0.705078f 126 #define ALPHA_Float_37 0.610108f 127 #define ALPHA_Float_38 0.497239f 128 #define ALPHA_Float_39 0.372343f 129 #define ALPHA_Float_40 0.247351f 130 #define ALPHA_Float_41 0.138722f 131 #define ALPHA_Float_42 0.061234f 132 #define ALPHA_Float_43 0.019267f 133 #define ALPHA_Float_44 0.003756f 134 #define ALPHA_Float_45 0.000372f 135 #define ALPHA_Float_46 0.000014f 136 #define ALPHA_Float_47 0.000000f 137 #define ALPHA_Float_48 0.000000f 138 #define ALPHA_Float_49 0.000000f 139 #define ALPHA_Float_50 0.000000f 140 141 #endif 142