Lines Matching refs:timer
52 static unsigned long snd_pcm_timer_resolution(struct snd_timer * timer) in snd_pcm_timer_resolution() argument
56 substream = timer->private_data; in snd_pcm_timer_resolution()
60 static int snd_pcm_timer_start(struct snd_timer * timer) in snd_pcm_timer_start() argument
64 substream = snd_timer_chip(timer); in snd_pcm_timer_start()
69 static int snd_pcm_timer_stop(struct snd_timer * timer) in snd_pcm_timer_stop() argument
73 substream = snd_timer_chip(timer); in snd_pcm_timer_stop()
92 static void snd_pcm_timer_free(struct snd_timer *timer) in snd_pcm_timer_free() argument
94 struct snd_pcm_substream *substream = timer->private_data; in snd_pcm_timer_free()
95 substream->timer = NULL; in snd_pcm_timer_free()
101 struct snd_timer *timer; in snd_pcm_timer_init() local
108 if (snd_timer_new(substream->pcm->card, "PCM", &tid, &timer) < 0) in snd_pcm_timer_init()
110 sprintf(timer->name, "PCM %s %i-%i-%i", in snd_pcm_timer_init()
113 timer->hw = snd_pcm_timer; in snd_pcm_timer_init()
114 if (snd_device_register(timer->card, timer) < 0) { in snd_pcm_timer_init()
115 snd_device_free(timer->card, timer); in snd_pcm_timer_init()
118 timer->private_data = substream; in snd_pcm_timer_init()
119 timer->private_free = snd_pcm_timer_free; in snd_pcm_timer_init()
120 substream->timer = timer; in snd_pcm_timer_init()
125 if (substream->timer) { in snd_pcm_timer_done()
126 snd_device_free(substream->pcm->card, substream->timer); in snd_pcm_timer_done()
127 substream->timer = NULL; in snd_pcm_timer_done()