LVM_Coeffs.h revision 2c8e5cab3faa6d360e222b7a6c40a80083d021ac
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 __LVM_COEFFS_H__
19#define __LVM_COEFFS_H__
20
21
22/************************************************************************************/
23/*                                                                                  */
24/* High Pass Shelving Filter coefficients                                           */
25/*                                                                                  */
26/************************************************************************************/
27
28#define TrebleBoostCorner                                  8000
29#define TrebleBoostMinRate                                     4
30#define TrebleBoostSteps                                    15
31
32
33/* Coefficients for sample rate 22050Hz */
34                                                                    /* Gain =  1.000000 dB */
35#define HPF_Fs22050_Gain1_A0                             5383         /* Floating point value 0.164291 */
36#define HPF_Fs22050_Gain1_A1                            16859         /* Floating point value 0.514492 */
37#define HPF_Fs22050_Gain1_A2                                0         /* Floating point value 0.000000 */
38#define HPF_Fs22050_Gain1_B1                            12125         /* Floating point value 0.370033 */
39#define HPF_Fs22050_Gain1_B2                                0         /* Floating point value 0.000000 */
40#define HPF_Fs22050_Gain1_Shift                             1         /* Shift value */
41                                                                    /* Gain =  2.000000 dB */
42#define HPF_Fs22050_Gain2_A0                             4683         /* Floating point value 0.142925 */
43#define HPF_Fs22050_Gain2_A1                            17559         /* Floating point value 0.535858 */
44#define HPF_Fs22050_Gain2_A2                                0         /* Floating point value 0.000000 */
45#define HPF_Fs22050_Gain2_B1                            12125         /* Floating point value 0.370033 */
46#define HPF_Fs22050_Gain2_B2                                0         /* Floating point value 0.000000 */
47#define HPF_Fs22050_Gain2_Shift                             1         /* Shift value */
48                                                                    /* Gain =  3.000000 dB */
49#define HPF_Fs22050_Gain3_A0                             3898         /* Floating point value 0.118953 */
50#define HPF_Fs22050_Gain3_A1                            18345         /* Floating point value 0.559830 */
51#define HPF_Fs22050_Gain3_A2                                0         /* Floating point value 0.000000 */
52#define HPF_Fs22050_Gain3_B1                            12125         /* Floating point value 0.370033 */
53#define HPF_Fs22050_Gain3_B2                                0         /* Floating point value 0.000000 */
54#define HPF_Fs22050_Gain3_Shift                             1         /* Shift value */
55                                                                    /* Gain =  4.000000 dB */
56#define HPF_Fs22050_Gain4_A0                             3016         /* Floating point value 0.092055 */
57#define HPF_Fs22050_Gain4_A1                            19226         /* Floating point value 0.586728 */
58#define HPF_Fs22050_Gain4_A2                                0         /* Floating point value 0.000000 */
59#define HPF_Fs22050_Gain4_B1                            12125         /* Floating point value 0.370033 */
60#define HPF_Fs22050_Gain4_B2                                0         /* Floating point value 0.000000 */
61#define HPF_Fs22050_Gain4_Shift                             1         /* Shift value */
62                                                                    /* Gain =  5.000000 dB */
63#define HPF_Fs22050_Gain5_A0                             2028         /* Floating point value 0.061876 */
64#define HPF_Fs22050_Gain5_A1                            20215         /* Floating point value 0.616907 */
65#define HPF_Fs22050_Gain5_A2                                0         /* Floating point value 0.000000 */
66#define HPF_Fs22050_Gain5_B1                            12125         /* Floating point value 0.370033 */
67#define HPF_Fs22050_Gain5_B2                                0         /* Floating point value 0.000000 */
68#define HPF_Fs22050_Gain5_Shift                             1         /* Shift value */
69                                                                    /* Gain =  6.000000 dB */
70#define HPF_Fs22050_Gain6_A0                              918         /* Floating point value 0.028013 */
71#define HPF_Fs22050_Gain6_A1                            21324         /* Floating point value 0.650770 */
72#define HPF_Fs22050_Gain6_A2                                0         /* Floating point value 0.000000 */
73#define HPF_Fs22050_Gain6_B1                            12125         /* Floating point value 0.370033 */
74#define HPF_Fs22050_Gain6_B2                                0         /* Floating point value 0.000000 */
75#define HPF_Fs22050_Gain6_Shift                             1         /* Shift value */
76                                                                    /* Gain =  7.000000 dB */
77#define HPF_Fs22050_Gain7_A0                             -164         /* Floating point value -0.005002 */
78#define HPF_Fs22050_Gain7_A1                            11311         /* Floating point value 0.345199 */
79#define HPF_Fs22050_Gain7_A2                                0         /* Floating point value 0.000000 */
80#define HPF_Fs22050_Gain7_B1                            12125         /* Floating point value 0.370033 */
81#define HPF_Fs22050_Gain7_B2                                0         /* Floating point value 0.000000 */
82#define HPF_Fs22050_Gain7_Shift                             2         /* Shift value */
83                                                                    /* Gain =  8.000000 dB */
84#define HPF_Fs22050_Gain8_A0                             -864         /* Floating point value -0.026368 */
85#define HPF_Fs22050_Gain8_A1                            12012         /* Floating point value 0.366565 */
86#define HPF_Fs22050_Gain8_A2                                0         /* Floating point value 0.000000 */
87#define HPF_Fs22050_Gain8_B1                            12125         /* Floating point value 0.370033 */
88#define HPF_Fs22050_Gain8_B2                                0         /* Floating point value 0.000000 */
89#define HPF_Fs22050_Gain8_Shift                             2         /* Shift value */
90                                                                    /* Gain =  9.000000 dB */
91#define HPF_Fs22050_Gain9_A0                            -1650         /* Floating point value -0.050340 */
92#define HPF_Fs22050_Gain9_A1                            12797         /* Floating point value 0.390537 */
93#define HPF_Fs22050_Gain9_A2                                0         /* Floating point value 0.000000 */
94#define HPF_Fs22050_Gain9_B1                            12125         /* Floating point value 0.370033 */
95#define HPF_Fs22050_Gain9_B2                                0         /* Floating point value 0.000000 */
96#define HPF_Fs22050_Gain9_Shift                             2         /* Shift value */
97                                                                    /* Gain =  10.000000 dB */
98#define HPF_Fs22050_Gain10_A0                           -2531         /* Floating point value -0.077238 */
99#define HPF_Fs22050_Gain10_A1                           13679         /* Floating point value 0.417435 */
100#define HPF_Fs22050_Gain10_A2                               0         /* Floating point value 0.000000 */
101#define HPF_Fs22050_Gain10_B1                           12125         /* Floating point value 0.370033 */
102#define HPF_Fs22050_Gain10_B2                               0         /* Floating point value 0.000000 */
103#define HPF_Fs22050_Gain10_Shift                            2         /* Shift value */
104                                                                    /* Gain =  11.000000 dB */
105#define HPF_Fs22050_Gain11_A0                           -3520         /* Floating point value -0.107417 */
106#define HPF_Fs22050_Gain11_A1                           14667         /* Floating point value 0.447615 */
107#define HPF_Fs22050_Gain11_A2                               0         /* Floating point value 0.000000 */
108#define HPF_Fs22050_Gain11_B1                           12125         /* Floating point value 0.370033 */
109#define HPF_Fs22050_Gain11_B2                               0         /* Floating point value 0.000000 */
110#define HPF_Fs22050_Gain11_Shift                            2         /* Shift value */
111                                                                    /* Gain =  12.000000 dB */
112#define HPF_Fs22050_Gain12_A0                           -4629         /* Floating point value -0.141279 */
113#define HPF_Fs22050_Gain12_A1                           15777         /* Floating point value 0.481477 */
114#define HPF_Fs22050_Gain12_A2                               0         /* Floating point value 0.000000 */
115#define HPF_Fs22050_Gain12_B1                           12125         /* Floating point value 0.370033 */
116#define HPF_Fs22050_Gain12_B2                               0         /* Floating point value 0.000000 */
117#define HPF_Fs22050_Gain12_Shift                            2         /* Shift value */
118                                                                    /* Gain =  13.000000 dB */
119#define HPF_Fs22050_Gain13_A0                           -2944         /* Floating point value -0.089849 */
120#define HPF_Fs22050_Gain13_A1                            8531         /* Floating point value 0.260352 */
121#define HPF_Fs22050_Gain13_A2                               0         /* Floating point value 0.000000 */
122#define HPF_Fs22050_Gain13_B1                           12125         /* Floating point value 0.370033 */
123#define HPF_Fs22050_Gain13_B2                               0         /* Floating point value 0.000000 */
124#define HPF_Fs22050_Gain13_Shift                            3         /* Shift value */
125                                                                    /* Gain =  14.000000 dB */
126#define HPF_Fs22050_Gain14_A0                           -3644         /* Floating point value -0.111215 */
127#define HPF_Fs22050_Gain14_A1                            9231         /* Floating point value 0.281718 */
128#define HPF_Fs22050_Gain14_A2                               0         /* Floating point value 0.000000 */
129#define HPF_Fs22050_Gain14_B1                           12125         /* Floating point value 0.370033 */
130#define HPF_Fs22050_Gain14_B2                               0         /* Floating point value 0.000000 */
131#define HPF_Fs22050_Gain14_Shift                            3         /* Shift value */
132                                                                    /* Gain =  15.000000 dB */
133#define HPF_Fs22050_Gain15_A0                           -4430         /* Floating point value -0.135187 */
134#define HPF_Fs22050_Gain15_A1                           10017         /* Floating point value 0.305690 */
135#define HPF_Fs22050_Gain15_A2                               0         /* Floating point value 0.000000 */
136#define HPF_Fs22050_Gain15_B1                           12125         /* Floating point value 0.370033 */
137#define HPF_Fs22050_Gain15_B2                               0         /* Floating point value 0.000000 */
138#define HPF_Fs22050_Gain15_Shift                            3         /* Shift value */
139
140
141/* Coefficients for sample rate 24000Hz */
142                                                                    /* Gain =  1.000000 dB */
143#define HPF_Fs24000_Gain1_A0                             3625         /* Floating point value 0.110628 */
144#define HPF_Fs24000_Gain1_A1                            16960         /* Floating point value 0.517578 */
145#define HPF_Fs24000_Gain1_A2                                0         /* Floating point value 0.000000 */
146#define HPF_Fs24000_Gain1_B1                             8780         /* Floating point value 0.267949 */
147#define HPF_Fs24000_Gain1_B2                                0         /* Floating point value 0.000000 */
148#define HPF_Fs24000_Gain1_Shift                             1         /* Shift value */
149                                                                    /* Gain =  2.000000 dB */
150#define HPF_Fs24000_Gain2_A0                             2811         /* Floating point value 0.085800 */
151#define HPF_Fs24000_Gain2_A1                            17774         /* Floating point value 0.542406 */
152#define HPF_Fs24000_Gain2_A2                                0         /* Floating point value 0.000000 */
153#define HPF_Fs24000_Gain2_B1                             8780         /* Floating point value 0.267949 */
154#define HPF_Fs24000_Gain2_B2                                0         /* Floating point value 0.000000 */
155#define HPF_Fs24000_Gain2_Shift                             1         /* Shift value */
156                                                                    /* Gain =  3.000000 dB */
157#define HPF_Fs24000_Gain3_A0                             1899         /* Floating point value 0.057943 */
158#define HPF_Fs24000_Gain3_A1                            18686         /* Floating point value 0.570263 */
159#define HPF_Fs24000_Gain3_A2                                0         /* Floating point value 0.000000 */
160#define HPF_Fs24000_Gain3_B1                             8780         /* Floating point value 0.267949 */
161#define HPF_Fs24000_Gain3_B2                                0         /* Floating point value 0.000000 */
162#define HPF_Fs24000_Gain3_Shift                             1         /* Shift value */
163                                                                    /* Gain =  4.000000 dB */
164#define HPF_Fs24000_Gain4_A0                              874         /* Floating point value 0.026687 */
165#define HPF_Fs24000_Gain4_A1                            19711         /* Floating point value 0.601519 */
166#define HPF_Fs24000_Gain4_A2                                0         /* Floating point value 0.000000 */
167#define HPF_Fs24000_Gain4_B1                             8780         /* Floating point value 0.267949 */
168#define HPF_Fs24000_Gain4_B2                                0         /* Floating point value 0.000000 */
169#define HPF_Fs24000_Gain4_Shift                             1         /* Shift value */
170                                                                    /* Gain =  5.000000 dB */
171#define HPF_Fs24000_Gain5_A0                             -275         /* Floating point value -0.008383 */
172#define HPF_Fs24000_Gain5_A1                            20860         /* Floating point value 0.636589 */
173#define HPF_Fs24000_Gain5_A2                                0         /* Floating point value 0.000000 */
174#define HPF_Fs24000_Gain5_B1                             8780         /* Floating point value 0.267949 */
175#define HPF_Fs24000_Gain5_B2                                0         /* Floating point value 0.000000 */
176#define HPF_Fs24000_Gain5_Shift                             1         /* Shift value */
177                                                                    /* Gain =  6.000000 dB */
178#define HPF_Fs24000_Gain6_A0                            -1564         /* Floating point value -0.047733 */
179#define HPF_Fs24000_Gain6_A1                            22149         /* Floating point value 0.675938 */
180#define HPF_Fs24000_Gain6_A2                                0         /* Floating point value 0.000000 */
181#define HPF_Fs24000_Gain6_B1                             8780         /* Floating point value 0.267949 */
182#define HPF_Fs24000_Gain6_B2                                0         /* Floating point value 0.000000 */
183#define HPF_Fs24000_Gain6_Shift                             1         /* Shift value */
184                                                                    /* Gain =  7.000000 dB */
185#define HPF_Fs24000_Gain7_A0                            -1509         /* Floating point value -0.046051 */
186#define HPF_Fs24000_Gain7_A1                            11826         /* Floating point value 0.360899 */
187#define HPF_Fs24000_Gain7_A2                                0         /* Floating point value 0.000000 */
188#define HPF_Fs24000_Gain7_B1                             8780         /* Floating point value 0.267949 */
189#define HPF_Fs24000_Gain7_B2                                0         /* Floating point value 0.000000 */
190#define HPF_Fs24000_Gain7_Shift                             2         /* Shift value */
191                                                                    /* Gain =  8.000000 dB */
192#define HPF_Fs24000_Gain8_A0                            -2323         /* Floating point value -0.070878 */
193#define HPF_Fs24000_Gain8_A1                            12640         /* Floating point value 0.385727 */
194#define HPF_Fs24000_Gain8_A2                                0         /* Floating point value 0.000000 */
195#define HPF_Fs24000_Gain8_B1                             8780         /* Floating point value 0.267949 */
196#define HPF_Fs24000_Gain8_B2                                0         /* Floating point value 0.000000 */
197#define HPF_Fs24000_Gain8_Shift                             2         /* Shift value */
198                                                                    /* Gain =  9.000000 dB */
199#define HPF_Fs24000_Gain9_A0                            -3235         /* Floating point value -0.098736 */
200#define HPF_Fs24000_Gain9_A1                            13552         /* Floating point value 0.413584 */
201#define HPF_Fs24000_Gain9_A2                                0         /* Floating point value 0.000000 */
202#define HPF_Fs24000_Gain9_B1                             8780         /* Floating point value 0.267949 */
203#define HPF_Fs24000_Gain9_B2                                0         /* Floating point value 0.000000 */
204#define HPF_Fs24000_Gain9_Shift                             2         /* Shift value */
205                                                                    /* Gain =  10.000000 dB */
206#define HPF_Fs24000_Gain10_A0                           -4260         /* Floating point value -0.129992 */
207#define HPF_Fs24000_Gain10_A1                           14577         /* Floating point value 0.444841 */
208#define HPF_Fs24000_Gain10_A2                               0         /* Floating point value 0.000000 */
209#define HPF_Fs24000_Gain10_B1                            8780         /* Floating point value 0.267949 */
210#define HPF_Fs24000_Gain10_B2                               0         /* Floating point value 0.000000 */
211#define HPF_Fs24000_Gain10_Shift                            2         /* Shift value */
212                                                                    /* Gain =  11.000000 dB */
213#define HPF_Fs24000_Gain11_A0                           -5409         /* Floating point value -0.165062 */
214#define HPF_Fs24000_Gain11_A1                           15726         /* Floating point value 0.479911 */
215#define HPF_Fs24000_Gain11_A2                               0         /* Floating point value 0.000000 */
216#define HPF_Fs24000_Gain11_B1                            8780         /* Floating point value 0.267949 */
217#define HPF_Fs24000_Gain11_B2                               0         /* Floating point value 0.000000 */
218#define HPF_Fs24000_Gain11_Shift                            2         /* Shift value */
219                                                                    /* Gain =  12.000000 dB */
220#define HPF_Fs24000_Gain12_A0                           -6698         /* Floating point value -0.204411 */
221#define HPF_Fs24000_Gain12_A1                           17015         /* Floating point value 0.519260 */
222#define HPF_Fs24000_Gain12_A2                               0         /* Floating point value 0.000000 */
223#define HPF_Fs24000_Gain12_B1                            8780         /* Floating point value 0.267949 */
224#define HPF_Fs24000_Gain12_B2                               0         /* Floating point value 0.000000 */
225#define HPF_Fs24000_Gain12_Shift                            2         /* Shift value */
226                                                                    /* Gain =  13.000000 dB */
227#define HPF_Fs24000_Gain13_A0                           -4082         /* Floating point value -0.124576 */
228#define HPF_Fs24000_Gain13_A1                            9253         /* Floating point value 0.282374 */
229#define HPF_Fs24000_Gain13_A2                               0         /* Floating point value 0.000000 */
230#define HPF_Fs24000_Gain13_B1                            8780         /* Floating point value 0.267949 */
231#define HPF_Fs24000_Gain13_B2                               0         /* Floating point value 0.000000 */
232#define HPF_Fs24000_Gain13_Shift                            3         /* Shift value */
233                                                                    /* Gain =  14.000000 dB */
234#define HPF_Fs24000_Gain14_A0                           -4896         /* Floating point value -0.149404 */
235#define HPF_Fs24000_Gain14_A1                           10066         /* Floating point value 0.307202 */
236#define HPF_Fs24000_Gain14_A2                               0         /* Floating point value 0.000000 */
237#define HPF_Fs24000_Gain14_B1                            8780         /* Floating point value 0.267949 */
238#define HPF_Fs24000_Gain14_B2                               0         /* Floating point value 0.000000 */
239#define HPF_Fs24000_Gain14_Shift                            3         /* Shift value */
240                                                                    /* Gain =  15.000000 dB */
241#define HPF_Fs24000_Gain15_A0                           -5808         /* Floating point value -0.177261 */
242#define HPF_Fs24000_Gain15_A1                           10979         /* Floating point value 0.335059 */
243#define HPF_Fs24000_Gain15_A2                               0         /* Floating point value 0.000000 */
244#define HPF_Fs24000_Gain15_B1                            8780         /* Floating point value 0.267949 */
245#define HPF_Fs24000_Gain15_B2                               0         /* Floating point value 0.000000 */
246#define HPF_Fs24000_Gain15_Shift                            3         /* Shift value */
247
248
249/* Coefficients for sample rate 32000Hz */
250                                                                    /* Gain =  1.000000 dB */
251#define HPF_Fs32000_Gain1_A0                            17225         /* Floating point value 0.525677 */
252#define HPF_Fs32000_Gain1_A1                             -990         /* Floating point value -0.030227 */
253#define HPF_Fs32000_Gain1_A2                                0         /* Floating point value 0.000000 */
254#define HPF_Fs32000_Gain1_B1                                0         /* Floating point value -0.000000 */
255#define HPF_Fs32000_Gain1_B2                                0         /* Floating point value 0.000000 */
256#define HPF_Fs32000_Gain1_Shift                             1         /* Shift value */
257                                                                    /* Gain =  2.000000 dB */
258#define HPF_Fs32000_Gain2_A0                            18337         /* Floating point value 0.559593 */
259#define HPF_Fs32000_Gain2_A1                            -2102         /* Floating point value -0.064142 */
260#define HPF_Fs32000_Gain2_A2                                0         /* Floating point value 0.000000 */
261#define HPF_Fs32000_Gain2_B1                                0         /* Floating point value -0.000000 */
262#define HPF_Fs32000_Gain2_B2                                0         /* Floating point value 0.000000 */
263#define HPF_Fs32000_Gain2_Shift                             1         /* Shift value */
264                                                                    /* Gain =  3.000000 dB */
265#define HPF_Fs32000_Gain3_A0                            19584         /* Floating point value 0.597646 */
266#define HPF_Fs32000_Gain3_A1                            -3349         /* Floating point value -0.102196 */
267#define HPF_Fs32000_Gain3_A2                                0         /* Floating point value 0.000000 */
268#define HPF_Fs32000_Gain3_B1                                0         /* Floating point value -0.000000 */
269#define HPF_Fs32000_Gain3_B2                                0         /* Floating point value 0.000000 */
270#define HPF_Fs32000_Gain3_Shift                             1         /* Shift value */
271                                                                    /* Gain =  4.000000 dB */
272#define HPF_Fs32000_Gain4_A0                            20983         /* Floating point value 0.640343 */
273#define HPF_Fs32000_Gain4_A1                            -4748         /* Floating point value -0.144893 */
274#define HPF_Fs32000_Gain4_A2                                0         /* Floating point value 0.000000 */
275#define HPF_Fs32000_Gain4_B1                                0         /* Floating point value -0.000000 */
276#define HPF_Fs32000_Gain4_B2                                0         /* Floating point value 0.000000 */
277#define HPF_Fs32000_Gain4_Shift                             1         /* Shift value */
278                                                                    /* Gain =  5.000000 dB */
279#define HPF_Fs32000_Gain5_A0                            22553         /* Floating point value 0.688250 */
280#define HPF_Fs32000_Gain5_A1                            -6318         /* Floating point value -0.192799 */
281#define HPF_Fs32000_Gain5_A2                                0         /* Floating point value 0.000000 */
282#define HPF_Fs32000_Gain5_B1                                0         /* Floating point value -0.000000 */
283#define HPF_Fs32000_Gain5_B2                                0         /* Floating point value 0.000000 */
284#define HPF_Fs32000_Gain5_Shift                             1         /* Shift value */
285                                                                    /* Gain =  6.000000 dB */
286#define HPF_Fs32000_Gain6_A0                            24314         /* Floating point value 0.742002 */
287#define HPF_Fs32000_Gain6_A1                            -8079         /* Floating point value -0.246551 */
288#define HPF_Fs32000_Gain6_A2                                0         /* Floating point value 0.000000 */
289#define HPF_Fs32000_Gain6_B1                                0         /* Floating point value -0.000000 */
290#define HPF_Fs32000_Gain6_B2                                0         /* Floating point value 0.000000 */
291#define HPF_Fs32000_Gain6_Shift                             1         /* Shift value */
292                                                                    /* Gain =  7.000000 dB */
293#define HPF_Fs32000_Gain7_A0                            13176         /* Floating point value 0.402109 */
294#define HPF_Fs32000_Gain7_A1                            -5040         /* Floating point value -0.153795 */
295#define HPF_Fs32000_Gain7_A2                                0         /* Floating point value 0.000000 */
296#define HPF_Fs32000_Gain7_B1                                0         /* Floating point value -0.000000 */
297#define HPF_Fs32000_Gain7_B2                                0         /* Floating point value 0.000000 */
298#define HPF_Fs32000_Gain7_Shift                             2         /* Shift value */
299                                                                    /* Gain =  8.000000 dB */
300#define HPF_Fs32000_Gain8_A0                            14288         /* Floating point value 0.436024 */
301#define HPF_Fs32000_Gain8_A1                            -6151         /* Floating point value -0.187711 */
302#define HPF_Fs32000_Gain8_A2                                0         /* Floating point value 0.000000 */
303#define HPF_Fs32000_Gain8_B1                                0         /* Floating point value -0.000000 */
304#define HPF_Fs32000_Gain8_B2                                0         /* Floating point value 0.000000 */
305#define HPF_Fs32000_Gain8_Shift                             2         /* Shift value */
306                                                                    /* Gain =  9.000000 dB */
307#define HPF_Fs32000_Gain9_A0                            15535         /* Floating point value 0.474078 */
308#define HPF_Fs32000_Gain9_A1                            -7398         /* Floating point value -0.225764 */
309#define HPF_Fs32000_Gain9_A2                                0         /* Floating point value 0.000000 */
310#define HPF_Fs32000_Gain9_B1                                0         /* Floating point value -0.000000 */
311#define HPF_Fs32000_Gain9_B2                                0         /* Floating point value 0.000000 */
312#define HPF_Fs32000_Gain9_Shift                             2         /* Shift value */
313                                                                    /* Gain =  10.000000 dB */
314#define HPF_Fs32000_Gain10_A0                           16934         /* Floating point value 0.516774 */
315#define HPF_Fs32000_Gain10_A1                           -8797         /* Floating point value -0.268461 */
316#define HPF_Fs32000_Gain10_A2                               0         /* Floating point value 0.000000 */
317#define HPF_Fs32000_Gain10_B1                               0         /* Floating point value -0.000000 */
318#define HPF_Fs32000_Gain10_B2                               0         /* Floating point value 0.000000 */
319#define HPF_Fs32000_Gain10_Shift                            2         /* Shift value */
320                                                                    /* Gain =  11.000000 dB */
321#define HPF_Fs32000_Gain11_A0                           18503         /* Floating point value 0.564681 */
322#define HPF_Fs32000_Gain11_A1                          -10367         /* Floating point value -0.316368 */
323#define HPF_Fs32000_Gain11_A2                               0         /* Floating point value 0.000000 */
324#define HPF_Fs32000_Gain11_B1                               0         /* Floating point value -0.000000 */
325#define HPF_Fs32000_Gain11_B2                               0         /* Floating point value 0.000000 */
326#define HPF_Fs32000_Gain11_Shift                            2         /* Shift value */
327                                                                    /* Gain =  12.000000 dB */
328#define HPF_Fs32000_Gain12_A0                           20265         /* Floating point value 0.618433 */
329#define HPF_Fs32000_Gain12_A1                          -12128         /* Floating point value -0.370120 */
330#define HPF_Fs32000_Gain12_A2                               0         /* Floating point value 0.000000 */
331#define HPF_Fs32000_Gain12_B1                               0         /* Floating point value -0.000000 */
332#define HPF_Fs32000_Gain12_B2                               0         /* Floating point value 0.000000 */
333#define HPF_Fs32000_Gain12_Shift                            2         /* Shift value */
334                                                                    /* Gain =  13.000000 dB */
335#define HPF_Fs32000_Gain13_A0                           11147         /* Floating point value 0.340178 */
336#define HPF_Fs32000_Gain13_A1                           -7069         /* Floating point value -0.215726 */
337#define HPF_Fs32000_Gain13_A2                               0         /* Floating point value 0.000000 */
338#define HPF_Fs32000_Gain13_B1                               0         /* Floating point value -0.000000 */
339#define HPF_Fs32000_Gain13_B2                               0         /* Floating point value 0.000000 */
340#define HPF_Fs32000_Gain13_Shift                            3         /* Shift value */
341                                                                    /* Gain =  14.000000 dB */
342#define HPF_Fs32000_Gain14_A0                           12258         /* Floating point value 0.374093 */
343#define HPF_Fs32000_Gain14_A1                           -8180         /* Floating point value -0.249642 */
344#define HPF_Fs32000_Gain14_A2                               0         /* Floating point value 0.000000 */
345#define HPF_Fs32000_Gain14_B1                               0         /* Floating point value -0.000000 */
346#define HPF_Fs32000_Gain14_B2                               0         /* Floating point value 0.000000 */
347#define HPF_Fs32000_Gain14_Shift                            3         /* Shift value */
348                                                                    /* Gain =  15.000000 dB */
349#define HPF_Fs32000_Gain15_A0                           13505         /* Floating point value 0.412147 */
350#define HPF_Fs32000_Gain15_A1                           -9427         /* Floating point value -0.287695 */
351#define HPF_Fs32000_Gain15_A2                               0         /* Floating point value 0.000000 */
352#define HPF_Fs32000_Gain15_B1                               0         /* Floating point value -0.000000 */
353#define HPF_Fs32000_Gain15_B2                               0         /* Floating point value 0.000000 */
354#define HPF_Fs32000_Gain15_Shift                            3         /* Shift value */
355
356
357/* Coefficients for sample rate 44100Hz */
358                                                                    /* Gain =  1.000000 dB */
359#define HPF_Fs44100_Gain1_A0                            17442         /* Floating point value 0.532294 */
360#define HPF_Fs44100_Gain1_A1                            -4761         /* Floating point value -0.145294 */
361#define HPF_Fs44100_Gain1_A2                                0         /* Floating point value 0.000000 */
362#define HPF_Fs44100_Gain1_B1                            -7173         /* Floating point value -0.218894 */
363#define HPF_Fs44100_Gain1_B2                                0         /* Floating point value 0.000000 */
364#define HPF_Fs44100_Gain1_Shift                             1         /* Shift value */
365                                                                    /* Gain =  2.000000 dB */
366#define HPF_Fs44100_Gain2_A0                            18797         /* Floating point value 0.573633 */
367#define HPF_Fs44100_Gain2_A1                            -6116         /* Floating point value -0.186634 */
368#define HPF_Fs44100_Gain2_A2                                0         /* Floating point value 0.000000 */
369#define HPF_Fs44100_Gain2_B1                            -7173         /* Floating point value -0.218894 */
370#define HPF_Fs44100_Gain2_B2                                0         /* Floating point value 0.000000 */
371#define HPF_Fs44100_Gain2_Shift                             1         /* Shift value */
372                                                                    /* Gain =  3.000000 dB */
373#define HPF_Fs44100_Gain3_A0                            20317         /* Floating point value 0.620016 */
374#define HPF_Fs44100_Gain3_A1                            -7635         /* Floating point value -0.233017 */
375#define HPF_Fs44100_Gain3_A2                                0         /* Floating point value 0.000000 */
376#define HPF_Fs44100_Gain3_B1                            -7173         /* Floating point value -0.218894 */
377#define HPF_Fs44100_Gain3_B2                                0         /* Floating point value 0.000000 */
378#define HPF_Fs44100_Gain3_Shift                             1         /* Shift value */
379                                                                    /* Gain =  4.000000 dB */
380#define HPF_Fs44100_Gain4_A0                            22022         /* Floating point value 0.672059 */
381#define HPF_Fs44100_Gain4_A1                            -9341         /* Floating point value -0.285060 */
382#define HPF_Fs44100_Gain4_A2                                0         /* Floating point value 0.000000 */
383#define HPF_Fs44100_Gain4_B1                            -7173         /* Floating point value -0.218894 */
384#define HPF_Fs44100_Gain4_B2                                0         /* Floating point value 0.000000 */
385#define HPF_Fs44100_Gain4_Shift                             1         /* Shift value */
386                                                                    /* Gain =  5.000000 dB */
387#define HPF_Fs44100_Gain5_A0                            23935         /* Floating point value 0.730452 */
388#define HPF_Fs44100_Gain5_A1                           -11254         /* Floating point value -0.343453 */
389#define HPF_Fs44100_Gain5_A2                                0         /* Floating point value 0.000000 */
390#define HPF_Fs44100_Gain5_B1                            -7173         /* Floating point value -0.218894 */
391#define HPF_Fs44100_Gain5_B2                                0         /* Floating point value 0.000000 */
392#define HPF_Fs44100_Gain5_Shift                             1         /* Shift value */
393                                                                    /* Gain =  6.000000 dB */
394#define HPF_Fs44100_Gain6_A0                            26082         /* Floating point value 0.795970 */
395#define HPF_Fs44100_Gain6_A1                           -13401         /* Floating point value -0.408971 */
396#define HPF_Fs44100_Gain6_A2                                0         /* Floating point value 0.000000 */
397#define HPF_Fs44100_Gain6_B1                            -7173         /* Floating point value -0.218894 */
398#define HPF_Fs44100_Gain6_B2                                0         /* Floating point value 0.000000 */
399#define HPF_Fs44100_Gain6_Shift                             1         /* Shift value */
400                                                                    /* Gain =  7.000000 dB */
401#define HPF_Fs44100_Gain7_A0                            14279         /* Floating point value 0.435774 */
402#define HPF_Fs44100_Gain7_A1                            -7924         /* Floating point value -0.241815 */
403#define HPF_Fs44100_Gain7_A2                                0         /* Floating point value 0.000000 */
404#define HPF_Fs44100_Gain7_B1                            -7173         /* Floating point value -0.218894 */
405#define HPF_Fs44100_Gain7_B2                                0         /* Floating point value 0.000000 */
406#define HPF_Fs44100_Gain7_Shift                             2         /* Shift value */
407                                                                    /* Gain =  8.000000 dB */
408#define HPF_Fs44100_Gain8_A0                            15634         /* Floating point value 0.477113 */
409#define HPF_Fs44100_Gain8_A1                            -9278         /* Floating point value -0.283154 */
410#define HPF_Fs44100_Gain8_A2                                0         /* Floating point value 0.000000 */
411#define HPF_Fs44100_Gain8_B1                            -7173         /* Floating point value -0.218894 */
412#define HPF_Fs44100_Gain8_B2                                0         /* Floating point value 0.000000 */
413#define HPF_Fs44100_Gain8_Shift                             2         /* Shift value */
414                                                                    /* Gain =  9.000000 dB */
415#define HPF_Fs44100_Gain9_A0                            17154         /* Floating point value 0.523496 */
416#define HPF_Fs44100_Gain9_A1                           -10798         /* Floating point value -0.329537 */
417#define HPF_Fs44100_Gain9_A2                                0         /* Floating point value 0.000000 */
418#define HPF_Fs44100_Gain9_B1                            -7173         /* Floating point value -0.218894 */
419#define HPF_Fs44100_Gain9_B2                                0         /* Floating point value 0.000000 */
420#define HPF_Fs44100_Gain9_Shift                             2         /* Shift value */
421                                                                    /* Gain =  10.000000 dB */
422#define HPF_Fs44100_Gain10_A0                           18859         /* Floating point value 0.575539 */
423#define HPF_Fs44100_Gain10_A1                          -12504         /* Floating point value -0.381580 */
424#define HPF_Fs44100_Gain10_A2                               0         /* Floating point value 0.000000 */
425#define HPF_Fs44100_Gain10_B1                           -7173         /* Floating point value -0.218894 */
426#define HPF_Fs44100_Gain10_B2                               0         /* Floating point value 0.000000 */
427#define HPF_Fs44100_Gain10_Shift                            2         /* Shift value */
428                                                                    /* Gain =  11.000000 dB */
429#define HPF_Fs44100_Gain11_A0                           20773         /* Floating point value 0.633932 */
430#define HPF_Fs44100_Gain11_A1                          -14417         /* Floating point value -0.439973 */
431#define HPF_Fs44100_Gain11_A2                               0         /* Floating point value 0.000000 */
432#define HPF_Fs44100_Gain11_B1                           -7173         /* Floating point value -0.218894 */
433#define HPF_Fs44100_Gain11_B2                               0         /* Floating point value 0.000000 */
434#define HPF_Fs44100_Gain11_Shift                            2         /* Shift value */
435                                                                    /* Gain =  12.000000 dB */
436#define HPF_Fs44100_Gain12_A0                           22920         /* Floating point value 0.699450 */
437#define HPF_Fs44100_Gain12_A1                          -16564         /* Floating point value -0.505491 */
438#define HPF_Fs44100_Gain12_A2                               0         /* Floating point value 0.000000 */
439#define HPF_Fs44100_Gain12_B1                           -7173         /* Floating point value -0.218894 */
440#define HPF_Fs44100_Gain12_B2                               0         /* Floating point value 0.000000 */
441#define HPF_Fs44100_Gain12_Shift                            2         /* Shift value */
442                                                                    /* Gain =  13.000000 dB */
443#define HPF_Fs44100_Gain13_A0                           12694         /* Floating point value 0.387399 */
444#define HPF_Fs44100_Gain13_A1                           -9509         /* Floating point value -0.290189 */
445#define HPF_Fs44100_Gain13_A2                               0         /* Floating point value 0.000000 */
446#define HPF_Fs44100_Gain13_B1                           -7173         /* Floating point value -0.218894 */
447#define HPF_Fs44100_Gain13_B2                               0         /* Floating point value 0.000000 */
448#define HPF_Fs44100_Gain13_Shift                            3         /* Shift value */
449                                                                    /* Gain =  14.000000 dB */
450#define HPF_Fs44100_Gain14_A0                           14049         /* Floating point value 0.428738 */
451#define HPF_Fs44100_Gain14_A1                          -10864         /* Floating point value -0.331528 */
452#define HPF_Fs44100_Gain14_A2                               0         /* Floating point value 0.000000 */
453#define HPF_Fs44100_Gain14_B1                           -7173         /* Floating point value -0.218894 */
454#define HPF_Fs44100_Gain14_B2                               0         /* Floating point value 0.000000 */
455#define HPF_Fs44100_Gain14_Shift                            3         /* Shift value */
456                                                                    /* Gain =  15.000000 dB */
457#define HPF_Fs44100_Gain15_A0                           15569         /* Floating point value 0.475121 */
458#define HPF_Fs44100_Gain15_A1                          -12383         /* Floating point value -0.377912 */
459#define HPF_Fs44100_Gain15_A2                               0         /* Floating point value 0.000000 */
460#define HPF_Fs44100_Gain15_B1                           -7173         /* Floating point value -0.218894 */
461#define HPF_Fs44100_Gain15_B2                               0         /* Floating point value 0.000000 */
462#define HPF_Fs44100_Gain15_Shift                            3         /* Shift value */
463
464
465/* Coefficients for sample rate 48000Hz */
466                                                                    /* Gain =  1.000000 dB */
467#define HPF_Fs48000_Gain1_A0                            17491         /* Floating point value 0.533777 */
468#define HPF_Fs48000_Gain1_A1                            -5606         /* Floating point value -0.171082 */
469#define HPF_Fs48000_Gain1_A2                                0         /* Floating point value 0.000000 */
470#define HPF_Fs48000_Gain1_B1                            -8780         /* Floating point value -0.267949 */
471#define HPF_Fs48000_Gain1_B2                                0         /* Floating point value 0.000000 */
472#define HPF_Fs48000_Gain1_Shift                             1         /* Shift value */
473                                                                    /* Gain =  2.000000 dB */
474#define HPF_Fs48000_Gain2_A0                            18900         /* Floating point value 0.576779 */
475#define HPF_Fs48000_Gain2_A1                            -7015         /* Floating point value -0.214085 */
476#define HPF_Fs48000_Gain2_A2                                0         /* Floating point value 0.000000 */
477#define HPF_Fs48000_Gain2_B1                            -8780         /* Floating point value -0.267949 */
478#define HPF_Fs48000_Gain2_B2                                0         /* Floating point value 0.000000 */
479#define HPF_Fs48000_Gain2_Shift                             1         /* Shift value */
480                                                                    /* Gain =  3.000000 dB */
481#define HPF_Fs48000_Gain3_A0                            20481         /* Floating point value 0.625029 */
482#define HPF_Fs48000_Gain3_A1                            -8596         /* Floating point value -0.262335 */
483#define HPF_Fs48000_Gain3_A2                                0         /* Floating point value 0.000000 */
484#define HPF_Fs48000_Gain3_B1                            -8780         /* Floating point value -0.267949 */
485#define HPF_Fs48000_Gain3_B2                                0         /* Floating point value 0.000000 */
486#define HPF_Fs48000_Gain3_Shift                             1         /* Shift value */
487                                                                    /* Gain =  4.000000 dB */
488#define HPF_Fs48000_Gain4_A0                            22255         /* Floating point value 0.679167 */
489#define HPF_Fs48000_Gain4_A1                           -10370         /* Floating point value -0.316472 */
490#define HPF_Fs48000_Gain4_A2                                0         /* Floating point value 0.000000 */
491#define HPF_Fs48000_Gain4_B1                            -8780         /* Floating point value -0.267949 */
492#define HPF_Fs48000_Gain4_B2                                0         /* Floating point value 0.000000 */
493#define HPF_Fs48000_Gain4_Shift                             1         /* Shift value */
494                                                                    /* Gain =  5.000000 dB */
495#define HPF_Fs48000_Gain5_A0                            24245         /* Floating point value 0.739910 */
496#define HPF_Fs48000_Gain5_A1                           -12361         /* Floating point value -0.377215 */
497#define HPF_Fs48000_Gain5_A2                                0         /* Floating point value 0.000000 */
498#define HPF_Fs48000_Gain5_B1                            -8780         /* Floating point value -0.267949 */
499#define HPF_Fs48000_Gain5_B2                                0         /* Floating point value 0.000000 */
500#define HPF_Fs48000_Gain5_Shift                             1         /* Shift value */
501                                                                    /* Gain =  6.000000 dB */
502#define HPF_Fs48000_Gain6_A0                            26479         /* Floating point value 0.808065 */
503#define HPF_Fs48000_Gain6_A1                           -14594         /* Floating point value -0.445370 */
504#define HPF_Fs48000_Gain6_A2                                0         /* Floating point value 0.000000 */
505#define HPF_Fs48000_Gain6_B1                            -8780         /* Floating point value -0.267949 */
506#define HPF_Fs48000_Gain6_B2                                0         /* Floating point value 0.000000 */
507#define HPF_Fs48000_Gain6_Shift                             1         /* Shift value */
508                                                                    /* Gain =  7.000000 dB */
509#define HPF_Fs48000_Gain7_A0                            14527         /* Floating point value 0.443318 */
510#define HPF_Fs48000_Gain7_A1                            -8570         /* Floating point value -0.261540 */
511#define HPF_Fs48000_Gain7_A2                                0         /* Floating point value 0.000000 */
512#define HPF_Fs48000_Gain7_B1                            -8780         /* Floating point value -0.267949 */
513#define HPF_Fs48000_Gain7_B2                                0         /* Floating point value 0.000000 */
514#define HPF_Fs48000_Gain7_Shift                             2         /* Shift value */
515                                                                    /* Gain =  8.000000 dB */
516#define HPF_Fs48000_Gain8_A0                            15936         /* Floating point value 0.486321 */
517#define HPF_Fs48000_Gain8_A1                            -9979         /* Floating point value -0.304543 */
518#define HPF_Fs48000_Gain8_A2                                0         /* Floating point value 0.000000 */
519#define HPF_Fs48000_Gain8_B1                            -8780         /* Floating point value -0.267949 */
520#define HPF_Fs48000_Gain8_B2                                0         /* Floating point value 0.000000 */
521#define HPF_Fs48000_Gain8_Shift                             2         /* Shift value */
522                                                                    /* Gain =  9.000000 dB */
523#define HPF_Fs48000_Gain9_A0                            17517         /* Floating point value 0.534571 */
524#define HPF_Fs48000_Gain9_A1                           -11560         /* Floating point value -0.352793 */
525#define HPF_Fs48000_Gain9_A2                                0         /* Floating point value 0.000000 */
526#define HPF_Fs48000_Gain9_B1                            -8780         /* Floating point value -0.267949 */
527#define HPF_Fs48000_Gain9_B2                                0         /* Floating point value 0.000000 */
528#define HPF_Fs48000_Gain9_Shift                             2         /* Shift value */
529                                                                    /* Gain =  10.000000 dB */
530#define HPF_Fs48000_Gain10_A0                           19291         /* Floating point value 0.588708 */
531#define HPF_Fs48000_Gain10_A1                          -13334         /* Floating point value -0.406930 */
532#define HPF_Fs48000_Gain10_A2                               0         /* Floating point value 0.000000 */
533#define HPF_Fs48000_Gain10_B1                           -8780         /* Floating point value -0.267949 */
534#define HPF_Fs48000_Gain10_B2                               0         /* Floating point value 0.000000 */
535#define HPF_Fs48000_Gain10_Shift                            2         /* Shift value */
536                                                                    /* Gain =  11.000000 dB */
537#define HPF_Fs48000_Gain11_A0                           21281         /* Floating point value 0.649452 */
538#define HPF_Fs48000_Gain11_A1                          -15325         /* Floating point value -0.467674 */
539#define HPF_Fs48000_Gain11_A2                               0         /* Floating point value 0.000000 */
540#define HPF_Fs48000_Gain11_B1                           -8780         /* Floating point value -0.267949 */
541#define HPF_Fs48000_Gain11_B2                               0         /* Floating point value 0.000000 */
542#define HPF_Fs48000_Gain11_Shift                            2         /* Shift value */
543                                                                    /* Gain =  12.000000 dB */
544#define HPF_Fs48000_Gain12_A0                           23515         /* Floating point value 0.717607 */
545#define HPF_Fs48000_Gain12_A1                          -17558         /* Floating point value -0.535829 */
546#define HPF_Fs48000_Gain12_A2                               0         /* Floating point value 0.000000 */
547#define HPF_Fs48000_Gain12_B1                           -8780         /* Floating point value -0.267949 */
548#define HPF_Fs48000_Gain12_B2                               0         /* Floating point value 0.000000 */
549#define HPF_Fs48000_Gain12_Shift                            2         /* Shift value */
550                                                                    /* Gain =  13.000000 dB */
551#define HPF_Fs48000_Gain13_A0                           13041         /* Floating point value 0.397982 */
552#define HPF_Fs48000_Gain13_A1                          -10056         /* Floating point value -0.306877 */
553#define HPF_Fs48000_Gain13_A2                               0         /* Floating point value 0.000000 */
554#define HPF_Fs48000_Gain13_B1                           -8780         /* Floating point value -0.267949 */
555#define HPF_Fs48000_Gain13_B2                               0         /* Floating point value 0.000000 */
556#define HPF_Fs48000_Gain13_Shift                            3         /* Shift value */
557                                                                    /* Gain =  14.000000 dB */
558#define HPF_Fs48000_Gain14_A0                           14450         /* Floating point value 0.440984 */
559#define HPF_Fs48000_Gain14_A1                          -11465         /* Floating point value -0.349880 */
560#define HPF_Fs48000_Gain14_A2                               0         /* Floating point value 0.000000 */
561#define HPF_Fs48000_Gain14_B1                           -8780         /* Floating point value -0.267949 */
562#define HPF_Fs48000_Gain14_B2                               0         /* Floating point value 0.000000 */
563#define HPF_Fs48000_Gain14_Shift                            3         /* Shift value */
564                                                                    /* Gain =  15.000000 dB */
565#define HPF_Fs48000_Gain15_A0                           16031         /* Floating point value 0.489234 */
566#define HPF_Fs48000_Gain15_A1                          -13046         /* Floating point value -0.398130 */
567#define HPF_Fs48000_Gain15_A2                               0         /* Floating point value 0.000000 */
568#define HPF_Fs48000_Gain15_B1                           -8780         /* Floating point value -0.267949 */
569#define HPF_Fs48000_Gain15_B2                               0         /* Floating point value 0.000000 */
570#define HPF_Fs48000_Gain15_Shift                            3         /* Shift value */
571
572
573#endif
574