xref: /OK3568_Linux_fs/kernel/sound/pci/au88x0/au88x0_a3ddata.c (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0-or-later
2*4882a593Smuzhiyun /***************************************************************************
3*4882a593Smuzhiyun  *            au88x0_a3ddata.c
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  *  Wed Nov 19 21:11:32 2003
6*4882a593Smuzhiyun  *  Copyright  2003  mjander
7*4882a593Smuzhiyun  *  mjander@users.sourceforge.org
8*4882a593Smuzhiyun  ****************************************************************************/
9*4882a593Smuzhiyun 
10*4882a593Smuzhiyun /*
11*4882a593Smuzhiyun  */
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun /* Constant initializer values. */
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun static const a3d_Hrtf_t A3dHrirZeros = {
16*4882a593Smuzhiyun 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
17*4882a593Smuzhiyun 	0, 0, 0,
18*4882a593Smuzhiyun 	0, 0, 0,
19*4882a593Smuzhiyun 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
20*4882a593Smuzhiyun 	0, 0, 0,
21*4882a593Smuzhiyun 	0, 0, 0
22*4882a593Smuzhiyun };
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun static __maybe_unused const a3d_Hrtf_t A3dHrirImpulse = {
25*4882a593Smuzhiyun 	0x7fff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
26*4882a593Smuzhiyun 	0, 0, 0,
27*4882a593Smuzhiyun 	0, 0, 0, 0,
28*4882a593Smuzhiyun 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
29*4882a593Smuzhiyun 	0, 0, 0,
30*4882a593Smuzhiyun 	0, 0, 0
31*4882a593Smuzhiyun };
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun static __maybe_unused const a3d_Hrtf_t A3dHrirOnes = {
34*4882a593Smuzhiyun 	0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff,
35*4882a593Smuzhiyun 	0x7fff,
36*4882a593Smuzhiyun 	0x7fff,
37*4882a593Smuzhiyun 	0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff,
38*4882a593Smuzhiyun 	0x7fff,
39*4882a593Smuzhiyun 	0x7fff,
40*4882a593Smuzhiyun 	0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff,
41*4882a593Smuzhiyun 	0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff,
42*4882a593Smuzhiyun 	0x7fff,
43*4882a593Smuzhiyun 	0x7fff,
44*4882a593Smuzhiyun 	0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff,
45*4882a593Smuzhiyun 	0x7fff,
46*4882a593Smuzhiyun 	0x7fff,
47*4882a593Smuzhiyun 	0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff
48*4882a593Smuzhiyun };
49*4882a593Smuzhiyun 
50*4882a593Smuzhiyun static __maybe_unused const a3d_Hrtf_t A3dHrirSatTest = {
51*4882a593Smuzhiyun 	0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff,
52*4882a593Smuzhiyun 	0x7fff,
53*4882a593Smuzhiyun 	0x7fff,
54*4882a593Smuzhiyun 	0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001, 0x8001,
55*4882a593Smuzhiyun 	0x8001,
56*4882a593Smuzhiyun 	0x8001,
57*4882a593Smuzhiyun 	0x7fff, 0x0000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
58*4882a593Smuzhiyun 	0, 0, 0,
59*4882a593Smuzhiyun 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
60*4882a593Smuzhiyun };
61*4882a593Smuzhiyun 
62*4882a593Smuzhiyun static __maybe_unused const a3d_Hrtf_t A3dHrirDImpulse = {
63*4882a593Smuzhiyun 	0, 0x7fff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
64*4882a593Smuzhiyun 	0, 0, 0,
65*4882a593Smuzhiyun 	0, 0, 0, 0,
66*4882a593Smuzhiyun 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
67*4882a593Smuzhiyun 	0, 0, 0,
68*4882a593Smuzhiyun 	0, 0, 0
69*4882a593Smuzhiyun };
70*4882a593Smuzhiyun 
71*4882a593Smuzhiyun static const a3d_ItdDline_t A3dItdDlineZeros = {
72*4882a593Smuzhiyun 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
73*4882a593Smuzhiyun 	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
74*4882a593Smuzhiyun };
75*4882a593Smuzhiyun 
76*4882a593Smuzhiyun static short const GainTCDefault = 0x300;
77*4882a593Smuzhiyun static short const ItdTCDefault = 0x0C8;
78*4882a593Smuzhiyun static short const HrtfTCDefault = 0x147;
79*4882a593Smuzhiyun static short const CoefTCDefault = 0x300;
80