cttimer.h 725 B

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