Lines Matching defs:timer
3 * ALSA timer back-end using hrtimer
13 #include <sound/timer.h>
19 MODULE_ALIAS("snd-timer-" __stringify(SNDRV_TIMER_GLOBAL_HRTIMER));
25 struct snd_timer *timer;
33 struct snd_timer *t = stime->timer;
50 snd_timer_interrupt(stime->timer, ticks);
72 stime->timer = t;
132 struct snd_timer *timer;
137 /* Create a new timer and set up the fields */
139 &timer);
143 timer->module = THIS_MODULE;
144 strcpy(timer->name, "HR timer");
145 timer->hw = hrtimer_hw;
146 timer->hw.resolution = resolution;
147 timer->hw.ticks = NANO_SEC / resolution;
148 timer->max_instances = 100; /* lower the limit */
150 err = snd_timer_global_register(timer);
152 snd_timer_global_free(timer);
155 mytimer = timer; /* remember this */