Commit 3643b46c authored by Julia Lawall's avatar Julia Lawall Committed by Takashi Iwai

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 2eb65d67
...@@ -48,7 +48,8 @@ struct nrpn_conv_table { ...@@ -48,7 +48,8 @@ struct nrpn_conv_table {
* convert NRPN/control values * convert NRPN/control values
*/ */
static int send_converted_effect(struct nrpn_conv_table *table, int num_tables, static int send_converted_effect(const struct nrpn_conv_table *table,
int num_tables,
struct snd_emux_port *port, struct snd_emux_port *port,
struct snd_midi_channel *chan, struct snd_midi_channel *chan,
int type, int val, int mode) int type, int val, int mode)
...@@ -179,7 +180,7 @@ static int fx_conv_Q(int val) ...@@ -179,7 +180,7 @@ static int fx_conv_Q(int val)
} }
static struct nrpn_conv_table awe_effects[] = static const struct nrpn_conv_table awe_effects[] =
{ {
{ 0, EMUX_FX_LFO1_DELAY, fx_lfo1_delay}, { 0, EMUX_FX_LFO1_DELAY, fx_lfo1_delay},
{ 1, EMUX_FX_LFO1_FREQ, fx_lfo1_freq}, { 1, EMUX_FX_LFO1_FREQ, fx_lfo1_freq},
...@@ -266,7 +267,7 @@ static int gs_vib_delay(int val) ...@@ -266,7 +267,7 @@ static int gs_vib_delay(int val)
return -(val - 64) * gs_sense[FX_VIBDELAY] / 50; return -(val - 64) * gs_sense[FX_VIBDELAY] / 50;
} }
static struct nrpn_conv_table gs_effects[] = static const struct nrpn_conv_table gs_effects[] =
{ {
{32, EMUX_FX_CUTOFF, gs_cutoff}, {32, EMUX_FX_CUTOFF, gs_cutoff},
{33, EMUX_FX_FILTERQ, gs_filterQ}, {33, EMUX_FX_FILTERQ, gs_filterQ},
...@@ -350,7 +351,7 @@ static int xg_release(int val) ...@@ -350,7 +351,7 @@ static int xg_release(int val)
return -(val - 64) * xg_sense[FX_RELEASE] / 64; return -(val - 64) * xg_sense[FX_RELEASE] / 64;
} }
static struct nrpn_conv_table xg_effects[] = static const struct nrpn_conv_table xg_effects[] =
{ {
{71, EMUX_FX_CUTOFF, xg_cutoff}, {71, EMUX_FX_CUTOFF, xg_cutoff},
{74, EMUX_FX_FILTERQ, xg_filterQ}, {74, EMUX_FX_FILTERQ, xg_filterQ},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment