ALSA: usb: stream: refactor uac3 audio interface parsing
authorRuslan Bilovol <ruslan.bilovol@gmail.com>
Fri, 4 May 2018 01:24:00 +0000 (04:24 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 4 May 2018 07:39:12 +0000 (09:39 +0200)
commiteda553f43217ac873a771fd2bd538dfe5faae5e6
treec0d869467486ae859b56b6db18e7ffb6feae5d28
parent68faa863644c770cd60290421353b5d6aedfcc9c
ALSA: usb: stream: refactor uac3 audio interface parsing

Offload snd_usb_parse_audio_interface() function
which became quite long after adding UAC3 spec support.

Move class-specific parts of uac3 parsing to separate
function which now produce audioformat structure that
is ready to be fed to snd_usb_add_audio_stream().

Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/stream.c