This is a rebased version of the usb-audio cleanup patch set. On top of what's already been posted, there is one more fix to support sample rate configuration, and one bugfix.
Commit 864c11080 was also ported over. And Clemens' latest patches are also included.
With these patches applied, I can stream audio on a class v2 device. At least for awhile, then I get CRC errors in DATA0 packets. But that's a different issue.
What's not yet done is all the feature unit parsing, mixers etc.
Daniel
[PATCH 1/8] ALSA: usb-audio: move ua101 driver [PATCH 2/8] ALSA: usb-audio: header file cleanups [PATCH 3/8] ALSA: usb-audio: refactor code [PATCH 4/8] ALSA: usb-audio: rename substream format field to altset_idx [PATCH 5/8] ALSA: usb-audio: use a format bitmask per alternate setting [PATCH 6/8] ALSA: usb-audio: support multiple formats with audio class v2 devices [PATCH 7/8] ALSA: usb-audio: add support for samplerate setting on v2 devices [PATCH 8/8] usb/audio.h: Fix field order