Lines Matching refs:substream

75 	struct snd_pcm_substream *substream;
85 substream = cxsc->capture_pcm_substream;
86 if (substream == NULL) {
87 dprintk("substream was NULL\n");
91 runtime = substream->runtime;
126 snd_pcm_stream_lock(substream);
142 snd_pcm_stream_unlock(substream);
145 snd_pcm_period_elapsed(substream);
148 static int snd_cx18_pcm_capture_open(struct snd_pcm_substream *substream)
150 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
151 struct snd_pcm_runtime *runtime = substream->runtime;
183 cxsc->capture_pcm_substream = substream;
196 static int snd_cx18_pcm_capture_close(struct snd_pcm_substream *substream)
198 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
218 static int snd_cx18_pcm_ioctl(struct snd_pcm_substream *substream,
221 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
225 ret = snd_pcm_lib_ioctl(substream, cmd, arg);
252 static int snd_cx18_pcm_hw_params(struct snd_pcm_substream *substream,
259 ret = snd_pcm_alloc_vmalloc_buffer(substream,
264 static int snd_cx18_pcm_hw_free(struct snd_pcm_substream *substream)
266 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
270 if (substream->runtime->dma_area) {
272 vfree(substream->runtime->dma_area);
273 substream->runtime->dma_area = NULL;
280 static int snd_cx18_pcm_prepare(struct snd_pcm_substream *substream)
282 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
290 static int snd_cx18_pcm_trigger(struct snd_pcm_substream *substream, int cmd)
296 snd_pcm_uframes_t snd_cx18_pcm_pointer(struct snd_pcm_substream *substream)
300 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream);
340 1, /* 1 capture substream */