ALSA: usb: stream: refactor uac1/2 audio interface parsing
authorRuslan Bilovol <ruslan.bilovol@gmail.com>
Fri, 4 May 2018 01:23:59 +0000 (04:23 +0300)
committerTakashi Iwai <tiwai@suse.de>
Fri, 4 May 2018 07:38:50 +0000 (09:38 +0200)
commit68faa863644c770cd60290421353b5d6aedfcc9c
tree6ce71f1c9fcebcb8b8d4c401fd405cffe870fc2e
parent4d47fa8447691198c710daa62fab82fcc0f3f868
ALSA: usb: stream: refactor uac1/2 audio interface parsing

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

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

This also broke Blue Microphones workaround (which
relies on audioformat decoded from previous altsetting)
into two parts: prepare quirk flag analyzing previous
altsetting then use it with current altsetting.

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