.. | .. |
---|
120 | 120 | .put = pcsp_##ctl_type##_put, \ |
---|
121 | 121 | } |
---|
122 | 122 | |
---|
123 | | -static struct snd_kcontrol_new snd_pcsp_controls_pcm[] = { |
---|
| 123 | +static const struct snd_kcontrol_new snd_pcsp_controls_pcm[] = { |
---|
124 | 124 | PCSP_MIXER_CONTROL(enable, "Master Playback Switch"), |
---|
125 | 125 | PCSP_MIXER_CONTROL(treble, "BaseFRQ Playback Volume"), |
---|
126 | 126 | }; |
---|
127 | 127 | |
---|
128 | | -static struct snd_kcontrol_new snd_pcsp_controls_spkr[] = { |
---|
| 128 | +static const struct snd_kcontrol_new snd_pcsp_controls_spkr[] = { |
---|
129 | 129 | PCSP_MIXER_CONTROL(pcspkr, "Beep Playback Switch"), |
---|
130 | 130 | }; |
---|
131 | 131 | |
---|
132 | 132 | static int snd_pcsp_ctls_add(struct snd_pcsp *chip, |
---|
133 | | - struct snd_kcontrol_new *ctls, int num) |
---|
| 133 | + const struct snd_kcontrol_new *ctls, int num) |
---|
134 | 134 | { |
---|
135 | 135 | int i, err; |
---|
136 | 136 | struct snd_card *card = chip->card; |
---|