diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-01-21 11:43:08 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-01-21 11:51:42 -0500 |
commit | 40ed9444cd2421cceedb35bb8d8ff913a5ae1ac3 (patch) | |
tree | 101052484faf68fcb87959730793d3518731abe6 /include/sound/timer.h | |
parent | 230323dac060123c340cf75997971145a42661ee (diff) |
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>
Diffstat (limited to 'include/sound/timer.h')
-rw-r--r-- | include/sound/timer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/timer.h b/include/sound/timer.h index 7990469a44ce..c4d76ff056c6 100644 --- a/include/sound/timer.h +++ b/include/sound/timer.h | |||
@@ -104,6 +104,7 @@ struct snd_timer_instance { | |||
104 | int event, | 104 | int event, |
105 | struct timespec * tstamp, | 105 | struct timespec * tstamp, |
106 | unsigned long resolution); | 106 | unsigned long resolution); |
107 | void (*disconnect)(struct snd_timer_instance *timeri); | ||
107 | void *callback_data; | 108 | void *callback_data; |
108 | unsigned long ticks; /* auto-load ticks when expired */ | 109 | unsigned long ticks; /* auto-load ticks when expired */ |
109 | unsigned long cticks; /* current ticks */ | 110 | unsigned long cticks; /* current ticks */ |