ALSA: usb-audio: Simplify parse_audio_unit()
authorTakashi Iwai <tiwai@suse.de>
Thu, 15 Aug 2019 14:30:39 +0000 (16:30 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 22 Aug 2019 08:35:59 +0000 (10:35 +0200)
commit68e9fde245591d18200f8a9054cac22339437adb
treea7396924a68ee140fd9ed417cb2123881e62e168
parent57f8770620e9b51c61089751f0b5ad3dbe376ff2
ALSA: usb-audio: Simplify parse_audio_unit()

Minor code refactoring by combining the UAC version and the type in
the switch-case flow, so that we reduce the indentation and
redundancy.  One good bonus is that the duplicated definition of the
same type value (e.g. UAC2_EFFECT_UNIT) can be handled more cleanly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c