linux/sound/pci/au88x0/au88x0_a3ddata.c
<<
>>
Prefs
   1/***************************************************************************
   2 *            au88x0_a3ddata.c
   3 *
   4 *  Wed Nov 19 21:11:32 2003
   5 *  Copyright  2003  mjander
   6 *  mjander@users.sourceforge.org
   7 ****************************************************************************/
   8
   9/*
  10 *  This program is free software; you can redistribute it and/or modify
  11 *  it under the terms of the GNU General Public License as published by
  12 *  the Free Software Foundation; either version 2 of the License, or
  13 *  (at your option) any later version.
  14 *
  15 *  This program is distributed in the hope that it will be useful,
  16 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  17 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18 *  GNU Library General Public License for more details.
  19 *
  20 *  You should have received a copy of the GNU General Public License
  21 *  along with this program; if not, write to the Free Software
  22 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  23 */
  24
  25/* Constant initializer values. */
  26
  27static const a3d_Hrtf_t A3dHrirZeros = {
  28        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  29        0, 0, 0,
  30        0, 0, 0,
  31        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  32        0, 0, 0,
  33        0, 0, 0
  34};
  35
  36static const a3d_Hrtf_t A3dHrirImpulse = {
  37        0x7fff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  38        0, 0, 0,
  39        0, 0, 0, 0,
  40        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  41        0, 0, 0,
  42        0, 0, 0
  43};
  44
  45static const a3d_Hrtf_t A3dHrirOnes = {
  46        0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff,
  47        0x7fff,
  48        0x7fff,
  49        0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff,
  50        0x7fff,
  51        0x7fff,
  52        0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff,
  53        0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff,
  54        0x7fff,
  55        0x7fff,
  56        0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff,
  57        0x7fff,
  58        0x7fff,
  59        0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff
  60};
  61
  62static const a3d_Hrtf_t A3dHrirSatTest = {
  63        0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff,
  64        0x7fff,
  65        0x7fff,
  66        0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001,
  67        0x8001,
  68        0x8001,
  69        0x7fff, 0x0000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  70        0, 0, 0,
  71        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
  72};
  73
  74static const a3d_Hrtf_t A3dHrirDImpulse = {
  75        0, 0x7fff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  76        0, 0, 0,
  77        0, 0, 0, 0,
  78        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  79        0, 0, 0,
  80        0, 0, 0
  81};
  82
  83static const a3d_ItdDline_t A3dItdDlineZeros = {
  84        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  85        0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
  86};
  87
  88static short const GainTCDefault = 0x300;
  89static short const ItdTCDefault = 0x0C8;
  90static short const HrtfTCDefault = 0x147;
  91static short const CoefTCDefault = 0x300;
  92