28 #include <linux/time.h>
34 struct snd_emu10k1 *
emu;
44 outw(delay & TIMER_RATE_MASK, emu->port +
TIMER);
45 spin_unlock_irqrestore(&emu->reg_lock, flags);
49 static int snd_emu10k1_timer_stop(
struct snd_timer *timer)
51 struct snd_emu10k1 *emu;
57 spin_unlock_irqrestore(&emu->reg_lock, flags);
61 static int snd_emu10k1_timer_precise_resolution(
struct snd_timer *timer,
62 unsigned long *num,
unsigned long *
den)
73 .start = snd_emu10k1_timer_start,
74 .stop = snd_emu10k1_timer_stop,
75 .precise_resolution = snd_emu10k1_timer_precise_resolution,
86 tid.
card = emu->card->number;
89 if ((err =
snd_timer_new(emu->card,
"EMU10K1", &tid, &timer)) >= 0) {
92 timer->
hw = snd_emu10k1_timer_hw;