ALSA: usb: stream: move audioformat alloc/init into separate function
authorRuslan Bilovol <ruslan.bilovol@gmail.com>
Fri, 4 May 2018 01:23:58 +0000 (04:23 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 4 May 2018 07:38:44 +0000 (09:38 +0200)
commit4d47fa8447691198c710daa62fab82fcc0f3f868
treeeb7c2ca018706d2e6309d6dacc352b5a78941c5d
parent8c558076c740e8009a96c6fdc3d4245dde62be77
ALSA: usb: stream: move audioformat alloc/init into separate function

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

Move audioformat allocation and initialization
into separate function, this will make easier
future refactoring.
Attributes left in the original func because it'll
be used for UAC3 BADD profiles suport in the future

There is no functional change.

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