cttimer.h (725B)
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 13struct snd_pcm_substream; 14struct ct_atc; 15struct ct_atc_pcm; 16 17struct ct_timer; 18struct ct_timer_instance; 19 20struct ct_timer *ct_timer_new(struct ct_atc *atc); 21void ct_timer_free(struct ct_timer *atimer); 22 23struct ct_timer_instance * 24ct_timer_instance_new(struct ct_timer *atimer, struct ct_atc_pcm *apcm); 25void ct_timer_instance_free(struct ct_timer_instance *ti); 26void ct_timer_start(struct ct_timer_instance *ti); 27void ct_timer_stop(struct ct_timer_instance *ti); 28void ct_timer_prepare(struct ct_timer_instance *ti); 29 30#endif /* __CTTIMER_H */