diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-06-07 08:19:05 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2017-06-09 04:42:50 -0400 |
commit | 54e848ceb736d21cd754b90f7a884ae9acf483f3 (patch) | |
tree | 19d079d59ebdfb975c286670e0168fff671a22d1 /sound/pci/cs46xx | |
parent | 0fac3195a8b8677199404a62c7c5e74daaa942dd (diff) |
ALSA: cs46xx: 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>
Diffstat (limited to 'sound/pci/cs46xx')
-rw-r--r-- | sound/pci/cs46xx/cs46xx_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c index ae2aad52ea6f..709fb1a503b7 100644 --- a/sound/pci/cs46xx/cs46xx_lib.c +++ b/sound/pci/cs46xx/cs46xx_lib.c | |||
@@ -1482,9 +1482,9 @@ static struct snd_pcm_hardware snd_cs46xx_capture = | |||
1482 | 1482 | ||
1483 | #ifdef CONFIG_SND_CS46XX_NEW_DSP | 1483 | #ifdef CONFIG_SND_CS46XX_NEW_DSP |
1484 | 1484 | ||
1485 | static unsigned int period_sizes[] = { 32, 64, 128, 256, 512, 1024, 2048 }; | 1485 | static const unsigned int period_sizes[] = { 32, 64, 128, 256, 512, 1024, 2048 }; |
1486 | 1486 | ||
1487 | static struct snd_pcm_hw_constraint_list hw_constraints_period_sizes = { | 1487 | static const struct snd_pcm_hw_constraint_list hw_constraints_period_sizes = { |
1488 | .count = ARRAY_SIZE(period_sizes), | 1488 | .count = ARRAY_SIZE(period_sizes), |
1489 | .list = period_sizes, | 1489 | .list = period_sizes, |
1490 | .mask = 0 | 1490 | .mask = 0 |