forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/drivers/pcsp/pcsp_mixer.c
....@@ -120,17 +120,17 @@
120120 .put = pcsp_##ctl_type##_put, \
121121 }
122122
123
-static struct snd_kcontrol_new snd_pcsp_controls_pcm[] = {
123
+static const struct snd_kcontrol_new snd_pcsp_controls_pcm[] = {
124124 PCSP_MIXER_CONTROL(enable, "Master Playback Switch"),
125125 PCSP_MIXER_CONTROL(treble, "BaseFRQ Playback Volume"),
126126 };
127127
128
-static struct snd_kcontrol_new snd_pcsp_controls_spkr[] = {
128
+static const struct snd_kcontrol_new snd_pcsp_controls_spkr[] = {
129129 PCSP_MIXER_CONTROL(pcspkr, "Beep Playback Switch"),
130130 };
131131
132132 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)
134134 {
135135 int i, err;
136136 struct snd_card *card = chip->card;