summaryrefslogtreecommitdiffstats
path: root/sound/aoa/codecs/tas-basstreble.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-basstreble.h
parentALSA: Allow const arrays for legacy resource management helpers (diff)
downloadlinux-fa35aa46077794de446ddd4bcaf809c2fd041ce2.tar.xz
linux-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 'sound/aoa/codecs/tas-basstreble.h')
-rw-r--r--sound/aoa/codecs/tas-basstreble.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/aoa/codecs/tas-basstreble.h b/sound/aoa/codecs/tas-basstreble.h
index 770935af66af..14dc4e9eea73 100644
--- a/sound/aoa/codecs/tas-basstreble.h
+++ b/sound/aoa/codecs/tas-basstreble.h
@@ -13,7 +13,7 @@
#define TAS3004_TREBLE_ZERO 36
#define TAS3004_BASS_ZERO 36
-static u8 tas3004_treble_table[] = {
+static const u8 tas3004_treble_table[] = {
150, /* -18 dB */
149,
148,
@@ -99,7 +99,7 @@ static inline u8 tas3004_treble(int idx)
* I have also ignored completely differences of
* +/- 1
*/
-static s8 tas3004_bass_diff_to_treble[] = {
+static const s8 tas3004_bass_diff_to_treble[] = {
2, /* 7 dB, offset 50 */
2,
2,