xref: /openbmc/linux/sound/pci/au88x0/au88x0_eqdata.c (revision 3d3337de)
1 /* Data structs */
2 
3 static u16 asEqCoefsZeros[50] = {
4 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
5 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
6 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
7 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
8 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
9 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
10 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
11 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
12 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
13 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
14 };
15 
16 static u16 asEqCoefsPipes[64] = {
17 	0x0000, 0x0000,
18 	0x0000, 0x0666, 0x0000, 0x0000, 0x0666,
19 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
20 	0x0000, 0x0666, 0x0000, 0x0000, 0x0666,
21 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
22 	0x0000, 0x0666, 0x0000, 0x0000, 0x0666,
23 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
24 	0x0000, 0x0666, 0x0000, 0x0000, 0x0666,
25 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
26 	0x0000, 0x0666, 0x0000, 0x0000, 0x066a,
27 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
28 
29 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
30 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
31 	0x0000, 0x0000
32 };
33 
34 /* More coef sets can be found in the win2k "inf" file. */
35 static auxxEqCoeffSet_t asEqCoefsNormal = {
36 	.LeftCoefs = {
37 		      0x7e60, 0xc19e, 0x0001, 0x0002, 0x0001,
38 		      0x7fa0, 0xc05f, 0x004f, 0x0000, 0xffb1,
39 		      0x7f3f, 0xc0bc, 0x00c2, 0x0000, 0xff3e,
40 		      0x7e78, 0xc177, 0x011f, 0x0000, 0xfee1,
41 		      0x7cd6, 0xc2e5, 0x025c, 0x0000, 0xfda4,
42 		      0x7949, 0xc5aa, 0x0467, 0x0000, 0xfb99,
43 		      0x7120, 0xcadf, 0x0864, 0x0000, 0xf79c,
44 		      0x5d33, 0xd430, 0x0f7e, 0x0000, 0xf082,
45 		      0x2beb, 0xe3ca, 0x1bd3, 0x0000, 0xe42d,
46 		      0xd740, 0xf01d, 0x2ac5, 0x0000, 0xd53b},
47 
48 	.RightCoefs = {
49 		       0x7e60, 0xc19e, 0x0001, 0x0002, 0x0001,
50 		       0x7fa0, 0xc05f, 0x004f, 0x0000, 0xffb1,
51 		       0x7f3f, 0xc0bc, 0x00c2, 0x0000, 0xff3e,
52 		       0x7e78, 0xc177, 0x011f, 0x0000, 0xfee1,
53 		       0x7cd6, 0xc2e5, 0x025c, 0x0000, 0xfda4,
54 		       0x7949, 0xc5aa, 0x0467, 0x0000, 0xfb99,
55 		       0x7120, 0xcadf, 0x0864, 0x0000, 0xf79c,
56 		       0x5d33, 0xd430, 0x0f7e, 0x0000, 0xf082,
57 		       0x2beb, 0xe3ca, 0x1bd3, 0x0000, 0xe42d,
58 		       0xd740, 0xf01d, 0x2ac5, 0x0000, 0xd53b},
59 
60 	.LeftGains = {
61 		      0x3e96, 0x3e96, 0x3e96, 0x3e96, 0x3e96,
62 		      0x3e96, 0x3e96, 0x3e96, 0x3e96, 0x3e96},
63 	.RightGains = {
64 		       0x3e96, 0x3e96, 0x3e96, 0x3e96, 0x3e96,
65 		       0x3e96, 0x3e96, 0x3e96, 0x3e96, 0x3e96}
66 };
67 
68 static u16 eq_gains_normal[20] = {
69 	0x3e96, 0x3e96, 0x3e96, 0x3e96, 0x3e96,
70 	0x3e96, 0x3e96, 0x3e96, 0x3e96, 0x3e96,
71 	0x3e96, 0x3e96, 0x3e96, 0x3e96, 0x3e96,
72 	0x3e96, 0x3e96, 0x3e96, 0x3e96, 0x3e96
73 };
74 
75 /* _rodatab60 */
76 static u16 eq_gains_zero[10] = {
77 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
78 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000
79 };
80 
81 /* _rodatab7c:  ProgramPipe */
82 static u16 eq_gains_current[12] = {
83 	0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff,
84 	0x7fff,
85 	0x7fff, 0x7fff, 0x7fff
86 };
87 
88 /* _rodatab78 */
89 static u16 eq_states_zero[2] = { 0x0000, 0x0000 };
90 
91 static u16 asEqOutStateZeros[48] = {
92 	0x0000, 0x0000, 0x0000, 0x0000,
93 	0x0000, 0x0000, 0x0000, 0x0000,
94 	0x0000, 0x0000, 0x0000, 0x0000,
95 	0x0000, 0x0000, 0x0000, 0x0000,
96 	0x0000, 0x0000, 0x0000, 0x0000,
97 	0x0000, 0x0000, 0x0000, 0x0000,
98 	0x0000, 0x0000, 0x0000, 0x0000,
99 	0x0000, 0x0000, 0x0000, 0x0000,
100 	0x0000, 0x0000, 0x0000, 0x0000,
101 	0x0000, 0x0000, 0x0000, 0x0000,
102 	0x0000, 0x0000, 0x0000, 0x0000,
103 	0x0000, 0x0000, 0x0000, 0x0000
104 };
105 
106 /*_rodataba0:*/
107 static u16 eq_levels[64] = {
108 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
109 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
110 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
111 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
112 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
113 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
114 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
115 	0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000
116 };
117