Lines Matching refs:substream
77 struct snd_pcm_substream *substream; in ivtv_alsa_announce_pcm_data() local
87 substream = itvsc->capture_pcm_substream; in ivtv_alsa_announce_pcm_data()
88 if (substream == NULL) { in ivtv_alsa_announce_pcm_data()
93 runtime = substream->runtime; in ivtv_alsa_announce_pcm_data()
128 snd_pcm_stream_lock(substream); in ivtv_alsa_announce_pcm_data()
144 snd_pcm_stream_unlock(substream); in ivtv_alsa_announce_pcm_data()
147 snd_pcm_period_elapsed(substream); in ivtv_alsa_announce_pcm_data()
150 static int snd_ivtv_pcm_capture_open(struct snd_pcm_substream *substream) in snd_ivtv_pcm_capture_open() argument
152 struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream); in snd_ivtv_pcm_capture_open()
153 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ivtv_pcm_capture_open()
191 itvsc->capture_pcm_substream = substream; in snd_ivtv_pcm_capture_open()
204 static int snd_ivtv_pcm_capture_close(struct snd_pcm_substream *substream) in snd_ivtv_pcm_capture_close() argument
206 struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream); in snd_ivtv_pcm_capture_close()
225 static int snd_ivtv_pcm_ioctl(struct snd_pcm_substream *substream, in snd_ivtv_pcm_ioctl() argument
228 struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream); in snd_ivtv_pcm_ioctl()
232 ret = snd_pcm_lib_ioctl(substream, cmd, arg); in snd_ivtv_pcm_ioctl()
259 static int snd_ivtv_pcm_hw_params(struct snd_pcm_substream *substream, in snd_ivtv_pcm_hw_params() argument
264 return snd_pcm_alloc_vmalloc_buffer(substream, in snd_ivtv_pcm_hw_params()
268 static int snd_ivtv_pcm_hw_free(struct snd_pcm_substream *substream) in snd_ivtv_pcm_hw_free() argument
270 struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream); in snd_ivtv_pcm_hw_free()
274 if (substream->runtime->dma_area) { in snd_ivtv_pcm_hw_free()
276 vfree(substream->runtime->dma_area); in snd_ivtv_pcm_hw_free()
277 substream->runtime->dma_area = NULL; in snd_ivtv_pcm_hw_free()
284 static int snd_ivtv_pcm_prepare(struct snd_pcm_substream *substream) in snd_ivtv_pcm_prepare() argument
286 struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream); in snd_ivtv_pcm_prepare()
294 static int snd_ivtv_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in snd_ivtv_pcm_trigger() argument
300 snd_pcm_uframes_t snd_ivtv_pcm_pointer(struct snd_pcm_substream *substream) in snd_ivtv_pcm_pointer() argument
304 struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream); in snd_ivtv_pcm_pointer()