commit | 3ac14b3960185d4c8a2f14b84042aa1aa8531d88 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Jul 25 23:19:45 2018 +0200 |
committer | Takashi Iwai <tiwai@suse.de> | Fri Jul 27 09:05:34 2018 +0200 |
tree | 065c42b7ea085cb3506262518d82bc782cb2e888 | |
parent | e5d3765b6c4cb3ba64295a4205a2f68a4e8fe083 [diff] |
ALSA: xen: Use standard pcm_format_to_bits() for ALSA format bits The open codes with the bit shift in xen_snd_front_alsa.c give sparse warnings as the PCM format type is with __bitwise. There is already a standard macro to get the format bits, so let's use it instead. This fixes sparse warnings like: sound/xen/xen_snd_front_alsa.c:191:47: warning: restricted snd_pcm_format_t degrades to integer Signed-off-by: Takashi Iwai <tiwai@suse.de>