Skip to content
Snippets Groups Projects
Commit 55ff2d1e authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: sb: Fix PCM format bit calculation


The PCM format type in snd_pcm_format_t can't be treated as integer
implicitly since it's with __bitwise.  We have already a helper
function to get the bit index of the given type, and use it in each
place instead.

This fixes sparse warnings like:
  sound/isa/sb/sb16_main.c:61:44: warning: restricted snd_pcm_format_t degrades to integer

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 6be9a60e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment