ALSA: xen: Use standard pcm_format_to_bits() for ALSA format bits
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2018 21:19:45 +0000 (23:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 27 Jul 2018 07:05:34 +0000 (09:05 +0200)
commit3ac14b3960185d4c8a2f14b84042aa1aa8531d88
tree065c42b7ea085cb3506262518d82bc782cb2e888
parente5d3765b6c4cb3ba64295a4205a2f68a4e8fe083
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>
sound/xen/xen_snd_front_alsa.c