[ALSA] timers: add module refcounting for global timers
authorClemens Ladisch <clemens@ladisch.de>
Wed, 12 Oct 2005 15:12:31 +0000 (17:12 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 4 Nov 2005 12:18:43 +0000 (13:18 +0100)
commitde24214d0c8e78134875752619f99b9e5824c196
tree147f8cdcf5dfb3be2d95409f7ac44af101d2e0a5
parent2fd43d1159d22395aae01836c4b13ee5265a9b6b
[ALSA] timers: add module refcounting for global timers

Modules: RTC timer driver,Timer Midlevel

Add a module pointer to the timer structure and use it for refcounting
instead of the card's module pointer to prevent the global timer
modules (rtctimer and hpetimer) from being removed while in use.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
include/sound/timer.h
sound/core/rtctimer.c
sound/core/timer.c