Commit bdf84db7 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hdspm: 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: default avatarTakashi Iwai <tiwai@suse.de>
parent 4640c034
...@@ -6040,11 +6040,11 @@ static int snd_hdspm_hw_rule_out_channels(struct snd_pcm_hw_params *params, ...@@ -6040,11 +6040,11 @@ static int snd_hdspm_hw_rule_out_channels(struct snd_pcm_hw_params *params,
} }
static unsigned int hdspm_aes32_sample_rates[] = { static const unsigned int hdspm_aes32_sample_rates[] = {
32000, 44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000 32000, 44100, 48000, 64000, 88200, 96000, 128000, 176400, 192000
}; };
static struct snd_pcm_hw_constraint_list static const struct snd_pcm_hw_constraint_list
hdspm_hw_constraints_aes32_sample_rates = { hdspm_hw_constraints_aes32_sample_rates = {
.count = ARRAY_SIZE(hdspm_aes32_sample_rates), .count = ARRAY_SIZE(hdspm_aes32_sample_rates),
.list = hdspm_aes32_sample_rates, .list = hdspm_aes32_sample_rates,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment