Lines Matching refs:cstream
259 static int sof_probes_compr_startup(struct snd_compr_stream *cstream, in sof_probes_compr_startup() argument
275 ret = ops->startup(cdev, cstream, dai, &priv->extractor_stream_tag); in sof_probes_compr_startup()
285 static int sof_probes_compr_shutdown(struct snd_compr_stream *cstream, in sof_probes_compr_shutdown() argument
313 snd_compr_free_pages(cstream); in sof_probes_compr_shutdown()
315 ret = ops->shutdown(cdev, cstream, dai); in sof_probes_compr_shutdown()
322 static int sof_probes_compr_set_params(struct snd_compr_stream *cstream, in sof_probes_compr_set_params() argument
328 struct snd_compr_runtime *rtd = cstream->runtime; in sof_probes_compr_set_params()
333 cstream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV_SG; in sof_probes_compr_set_params()
334 cstream->dma_buffer.dev.dev = sof_client_get_dma_dev(cdev); in sof_probes_compr_set_params()
335 ret = snd_compr_malloc_pages(cstream, rtd->buffer_size); in sof_probes_compr_set_params()
339 ret = ops->set_params(cdev, cstream, params, dai); in sof_probes_compr_set_params()
352 static int sof_probes_compr_trigger(struct snd_compr_stream *cstream, int cmd, in sof_probes_compr_trigger() argument
360 return ops->trigger(cdev, cstream, cmd, dai); in sof_probes_compr_trigger()
363 static int sof_probes_compr_pointer(struct snd_compr_stream *cstream, in sof_probes_compr_pointer() argument
372 return ops->pointer(cdev, cstream, tstamp, dai); in sof_probes_compr_pointer()
384 struct snd_compr_stream *cstream, in sof_probes_compr_copy() argument
387 struct snd_compr_runtime *rtd = cstream->runtime; in sof_probes_compr_copy()