Lines Matching refs:substream
46 struct snd_pcm_substream *substream; member
68 static int sst_byt_pcm_hw_params(struct snd_pcm_substream *substream, in sst_byt_pcm_hw_params() argument
71 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sst_byt_pcm_hw_params()
74 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_hw_params()
78 int ret, playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in sst_byt_pcm_hw_params()
112 snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params)); in sst_byt_pcm_hw_params()
115 substream->dma_buffer.addr, in sst_byt_pcm_hw_params()
131 static int sst_byt_pcm_hw_free(struct snd_pcm_substream *substream) in sst_byt_pcm_hw_free() argument
133 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sst_byt_pcm_hw_free()
136 snd_pcm_lib_free_pages(substream); in sst_byt_pcm_hw_free()
141 static int sst_byt_pcm_restore_stream_context(struct snd_pcm_substream *substream) in sst_byt_pcm_restore_stream_context() argument
143 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sst_byt_pcm_restore_stream_context()
146 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_restore_stream_context()
170 if (snd_pcm_running(pcm_data->substream)) in sst_byt_pcm_work()
171 sst_byt_pcm_restore_stream_context(pcm_data->substream); in sst_byt_pcm_work()
174 static int sst_byt_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in sst_byt_pcm_trigger() argument
176 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sst_byt_pcm_trigger()
179 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_trigger()
216 struct snd_pcm_substream *substream = pcm_data->substream; in byt_notify_pointer() local
217 struct snd_pcm_runtime *runtime = substream->runtime; in byt_notify_pointer()
218 struct snd_soc_pcm_runtime *rtd = substream->private_data; in byt_notify_pointer()
225 snd_pcm_lib_buffer_bytes(substream)); in byt_notify_pointer()
233 snd_pcm_period_elapsed(substream); in byt_notify_pointer()
237 static snd_pcm_uframes_t sst_byt_pcm_pointer(struct snd_pcm_substream *substream) in sst_byt_pcm_pointer() argument
239 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sst_byt_pcm_pointer()
240 struct snd_pcm_runtime *runtime = substream->runtime; in sst_byt_pcm_pointer()
243 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_pointer()
250 static int sst_byt_pcm_open(struct snd_pcm_substream *substream) in sst_byt_pcm_open() argument
252 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sst_byt_pcm_open()
255 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_open()
262 pcm_data->substream = substream; in sst_byt_pcm_open()
264 snd_soc_set_runtime_hwparams(substream, &sst_byt_pcm_hardware); in sst_byt_pcm_open()
266 pcm_data->stream = sst_byt_stream_new(byt, substream->stream + 1, in sst_byt_pcm_open()
278 static int sst_byt_pcm_close(struct snd_pcm_substream *substream) in sst_byt_pcm_close() argument
280 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sst_byt_pcm_close()
283 struct sst_byt_pcm_data *pcm_data = &pdata->pcm[substream->stream]; in sst_byt_pcm_close()
303 static int sst_byt_pcm_mmap(struct snd_pcm_substream *substream, in sst_byt_pcm_mmap() argument
306 struct snd_soc_pcm_runtime *rtd = substream->private_data; in sst_byt_pcm_mmap()
309 return snd_pcm_lib_default_mmap(substream, vma); in sst_byt_pcm_mmap()
331 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream || in sst_byt_pcm_new()
332 pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in sst_byt_pcm_new()