forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/ppc/tumbler_volume.h
....@@ -2,7 +2,7 @@
22 /* volume tables, taken from TAS3001c data manual */
33 /* volume gain values */
44 /* 0 = -70 dB, 175 = 18.0 dB in 0.5 dB step */
5
-static unsigned int master_volume_table[] = {
5
+static const unsigned int master_volume_table[] = {
66 0x00000015, 0x00000016, 0x00000017,
77 0x00000019, 0x0000001a, 0x0000001c,
88 0x0000001d, 0x0000001f, 0x00000021,
....@@ -66,7 +66,7 @@
6666
6767 /* treble table for TAS3001c */
6868 /* 0 = -18 dB, 72 = 18 dB in 0.5 dB step */
69
-static unsigned int treble_volume_table[] = {
69
+static const unsigned int treble_volume_table[] = {
7070 0x96, 0x95, 0x94,
7171 0x93, 0x92, 0x91,
7272 0x90, 0x8f, 0x8e,
....@@ -96,7 +96,7 @@
9696
9797 /* bass table for TAS3001c */
9898 /* 0 = -18 dB, 72 = 18 dB in 0.5 dB step */
99
-static unsigned int bass_volume_table[] = {
99
+static const unsigned int bass_volume_table[] = {
100100 0x86, 0x82, 0x7f,
101101 0x7d, 0x7a, 0x78,
102102 0x76, 0x74, 0x72,
....@@ -126,7 +126,7 @@
126126
127127 /* mixer (pcm) volume table */
128128 /* 0 = -70 dB, 175 = 18.0 dB in 0.5 dB step */
129
-static unsigned int mixer_volume_table[] = {
129
+static const unsigned int mixer_volume_table[] = {
130130 0x00014b, 0x00015f, 0x000174,
131131 0x00018a, 0x0001a1, 0x0001ba,
132132 0x0001d4, 0x0001f0, 0x00020d,
....@@ -191,7 +191,7 @@
191191
192192 /* treble table for TAS3004 */
193193 /* 0 = -18 dB, 72 = 18 dB in 0.5 dB step */
194
-static unsigned int snapper_treble_volume_table[] = {
194
+static const unsigned int snapper_treble_volume_table[] = {
195195 0x96, 0x95, 0x94,
196196 0x93, 0x92, 0x91,
197197 0x90, 0x8f, 0x8e,
....@@ -221,7 +221,7 @@
221221
222222 /* bass table for TAS3004 */
223223 /* 0 = -18 dB, 72 = 18 dB in 0.5 dB step */
224
-static unsigned int snapper_bass_volume_table[] = {
224
+static const unsigned int snapper_bass_volume_table[] = {
225225 0x96, 0x95, 0x94,
226226 0x93, 0x92, 0x91,
227227 0x90, 0x8f, 0x8e,