Lines Matching refs:substream

31 	struct snd_pcm_substream *substream;  member
64 struct snd_pcm_substream *substream = stream->substream; in au1000_setup_dma_link() local
65 struct snd_pcm_runtime *runtime = substream->runtime; in au1000_setup_dma_link()
134 struct snd_pcm_substream *substream = stream->substream; in au1000_dma_interrupt() local
159 snd_pcm_period_elapsed(substream); in au1000_dma_interrupt()
186 static int alchemy_pcm_open(struct snd_pcm_substream *substream) in alchemy_pcm_open() argument
188 struct alchemy_pcm_ctx *ctx = ss_to_ctx(substream); in alchemy_pcm_open()
189 struct snd_soc_pcm_runtime *rtd = substream->private_data; in alchemy_pcm_open()
190 int *dmaids, s = substream->stream; in alchemy_pcm_open()
193 dmaids = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in alchemy_pcm_open()
205 ctx->stream[s].substream = substream; in alchemy_pcm_open()
207 snd_soc_set_runtime_hwparams(substream, &alchemy_pcm_hardware); in alchemy_pcm_open()
212 static int alchemy_pcm_close(struct snd_pcm_substream *substream) in alchemy_pcm_close() argument
214 struct alchemy_pcm_ctx *ctx = ss_to_ctx(substream); in alchemy_pcm_close()
215 int stype = substream->stream; in alchemy_pcm_close()
217 ctx->stream[stype].substream = NULL; in alchemy_pcm_close()
223 static int alchemy_pcm_hw_params(struct snd_pcm_substream *substream, in alchemy_pcm_hw_params() argument
226 struct audio_stream *stream = ss_to_as(substream); in alchemy_pcm_hw_params()
229 err = snd_pcm_lib_malloc_pages(substream, in alchemy_pcm_hw_params()
237 snd_pcm_lib_free_pages(substream); in alchemy_pcm_hw_params()
242 static int alchemy_pcm_hw_free(struct snd_pcm_substream *substream) in alchemy_pcm_hw_free() argument
244 struct audio_stream *stream = ss_to_as(substream); in alchemy_pcm_hw_free()
246 return snd_pcm_lib_free_pages(substream); in alchemy_pcm_hw_free()
249 static int alchemy_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in alchemy_pcm_trigger() argument
251 struct audio_stream *stream = ss_to_as(substream); in alchemy_pcm_trigger()