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