Lines Matching refs:substream
32 void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream) in snd_pcm_timer_resolution_change() argument
35 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_timer_resolution_change()
65 struct snd_pcm_substream *substream; in snd_pcm_timer_resolution() local
67 substream = timer->private_data; in snd_pcm_timer_resolution()
68 return substream->runtime ? substream->runtime->timer_resolution : 0; in snd_pcm_timer_resolution()
73 struct snd_pcm_substream *substream; in snd_pcm_timer_start() local
75 substream = snd_timer_chip(timer); in snd_pcm_timer_start()
76 substream->timer_running = 1; in snd_pcm_timer_start()
82 struct snd_pcm_substream *substream; in snd_pcm_timer_stop() local
84 substream = snd_timer_chip(timer); in snd_pcm_timer_stop()
85 substream->timer_running = 0; in snd_pcm_timer_stop()
105 struct snd_pcm_substream *substream = timer->private_data; in snd_pcm_timer_free() local
106 substream->timer = NULL; in snd_pcm_timer_free()
109 void snd_pcm_timer_init(struct snd_pcm_substream *substream) in snd_pcm_timer_init() argument
116 tid.card = substream->pcm->card->number; in snd_pcm_timer_init()
117 tid.device = substream->pcm->device; in snd_pcm_timer_init()
118 tid.subdevice = (substream->number << 1) | (substream->stream & 1); in snd_pcm_timer_init()
119 if (snd_timer_new(substream->pcm->card, "PCM", &tid, &timer) < 0) in snd_pcm_timer_init()
122 substream->stream == SNDRV_PCM_STREAM_CAPTURE ? in snd_pcm_timer_init()
130 timer->private_data = substream; in snd_pcm_timer_init()
132 substream->timer = timer; in snd_pcm_timer_init()
135 void snd_pcm_timer_done(struct snd_pcm_substream *substream) in snd_pcm_timer_done() argument
137 if (substream->timer) { in snd_pcm_timer_done()
138 snd_device_free(substream->pcm->card, substream->timer); in snd_pcm_timer_done()
139 substream->timer = NULL; in snd_pcm_timer_done()