Lines Matching refs:cstream
33 static int sof_probes_compr_startup(struct snd_compr_stream *cstream, in sof_probes_compr_startup() argument
49 ret = ops->startup(cdev, cstream, dai, &priv->extractor_stream_tag); in sof_probes_compr_startup()
59 static int sof_probes_compr_shutdown(struct snd_compr_stream *cstream, in sof_probes_compr_shutdown() argument
88 snd_compr_free_pages(cstream); in sof_probes_compr_shutdown()
90 ret = ops->shutdown(cdev, cstream, dai); in sof_probes_compr_shutdown()
97 static int sof_probes_compr_set_params(struct snd_compr_stream *cstream, in sof_probes_compr_set_params() argument
103 struct snd_compr_runtime *rtd = cstream->runtime; in sof_probes_compr_set_params()
109 cstream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV_SG; in sof_probes_compr_set_params()
110 cstream->dma_buffer.dev.dev = sof_client_get_dma_dev(cdev); in sof_probes_compr_set_params()
111 ret = snd_compr_malloc_pages(cstream, rtd->buffer_size); in sof_probes_compr_set_params()
115 ret = ops->set_params(cdev, cstream, params, dai); in sof_probes_compr_set_params()
128 static int sof_probes_compr_trigger(struct snd_compr_stream *cstream, int cmd, in sof_probes_compr_trigger() argument
136 return ops->trigger(cdev, cstream, cmd, dai); in sof_probes_compr_trigger()
139 static int sof_probes_compr_pointer(struct snd_compr_stream *cstream, in sof_probes_compr_pointer() argument
148 return ops->pointer(cdev, cstream, tstamp, dai); in sof_probes_compr_pointer()
160 struct snd_compr_stream *cstream, in sof_probes_compr_copy() argument
163 struct snd_compr_runtime *rtd = cstream->runtime; in sof_probes_compr_copy()