Lines Matching refs:substream
66 static void omap_mcbsp_set_threshold(struct snd_pcm_substream *substream, in omap_mcbsp_set_threshold() argument
69 struct snd_soc_pcm_runtime *rtd = substream->private_data; in omap_mcbsp_set_threshold()
86 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in omap_mcbsp_set_threshold()
111 static int omap_mcbsp_dai_startup(struct snd_pcm_substream *substream, in omap_mcbsp_dai_startup() argument
141 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in omap_mcbsp_dai_startup()
142 snd_pcm_hw_rule_add(substream->runtime, 0, in omap_mcbsp_dai_startup()
149 snd_pcm_hw_constraint_step(substream->runtime, 0, in omap_mcbsp_dai_startup()
156 static void omap_mcbsp_dai_shutdown(struct snd_pcm_substream *substream, in omap_mcbsp_dai_shutdown() argument
167 static int omap_mcbsp_dai_trigger(struct snd_pcm_substream *substream, int cmd, in omap_mcbsp_dai_trigger() argument
171 int err = 0, play = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in omap_mcbsp_dai_trigger()
195 struct snd_pcm_substream *substream, in omap_mcbsp_dai_delay() argument
198 struct snd_soc_pcm_runtime *rtd = substream->private_data; in omap_mcbsp_dai_delay()
204 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in omap_mcbsp_dai_delay()
214 delay = fifo_use / substream->runtime->channels; in omap_mcbsp_dai_delay()
219 static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream, in omap_mcbsp_dai_hw_params() argument
230 dma_data = snd_soc_dai_get_dma_data(cpu_dai, substream); in omap_mcbsp_dai_hw_params()
249 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in omap_mcbsp_dai_hw_params()
274 omap_mcbsp_set_threshold(substream, pkt_size); in omap_mcbsp_dai_hw_params()