xref: /linux/sound/pci/ctxfi/cttimer.h (revision b77e0ce62d63a761ffb7f7245a215a49f5921c2f)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Timer handling
4  */
5 
6 #ifndef __CTTIMER_H
7 #define __CTTIMER_H
8 
9 #include <linux/spinlock.h>
10 #include <linux/timer.h>
11 #include <linux/list.h>
12 
13 struct snd_pcm_substream;
14 struct ct_atc;
15 struct ct_atc_pcm;
16 
17 struct ct_timer;
18 struct ct_timer_instance;
19 
20 struct ct_timer *ct_timer_new(struct ct_atc *atc);
21 void ct_timer_free(struct ct_timer *atimer);
22 
23 struct ct_timer_instance *
24 ct_timer_instance_new(struct ct_timer *atimer, struct ct_atc_pcm *apcm);
25 void ct_timer_instance_free(struct ct_timer_instance *ti);
26 void ct_timer_start(struct ct_timer_instance *ti);
27 void ct_timer_stop(struct ct_timer_instance *ti);
28 void ct_timer_prepare(struct ct_timer_instance *ti);
29 
30 #endif /* __CTTIMER_H */
31