• Home
  • Raw
  • Download

Lines Matching refs:substream

67 static int bf5xx_pcm_hw_params(struct snd_pcm_substream *substream,  in bf5xx_pcm_hw_params()  argument
71 snd_pcm_lib_malloc_pages(substream, size); in bf5xx_pcm_hw_params()
76 static int bf5xx_pcm_hw_free(struct snd_pcm_substream *substream) in bf5xx_pcm_hw_free() argument
78 snd_pcm_lib_free_pages(substream); in bf5xx_pcm_hw_free()
83 static int bf5xx_pcm_prepare(struct snd_pcm_substream *substream) in bf5xx_pcm_prepare() argument
85 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_prepare()
90 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_pcm_prepare()
91 sport_set_tx_callback(sport, bf5xx_dma_irq, substream); in bf5xx_pcm_prepare()
95 sport_set_rx_callback(sport, bf5xx_dma_irq, substream); in bf5xx_pcm_prepare()
103 static int bf5xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in bf5xx_pcm_trigger() argument
105 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_trigger()
112 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in bf5xx_pcm_trigger()
120 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in bf5xx_pcm_trigger()
132 static snd_pcm_uframes_t bf5xx_pcm_pointer(struct snd_pcm_substream *substream) in bf5xx_pcm_pointer() argument
134 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_pointer()
139 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in bf5xx_pcm_pointer()
150 if (diff == snd_pcm_lib_buffer_bytes(substream)) in bf5xx_pcm_pointer()
153 frames = bytes_to_frames(substream->runtime, diff); in bf5xx_pcm_pointer()
158 static int bf5xx_pcm_open(struct snd_pcm_substream *substream) in bf5xx_pcm_open() argument
160 struct snd_soc_pcm_runtime *rtd = substream->private_data; in bf5xx_pcm_open()
163 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_open()
164 struct snd_dma_buffer *buf = &substream->dma_buffer; in bf5xx_pcm_open()
169 snd_soc_set_runtime_hwparams(substream, &bf5xx_pcm_hardware); in bf5xx_pcm_open()
177 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in bf5xx_pcm_open()
193 static int bf5xx_pcm_mmap(struct snd_pcm_substream *substream, in bf5xx_pcm_mmap() argument
196 struct snd_pcm_runtime *runtime = substream->runtime; in bf5xx_pcm_mmap()
218 struct snd_pcm_substream *substream = pcm->streams[stream].substream; in bf5xx_pcm_preallocate_dma_buffer() local
219 struct snd_dma_buffer *buf = &substream->dma_buffer; in bf5xx_pcm_preallocate_dma_buffer()
241 struct snd_pcm_substream *substream; in bf5xx_pcm_free_dma_buffers() local
246 substream = pcm->streams[stream].substream; in bf5xx_pcm_free_dma_buffers()
247 if (!substream) in bf5xx_pcm_free_dma_buffers()
250 buf = &substream->dma_buffer; in bf5xx_pcm_free_dma_buffers()
272 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in bf5xx_pcm_i2s_new()
279 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in bf5xx_pcm_i2s_new()