Lines Matching refs:substream

76 	struct snd_pcm_substream *substream;  in cx18_alsa_announce_pcm_data()  local
86 substream = cxsc->capture_pcm_substream; in cx18_alsa_announce_pcm_data()
87 if (substream == NULL) { in cx18_alsa_announce_pcm_data()
92 runtime = substream->runtime; in cx18_alsa_announce_pcm_data()
127 snd_pcm_stream_lock(substream); in cx18_alsa_announce_pcm_data()
143 snd_pcm_stream_unlock(substream); in cx18_alsa_announce_pcm_data()
146 snd_pcm_period_elapsed(substream); in cx18_alsa_announce_pcm_data()
149 static int snd_cx18_pcm_capture_open(struct snd_pcm_substream *substream) in snd_cx18_pcm_capture_open() argument
151 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream); in snd_cx18_pcm_capture_open()
152 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx18_pcm_capture_open()
184 cxsc->capture_pcm_substream = substream; in snd_cx18_pcm_capture_open()
197 static int snd_cx18_pcm_capture_close(struct snd_pcm_substream *substream) in snd_cx18_pcm_capture_close() argument
199 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream); in snd_cx18_pcm_capture_close()
218 static int snd_cx18_pcm_ioctl(struct snd_pcm_substream *substream, in snd_cx18_pcm_ioctl() argument
221 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream); in snd_cx18_pcm_ioctl()
225 ret = snd_pcm_lib_ioctl(substream, cmd, arg); in snd_cx18_pcm_ioctl()
252 static int snd_cx18_pcm_hw_params(struct snd_pcm_substream *substream, in snd_cx18_pcm_hw_params() argument
257 return snd_pcm_alloc_vmalloc_buffer(substream, in snd_cx18_pcm_hw_params()
261 static int snd_cx18_pcm_hw_free(struct snd_pcm_substream *substream) in snd_cx18_pcm_hw_free() argument
263 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream); in snd_cx18_pcm_hw_free()
267 if (substream->runtime->dma_area) { in snd_cx18_pcm_hw_free()
269 vfree(substream->runtime->dma_area); in snd_cx18_pcm_hw_free()
270 substream->runtime->dma_area = NULL; in snd_cx18_pcm_hw_free()
277 static int snd_cx18_pcm_prepare(struct snd_pcm_substream *substream) in snd_cx18_pcm_prepare() argument
279 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream); in snd_cx18_pcm_prepare()
287 static int snd_cx18_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in snd_cx18_pcm_trigger() argument
293 snd_pcm_uframes_t snd_cx18_pcm_pointer(struct snd_pcm_substream *substream) in snd_cx18_pcm_pointer() argument
297 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream); in snd_cx18_pcm_pointer()