ALSA: pcm_format_to_bits strong-typed conversion
authorEldad Zack <eldad@fogrefinery.com>
Mon, 22 Apr 2013 23:00:41 +0000 (01:00 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 29 Apr 2013 11:36:15 +0000 (13:36 +0200)
commit74c34ca1cc12884703c70d34ed333517d978c2e7
tree6d06b76a9fbe829f2427899aa708d682167420c0
parent754813473c1a8b7711802313125f0fafc60141f8
ALSA: pcm_format_to_bits strong-typed conversion

Add a function to handle conversion from snd_pcm_format_t
to bitwise with proper typing.

Change such conversions to use this function and silence sparse
warnings.

Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm.h
sound/aoa/soundbus/i2sbus/pcm.c
sound/atmel/ac97c.c
sound/drivers/aloop.c
sound/pci/asihpi/asihpi.c
sound/usb/format.c
sound/usb/pcm.c
sound/usb/proc.c