projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7840d8a
)
ALSA: opl4: More constification
author
Takashi Iwai
<tiwai@suse.de>
Sun, 5 Jan 2020 14:48:12 +0000
(15:48 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Sun, 5 Jan 2020 15:15:08 +0000
(16:15 +0100)
Apply const prefix to the static volume table.
Just for minor optimization and no functional changes.
Link:
https://lore.kernel.org/r/20200105144823.29547-58-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/opl4/opl4_synth.c
patch
|
blob
|
history
diff --git
a/sound/drivers/opl4/opl4_synth.c
b/sound/drivers/opl4/opl4_synth.c
index 7bc1e58c95aa56bc4fac2efd45f87bfb7f69cca6..34e2bd52bba1b4e69c5e703efd09687569d5c665 100644
(file)
--- a/
sound/drivers/opl4/opl4_synth.c
+++ b/
sound/drivers/opl4/opl4_synth.c
@@
-248,7
+248,7
@@
static const s16 snd_opl4_pitch_map[0x600] = {
* Attenuation according to GM recommendations, in -0.375 dB units.
* table[v] = 40 * log(v / 127) / -0.375
*/
-static unsigned char snd_opl4_volume_table[128] = {
+static
const
unsigned char snd_opl4_volume_table[128] = {
255,224,192,173,160,150,141,134,
128,122,117,113,109,105,102, 99,
96, 93, 90, 88, 85, 83, 81, 79,