]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0272f4198c40f7a77114ccbbf562947213a63976
tree3cc01612cf68c8db35187ac61d94ed65caa466a7
parentc373aa7a81fb995fdcd56dc35cdc36787b17e0b5
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