summaryrefslogtreecommitdiffstats
path: root/sound/isa
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-06-07 08:16:43 -0400
committerTakashi Iwai <tiwai@suse.de>2017-06-09 04:42:48 -0400
commit7b3f477636eddcaa137b96e6c847fb466fadb19a (patch)
treebbad6cafbb45a252e202bc10e5a1b79269198db7 /sound/isa
parentb078bbfbb1a1083a69117bc894107cad6920a2ed (diff)
ALSA: wss: 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/isa')
-rw-r--r--sound/isa/wss/wss_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/isa/wss/wss_lib.c b/sound/isa/wss/wss_lib.c
index 913b731d2236..9f4e2e34cbe1 100644
--- a/sound/isa/wss/wss_lib.c
+++ b/sound/isa/wss/wss_lib.c
@@ -69,12 +69,12 @@ static unsigned char freq_bits[14] = {
69 /* 48000 */ 0x0C | CS4231_XTAL1 69 /* 48000 */ 0x0C | CS4231_XTAL1
70}; 70};
71 71
72static unsigned int rates[14] = { 72static const unsigned int rates[14] = {
73 5510, 6620, 8000, 9600, 11025, 16000, 18900, 22050, 73 5510, 6620, 8000, 9600, 11025, 16000, 18900, 22050,
74 27042, 32000, 33075, 37800, 44100, 48000 74 27042, 32000, 33075, 37800, 44100, 48000
75}; 75};
76 76
77static struct snd_pcm_hw_constraint_list hw_constraints_rates = { 77static const struct snd_pcm_hw_constraint_list hw_constraints_rates = {
78 .count = ARRAY_SIZE(rates), 78 .count = ARRAY_SIZE(rates),
79 .list = rates, 79 .list = rates,
80 .mask = 0, 80 .mask = 0,