aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2016-01-04 11:50:47 -0500
committerTakashi Iwai <tiwai@suse.de>2016-01-06 04:19:49 -0500
commit3643b46c381eda180df1ec68cd2ec5c79afd61f3 (patch)
treeed0ff2691d7bee328d36fef62b3f1a8dbc7e518b
parent2eb65d67afbf9364b525b657f1475d1a2cbc27de (diff)
ALSA: emux: constify nrpn_conv_table structures
The nrpn_conv_table structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/synth/emux/emux_nrpn.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/synth/emux/emux_nrpn.c b/sound/synth/emux/emux_nrpn.c
index 00fc005ecf6e..9729a15b6ae6 100644
--- a/sound/synth/emux/emux_nrpn.c
+++ b/sound/synth/emux/emux_nrpn.c
@@ -48,7 +48,8 @@ struct nrpn_conv_table {
48 * convert NRPN/control values 48 * convert NRPN/control values
49 */ 49 */
50 50
51static int send_converted_effect(struct nrpn_conv_table *table, int num_tables, 51static int send_converted_effect(const struct nrpn_conv_table *table,
52 int num_tables,
52 struct snd_emux_port *port, 53 struct snd_emux_port *port,
53 struct snd_midi_channel *chan, 54 struct snd_midi_channel *chan,
54 int type, int val, int mode) 55 int type, int val, int mode)
@@ -179,7 +180,7 @@ static int fx_conv_Q(int val)
179} 180}
180 181
181 182
182static struct nrpn_conv_table awe_effects[] = 183static const struct nrpn_conv_table awe_effects[] =
183{ 184{
184 { 0, EMUX_FX_LFO1_DELAY, fx_lfo1_delay}, 185 { 0, EMUX_FX_LFO1_DELAY, fx_lfo1_delay},
185 { 1, EMUX_FX_LFO1_FREQ, fx_lfo1_freq}, 186 { 1, EMUX_FX_LFO1_FREQ, fx_lfo1_freq},
@@ -266,7 +267,7 @@ static int gs_vib_delay(int val)
266 return -(val - 64) * gs_sense[FX_VIBDELAY] / 50; 267 return -(val - 64) * gs_sense[FX_VIBDELAY] / 50;
267} 268}
268 269
269static struct nrpn_conv_table gs_effects[] = 270static const struct nrpn_conv_table gs_effects[] =
270{ 271{
271 {32, EMUX_FX_CUTOFF, gs_cutoff}, 272 {32, EMUX_FX_CUTOFF, gs_cutoff},
272 {33, EMUX_FX_FILTERQ, gs_filterQ}, 273 {33, EMUX_FX_FILTERQ, gs_filterQ},
@@ -350,7 +351,7 @@ static int xg_release(int val)
350 return -(val - 64) * xg_sense[FX_RELEASE] / 64; 351 return -(val - 64) * xg_sense[FX_RELEASE] / 64;
351} 352}
352 353
353static struct nrpn_conv_table xg_effects[] = 354static const struct nrpn_conv_table xg_effects[] =
354{ 355{
355 {71, EMUX_FX_CUTOFF, xg_cutoff}, 356 {71, EMUX_FX_CUTOFF, xg_cutoff},
356 {74, EMUX_FX_FILTERQ, xg_filterQ}, 357 {74, EMUX_FX_FILTERQ, xg_filterQ},