Lines Matching refs:timer
67 static unsigned long snd_pcm_timer_resolution(struct snd_timer * timer) in snd_pcm_timer_resolution() argument
71 substream = timer->private_data; in snd_pcm_timer_resolution()
75 static int snd_pcm_timer_start(struct snd_timer * timer) in snd_pcm_timer_start() argument
79 substream = snd_timer_chip(timer); in snd_pcm_timer_start()
84 static int snd_pcm_timer_stop(struct snd_timer * timer) in snd_pcm_timer_stop() argument
88 substream = snd_timer_chip(timer); in snd_pcm_timer_stop()
107 static void snd_pcm_timer_free(struct snd_timer *timer) in snd_pcm_timer_free() argument
109 struct snd_pcm_substream *substream = timer->private_data; in snd_pcm_timer_free()
110 substream->timer = NULL; in snd_pcm_timer_free()
116 struct snd_timer *timer; in snd_pcm_timer_init() local
123 if (snd_timer_new(substream->pcm->card, "PCM", &tid, &timer) < 0) in snd_pcm_timer_init()
125 sprintf(timer->name, "PCM %s %i-%i-%i", in snd_pcm_timer_init()
129 timer->hw = snd_pcm_timer; in snd_pcm_timer_init()
130 if (snd_device_register(timer->card, timer) < 0) { in snd_pcm_timer_init()
131 snd_device_free(timer->card, timer); in snd_pcm_timer_init()
134 timer->private_data = substream; in snd_pcm_timer_init()
135 timer->private_free = snd_pcm_timer_free; in snd_pcm_timer_init()
136 substream->timer = timer; in snd_pcm_timer_init()
141 if (substream->timer) { in snd_pcm_timer_done()
142 snd_device_free(substream->pcm->card, substream->timer); in snd_pcm_timer_done()
143 substream->timer = NULL; in snd_pcm_timer_done()