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