Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54e848ce authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
parent 0fac3195
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1482,9 +1482,9 @@ static struct snd_pcm_hardware snd_cs46xx_capture =

#ifdef CONFIG_SND_CS46XX_NEW_DSP

static unsigned int period_sizes[] = { 32, 64, 128, 256, 512, 1024, 2048 };
static const unsigned int period_sizes[] = { 32, 64, 128, 256, 512, 1024, 2048 };

static struct snd_pcm_hw_constraint_list hw_constraints_period_sizes = {
static const struct snd_pcm_hw_constraint_list hw_constraints_period_sizes = {
	.count = ARRAY_SIZE(period_sizes),
	.list = period_sizes,
	.mask = 0