]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - sound/core/pcm_lib.c
ALSA: pcm: use helper function to refer parameter as read-only
[mirror_ubuntu-bionic-kernel.git] / sound / core / pcm_lib.c
index 5088d4b8db2222e28a71baaa4db7c70a30997e48..af439e5554b6612c068b6d7f04104ef4cf0b519b 100644 (file)
@@ -1415,7 +1415,8 @@ static int snd_pcm_hw_rule_msbits(struct snd_pcm_hw_params *params,
        unsigned int l = (unsigned long) rule->private;
        int width = l & 0xffff;
        unsigned int msbits = l >> 16;
-       struct snd_interval *i = hw_param_interval(params, SNDRV_PCM_HW_PARAM_SAMPLE_BITS);
+       const struct snd_interval *i =
+               hw_param_interval_c(params, SNDRV_PCM_HW_PARAM_SAMPLE_BITS);
 
        if (!snd_interval_single(i))
                return 0;