Home
last modified time | relevance | path

Searched refs:cstream (Results 1 – 25 of 30) sorted by relevance

12

/linux/sound/soc/
A Dsoc-compress.c78 snd_soc_link_compr_shutdown(cstream, rollback); in soc_compr_clean()
96 return soc_compr_clean(cstream, 0); in soc_compr_free()
116 ret = snd_soc_compr_components_open(cstream); in soc_compr_open()
120 ret = snd_soc_link_compr_startup(cstream); in soc_compr_open()
129 soc_compr_clean(cstream, 1); in soc_compr_open()
173 ret = snd_soc_compr_components_open(cstream); in soc_compr_open_fe()
177 ret = snd_soc_link_compr_startup(cstream); in soc_compr_open_fe()
196 snd_soc_compr_components_free(cstream, 1); in soc_compr_open_fe()
239 snd_soc_link_compr_shutdown(cstream, 0); in soc_compr_free_fe()
241 snd_soc_compr_components_free(cstream, 0); in soc_compr_free_fe()
[all …]
A Dsoc-component.c433 struct snd_compr_stream *cstream) in snd_soc_component_compr_open() argument
475 component, cstream, cmd); in snd_soc_component_compr_trigger()
496 component, cstream, params); in snd_soc_component_compr_set_params()
517 component, cstream, params); in snd_soc_component_compr_get_params()
539 component, cstream, caps); in snd_soc_component_compr_get_caps()
563 component, cstream, codec); in snd_soc_component_compr_get_codec_caps()
584 component, cstream, bytes); in snd_soc_component_compr_ack()
605 component, cstream, tstamp); in snd_soc_component_compr_pointer()
627 component, cstream, buf, count); in snd_soc_component_compr_copy()
649 component, cstream, metadata); in snd_soc_component_compr_set_metadata()
[all …]
A Dsoc-link.c184 int snd_soc_link_compr_startup(struct snd_compr_stream *cstream) in snd_soc_link_compr_startup() argument
186 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_link_compr_startup()
191 ret = rtd->dai_link->compr_ops->startup(cstream); in snd_soc_link_compr_startup()
194 soc_link_mark_push(rtd, cstream, compr_startup); in snd_soc_link_compr_startup()
200 void snd_soc_link_compr_shutdown(struct snd_compr_stream *cstream, in snd_soc_link_compr_shutdown() argument
203 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_link_compr_shutdown()
205 if (rollback && !soc_link_mark_match(rtd, cstream, compr_startup)) in snd_soc_link_compr_shutdown()
210 rtd->dai_link->compr_ops->shutdown(cstream); in snd_soc_link_compr_shutdown()
212 soc_link_mark_pop(rtd, cstream, compr_startup); in snd_soc_link_compr_shutdown()
218 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_link_compr_set_params()
[all …]
A Dsoc-dai.c697 struct snd_compr_stream *cstream) in snd_soc_dai_compr_startup() argument
703 ret = dai->driver->cops->startup(cstream, dai); in snd_soc_dai_compr_startup()
714 struct snd_compr_stream *cstream, in snd_soc_dai_compr_shutdown() argument
722 dai->driver->cops->shutdown(cstream, dai); in snd_soc_dai_compr_shutdown()
725 soc_dai_mark_pop(dai, cstream, compr_startup); in snd_soc_dai_compr_shutdown()
743 struct snd_compr_stream *cstream, in snd_soc_dai_compr_set_params() argument
757 struct snd_compr_stream *cstream, in snd_soc_dai_compr_get_params() argument
771 struct snd_compr_stream *cstream, in snd_soc_dai_compr_ack() argument
785 struct snd_compr_stream *cstream, in snd_soc_dai_compr_pointer() argument
799 struct snd_compr_stream *cstream, in snd_soc_dai_compr_set_metadata() argument
[all …]
/linux/sound/soc/sof/intel/
A Dhda-probes.c19 return cstream->runtime->private_data; in hda_compr_get_stream()
23 struct snd_compr_stream *cstream, in hda_probe_compr_assign() argument
33 hdac_stream(stream)->cstream = cstream; in hda_probe_compr_assign()
34 cstream->runtime->private_data = stream; in hda_probe_compr_assign()
40 struct snd_compr_stream *cstream, in hda_probe_compr_free() argument
46 ret = hda_dsp_stream_put(sdev, cstream->direction, in hda_probe_compr_free()
53 hdac_stream(stream)->cstream = NULL; in hda_probe_compr_free()
54 cstream->runtime->private_data = NULL; in hda_probe_compr_free()
60 struct snd_compr_stream *cstream, in hda_probe_compr_set_params() argument
70 dmab = cstream->runtime->dma_buffer_p; in hda_probe_compr_set_params()
[all …]
A Dhda.h578 struct snd_compr_stream *cstream,
581 struct snd_compr_stream *cstream,
584 struct snd_compr_stream *cstream,
588 struct snd_compr_stream *cstream, int cmd,
591 struct snd_compr_stream *cstream,
A Dhda-stream.c42 else if (hstream->cstream) in hda_hstream_dbg_get_stream_info_str()
43 rtd = hstream->cstream->private_data; in hda_hstream_dbg_get_stream_info_str()
717 if ((!s->substream && !s->cstream) || in hda_dsp_stream_check()
725 } else if (s->cstream) { in hda_dsp_stream_check()
727 s->cstream->runtime->buffer_size); in hda_dsp_stream_check()
728 snd_compr_fragment_elapsed(s->cstream); in hda_dsp_stream_check()
/linux/sound/soc/intel/atom/
A Dsst-mfld-platform-compress.c29 if (cstream) in sst_compr_fragment_elapsed()
30 snd_compr_fragment_elapsed(cstream); in sst_compr_fragment_elapsed()
38 if (cstream) in sst_drain_notify()
39 snd_compr_drain_notify(cstream); in sst_drain_notify()
43 struct snd_compr_stream *cstream) in sst_platform_compr_open() argument
150 cstream->runtime->buffer_size; in sst_platform_compr_set_params()
154 cb.param = cstream; in sst_platform_compr_set_params()
156 cb.drain_cb_param = cstream; in sst_platform_compr_set_params()
235 cstream->runtime->private_data; in sst_platform_compr_get_caps()
245 cstream->runtime->private_data; in sst_platform_compr_get_codec_caps()
[all …]
A Dsst-mfld-platform-pcm.c180 struct snd_compr_stream *cstream = NULL; in sst_fill_stream_params() local
186 cstream = (struct snd_compr_stream *)substream; in sst_fill_stream_params()
207 if (cstream) { in sst_fill_stream_params()
208 index = sst_get_stream_mapping(cstream->device->device, in sst_fill_stream_params()
209 0, cstream->direction, in sst_fill_stream_params()
217 str_params->ops = (u8)cstream->direction; in sst_fill_stream_params()
/linux/sound/soc/uniphier/
A Daio-compress.c20 struct snd_compr_stream *cstream);
22 struct snd_compr_stream *cstream);
76 struct snd_compr_stream *cstream) in uniphier_aio_compr_open() argument
83 if (sub->cstream) in uniphier_aio_compr_open()
86 sub->cstream = cstream; in uniphier_aio_compr_open()
102 struct snd_compr_stream *cstream) in uniphier_aio_compr_free() argument
116 sub->cstream = NULL; in uniphier_aio_compr_free()
122 struct snd_compr_stream *cstream, in uniphier_aio_compr_get_params() argument
135 struct snd_compr_stream *cstream, in uniphier_aio_compr_set_params() argument
172 struct snd_compr_stream *cstream) in uniphier_aio_compr_hw_free() argument
[all …]
A Daio-dma.c50 struct snd_compr_runtime *runtime = sub->cstream->runtime; in aiodma_compr_irq()
64 snd_compr_fragment_elapsed(sub->cstream); in aiodma_compr_irq()
86 if (sub->cstream) in aiodma_irq()
/linux/sound/soc/sprd/
A Dsprd-pcm-compress.c70 struct snd_compr_stream *cstream; member
105 struct snd_compr_stream *cstream = arg; in sprd_platform_compr_drain_notify() local
111 snd_compr_drain_notify(cstream); in sprd_platform_compr_drain_notify()
126 snd_compr_fragment_elapsed(cstream); in sprd_platform_compr_dma_complete()
130 struct snd_compr_stream *cstream, in sprd_platform_compr_dma_config() argument
250 dma->desc->callback_param = cstream; in sprd_platform_compr_dma_config()
334 stream->cstream = cstream; in sprd_platform_compr_open()
372 cb.drain_data = cstream; in sprd_platform_compr_open()
426 int stream_id = cstream->direction; in sprd_platform_compr_trigger()
608 struct snd_compr_stream *cstream, in sprd_platform_compr_get_caps() argument
[all …]
/linux/lib/zstd/
A Dzstd_compress_module.c113 zstd_cstream *cstream; in zstd_init_cstream() local
118 cstream = ZSTD_initStaticCStream(workspace, workspace_size); in zstd_init_cstream()
119 if (cstream == NULL) in zstd_init_cstream()
129 return cstream; in zstd_init_cstream()
133 size_t zstd_reset_cstream(zstd_cstream *cstream, in zstd_reset_cstream() argument
136 return ZSTD_resetCStream(cstream, pledged_src_size); in zstd_reset_cstream()
143 return ZSTD_compressStream(cstream, output, input); in zstd_compress_stream()
147 size_t zstd_flush_stream(zstd_cstream *cstream, zstd_out_buffer *output) in zstd_flush_stream() argument
149 return ZSTD_flushStream(cstream, output); in zstd_flush_stream()
153 size_t zstd_end_stream(zstd_cstream *cstream, zstd_out_buffer *output) in zstd_end_stream() argument
[all …]
/linux/sound/soc/sof/
A Dsof-probes.c239 ret = snd_sof_probe_compr_assign(sdev, cstream, dai); in sof_probe_compr_startup()
274 snd_compr_free_pages(cstream); in sof_probe_compr_shutdown()
276 return snd_sof_probe_compr_free(sdev, cstream, dai); in sof_probe_compr_shutdown()
284 struct snd_compr_runtime *rtd = cstream->runtime; in sof_probe_compr_set_params()
287 cstream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV_SG; in sof_probe_compr_set_params()
288 cstream->dma_buffer.dev.dev = sdev->dev; in sof_probe_compr_set_params()
289 ret = snd_compr_malloc_pages(cstream, rtd->buffer_size); in sof_probe_compr_set_params()
312 return snd_sof_probe_compr_trigger(sdev, cstream, cmd, dai); in sof_probe_compr_trigger()
321 return snd_sof_probe_compr_pointer(sdev, cstream, tstamp, dai); in sof_probe_compr_pointer()
334 struct snd_compr_stream *cstream, in sof_probe_compr_copy() argument
[all …]
A Dcompress.c19 snd_compr_fragment_elapsed(sps->cstream); in snd_sof_compr_fragment_elapsed_work()
30 void snd_sof_compr_fragment_elapsed(struct snd_compr_stream *cstream) in snd_sof_compr_fragment_elapsed() argument
36 if (!cstream) in snd_sof_compr_fragment_elapsed()
39 rtd = cstream->private_data; in snd_sof_compr_fragment_elapsed()
50 schedule_work(&spcm->stream[cstream->direction].period_elapsed_work); in snd_sof_compr_fragment_elapsed()
A Dops.h460 struct snd_compr_stream *cstream, struct snd_soc_dai *dai) in snd_sof_probe_compr_assign() argument
462 return sof_ops(sdev)->probe_assign(sdev, cstream, dai); in snd_sof_probe_compr_assign()
467 struct snd_compr_stream *cstream, struct snd_soc_dai *dai) in snd_sof_probe_compr_free() argument
469 return sof_ops(sdev)->probe_free(sdev, cstream, dai); in snd_sof_probe_compr_free()
474 struct snd_compr_stream *cstream, in snd_sof_probe_compr_set_params() argument
477 return sof_ops(sdev)->probe_set_params(sdev, cstream, params, dai); in snd_sof_probe_compr_set_params()
482 struct snd_compr_stream *cstream, int cmd, in snd_sof_probe_compr_trigger() argument
485 return sof_ops(sdev)->probe_trigger(sdev, cstream, cmd, dai); in snd_sof_probe_compr_trigger()
490 struct snd_compr_stream *cstream, in snd_sof_probe_compr_pointer() argument
494 return sof_ops(sdev)->probe_pointer(sdev, cstream, tstamp, dai); in snd_sof_probe_compr_pointer()
A Dsof-audio.h39 struct snd_compr_stream *cstream; member
238 void snd_sof_compr_fragment_elapsed(struct snd_compr_stream *cstream);
241 static inline void snd_sof_compr_fragment_elapsed(struct snd_compr_stream *cstream) { } in snd_sof_compr_fragment_elapsed() argument
A Dsof-priv.h212 struct snd_compr_stream *cstream,
215 struct snd_compr_stream *cstream,
218 struct snd_compr_stream *cstream,
222 struct snd_compr_stream *cstream, int cmd,
225 struct snd_compr_stream *cstream,
/linux/tools/perf/util/
A Dzstd.c27 data->cstream = ZSTD_createCStream(); in zstd_init()
28 if (data->cstream == NULL) { in zstd_init()
33 ret = ZSTD_initCStream(data->cstream, level); in zstd_init()
49 if (data->cstream) { in zstd_fini()
50 ZSTD_freeCStream(data->cstream); in zstd_fini()
51 data->cstream = NULL; in zstd_fini()
74 ret = ZSTD_compressStream(data->cstream, &output, &input); in zstd_compress_stream_to_records()
75 ZSTD_flushStream(data->cstream, &output); in zstd_compress_stream_to_records()
A Dcompress.h22 ZSTD_CStream *cstream; member
/linux/include/sound/
A Dsoc-component.h460 struct snd_compr_stream *cstream);
462 struct snd_compr_stream *cstream,
464 int snd_soc_component_compr_trigger(struct snd_compr_stream *cstream, int cmd);
465 int snd_soc_component_compr_set_params(struct snd_compr_stream *cstream,
467 int snd_soc_component_compr_get_params(struct snd_compr_stream *cstream,
469 int snd_soc_component_compr_get_caps(struct snd_compr_stream *cstream,
471 int snd_soc_component_compr_get_codec_caps(struct snd_compr_stream *cstream,
474 int snd_soc_component_compr_pointer(struct snd_compr_stream *cstream,
476 int snd_soc_component_compr_copy(struct snd_compr_stream *cstream,
478 int snd_soc_component_compr_set_metadata(struct snd_compr_stream *cstream,
[all …]
A Dsoc-dai.h243 struct snd_compr_stream *cstream);
245 struct snd_compr_stream *cstream,
248 struct snd_compr_stream *cstream, int cmd);
250 struct snd_compr_stream *cstream,
253 struct snd_compr_stream *cstream,
256 struct snd_compr_stream *cstream,
259 struct snd_compr_stream *cstream,
262 struct snd_compr_stream *cstream,
265 struct snd_compr_stream *cstream,
A Dsoc-link.h27 int snd_soc_link_compr_startup(struct snd_compr_stream *cstream);
28 void snd_soc_link_compr_shutdown(struct snd_compr_stream *cstream,
30 int snd_soc_link_compr_set_params(struct snd_compr_stream *cstream);
/linux/tools/build/feature/
A Dtest-libzstd.c6 ZSTD_CStream *cstream; in main() local
8 cstream = ZSTD_createCStream(); in main()
9 ZSTD_freeCStream(cstream); in main()
/linux/include/linux/
A Dzstd.h290 size_t zstd_reset_cstream(zstd_cstream *cstream,
310 size_t zstd_compress_stream(zstd_cstream *cstream, zstd_out_buffer *output,
326 size_t zstd_flush_stream(zstd_cstream *cstream, zstd_out_buffer *output);
340 size_t zstd_end_stream(zstd_cstream *cstream, zstd_out_buffer *output);

Completed in 73 milliseconds

12