diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-03-14 20:48:43 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-03-15 07:35:17 +0100 |
commit | 4af87a939ef7092fdca267fba473cf8407d6d8e2 (patch) | |
tree | b35dac738d2e5ec6f778b3095246dbac2a1be255 /sound/core | |
parent | ALSA: ymfpci - Fix legacy registers on S3/S4 resume (diff) | |
download | linux-4af87a939ef7092fdca267fba473cf8407d6d8e2.tar.xz linux-4af87a939ef7092fdca267fba473cf8407d6d8e2.zip |
ALSA: pcm: Constify the list in snd_pcm_hw_constraint_list
Allows the constraint lists to be declared const by drivers which seems
reasonable; there's plenty of other constification we could do if we were
being complete but this was easy and quick.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/pcm_lib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c index 3420bd3da5d7..4d18941178e6 100644 --- a/sound/core/pcm_lib.c +++ b/sound/core/pcm_lib.c @@ -1029,7 +1029,8 @@ static int snd_interval_ratden(struct snd_interval *i, * * Returns non-zero if the value is changed, zero if not changed. */ -int snd_interval_list(struct snd_interval *i, unsigned int count, unsigned int *list, unsigned int mask) +int snd_interval_list(struct snd_interval *i, unsigned int count, + const unsigned int *list, unsigned int mask) { unsigned int k; struct snd_interval list_range; |