commit | c461482c8072bb073e6146db320d3da85cdc89ad | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Fri Jun 23 14:38:23 2006 +0200 |
committer | Jaroslav Kysela <perex@suse.cz> | Sat Sep 23 10:36:58 2006 +0200 |
tree | 3b69cfd292a488a8cb57ac9b040bd2b1b1a1e26d | |
parent | 746d4a02e68499fc6c1f8d0c43d2271853ade181 [diff] |
[ALSA] Unregister device files at disconnection 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>