Lines Matching refs:timer
65 static unsigned long snd_pcm_timer_resolution(struct snd_timer * timer) in snd_pcm_timer_resolution() argument
69 substream = timer->private_data; in snd_pcm_timer_resolution()
73 static int snd_pcm_timer_start(struct snd_timer * timer) in snd_pcm_timer_start() argument
77 substream = snd_timer_chip(timer); in snd_pcm_timer_start()
82 static int snd_pcm_timer_stop(struct snd_timer * timer) in snd_pcm_timer_stop() argument
86 substream = snd_timer_chip(timer); in snd_pcm_timer_stop()
105 static void snd_pcm_timer_free(struct snd_timer *timer) in snd_pcm_timer_free() argument
107 struct snd_pcm_substream *substream = timer->private_data; in snd_pcm_timer_free()
108 substream->timer = NULL; in snd_pcm_timer_free()
114 struct snd_timer *timer; in snd_pcm_timer_init() local
121 if (snd_timer_new(substream->pcm->card, "PCM", &tid, &timer) < 0) in snd_pcm_timer_init()
123 sprintf(timer->name, "PCM %s %i-%i-%i", in snd_pcm_timer_init()
127 timer->hw = snd_pcm_timer; in snd_pcm_timer_init()
128 if (snd_device_register(timer->card, timer) < 0) { in snd_pcm_timer_init()
129 snd_device_free(timer->card, timer); in snd_pcm_timer_init()
132 timer->private_data = substream; in snd_pcm_timer_init()
133 timer->private_free = snd_pcm_timer_free; in snd_pcm_timer_init()
134 substream->timer = timer; in snd_pcm_timer_init()
139 if (substream->timer) { in snd_pcm_timer_done()
140 snd_device_free(substream->pcm->card, substream->timer); in snd_pcm_timer_done()
141 substream->timer = NULL; in snd_pcm_timer_done()