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_HEADPHONE_COEFFS_H__ 19 #define __LVCS_HEADPHONE_COEFFS_H__ 20 21 22 /************************************************************************************/ 23 /* */ 24 /* The Stereo Enhancer */ 25 /* */ 26 /************************************************************************************/ 27 28 /* Stereo Enhancer coefficients for 8000 Hz sample rate, scaled with 0.161258 */ 29 #define CS_MIDDLE_8000_A0 7462 /* Floating point value 0.227720 */ 30 #define CS_MIDDLE_8000_A1 -7049 /* Floating point value -0.215125 */ 31 #define CS_MIDDLE_8000_A2 0 /* Floating point value 0.000000 */ 32 #define CS_MIDDLE_8000_B1 -30209 /* Floating point value -0.921899 */ 33 #define CS_MIDDLE_8000_B2 0 /* Floating point value 0.000000 */ 34 #define CS_MIDDLE_8000_SCALE 15 35 #define CS_SIDE_8000_A0 20036 /* Floating point value 0.611441 */ 36 #define CS_SIDE_8000_A1 -12463 /* Floating point value -0.380344 */ 37 #define CS_SIDE_8000_A2 -7573 /* Floating point value -0.231097 */ 38 #define CS_SIDE_8000_B1 -20397 /* Floating point value -0.622470 */ 39 #define CS_SIDE_8000_B2 -4285 /* Floating point value -0.130759 */ 40 #define CS_SIDE_8000_SCALE 15 41 42 /* Stereo Enhancer coefficients for 11025Hz sample rate, scaled with 0.162943 */ 43 #define CS_MIDDLE_11025_A0 7564 /* Floating point value 0.230838 */ 44 #define CS_MIDDLE_11025_A1 -7260 /* Floating point value -0.221559 */ 45 #define CS_MIDDLE_11025_A2 0 /* Floating point value 0.000000 */ 46 #define CS_MIDDLE_11025_B1 -30902 /* Floating point value -0.943056 */ 47 #define CS_MIDDLE_11025_B2 0 /* Floating point value 0.000000 */ 48 #define CS_MIDDLE_11025_SCALE 15 49 #define CS_SIDE_11025_A0 18264 /* Floating point value 0.557372 */ 50 #define CS_SIDE_11025_A1 -12828 /* Floating point value -0.391490 */ 51 #define CS_SIDE_11025_A2 -5436 /* Floating point value -0.165881 */ 52 #define CS_SIDE_11025_B1 -28856 /* Floating point value -0.880608 */ 53 #define CS_SIDE_11025_B2 1062 /* Floating point value 0.032397 */ 54 #define CS_SIDE_11025_SCALE 15 55 56 /* Stereo Enhancer coefficients for 12000Hz sample rate, scaled with 0.162191 */ 57 #define CS_MIDDLE_12000_A0 7534 /* Floating point value 0.229932 */ 58 #define CS_MIDDLE_12000_A1 -7256 /* Floating point value -0.221436 */ 59 #define CS_MIDDLE_12000_A2 0 /* Floating point value 0.000000 */ 60 #define CS_MIDDLE_12000_B1 -31051 /* Floating point value -0.947616 */ 61 #define CS_MIDDLE_12000_B2 0 /* Floating point value 0.000000 */ 62 #define CS_MIDDLE_12000_SCALE 15 63 #define CS_SIDE_12000_A0 18298 /* Floating point value 0.558398 */ 64 #define CS_SIDE_12000_A1 -12852 /* Floating point value -0.392211 */ 65 #define CS_SIDE_12000_A2 -5446 /* Floating point value -0.166187 */ 66 #define CS_SIDE_12000_B1 -29247 /* Floating point value -0.892550 */ 67 #define CS_SIDE_12000_B2 1077 /* Floating point value 0.032856 */ 68 #define CS_SIDE_12000_SCALE 15 69 70 /* Stereo Enhancer coefficients for 16000Hz sample rate, scaled with 0.162371 */ 71 #define CS_MIDDLE_16000_A0 7558 /* Floating point value 0.230638 */ 72 #define CS_MIDDLE_16000_A1 -7348 /* Floating point value -0.224232 */ 73 #define CS_MIDDLE_16000_A2 0 /* Floating point value 0.000000 */ 74 #define CS_MIDDLE_16000_B1 -31475 /* Floating point value -0.960550 */ 75 #define CS_MIDDLE_16000_B2 0 /* Floating point value 0.000000 */ 76 #define CS_MIDDLE_16000_SCALE 15 77 #define CS_SIDE_16000_A0 8187 /* Floating point value 0.499695 */ 78 #define CS_SIDE_16000_A1 -5825 /* Floating point value -0.355543 */ 79 #define CS_SIDE_16000_A2 -2362 /* Floating point value -0.144152 */ 80 #define CS_SIDE_16000_B1 -17216 /* Floating point value -1.050788 */ 81 #define CS_SIDE_16000_B2 2361 /* Floating point value 0.144104 */ 82 #define CS_SIDE_16000_SCALE 14 83 84 /* Stereo Enhancer coefficients for 22050Hz sample rate, scaled with 0.160781 */ 85 #define CS_MIDDLE_22050_A0 7496 /* Floating point value 0.228749 */ 86 #define CS_MIDDLE_22050_A1 -7344 /* Floating point value -0.224128 */ 87 #define CS_MIDDLE_22050_A2 0 /* Floating point value 0.000000 */ 88 #define CS_MIDDLE_22050_B1 -31826 /* Floating point value -0.971262 */ 89 #define CS_MIDDLE_22050_B2 0 /* Floating point value 0.000000 */ 90 #define CS_MIDDLE_22050_SCALE 15 91 #define CS_SIDE_22050_A0 7211 /* Floating point value 0.440112 */ 92 #define CS_SIDE_22050_A1 -4278 /* Floating point value -0.261096 */ 93 #define CS_SIDE_22050_A2 -2933 /* Floating point value -0.179016 */ 94 #define CS_SIDE_22050_B1 -18297 /* Floating point value -1.116786 */ 95 #define CS_SIDE_22050_B2 2990 /* Floating point value 0.182507 */ 96 #define CS_SIDE_22050_SCALE 14 97 98 /* Stereo Enhancer coefficients for 24000Hz sample rate, scaled with 0.161882 */ 99 #define CS_MIDDLE_24000_A0 7550 /* Floating point value 0.230395 */ 100 #define CS_MIDDLE_24000_A1 -7409 /* Floating point value -0.226117 */ 101 #define CS_MIDDLE_24000_A2 0 /* Floating point value 0.000000 */ 102 #define CS_MIDDLE_24000_B1 -31902 /* Floating point value -0.973573 */ 103 #define CS_MIDDLE_24000_B2 0 /* Floating point value 0.000000 */ 104 #define CS_MIDDLE_24000_SCALE 15 105 #define CS_SIDE_24000_A0 6796 /* Floating point value 0.414770 */ 106 #define CS_SIDE_24000_A1 -4705 /* Floating point value -0.287182 */ 107 #define CS_SIDE_24000_A2 -2090 /* Floating point value -0.127588 */ 108 #define CS_SIDE_24000_B1 -20147 /* Floating point value -1.229648 */ 109 #define CS_SIDE_24000_B2 4623 /* Floating point value 0.282177 */ 110 #define CS_SIDE_24000_SCALE 14 111 112 /* Stereo Enhancer coefficients for 32000Hz sample rate, scaled with 0.160322 */ 113 #define CS_MIDDLE_32000_A0 7484 /* Floating point value 0.228400 */ 114 #define CS_MIDDLE_32000_A1 -7380 /* Floating point value -0.225214 */ 115 #define CS_MIDDLE_32000_A2 0 /* Floating point value 0.000000 */ 116 #define CS_MIDDLE_32000_B1 -32117 /* Floating point value -0.980126 */ 117 #define CS_MIDDLE_32000_B2 0 /* Floating point value 0.000000 */ 118 #define CS_MIDDLE_32000_SCALE 15 119 #define CS_SIDE_32000_A0 5973 /* Floating point value 0.364579 */ 120 #define CS_SIDE_32000_A1 -3397 /* Floating point value -0.207355 */ 121 #define CS_SIDE_32000_A2 -2576 /* Floating point value -0.157224 */ 122 #define CS_SIDE_32000_B1 -20877 /* Floating point value -1.274231 */ 123 #define CS_SIDE_32000_B2 5120 /* Floating point value 0.312495 */ 124 #define CS_SIDE_32000_SCALE 14 125 126 /* Stereo Enhancer coefficients for 44100Hz sample rate, scaled with 0.163834 */ 127 #define CS_MIDDLE_44100_A0 7654 /* Floating point value 0.233593 */ 128 #define CS_MIDDLE_44100_A1 -7577 /* Floating point value -0.231225 */ 129 #define CS_MIDDLE_44100_A2 0 /* Floating point value 0.000000 */ 130 #define CS_MIDDLE_44100_B1 -32294 /* Floating point value -0.985545 */ 131 #define CS_MIDDLE_44100_B2 0 /* Floating point value 0.000000 */ 132 #define CS_MIDDLE_44100_SCALE 15 133 #define CS_SIDE_44100_A0 4662 /* Floating point value 0.284573 */ 134 #define CS_SIDE_44100_A1 -4242 /* Floating point value -0.258910 */ 135 #define CS_SIDE_44100_A2 -420 /* Floating point value -0.025662 */ 136 #define CS_SIDE_44100_B1 -25760 /* Floating point value -1.572248 */ 137 #define CS_SIDE_44100_B2 9640 /* Floating point value 0.588399 */ 138 #define CS_SIDE_44100_SCALE 14 139 140 /* Stereo Enhancer coefficients for 48000Hz sample rate, scaled with 0.164402 */ 141 #define CS_MIDDLE_48000_A0 7682 /* Floating point value 0.234445 */ 142 #define CS_MIDDLE_48000_A1 -7611 /* Floating point value -0.232261 */ 143 #define CS_MIDDLE_48000_A2 0 /* Floating point value 0.000000 */ 144 #define CS_MIDDLE_48000_B1 -32333 /* Floating point value -0.986713 */ 145 #define CS_MIDDLE_48000_B2 0 /* Floating point value 0.000000 */ 146 #define CS_MIDDLE_48000_SCALE 15 147 #define CS_SIDE_48000_A0 4466 /* Floating point value 0.272606 */ 148 #define CS_SIDE_48000_A1 -4374 /* Floating point value -0.266952 */ 149 #define CS_SIDE_48000_A2 -93 /* Floating point value -0.005654 */ 150 #define CS_SIDE_48000_B1 -26495 /* Floating point value -1.617141 */ 151 #define CS_SIDE_48000_B2 10329 /* Floating point value 0.630405 */ 152 #define CS_SIDE_48000_SCALE 14 153 154 155 /************************************************************************************/ 156 /* */ 157 /* The Reverb Unit */ 158 /* */ 159 /************************************************************************************/ 160 161 /* Reverb delay settings in samples */ 162 #define LVCS_STEREODELAY_CS_8KHZ 93 /* Sample rate 8kS/s */ 163 #define LVCS_STEREODELAY_CS_11KHZ 128 /* Sample rate 11kS/s */ 164 #define LVCS_STEREODELAY_CS_12KHZ 139 /* Sample rate 12kS/s */ 165 #define LVCS_STEREODELAY_CS_16KHZ 186 /* Sample rate 16kS/s */ 166 #define LVCS_STEREODELAY_CS_22KHZ 256 /* Sample rate 22kS/s */ 167 #define LVCS_STEREODELAY_CS_24KHZ 279 /* Sample rate 24kS/s */ 168 #define LVCS_STEREODELAY_CS_32KHZ 372 /* Sample rate 32kS/s */ 169 #define LVCS_STEREODELAY_CS_44KHZ 512 /* Sample rate 44kS/s */ 170 #define LVCS_STEREODELAY_CS_48KHZ 512 /* Sample rate 48kS/s */ 171 172 /* Reverb coefficients for 8000 Hz sample rate, scaled with 1.038030 */ 173 #define CS_REVERB_8000_A0 21865 /* Floating point value 0.667271 */ 174 #define CS_REVERB_8000_A1 -21865 /* Floating point value -0.667271 */ 175 #define CS_REVERB_8000_A2 0 /* Floating point value 0.000000 */ 176 #define CS_REVERB_8000_B1 -21895 /* Floating point value -0.668179 */ 177 #define CS_REVERB_8000_B2 0 /* Floating point value 0.000000 */ 178 #define CS_REVERB_8000_SCALE 15 179 180 /* Reverb coefficients for 11025Hz sample rate, scaled with 1.038030 */ 181 #define CS_REVERB_11025_A0 22926 /* Floating point value 0.699638 */ 182 #define CS_REVERB_11025_A1 -22926 /* Floating point value -0.699638 */ 183 #define CS_REVERB_11025_A2 0 /* Floating point value 0.000000 */ 184 #define CS_REVERB_11025_B1 -24546 /* Floating point value -0.749096 */ 185 #define CS_REVERB_11025_B2 0 /* Floating point value 0.000000 */ 186 #define CS_REVERB_11025_SCALE 15 187 188 /* Reverb coefficients for 12000Hz sample rate, scaled with 1.038030 */ 189 #define CS_REVERB_12000_A0 23165 /* Floating point value 0.706931 */ 190 #define CS_REVERB_12000_A1 -23165 /* Floating point value -0.706931 */ 191 #define CS_REVERB_12000_A2 0 /* Floating point value 0.000000 */ 192 #define CS_REVERB_12000_B1 -25144 /* Floating point value -0.767327 */ 193 #define CS_REVERB_12000_B2 0 /* Floating point value 0.000000 */ 194 #define CS_REVERB_12000_SCALE 15 195 196 /* Reverb coefficients for 16000Hz sample rate, scaled with 1.038030 */ 197 #define CS_REVERB_16000_A0 23864 /* Floating point value 0.728272 */ 198 #define CS_REVERB_16000_A1 -23864 /* Floating point value -0.728272 */ 199 #define CS_REVERB_16000_A2 0 /* Floating point value 0.000000 */ 200 #define CS_REVERB_16000_B1 -26892 /* Floating point value -0.820679 */ 201 #define CS_REVERB_16000_B2 0 /* Floating point value 0.000000 */ 202 #define CS_REVERB_16000_SCALE 15 203 204 /* Reverb coefficients for 22050Hz sample rate, scaled with 1.038030 */ 205 #define CS_REVERB_22050_A0 16921 /* Floating point value 0.516396 */ 206 #define CS_REVERB_22050_A1 0 /* Floating point value 0.000000 */ 207 #define CS_REVERB_22050_A2 -16921 /* Floating point value -0.516396 */ 208 #define CS_REVERB_22050_B1 -16991 /* Floating point value -0.518512 */ 209 #define CS_REVERB_22050_B2 -9535 /* Floating point value -0.290990 */ 210 #define CS_REVERB_22050_SCALE 15 211 212 /* Reverb coefficients for 24000Hz sample rate, scaled with 1.038030 */ 213 #define CS_REVERB_24000_A0 15714 /* Floating point value 0.479565 */ 214 #define CS_REVERB_24000_A1 0 /* Floating point value 0.000000 */ 215 #define CS_REVERB_24000_A2 -15714 /* Floating point value -0.479565 */ 216 #define CS_REVERB_24000_B1 -20898 /* Floating point value -0.637745 */ 217 #define CS_REVERB_24000_B2 -6518 /* Floating point value -0.198912 */ 218 #define CS_REVERB_24000_SCALE 15 219 220 /* Reverb coefficients for 32000Hz sample rate, scaled with 1.038030 */ 221 #define CS_REVERB_32000_A0 12463 /* Floating point value 0.380349 */ 222 #define CS_REVERB_32000_A1 0 /* Floating point value 0.000000 */ 223 #define CS_REVERB_32000_A2 -12463 /* Floating point value -0.380349 */ 224 #define CS_REVERB_32000_B1 -31158 /* Floating point value -0.950873 */ 225 #define CS_REVERB_32000_B2 1610 /* Floating point value 0.049127 */ 226 #define CS_REVERB_32000_SCALE 15 227 228 /* Reverb coefficients for 44100Hz sample rate, scaled with 1.038030 */ 229 #define CS_REVERB_44100_A0 4872 /* Floating point value 0.297389 */ 230 #define CS_REVERB_44100_A1 0 /* Floating point value 0.000000 */ 231 #define CS_REVERB_44100_A2 -4872 /* Floating point value -0.297389 */ 232 #define CS_REVERB_44100_B1 -19668 /* Floating point value -1.200423 */ 233 #define CS_REVERB_44100_B2 4203 /* Floating point value 0.256529 */ 234 #define CS_REVERB_44100_SCALE 14 235 236 /* Reverb coefficients for 48000Hz sample rate, scaled with 1.038030 */ 237 #define CS_REVERB_48000_A0 4566 /* Floating point value 0.278661 */ 238 #define CS_REVERB_48000_A1 0 /* Floating point value 0.000000 */ 239 #define CS_REVERB_48000_A2 -4566 /* Floating point value -0.278661 */ 240 #define CS_REVERB_48000_B1 -20562 /* Floating point value -1.254993 */ 241 #define CS_REVERB_48000_B2 4970 /* Floating point value 0.303347 */ 242 #define CS_REVERB_48000_SCALE 14 243 244 /* Reverb Gain Settings */ 245 #define LVCS_HEADPHONE_DELAYGAIN 0.800000 /* Algorithm delay path gain */ 246 #define LVCS_HEADPHONE_OUTPUTGAIN 1.000000 /* Algorithm output gain */ 247 #define LVCS_HEADPHONE_PROCGAIN 18403 /* Processed path gain */ 248 #define LVCS_HEADPHONE_UNPROCGAIN 18403 /* Unprocessed path gain */ 249 #define LVCS_HEADPHONE_GAINCORRECT 1.009343 /* Delay mixer gain correction */ 250 251 252 /************************************************************************************/ 253 /* */ 254 /* The Equaliser */ 255 /* */ 256 /************************************************************************************/ 257 258 /* Equaliser coefficients for 8000 Hz sample rate, CS scaled with 1.038497 and CSEX scaled with 0.775480 */ 259 #define CS_EQUALISER_8000_A0 20698 /* Floating point value 1.263312 */ 260 #define CS_EQUALISER_8000_A1 -9859 /* Floating point value -0.601748 */ 261 #define CS_EQUALISER_8000_A2 -4599 /* Floating point value -0.280681 */ 262 #define CS_EQUALISER_8000_B1 -7797 /* Floating point value -0.475865 */ 263 #define CS_EQUALISER_8000_B2 -6687 /* Floating point value -0.408154 */ 264 #define CS_EQUALISER_8000_SCALE 14 265 #define CSEX_EQUALISER_8000_A0 30912 /* Floating point value 0.943357 */ 266 #define CSEX_EQUALISER_8000_A1 -14724 /* Floating point value -0.449345 */ 267 #define CSEX_EQUALISER_8000_A2 -6868 /* Floating point value -0.209594 */ 268 #define CSEX_EQUALISER_8000_B1 -15593 /* Floating point value -0.475865 */ 269 #define CSEX_EQUALISER_8000_B2 -13374 /* Floating point value -0.408154 */ 270 #define CSEX_EQUALISER_8000_SCALE 15 271 272 /* Equaliser coefficients for 11025Hz sample rate, CS scaled with 1.027761 and CSEX scaled with 0.767463 */ 273 #define CS_EQUALISER_11025_A0 18041 /* Floating point value 1.101145 */ 274 #define CS_EQUALISER_11025_A1 2278 /* Floating point value 0.139020 */ 275 #define CS_EQUALISER_11025_A2 -14163 /* Floating point value -0.864423 */ 276 #define CS_EQUALISER_11025_B1 402 /* Floating point value 0.024541 */ 277 #define CS_EQUALISER_11025_B2 -14892 /* Floating point value -0.908930 */ 278 #define CS_EQUALISER_11025_SCALE 14 279 #define CSEX_EQUALISER_11025_A0 31983 /* Floating point value 0.976058 */ 280 #define CSEX_EQUALISER_11025_A1 -22784 /* Floating point value -0.695326 */ 281 #define CSEX_EQUALISER_11025_A2 -2976 /* Floating point value -0.090809 */ 282 #define CSEX_EQUALISER_11025_B1 -20008 /* Floating point value -0.610594 */ 283 #define CSEX_EQUALISER_11025_B2 -10196 /* Floating point value -0.311149 */ 284 #define CSEX_EQUALISER_11025_SCALE 15 285 286 /* Equaliser coefficients for 12000Hz sample rate, CS scaled with 1.032521 and CSEX scaled with 0.771017 */ 287 #define CS_EQUALISER_12000_A0 20917 /* Floating point value 1.276661 */ 288 #define CS_EQUALISER_12000_A1 -16671 /* Floating point value -1.017519 */ 289 #define CS_EQUALISER_12000_A2 -723 /* Floating point value -0.044128 */ 290 #define CS_EQUALISER_12000_B1 -11954 /* Floating point value -0.729616 */ 291 #define CS_EQUALISER_12000_B2 -3351 /* Floating point value -0.204532 */ 292 #define CS_EQUALISER_12000_SCALE 14 293 #define CSEX_EQUALISER_12000_A0 16500 /* Floating point value 1.007095 */ 294 #define CSEX_EQUALISER_12000_A1 -14285 /* Floating point value -0.871912 */ 295 #define CSEX_EQUALISER_12000_A2 381 /* Floating point value 0.023232 */ 296 #define CSEX_EQUALISER_12000_B1 -12220 /* Floating point value -0.745857 */ 297 #define CSEX_EQUALISER_12000_B2 -3099 /* Floating point value -0.189171 */ 298 #define CSEX_EQUALISER_12000_SCALE 14 299 300 /* Equaliser coefficients for 16000Hz sample rate, CS scaled with 1.031378 and CSEX scaled with 0.770164 */ 301 #define CS_EQUALISER_16000_A0 20998 /* Floating point value 1.281629 */ 302 #define CS_EQUALISER_16000_A1 -17627 /* Floating point value -1.075872 */ 303 #define CS_EQUALISER_16000_A2 -678 /* Floating point value -0.041365 */ 304 #define CS_EQUALISER_16000_B1 -11882 /* Floating point value -0.725239 */ 305 #define CS_EQUALISER_16000_B2 -3676 /* Floating point value -0.224358 */ 306 #define CS_EQUALISER_16000_SCALE 14 307 #define CSEX_EQUALISER_16000_A0 17713 /* Floating point value 1.081091 */ 308 #define CSEX_EQUALISER_16000_A1 -14208 /* Floating point value -0.867183 */ 309 #define CSEX_EQUALISER_16000_A2 -1151 /* Floating point value -0.070247 */ 310 #define CSEX_EQUALISER_16000_B1 -8440 /* Floating point value -0.515121 */ 311 #define CSEX_EQUALISER_16000_B2 -6978 /* Floating point value -0.425893 */ 312 #define CSEX_EQUALISER_16000_SCALE 14 313 314 /* Equaliser coefficients for 22050Hz sample rate, CS scaled with 1.041576 and CSEX scaled with 0.777779 */ 315 #define CS_EQUALISER_22050_A0 22751 /* Floating point value 1.388605 */ 316 #define CS_EQUALISER_22050_A1 -21394 /* Floating point value -1.305799 */ 317 #define CS_EQUALISER_22050_A2 654 /* Floating point value 0.039922 */ 318 #define CS_EQUALISER_22050_B1 -11788 /* Floating point value -0.719494 */ 319 #define CS_EQUALISER_22050_B2 -3985 /* Floating point value -0.243245 */ 320 #define CS_EQUALISER_22050_SCALE 14 321 #define CSEX_EQUALISER_22050_A0 20855 /* Floating point value 1.272910 */ 322 #define CSEX_EQUALISER_22050_A1 -21971 /* Floating point value -1.341014 */ 323 #define CSEX_EQUALISER_22050_A2 2744 /* Floating point value 0.167462 */ 324 #define CSEX_EQUALISER_22050_B1 -10063 /* Floating point value -0.614219 */ 325 #define CSEX_EQUALISER_22050_B2 -5659 /* Floating point value -0.345384 */ 326 #define CSEX_EQUALISER_22050_SCALE 14 327 328 /* Equaliser coefficients for 24000Hz sample rate, CS scaled with 1.034495 and CSEX scaled with 0.772491 */ 329 #define CS_EQUALISER_24000_A0 23099 /* Floating point value 1.409832 */ 330 #define CS_EQUALISER_24000_A1 -23863 /* Floating point value -1.456506 */ 331 #define CS_EQUALISER_24000_A2 2481 /* Floating point value 0.151410 */ 332 #define CS_EQUALISER_24000_B1 -13176 /* Floating point value -0.804201 */ 333 #define CS_EQUALISER_24000_B2 -2683 /* Floating point value -0.163783 */ 334 #define CS_EQUALISER_24000_SCALE 14 335 #define CSEX_EQUALISER_24000_A0 21286 /* Floating point value 1.299198 */ 336 #define CSEX_EQUALISER_24000_A1 -23797 /* Floating point value -1.452447 */ 337 #define CSEX_EQUALISER_24000_A2 3940 /* Floating point value 0.240489 */ 338 #define CSEX_EQUALISER_24000_B1 -10966 /* Floating point value -0.669303 */ 339 #define CSEX_EQUALISER_24000_B2 -4833 /* Floating point value -0.294984 */ 340 #define CSEX_EQUALISER_24000_SCALE 14 341 342 /* Equaliser coefficients for 32000Hz sample rate, CS scaled with 1.044559 and CSEX scaled with 0.780006 */ 343 #define CS_EQUALISER_32000_A0 25575 /* Floating point value 1.560988 */ 344 #define CS_EQUALISER_32000_A1 -30765 /* Floating point value -1.877724 */ 345 #define CS_EQUALISER_32000_A2 6386 /* Floating point value 0.389741 */ 346 #define CS_EQUALISER_32000_B1 -14867 /* Floating point value -0.907410 */ 347 #define CS_EQUALISER_32000_B2 -1155 /* Floating point value -0.070489 */ 348 #define CS_EQUALISER_32000_SCALE 14 349 #define CSEX_EQUALISER_32000_A0 14623 /* Floating point value 1.785049 */ 350 #define CSEX_EQUALISER_32000_A1 -18297 /* Floating point value -2.233497 */ 351 #define CSEX_EQUALISER_32000_A2 4313 /* Floating point value 0.526431 */ 352 #define CSEX_EQUALISER_32000_B1 -3653 /* Floating point value -0.445939 */ 353 #define CSEX_EQUALISER_32000_B2 -4280 /* Floating point value -0.522446 */ 354 #define CSEX_EQUALISER_32000_SCALE 13 355 356 /* Equaliser coefficients for 44100Hz sample rate, CS scaled with 1.022170 and CSEX scaled with 0.763288 */ 357 #define CS_EQUALISER_44100_A0 13304 /* Floating point value 1.623993 */ 358 #define CS_EQUALISER_44100_A1 -18602 /* Floating point value -2.270743 */ 359 #define CS_EQUALISER_44100_A2 5643 /* Floating point value 0.688829 */ 360 #define CS_EQUALISER_44100_B1 -9152 /* Floating point value -1.117190 */ 361 #define CS_EQUALISER_44100_B2 1067 /* Floating point value 0.130208 */ 362 #define CS_EQUALISER_44100_SCALE 13 363 #define CSEX_EQUALISER_44100_A0 16616 /* Floating point value 2.028315 */ 364 #define CSEX_EQUALISER_44100_A1 -23613 /* Floating point value -2.882459 */ 365 #define CSEX_EQUALISER_44100_A2 7410 /* Floating point value 0.904535 */ 366 #define CSEX_EQUALISER_44100_B1 -4860 /* Floating point value -0.593308 */ 367 #define CSEX_EQUALISER_44100_B2 -3161 /* Floating point value -0.385816 */ 368 #define CSEX_EQUALISER_44100_SCALE 13 369 370 /* Equaliser coefficients for 48000Hz sample rate, CS scaled with 1.018635 and CSEX scaled with 0.760648 */ 371 #define CS_EQUALISER_48000_A0 13445 /* Floating point value 1.641177 */ 372 #define CS_EQUALISER_48000_A1 -19372 /* Floating point value -2.364687 */ 373 #define CS_EQUALISER_48000_A2 6225 /* Floating point value 0.759910 */ 374 #define CS_EQUALISER_48000_B1 -9558 /* Floating point value -1.166774 */ 375 #define CS_EQUALISER_48000_B2 1459 /* Floating point value 0.178074 */ 376 #define CS_EQUALISER_48000_SCALE 13 377 #define CSEX_EQUALISER_48000_A0 17200 /* Floating point value 2.099655 */ 378 #define CSEX_EQUALISER_48000_A1 -25110 /* Floating point value -3.065220 */ 379 #define CSEX_EQUALISER_48000_A2 8277 /* Floating point value 1.010417 */ 380 #define CSEX_EQUALISER_48000_B1 -5194 /* Floating point value -0.634021 */ 381 #define CSEX_EQUALISER_48000_B2 -2845 /* Floating point value -0.347332 */ 382 #define CSEX_EQUALISER_48000_SCALE 13 383 384 385 /************************************************************************************/ 386 /* */ 387 /* The Output Gain Correction */ 388 /* */ 389 /************************************************************************************/ 390 391 #define LVCS_HEADPHONE_SHIFT 2 /* Output Shift */ 392 #define LVCS_HEADPHONE_SHIFTLOSS 27779 /* Output Shift loss */ 393 #define LVCS_HEADPHONE_GAIN 6840 /* Unprocessed path gain */ 394 #define LVCS_EX_HEADPHONE_SHIFT 3 /* EX Output Shift */ 395 #define LVCS_EX_HEADPHONE_SHIFTLOSS 18600 /* EX Output Shift loss */ 396 #define LVCS_EX_HEADPHONE_GAIN 5108 /* EX Unprocessed path gain */ 397 398 #endif 399