Lines Matching refs:substream
90 struct snd_pcm_substream *substream;
110 substream = dev->adev.capture_pcm_substream;
111 runtime = substream->runtime;
136 snd_pcm_stream_lock(substream);
152 snd_pcm_stream_unlock(substream);
155 snd_pcm_period_elapsed(substream);
270 static int snd_em28xx_capture_open(struct snd_pcm_substream *substream)
272 struct em28xx *dev = snd_pcm_substream_chip(substream);
273 struct snd_pcm_runtime *runtime = substream->runtime;
307 dev->adev.capture_pcm_substream = substream;
318 static int snd_em28xx_pcm_close(struct snd_pcm_substream *substream)
320 struct em28xx *dev = snd_pcm_substream_chip(substream);
333 if (substream->runtime->dma_area) {
335 vfree(substream->runtime->dma_area);
336 substream->runtime->dma_area = NULL;
343 static int snd_em28xx_hw_capture_params(struct snd_pcm_substream *substream,
351 ret = snd_pcm_alloc_vmalloc_buffer(substream,
365 static int snd_em28xx_hw_capture_free(struct snd_pcm_substream *substream)
367 struct em28xx *dev = snd_pcm_substream_chip(substream);
379 static int snd_em28xx_prepare(struct snd_pcm_substream *substream)
381 struct em28xx *dev = snd_pcm_substream_chip(substream);
402 static int snd_em28xx_capture_trigger(struct snd_pcm_substream *substream,
405 struct em28xx *dev = snd_pcm_substream_chip(substream);
427 *substream)
433 dev = snd_pcm_substream_chip(substream);