| .. | .. |
|---|
| 1 | 1 | // SPDX-License-Identifier: GPL-2.0 |
|---|
| 2 | 2 | /* Data structs */ |
|---|
| 3 | 3 | |
|---|
| 4 | | -static u16 asEqCoefsZeros[50] = { |
|---|
| 4 | +static const u16 asEqCoefsZeros[50] = { |
|---|
| 5 | 5 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
|---|
| 6 | 6 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
|---|
| 7 | 7 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
|---|
| .. | .. |
|---|
| 14 | 14 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
|---|
| 15 | 15 | }; |
|---|
| 16 | 16 | |
|---|
| 17 | | -static u16 asEqCoefsPipes[64] = { |
|---|
| 17 | +static const u16 asEqCoefsPipes[64] = { |
|---|
| 18 | 18 | 0x0000, 0x0000, |
|---|
| 19 | 19 | 0x0000, 0x0666, 0x0000, 0x0000, 0x0666, |
|---|
| 20 | 20 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
|---|
| .. | .. |
|---|
| 33 | 33 | }; |
|---|
| 34 | 34 | |
|---|
| 35 | 35 | /* More coef sets can be found in the win2k "inf" file. */ |
|---|
| 36 | | -static auxxEqCoeffSet_t asEqCoefsNormal = { |
|---|
| 36 | +static const auxxEqCoeffSet_t asEqCoefsNormal = { |
|---|
| 37 | 37 | .LeftCoefs = { |
|---|
| 38 | 38 | 0x7e60, 0xc19e, 0x0001, 0x0002, 0x0001, |
|---|
| 39 | 39 | 0x7fa0, 0xc05f, 0x004f, 0x0000, 0xffb1, |
|---|
| .. | .. |
|---|
| 66 | 66 | 0x3e96, 0x3e96, 0x3e96, 0x3e96, 0x3e96} |
|---|
| 67 | 67 | }; |
|---|
| 68 | 68 | |
|---|
| 69 | | -static u16 eq_gains_normal[20] = { |
|---|
| 69 | +static const u16 eq_gains_normal[20] = { |
|---|
| 70 | 70 | 0x3e96, 0x3e96, 0x3e96, 0x3e96, 0x3e96, |
|---|
| 71 | 71 | 0x3e96, 0x3e96, 0x3e96, 0x3e96, 0x3e96, |
|---|
| 72 | 72 | 0x3e96, 0x3e96, 0x3e96, 0x3e96, 0x3e96, |
|---|
| .. | .. |
|---|
| 74 | 74 | }; |
|---|
| 75 | 75 | |
|---|
| 76 | 76 | /* _rodatab60 */ |
|---|
| 77 | | -static u16 eq_gains_zero[10] = { |
|---|
| 77 | +static const u16 eq_gains_zero[10] = { |
|---|
| 78 | 78 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
|---|
| 79 | 79 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 |
|---|
| 80 | 80 | }; |
|---|
| 81 | 81 | |
|---|
| 82 | 82 | /* _rodatab7c: ProgramPipe */ |
|---|
| 83 | | -static u16 eq_gains_current[12] = { |
|---|
| 83 | +static const u16 eq_gains_current[12] = { |
|---|
| 84 | 84 | 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, 0x7fff, |
|---|
| 85 | 85 | 0x7fff, |
|---|
| 86 | 86 | 0x7fff, 0x7fff, 0x7fff |
|---|
| 87 | 87 | }; |
|---|
| 88 | 88 | |
|---|
| 89 | 89 | /* _rodatab78 */ |
|---|
| 90 | | -static u16 eq_states_zero[2] = { 0x0000, 0x0000 }; |
|---|
| 90 | +static const u16 eq_states_zero[2] = { 0x0000, 0x0000 }; |
|---|
| 91 | 91 | |
|---|
| 92 | | -static u16 asEqOutStateZeros[48] = { |
|---|
| 92 | +static const u16 asEqOutStateZeros[48] = { |
|---|
| 93 | 93 | 0x0000, 0x0000, 0x0000, 0x0000, |
|---|
| 94 | 94 | 0x0000, 0x0000, 0x0000, 0x0000, |
|---|
| 95 | 95 | 0x0000, 0x0000, 0x0000, 0x0000, |
|---|
| .. | .. |
|---|
| 105 | 105 | }; |
|---|
| 106 | 106 | |
|---|
| 107 | 107 | /*_rodataba0:*/ |
|---|
| 108 | | -static u16 eq_levels[64] = { |
|---|
| 108 | +static const u16 eq_levels[64] = { |
|---|
| 109 | 109 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
|---|
| 110 | 110 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
|---|
| 111 | 111 | 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, |
|---|