]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit628a87794f6656ff827c3876c111772ab8046546
treea73d73fd6d100ace77a0f67d7af3df367251d1bc
parent21ea4f0f540a542ad977ad5e9edca40e53f28d9a
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