aboutsummaryrefslogtreecommitdiffstats
path: root/sound/aoa/codecs/tas-gain-table.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-05 15:47:17 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-05 16:14:27 +0100
commitfa35aa46077794de446ddd4bcaf809c2fd041ce2 (patch)
treee2bda1480218e724a0f7cec90573edf9ea24a71e /sound/aoa/codecs/tas-gain-table.h
parentALSA: Allow const arrays for legacy resource management helpers (diff)
downloadlinux-dev-fa35aa46077794de446ddd4bcaf809c2fd041ce2.tar.xz
linux-dev-fa35aa46077794de446ddd4bcaf809c2fd041ce2.zip
ALSA: aoa: More constifications
Apply const prefix at every place where appropriate: the static register tables, the volume tables and the callback tables. Just for minor optimization and no functional changes. Link: https://lore.kernel.org/r/20200105144823.29547-3-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to '')
-rw-r--r--sound/aoa/codecs/tas-gain-table.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/aoa/codecs/tas-gain-table.h b/sound/aoa/codecs/tas-gain-table.h
index 77b8e7dc55fd..c9ea01488181 100644
--- a/sound/aoa/codecs/tas-gain-table.h
+++ b/sound/aoa/codecs/tas-gain-table.h
@@ -27,7 +27,7 @@ int main() {
* as easy as calculating
* hwvalue = 1048576.0*exp(0.057564628*dB*2)
* :) */
-static int tas_gaintable[] = {
+static const int tas_gaintable[] = {
0x000000, /* -infinity dB */
0x00014b, /* -70.0 dB */
0x00015f, /* -69.5 dB */