[ALSA] Unregister device files at disconnection
authorTakashi Iwai <tiwai@suse.de>
Fri, 23 Jun 2006 12:38:23 +0000 (14:38 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sat, 23 Sep 2006 08:36:58 +0000 (10:36 +0200)
Orignally proposed by Sam Revitch <sam.revitch@gmail.com>.
Unregister device files at disconnection to avoid the futher accesses.
Also, the dev_unregister callback is removed and replaced with the
combination of disconnect + free.
A new function snd_card_free_when_closed() is introduced, which is
used in USB disconnect callback.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

No differences found