summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-07 08:18:16 -0400
committerTakashi Iwai <tiwai@suse.de>2017-06-09 04:42:49 -0400
commit3e2fd04f89e5d38c8df3c4b6dba771f2c46a8f44 (patch)
treeedc20dbe39316d8cda493fc4bb13a395426259e8
parent2e5eb6b745315c2c12f970929d410be920ae18bb (diff)
ALSA: azt3328: Constify hw_constraints
snd_pcm_hw_constraint_list(), *_ratnums() and *_ratdens() receive the const pointers. Constify the corresponding static objects for better hardening. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/azt3328.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/azt3328.c b/sound/pci/azt3328.c
index 79b2e6b7d88b..fc18c29a8173 100644
--- a/sound/pci/azt3328.c
+++ b/sound/pci/azt3328.c
@@ -2014,7 +2014,7 @@ static const struct snd_pcm_hardware snd_azf3328_hardware =
2014}; 2014};
2015 2015
2016 2016
2017static unsigned int snd_azf3328_fixed_rates[] = { 2017static const unsigned int snd_azf3328_fixed_rates[] = {
2018 AZF_FREQ_4000, 2018 AZF_FREQ_4000,
2019 AZF_FREQ_4800, 2019 AZF_FREQ_4800,
2020 AZF_FREQ_5512, 2020 AZF_FREQ_5512,
@@ -2031,7 +2031,7 @@ static unsigned int snd_azf3328_fixed_rates[] = {
2031 AZF_FREQ_66200 2031 AZF_FREQ_66200
2032}; 2032};
2033 2033
2034static struct snd_pcm_hw_constraint_list snd_azf3328_hw_constraints_rates = { 2034static const struct snd_pcm_hw_constraint_list snd_azf3328_hw_constraints_rates = {
2035 .count = ARRAY_SIZE(snd_azf3328_fixed_rates), 2035 .count = ARRAY_SIZE(snd_azf3328_fixed_rates),
2036 .list = snd_azf3328_fixed_rates, 2036 .list = snd_azf3328_fixed_rates,
2037 .mask = 0, 2037 .mask = 0,