mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
ALSA: timer: Introduce disconnect op to snd_timer_instance
Instead of the previous ugly hack, introduce a new op, disconnect, to snd_timer_instance object for handling the wake up of pending tasks more cleanly. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=109431 Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
230323dac0
commit
40ed9444cd
2 changed files with 12 additions and 12 deletions
|
@ -104,6 +104,7 @@ struct snd_timer_instance {
|
|||
int event,
|
||||
struct timespec * tstamp,
|
||||
unsigned long resolution);
|
||||
void (*disconnect)(struct snd_timer_instance *timeri);
|
||||
void *callback_data;
|
||||
unsigned long ticks; /* auto-load ticks when expired */
|
||||
unsigned long cticks; /* current ticks */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue