ALSA: usb-audio: refactor code
authorDaniel Mack <daniel@caiaq.de>
Thu, 4 Mar 2010 18:46:13 +0000 (19:46 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 5 Mar 2010 07:17:14 +0000 (08:17 +0100)
commite5779998bf8b70e48a6cc208c8b61b33bd6117ea
tree512568f0fc4b81eac8019522c10df5b81483bcca
parent3e1aebef6fb55e35668d2d7cf608cf03f30c904f
ALSA: usb-audio: refactor code

Clean up the usb audio driver by factoring out a lot of functions to
separate files. Code for procfs, quirks, urbs, format parsers etc all
got a new home now.

Moved almost all special quirk handling to quirks.c and introduced new
generic functions to handle them, so the exceptions do not pollute the
whole driver.

Renamed usbaudio.c to card.c because this is what it actually does now.
Renamed usbmidi.c to midi.c for namespace clarity.
Removed more things from usbaudio.h.

The non-standard drivers were adopted accordingly.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
30 files changed:
sound/usb/Makefile
sound/usb/card.c [new file with mode: 0644]
sound/usb/card.h [new file with mode: 0644]
sound/usb/debug.h [new file with mode: 0644]
sound/usb/endpoint.c [new file with mode: 0644]
sound/usb/endpoint.h [new file with mode: 0644]
sound/usb/format.c [new file with mode: 0644]
sound/usb/format.h [new file with mode: 0644]
sound/usb/helper.c [new file with mode: 0644]
sound/usb/helper.h [new file with mode: 0644]
sound/usb/midi.c [new file with mode: 0644]
sound/usb/midi.h [new file with mode: 0644]
sound/usb/misc/ua101.c
sound/usb/pcm.c [new file with mode: 0644]
sound/usb/pcm.h [new file with mode: 0644]
sound/usb/proc.c [new file with mode: 0644]
sound/usb/proc.h [new file with mode: 0644]
sound/usb/quirks-table.h [new file with mode: 0644]
sound/usb/quirks.c [new file with mode: 0644]
sound/usb/quirks.h [new file with mode: 0644]
sound/usb/urb.c [new file with mode: 0644]
sound/usb/urb.h [new file with mode: 0644]
sound/usb/usbaudio.c [deleted file]
sound/usb/usbaudio.h
sound/usb/usbmidi.c [deleted file]
sound/usb/usbmidi.h [deleted file]
sound/usb/usbmixer.c
sound/usb/usbquirks.h [deleted file]
sound/usb/usx2y/us122l.c
sound/usb/usx2y/usbusx2y.h