Commit:     b9f09a485937d9c3fb524b2fa140fee1d94856d0
Parent:     d44df2d0f22a688f4f3af3e0d6cbcf9a4516e1b5
Author:     Takashi Iwai <[EMAIL PROTECTED]>
AuthorDate: Tue Sep 11 00:33:48 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 16:49:27 2007 +0200

    [ALSA] Fix 'discards qualifiers' compile warnings in pcm.h
    Fixed cast messes in pcm.h.
        include/sound/pcm.h: In function ‘hw_param_interval_c’:
        include/sound/pcm.h:800: warning: passing argument 1 of 
‘hw_param_interval’ discards qualifiers from pointer target type
    Simply redefine the inline functions again for const pointers.
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
 include/sound/pcm.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/sound/pcm.h b/include/sound/pcm.h
index 27f8ef4..76b34b5 100644
--- a/include/sound/pcm.h
+++ b/include/sound/pcm.h
@@ -791,13 +791,13 @@ static inline struct snd_interval 
*hw_param_interval(struct snd_pcm_hw_params *p
 static inline const struct snd_mask *hw_param_mask_c(const struct 
snd_pcm_hw_params *params,
                                             snd_pcm_hw_param_t var)
-       return (const struct snd_mask *)hw_param_mask((struct 
snd_pcm_hw_params*) params, var);
+       return &params->masks[var - SNDRV_PCM_HW_PARAM_FIRST_MASK];
 static inline const struct snd_interval *hw_param_interval_c(const struct 
snd_pcm_hw_params *params,
                                                     snd_pcm_hw_param_t var)
-       return (const struct snd_interval *)hw_param_interval((struct 
snd_pcm_hw_params*) params, var);
+       return &params->intervals[var - SNDRV_PCM_HW_PARAM_FIRST_INTERVAL];
 #define params_access(p) snd_mask_min(hw_param_mask((p), 
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to