OSDN Git Service

ALSA: pcm: Minor refactoring
authorTakashi Iwai <tiwai@suse.de>
Thu, 6 Feb 2020 16:39:45 +0000 (17:39 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 10 Feb 2020 07:28:12 +0000 (08:28 +0100)
commit49d9e43f36fd4b71a4c1888f86c09cf73be73d0b
tree057a2c241b7dd914fb85ed87689165737e6e1a94
parent89e0b9a060febbf85b985d2f3aa6afea3473276e
ALSA: pcm: Minor refactoring

Make a common helper for validating the format type.
This reduces the number of cast in the code that are needed for
suppressing sparse warnings.

No functional changes, just minor refactoring.

Link: https://lore.kernel.org/r/20200206163945.6797-9-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_misc.c