Lines Matching refs:substream
51 static int txx9aclc_pcm_hw_params(struct snd_pcm_substream *substream, in txx9aclc_pcm_hw_params() argument
54 struct snd_soc_pcm_runtime *rtd = snd_pcm_substream_chip(substream); in txx9aclc_pcm_hw_params()
55 struct snd_pcm_runtime *runtime = substream->runtime; in txx9aclc_pcm_hw_params()
59 ret = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params)); in txx9aclc_pcm_hw_params()
72 substream->stream); in txx9aclc_pcm_hw_params()
74 dmadata->substream = substream; in txx9aclc_pcm_hw_params()
79 static int txx9aclc_pcm_hw_free(struct snd_pcm_substream *substream) in txx9aclc_pcm_hw_free() argument
81 return snd_pcm_lib_free_pages(substream); in txx9aclc_pcm_hw_free()
84 static int txx9aclc_pcm_prepare(struct snd_pcm_substream *substream) in txx9aclc_pcm_prepare() argument
86 struct snd_pcm_runtime *runtime = substream->runtime; in txx9aclc_pcm_prepare()
90 dmadata->buffer_bytes = snd_pcm_lib_buffer_bytes(substream); in txx9aclc_pcm_prepare()
91 dmadata->period_bytes = snd_pcm_lib_period_bytes(substream); in txx9aclc_pcm_prepare()
132 dmadata->substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? in txx9aclc_dma_submit()
152 struct snd_pcm_substream *substream = dmadata->substream; in txx9aclc_dma_tasklet() local
153 u32 ctlbit = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? in txx9aclc_dma_tasklet()
201 snd_pcm_period_elapsed(substream); in txx9aclc_dma_tasklet()
206 static int txx9aclc_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in txx9aclc_pcm_trigger() argument
208 struct txx9aclc_dmadata *dmadata = substream->runtime->private_data; in txx9aclc_pcm_trigger()
213 u32 ctlbit = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? in txx9aclc_pcm_trigger()
239 txx9aclc_pcm_pointer(struct snd_pcm_substream *substream) in txx9aclc_pcm_pointer() argument
241 struct txx9aclc_dmadata *dmadata = substream->runtime->private_data; in txx9aclc_pcm_pointer()
243 return bytes_to_frames(substream->runtime, dmadata->pos); in txx9aclc_pcm_pointer()
246 static int txx9aclc_pcm_open(struct snd_pcm_substream *substream) in txx9aclc_pcm_open() argument
249 struct txx9aclc_dmadata *dmadata = &dev->dmadata[substream->stream]; in txx9aclc_pcm_open()
252 ret = snd_soc_set_runtime_hwparams(substream, &txx9aclc_pcm_hardware); in txx9aclc_pcm_open()
256 ret = snd_pcm_hw_constraint_integer(substream->runtime, in txx9aclc_pcm_open()
260 substream->runtime->private_data = dmadata; in txx9aclc_pcm_open()
264 static int txx9aclc_pcm_close(struct snd_pcm_substream *substream) in txx9aclc_pcm_close() argument
266 struct txx9aclc_dmadata *dmadata = substream->runtime->private_data; in txx9aclc_pcm_close()