diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-07-25 23:19:43 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-07-27 09:05:32 +0200 |
commit | 55ff2d1ea5487fe131cce399baf4503dcf5cc8e1 (patch) | |
tree | 3cc01612cf68c8db35187ac61d94ed65caa466a7 /include/sound | |
parent | ALSA: wss: Fix sparse warning wrt PCM format type (diff) | |
download | linux-55ff2d1ea5487fe131cce399baf4503dcf5cc8e1.tar.xz linux-55ff2d1ea5487fe131cce399baf4503dcf5cc8e1.zip |
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>
Diffstat (limited to 'include/sound')
0 files changed, 0 insertions, 0 deletions