Lines Matching refs:substream

90 	struct snd_pcm_substream *substream;  in em28xx_audio_isocirq()  local
116 substream = dev->adev.capture_pcm_substream; in em28xx_audio_isocirq()
117 runtime = substream->runtime; in em28xx_audio_isocirq()
142 snd_pcm_stream_lock(substream); in em28xx_audio_isocirq()
158 snd_pcm_stream_unlock(substream); in em28xx_audio_isocirq()
161 snd_pcm_period_elapsed(substream); in em28xx_audio_isocirq()
250 static int snd_em28xx_capture_open(struct snd_pcm_substream *substream) in snd_em28xx_capture_open() argument
252 struct em28xx *dev = snd_pcm_substream_chip(substream); in snd_em28xx_capture_open()
253 struct snd_pcm_runtime *runtime = substream->runtime; in snd_em28xx_capture_open()
267 nonblock = !!(substream->f_flags & O_NONBLOCK); in snd_em28xx_capture_open()
315 dev->adev.capture_pcm_substream = substream; in snd_em28xx_capture_open()
325 static int snd_em28xx_pcm_close(struct snd_pcm_substream *substream) in snd_em28xx_pcm_close() argument
327 struct em28xx *dev = snd_pcm_substream_chip(substream); in snd_em28xx_pcm_close()
340 if (substream->runtime->dma_area) { in snd_em28xx_pcm_close()
342 vfree(substream->runtime->dma_area); in snd_em28xx_pcm_close()
343 substream->runtime->dma_area = NULL; in snd_em28xx_pcm_close()
351 static int snd_em28xx_hw_capture_params(struct snd_pcm_substream *substream, in snd_em28xx_hw_capture_params() argument
355 struct em28xx *dev = snd_pcm_substream_chip(substream); in snd_em28xx_hw_capture_params()
362 ret = snd_pcm_alloc_vmalloc_buffer(substream, in snd_em28xx_hw_capture_params()
380 static int snd_em28xx_hw_capture_free(struct snd_pcm_substream *substream) in snd_em28xx_hw_capture_free() argument
382 struct em28xx *dev = snd_pcm_substream_chip(substream); in snd_em28xx_hw_capture_free()
395 static int snd_em28xx_prepare(struct snd_pcm_substream *substream) in snd_em28xx_prepare() argument
397 struct em28xx *dev = snd_pcm_substream_chip(substream); in snd_em28xx_prepare()
423 static int snd_em28xx_capture_trigger(struct snd_pcm_substream *substream, in snd_em28xx_capture_trigger() argument
426 struct em28xx *dev = snd_pcm_substream_chip(substream); in snd_em28xx_capture_trigger()
451 *substream) in snd_em28xx_capture_pointer()
457 dev = snd_pcm_substream_chip(substream); in snd_em28xx_capture_pointer()
499 struct snd_pcm_substream *substream = dev->adev.capture_pcm_substream; in em28xx_vol_put() local
508 if (substream) in em28xx_vol_put()
509 nonblock = !!(substream->f_flags & O_NONBLOCK); in em28xx_vol_put()
539 struct snd_pcm_substream *substream = dev->adev.capture_pcm_substream; in em28xx_vol_get() local
546 if (substream) in em28xx_vol_get()
547 nonblock = !!(substream->f_flags & O_NONBLOCK); in em28xx_vol_get()
574 struct snd_pcm_substream *substream = dev->adev.capture_pcm_substream; in em28xx_vol_put_mute() local
581 if (substream) in em28xx_vol_put_mute()
582 nonblock = !!(substream->f_flags & O_NONBLOCK); in em28xx_vol_put_mute()
615 struct snd_pcm_substream *substream = dev->adev.capture_pcm_substream; in em28xx_vol_get_mute() local
622 if (substream) in em28xx_vol_get_mute()
623 nonblock = !!(substream->f_flags & O_NONBLOCK); in em28xx_vol_get_mute()