Lines Matching refs:timer
3 * ALSA timer back-end using hrtimer
14 #include <sound/timer.h>
20 MODULE_ALIAS("snd-timer-" __stringify(SNDRV_TIMER_GLOBAL_HRTIMER));
26 struct snd_timer *timer;
34 struct snd_timer *t = stime->timer;
51 snd_timer_interrupt(stime->timer, ticks);
70 stime->timer = t;
130 struct snd_timer *timer;
135 /* Create a new timer and set up the fields */
137 &timer);
141 timer->module = THIS_MODULE;
142 strscpy(timer->name, "HR timer");
143 timer->hw = hrtimer_hw;
144 timer->hw.resolution = resolution;
145 timer->hw.ticks = NANO_SEC / resolution;
146 timer->max_instances = 100; /* lower the limit */
148 err = snd_timer_global_register(timer);
150 snd_timer_global_free(timer);
153 mytimer = timer; /* remember this */