Home | History | Annotate | Download | only in src
      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 /*                                                                                  */
     33 /* Alpha Time Constant table                                                        */
     34 /*                                                                                  */
     35 /************************************************************************************/
     36 
     37 #define Alpha_TableSize                        50      /* The number of table entires */
     38 #define ALPHA_0                        2147480769      /* Floating point Alpha = 0.999999 */
     39 #define ALPHA_1                        2147479577      /* Floating point Alpha = 0.999998 */
     40 #define ALPHA_2                        2147477892      /* Floating point Alpha = 0.999997 */
     41 #define ALPHA_3                        2147475510      /* Floating point Alpha = 0.999996 */
     42 #define ALPHA_4                        2147472141      /* Floating point Alpha = 0.999995 */
     43 #define ALPHA_5                        2147467377      /* Floating point Alpha = 0.999992 */
     44 #define ALPHA_6                        2147460642      /* Floating point Alpha = 0.999989 */
     45 #define ALPHA_7                        2147451118      /* Floating point Alpha = 0.999985 */
     46 #define ALPHA_8                        2147437651      /* Floating point Alpha = 0.999979 */
     47 #define ALPHA_9                        2147418608      /* Floating point Alpha = 0.999970 */
     48 #define ALPHA_10                       2147391683      /* Floating point Alpha = 0.999957 */
     49 #define ALPHA_11                       2147353611      /* Floating point Alpha = 0.999939 */
     50 #define ALPHA_12                       2147299779      /* Floating point Alpha = 0.999914 */
     51 #define ALPHA_13                       2147223662      /* Floating point Alpha = 0.999879 */
     52 #define ALPHA_14                       2147116037      /* Floating point Alpha = 0.999829 */
     53 #define ALPHA_15                       2146963865      /* Floating point Alpha = 0.999758 */
     54 #define ALPHA_16                       2146748712      /* Floating point Alpha = 0.999658 */
     55 #define ALPHA_17                       2146444522      /* Floating point Alpha = 0.999516 */
     56 #define ALPHA_18                       2146014472      /* Floating point Alpha = 0.999316 */
     57 #define ALPHA_19                       2145406527      /* Floating point Alpha = 0.999033 */
     58 #define ALPHA_20                       2144547188      /* Floating point Alpha = 0.998633 */
     59 #define ALPHA_21                       2143332669      /* Floating point Alpha = 0.998067 */
     60 #define ALPHA_22                       2141616514      /* Floating point Alpha = 0.997268 */
     61 #define ALPHA_23                       2139192215      /* Floating point Alpha = 0.996139 */
     62 #define ALPHA_24                       2135768939      /* Floating point Alpha = 0.994545 */
     63 #define ALPHA_25                       2130937774      /* Floating point Alpha = 0.992295 */
     64 #define ALPHA_26                       2124125153      /* Floating point Alpha = 0.989123 */
     65 #define ALPHA_27                       2114529263      /* Floating point Alpha = 0.984654 */
     66 #define ALPHA_28                       2101034612      /* Floating point Alpha = 0.978370 */
     67 #define ALPHA_29                       2082100030      /* Floating point Alpha = 0.969553 */
     68 #define ALPHA_30                       2055617398      /* Floating point Alpha = 0.957221 */
     69 #define ALPHA_31                       2018744824      /* Floating point Alpha = 0.940051 */
     70 #define ALPHA_32                       1967733015      /* Floating point Alpha = 0.916297 */
     71 #define ALPHA_33                       1897794587      /* Floating point Alpha = 0.883729 */
     72 #define ALPHA_34                       1803123234      /* Floating point Alpha = 0.839645 */
     73 #define ALPHA_35                       1677262220      /* Floating point Alpha = 0.781036 */
     74 #define ALPHA_36                       1514142675      /* Floating point Alpha = 0.705078 */
     75 #define ALPHA_37                       1310197875      /* Floating point Alpha = 0.610108 */
     76 #define ALPHA_38                       1067813480      /* Floating point Alpha = 0.497239 */
     77 #define ALPHA_39                        799601371      /* Floating point Alpha = 0.372343 */
     78 #define ALPHA_40                        531183049      /* Floating point Alpha = 0.247351 */
     79 #define ALPHA_41                        297904007      /* Floating point Alpha = 0.138722 */
     80 #define ALPHA_42                        131499768      /* Floating point Alpha = 0.061234 */
     81 #define ALPHA_43                         41375282      /* Floating point Alpha = 0.019267 */
     82 #define ALPHA_44                          8065899      /* Floating point Alpha = 0.003756 */
     83 #define ALPHA_45                           799076      /* Floating point Alpha = 0.000372 */
     84 #define ALPHA_46                            30398      /* Floating point Alpha = 0.000014 */
     85 #define ALPHA_47                              299      /* Floating point Alpha = 0.000000 */
     86 #define ALPHA_48                                0      /* Floating point Alpha = 0.000000 */
     87 #define ALPHA_49                                0      /* Floating point Alpha = 0.000000 */
     88 #define ALPHA_50                                0      /* Floating point Alpha = 0.000000 */
     89 
     90 
     91 #endif
     92