ALSA: sb: Fix PCM format bit calculation
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2018 21:19:43 +0000 (23:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 27 Jul 2018 07:05:32 +0000 (09:05 +0200)
commit55ff2d1ea5487fe131cce399baf4503dcf5cc8e1
tree3cc01612cf68c8db35187ac61d94ed65caa466a7
parent6be9a60efb401487a4d658ef23d652a9e6860b34
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: Takashi Iwai <tiwai@suse.de>
sound/isa/sb/sb16_main.c