ALSA: Use standard device refcount for card accounting
authorTakashi Iwai <tiwai@suse.de>
Wed, 29 Jan 2014 11:13:43 +0000 (12:13 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 14 Feb 2014 07:14:13 +0000 (08:14 +0100)
commitf24640648186b59bd39f8cd640d631bdb61a3197
treea73d73fd6d100ace77a0f67d7af3df367251d1bc
parent34356dbdb64e9f12cc8ce1bb0d9e38a75b1e4638
ALSA: Use standard device refcount for card accounting

Drop the own refcount but use the standard device refcounting via
get_device() and put_device().  Introduce a new completion to snd_card
instead of the wait queue for syncing the last release, which is used
in snd_card_free().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/core.h
sound/core/init.c
sound/core/sound.c
sound/core/sound_oss.c