diff options
author | Eldad Zack <eldad@fogrefinery.com> | 2013-04-22 19:00:41 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-04-29 07:36:15 -0400 |
commit | 74c34ca1cc12884703c70d34ed333517d978c2e7 (patch) | |
tree | 6d06b76a9fbe829f2427899aa708d682167420c0 /sound/usb/proc.c | |
parent | 754813473c1a8b7711802313125f0fafc60141f8 (diff) |
ALSA: pcm_format_to_bits strong-typed conversion
Add a function to handle conversion from snd_pcm_format_t
to bitwise with proper typing.
Change such conversions to use this function and silence sparse
warnings.
Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/proc.c')
-rw-r--r-- | sound/usb/proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/usb/proc.c b/sound/usb/proc.c index 0182ef634d8b..135c76871063 100644 --- a/sound/usb/proc.c +++ b/sound/usb/proc.c | |||
@@ -85,7 +85,7 @@ static void proc_dump_substream_formats(struct snd_usb_substream *subs, struct s | |||
85 | snd_iprintf(buffer, " Altset %d\n", fp->altsetting); | 85 | snd_iprintf(buffer, " Altset %d\n", fp->altsetting); |
86 | snd_iprintf(buffer, " Format:"); | 86 | snd_iprintf(buffer, " Format:"); |
87 | for (fmt = 0; fmt <= SNDRV_PCM_FORMAT_LAST; ++fmt) | 87 | for (fmt = 0; fmt <= SNDRV_PCM_FORMAT_LAST; ++fmt) |
88 | if (fp->formats & (1uLL << fmt)) | 88 | if (fp->formats & pcm_format_to_bits(fmt)) |
89 | snd_iprintf(buffer, " %s", | 89 | snd_iprintf(buffer, " %s", |
90 | snd_pcm_format_name(fmt)); | 90 | snd_pcm_format_name(fmt)); |
91 | snd_iprintf(buffer, "\n"); | 91 | snd_iprintf(buffer, "\n"); |