Lines Matching refs:substream
273 static int xtfpga_i2s_startup(struct snd_pcm_substream *substream, in xtfpga_i2s_startup() argument
278 snd_soc_dai_set_dma_data(dai, substream, i2s); in xtfpga_i2s_startup()
282 static int xtfpga_i2s_hw_params(struct snd_pcm_substream *substream, in xtfpga_i2s_hw_params() argument
371 static int xtfpga_pcm_open(struct snd_pcm_substream *substream) in xtfpga_pcm_open() argument
373 struct snd_pcm_runtime *runtime = substream->runtime; in xtfpga_pcm_open()
374 struct snd_soc_pcm_runtime *rtd = substream->private_data; in xtfpga_pcm_open()
377 snd_soc_set_runtime_hwparams(substream, &xtfpga_pcm_hardware); in xtfpga_pcm_open()
378 p = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); in xtfpga_pcm_open()
384 static int xtfpga_pcm_close(struct snd_pcm_substream *substream) in xtfpga_pcm_close() argument
390 static int xtfpga_pcm_hw_params(struct snd_pcm_substream *substream, in xtfpga_pcm_hw_params() argument
394 struct snd_pcm_runtime *runtime = substream->runtime; in xtfpga_pcm_hw_params()
425 ret = snd_pcm_lib_malloc_pages(substream, in xtfpga_pcm_hw_params()
430 static int xtfpga_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in xtfpga_pcm_trigger() argument
433 struct snd_pcm_runtime *runtime = substream->runtime; in xtfpga_pcm_trigger()
441 rcu_assign_pointer(i2s->tx_substream, substream); in xtfpga_pcm_trigger()
458 static snd_pcm_uframes_t xtfpga_pcm_pointer(struct snd_pcm_substream *substream) in xtfpga_pcm_pointer() argument
460 struct snd_pcm_runtime *runtime = substream->runtime; in xtfpga_pcm_pointer()