linux/sound/usb/line6
Takashi Iwai 85a9339bec ALSA: line6: Reorganize card resource handling
This is a fairly big rewrite regarding the card resource management in
line6 drivers:

- The card creation is moved into line6_probe().  This adds the global
  destructor to private_free, so that each driver doesn't have to call
  it any longer.

- The USB disconnect callback handles the card release, thus each
  driver needs to concentrate on only its own resources.  No need to
  snd_card_*() call in the destructor.

- Fix the potential stall in disconnection by removing
  snd_card_free().   It's replaced with snd_card_free_when_closed()
  for asynchronous release.

- The only remaining operation for the card in each driver is the call
  of snd_card_register().  All the rest are dealt in the common module
  by itself.

- These ended up with removal of audio.[ch] as a result of a reduction
  of one layer.  Each driver just needs to call line6_probe().

Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-01-20 08:17:16 +01:00
..
capture.c ALSA: line6: Reorganize card resource handling 2015-01-20 08:17:16 +01:00
capture.h ALSA: move line6 usb driver into sound/usb 2015-01-12 22:29:57 +01:00
driver.c ALSA: line6: Reorganize card resource handling 2015-01-20 08:17:16 +01:00
driver.h ALSA: line6: Split to each driver 2015-01-20 08:14:17 +01:00
Kconfig ALSA: line6: Handle impulse response via control API 2015-01-20 08:14:36 +01:00
Makefile ALSA: line6: Reorganize card resource handling 2015-01-20 08:17:16 +01:00
midi.c ALSA: line6: Reorganize card resource handling 2015-01-20 08:17:16 +01:00
midi.h ALSA: move line6 usb driver into sound/usb 2015-01-12 22:29:57 +01:00
midibuf.c ALSA: move line6 usb driver into sound/usb 2015-01-12 22:29:57 +01:00
midibuf.h ALSA: move line6 usb driver into sound/usb 2015-01-12 22:29:57 +01:00
pcm.c ALSA: line6: Reorganize card resource handling 2015-01-20 08:17:16 +01:00
pcm.h ALSA: line6: Handle impulse response via control API 2015-01-20 08:14:36 +01:00
playback.c ALSA: line6: Reorganize card resource handling 2015-01-20 08:17:16 +01:00
playback.h ALSA: move line6 usb driver into sound/usb 2015-01-12 22:29:57 +01:00
pod.c ALSA: line6: Reorganize card resource handling 2015-01-20 08:17:16 +01:00
podhd.c ALSA: line6: Reorganize card resource handling 2015-01-20 08:17:16 +01:00
revision.h ALSA: move line6 usb driver into sound/usb 2015-01-12 22:29:57 +01:00
toneport.c ALSA: line6: Reorganize card resource handling 2015-01-20 08:17:16 +01:00
usbdefs.h ALSA: move line6 usb driver into sound/usb 2015-01-12 22:29:57 +01:00
variax.c ALSA: line6: Reorganize card resource handling 2015-01-20 08:17:16 +01:00