Lines Matching refs:substream

19 void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream)  in snd_pcm_timer_resolution_change()  argument
22 struct snd_pcm_runtime *runtime = substream->runtime; in snd_pcm_timer_resolution_change()
43 pcm_err(substream->pcm, in snd_pcm_timer_resolution_change()
54 struct snd_pcm_substream *substream; in snd_pcm_timer_resolution() local
56 substream = timer->private_data; in snd_pcm_timer_resolution()
57 return substream->runtime ? substream->runtime->timer_resolution : 0; in snd_pcm_timer_resolution()
62 struct snd_pcm_substream *substream; in snd_pcm_timer_start() local
64 substream = snd_timer_chip(timer); in snd_pcm_timer_start()
65 substream->timer_running = 1; in snd_pcm_timer_start()
71 struct snd_pcm_substream *substream; in snd_pcm_timer_stop() local
73 substream = snd_timer_chip(timer); in snd_pcm_timer_stop()
74 substream->timer_running = 0; in snd_pcm_timer_stop()
94 struct snd_pcm_substream *substream = timer->private_data; in snd_pcm_timer_free() local
95 substream->timer = NULL; in snd_pcm_timer_free()
98 void snd_pcm_timer_init(struct snd_pcm_substream *substream) in snd_pcm_timer_init() argument
105 tid.card = substream->pcm->card->number; in snd_pcm_timer_init()
106 tid.device = substream->pcm->device; in snd_pcm_timer_init()
107 tid.subdevice = (substream->number << 1) | (substream->stream & 1); in snd_pcm_timer_init()
108 if (snd_timer_new(substream->pcm->card, "PCM", &tid, &timer) < 0) in snd_pcm_timer_init()
111 substream->stream == SNDRV_PCM_STREAM_CAPTURE ? in snd_pcm_timer_init()
119 timer->private_data = substream; in snd_pcm_timer_init()
121 substream->timer = timer; in snd_pcm_timer_init()
124 void snd_pcm_timer_done(struct snd_pcm_substream *substream) in snd_pcm_timer_done() argument
126 if (substream->timer) { in snd_pcm_timer_done()
127 snd_device_free(substream->pcm->card, substream->timer); in snd_pcm_timer_done()
128 substream->timer = NULL; in snd_pcm_timer_done()