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()
56 pcm_err(substream->pcm, in snd_pcm_timer_resolution_change()
67 struct snd_pcm_substream *substream; in snd_pcm_timer_resolution() local
69 substream = timer->private_data; in snd_pcm_timer_resolution()
70 return substream->runtime ? substream->runtime->timer_resolution : 0; in snd_pcm_timer_resolution()
75 struct snd_pcm_substream *substream; in snd_pcm_timer_start() local
77 substream = snd_timer_chip(timer); in snd_pcm_timer_start()
78 substream->timer_running = 1; in snd_pcm_timer_start()
84 struct snd_pcm_substream *substream; in snd_pcm_timer_stop() local
86 substream = snd_timer_chip(timer); in snd_pcm_timer_stop()
87 substream->timer_running = 0; in snd_pcm_timer_stop()
107 struct snd_pcm_substream *substream = timer->private_data; in snd_pcm_timer_free() local
108 substream->timer = NULL; in snd_pcm_timer_free()
111 void snd_pcm_timer_init(struct snd_pcm_substream *substream) in snd_pcm_timer_init() argument
118 tid.card = substream->pcm->card->number; in snd_pcm_timer_init()
119 tid.device = substream->pcm->device; in snd_pcm_timer_init()
120 tid.subdevice = (substream->number << 1) | (substream->stream & 1); in snd_pcm_timer_init()
121 if (snd_timer_new(substream->pcm->card, "PCM", &tid, &timer) < 0) in snd_pcm_timer_init()
124 substream->stream == SNDRV_PCM_STREAM_CAPTURE ? in snd_pcm_timer_init()
132 timer->private_data = substream; in snd_pcm_timer_init()
134 substream->timer = timer; in snd_pcm_timer_init()
137 void snd_pcm_timer_done(struct snd_pcm_substream *substream) in snd_pcm_timer_done() argument
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()