Lines Matching refs:substream

119 	struct snd_pcm_substream *substream;  member
439 static int create_adsp_page_table(struct snd_pcm_substream *substream, in create_adsp_page_table() argument
443 struct snd_dma_buffer *dmab = snd_pcm_get_dma_buf(substream); in create_adsp_page_table()
444 int i, pages, stream = substream->stream; in create_adsp_page_table()
470 static int hsw_pcm_hw_params(struct snd_pcm_substream *substream, in hsw_pcm_hw_params() argument
473 struct snd_soc_pcm_runtime *rtd = substream->private_data; in hsw_pcm_hw_params()
474 struct snd_pcm_runtime *runtime = substream->runtime; in hsw_pcm_hw_params()
489 pcm_data = &pdata->pcm[dai][substream->stream]; in hsw_pcm_hw_params()
515 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in hsw_pcm_hw_params()
523 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in hsw_pcm_hw_params()
604 ret = snd_pcm_lib_malloc_pages(substream, params_buffer_bytes(params)); in hsw_pcm_hw_params()
611 dmab = snd_pcm_get_dma_buf(substream); in hsw_pcm_hw_params()
613 ret = create_adsp_page_table(substream, pdata, rtd, runtime->dma_area, in hsw_pcm_hw_params()
627 pdata->dmab[rtd->cpu_dai->id][substream->stream].addr, in hsw_pcm_hw_params()
668 static int hsw_pcm_hw_free(struct snd_pcm_substream *substream) in hsw_pcm_hw_free() argument
670 snd_pcm_lib_free_pages(substream); in hsw_pcm_hw_free()
674 static int hsw_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in hsw_pcm_trigger() argument
676 struct snd_soc_pcm_runtime *rtd = substream->private_data; in hsw_pcm_trigger()
682 struct snd_pcm_runtime *runtime = substream->runtime; in hsw_pcm_trigger()
687 pcm_data = &pdata->pcm[dai][substream->stream]; in hsw_pcm_trigger()
718 struct snd_pcm_substream *substream = pcm_data->substream; in hsw_notify_pointer() local
719 struct snd_pcm_runtime *runtime = substream->runtime; in hsw_notify_pointer()
720 struct snd_soc_pcm_runtime *rtd = substream->private_data; in hsw_notify_pointer()
742 || (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in hsw_notify_pointer()
744 snd_pcm_period_elapsed(substream); in hsw_notify_pointer()
778 snd_pcm_period_elapsed(substream); in hsw_notify_pointer()
782 static snd_pcm_uframes_t hsw_pcm_pointer(struct snd_pcm_substream *substream) in hsw_pcm_pointer() argument
784 struct snd_soc_pcm_runtime *rtd = substream->private_data; in hsw_pcm_pointer()
785 struct snd_pcm_runtime *runtime = substream->runtime; in hsw_pcm_pointer()
796 pcm_data = &pdata->pcm[dai][substream->stream]; in hsw_pcm_pointer()
807 static int hsw_pcm_open(struct snd_pcm_substream *substream) in hsw_pcm_open() argument
809 struct snd_soc_pcm_runtime *rtd = substream->private_data; in hsw_pcm_open()
817 pcm_data = &pdata->pcm[dai][substream->stream]; in hsw_pcm_open()
823 pcm_data->substream = substream; in hsw_pcm_open()
825 snd_soc_set_runtime_hwparams(substream, &hsw_pcm_hardware); in hsw_pcm_open()
841 static int hsw_pcm_close(struct snd_pcm_substream *substream) in hsw_pcm_close() argument
843 struct snd_soc_pcm_runtime *rtd = substream->private_data; in hsw_pcm_close()
851 pcm_data = &pdata->pcm[dai][substream->stream]; in hsw_pcm_close()
947 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream || in hsw_pcm_new()
948 pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) { in hsw_pcm_new()
960 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) in hsw_pcm_new()
962 if (pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream) in hsw_pcm_new()
1307 if (!pcm_data->substream) in hsw_pcm_complete()
1342 if (!pcm_data->substream) in hsw_pcm_prepare()
1355 if (!pcm_data->substream) in hsw_pcm_prepare()