summaryrefslogtreecommitdiff
path: root/snd-pcxhr/src/pcxhr_hrtimer.h
blob: b54d864a6b7c55f245ac24207f67a7a1ec8e219a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Driver for Digigram pcxhr compatible soundcards
 *
 * Copyright (c) 2004 by Digigram <alsa@digigram.com>
 */

#ifndef PCXHR_PCX_HRTIMER_H_
#define PCXHR_PCX_HRTIMER_H_

#include <linux/hrtimer.h>
#include "pcxhr.h"
#include "pcxhr_core.h"

/* interrupt handling */
enum hrtimer_restart pcxhr_hr_timer_callback(struct hrtimer* hr_timer);

void pcxhr_hr_timer_tasklet(unsigned long data);
void pcxhr_hr_timer_trig(struct pcxhr_mgr *mgr, int start, unsigned int rate);
void pcxhr_hr_timer_init(struct pcxhr_mgr *mgr);
void pcxhr_hr_timer_kill(struct pcxhr_mgr *mgr);

#endif /* PCXHR_PCX_HRTIMER_H_ */