Home
last modified time | relevance | path

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

12

/linux-6.12.1/sound/soc/
Dsoc-compress.c24 static int snd_soc_compr_components_open(struct snd_compr_stream *cstream) in snd_soc_compr_components_open() argument
26 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_compr_components_open()
32 ret = snd_soc_component_module_get_when_open(component, cstream); in snd_soc_compr_components_open()
36 ret = snd_soc_component_compr_open(component, cstream); in snd_soc_compr_components_open()
44 static void snd_soc_compr_components_free(struct snd_compr_stream *cstream, in snd_soc_compr_components_free() argument
47 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_compr_components_free()
52 snd_soc_component_compr_free(component, cstream, rollback); in snd_soc_compr_components_free()
53 snd_soc_component_module_put_when_close(component, cstream, rollback); in snd_soc_compr_components_free()
57 static int soc_compr_clean(struct snd_compr_stream *cstream, int rollback) in soc_compr_clean() argument
59 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_clean()
[all …]
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()
216 int snd_soc_link_compr_set_params(struct snd_compr_stream *cstream) in snd_soc_link_compr_set_params() argument
[all …]
Dsoc-component.c490 struct snd_compr_stream *cstream) in snd_soc_component_compr_open() argument
496 ret = component->driver->compress_ops->open(component, cstream); in snd_soc_component_compr_open()
500 soc_component_mark_push(component, cstream, compr_open); in snd_soc_component_compr_open()
507 struct snd_compr_stream *cstream, in snd_soc_component_compr_free() argument
510 if (rollback && !soc_component_mark_match(component, cstream, compr_open)) in snd_soc_component_compr_free()
515 component->driver->compress_ops->free(component, cstream); in snd_soc_component_compr_free()
518 soc_component_mark_pop(component, cstream, compr_open); in snd_soc_component_compr_free()
522 int snd_soc_component_compr_trigger(struct snd_compr_stream *cstream, int cmd) in snd_soc_component_compr_trigger() argument
524 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_component_compr_trigger()
532 component, cstream, cmd); in snd_soc_component_compr_trigger()
[all …]
Dsoc-dai.c679 struct snd_compr_stream *cstream) in snd_soc_dai_compr_startup() argument
685 ret = dai->driver->cops->startup(cstream, dai); in snd_soc_dai_compr_startup()
689 soc_dai_mark_push(dai, cstream, compr_startup); in snd_soc_dai_compr_startup()
696 struct snd_compr_stream *cstream, in snd_soc_dai_compr_shutdown() argument
699 if (rollback && !soc_dai_mark_match(dai, cstream, compr_startup)) in snd_soc_dai_compr_shutdown()
704 dai->driver->cops->shutdown(cstream, dai); in snd_soc_dai_compr_shutdown()
707 soc_dai_mark_pop(dai, cstream, compr_startup); in snd_soc_dai_compr_shutdown()
712 struct snd_compr_stream *cstream, int cmd) in snd_soc_dai_compr_trigger() argument
718 ret = dai->driver->cops->trigger(cstream, cmd, dai); in snd_soc_dai_compr_trigger()
725 struct snd_compr_stream *cstream, in snd_soc_dai_compr_set_params() argument
[all …]
/linux-6.12.1/sound/soc/sof/
Dcompress.c37 snd_compr_fragment_elapsed(sps->cstream); in snd_sof_compr_fragment_elapsed_work()
48 void snd_sof_compr_fragment_elapsed(struct snd_compr_stream *cstream) in snd_sof_compr_fragment_elapsed() argument
56 if (!cstream) in snd_sof_compr_fragment_elapsed()
59 rtd = cstream->private_data; in snd_sof_compr_fragment_elapsed()
60 crtd = cstream->runtime; in snd_sof_compr_fragment_elapsed()
71 sof_set_transferred_bytes(sstream, spcm->stream[cstream->direction].posn.host_posn, in snd_sof_compr_fragment_elapsed()
75 schedule_work(&spcm->stream[cstream->direction].period_elapsed_work); in snd_sof_compr_fragment_elapsed()
79 struct snd_compr_stream *cstream, in create_page_table() argument
82 struct snd_dma_buffer *dmab = cstream->runtime->dma_buffer_p; in create_page_table()
83 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in create_page_table()
[all …]
Dsof-client-probes.h17 int (*startup)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
19 int (*shutdown)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
21 int (*set_params)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
24 int (*trigger)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
26 int (*pointer)(struct sof_client_dev *cdev, struct snd_compr_stream *cstream,
Dsof-client-probes.c33 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()
[all …]
Dstream-ipc.c48 struct sof_compr_stream *sstream = sps->cstream->runtime->private_data; in sof_ipc_msg_data()
80 } else if (sps->cstream) { in sof_set_stream_data_offset()
81 struct sof_compr_stream *sstream = sps->cstream->runtime->private_data; in sof_set_stream_data_offset()
85 sps->cstream->direction, posn_offset); in sof_set_stream_data_offset()
/linux-6.12.1/sound/soc/sof/intel/
Dhda-probes.c23 hda_compr_get_stream(struct snd_compr_stream *cstream) in hda_compr_get_stream() argument
25 return cstream->runtime->private_data; in hda_compr_get_stream()
29 struct snd_compr_stream *cstream, in hda_probes_compr_startup() argument
35 hext_stream = hda_dsp_stream_get(sdev, cstream->direction, 0); in hda_probes_compr_startup()
40 hdac_stream(hext_stream)->cstream = cstream; in hda_probes_compr_startup()
41 cstream->runtime->private_data = hext_stream; in hda_probes_compr_startup()
49 struct snd_compr_stream *cstream, in hda_probes_compr_shutdown() argument
52 struct hdac_ext_stream *hext_stream = hda_compr_get_stream(cstream); in hda_probes_compr_shutdown()
56 ret = hda_dsp_stream_put(sdev, cstream->direction, in hda_probes_compr_shutdown()
63 hdac_stream(hext_stream)->cstream = NULL; in hda_probes_compr_shutdown()
[all …]
/linux-6.12.1/sound/soc/intel/atom/
Dsst-mfld-platform-compress.c26 struct snd_compr_stream *cstream = (struct snd_compr_stream *)arg; in sst_compr_fragment_elapsed() local
29 if (cstream) in sst_compr_fragment_elapsed()
30 snd_compr_fragment_elapsed(cstream); in sst_compr_fragment_elapsed()
35 struct snd_compr_stream *cstream = (struct snd_compr_stream *)arg; in sst_drain_notify() local
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
46 struct snd_compr_runtime *runtime = cstream->runtime; in sst_platform_compr_open()
76 struct snd_compr_stream *cstream) in sst_platform_compr_free() argument
81 stream = cstream->runtime->private_data; in sst_platform_compr_free()
[all …]
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-6.12.1/sound/soc/uniphier/
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
78 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in uniphier_aio_compr_open()
80 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_open()
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
104 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in uniphier_aio_compr_free()
106 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_free()
[all …]
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-6.12.1/sound/soc/sof/amd/
Dacp-probes.c24 struct snd_compr_stream *cstream, in acp_probes_compr_startup() argument
36 stream->cstream = cstream; in acp_probes_compr_startup()
37 cstream->runtime->private_data = stream; in acp_probes_compr_startup()
46 struct snd_compr_stream *cstream, in acp_probes_compr_shutdown() argument
50 struct acp_dsp_stream *stream = cstream->runtime->private_data; in acp_probes_compr_shutdown()
61 stream->cstream = NULL; in acp_probes_compr_shutdown()
62 cstream->runtime->private_data = NULL; in acp_probes_compr_shutdown()
69 struct snd_compr_stream *cstream, in acp_probes_compr_set_params() argument
74 struct acp_dsp_stream *stream = cstream->runtime->private_data; in acp_probes_compr_set_params()
79 stream->dmab = cstream->runtime->dma_buffer_p; in acp_probes_compr_set_params()
[all …]
/linux-6.12.1/sound/soc/sprd/
Dsprd-pcm-compress.c70 struct snd_compr_stream *cstream; member
100 struct snd_compr_stream *cstream,
105 struct snd_compr_stream *cstream = arg; in sprd_platform_compr_drain_notify() local
106 struct snd_compr_runtime *runtime = cstream->runtime; in sprd_platform_compr_drain_notify()
111 snd_compr_drain_notify(cstream); in sprd_platform_compr_drain_notify()
116 struct snd_compr_stream *cstream = data; in sprd_platform_compr_dma_complete() local
117 struct snd_compr_runtime *runtime = cstream->runtime; in sprd_platform_compr_dma_complete()
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
134 struct snd_compr_runtime *runtime = cstream->runtime; in sprd_platform_compr_dma_config()
[all …]
/linux-6.12.1/sound/soc/intel/avs/
Dprobes.c53 static inline struct hdac_ext_stream *avs_compr_get_host_stream(struct snd_compr_stream *cstream) in avs_compr_get_host_stream() argument
55 return cstream->runtime->private_data; in avs_compr_get_host_stream()
58 static int avs_probe_compr_open(struct snd_compr_stream *cstream, struct snd_soc_dai *dai) in avs_probe_compr_open() argument
69 host_stream = snd_hdac_ext_cstream_assign(bus, cstream); in avs_probe_compr_open()
77 cstream->runtime->private_data = host_stream; in avs_probe_compr_open()
82 static int avs_probe_compr_free(struct snd_compr_stream *cstream, struct snd_soc_dai *dai) in avs_probe_compr_free() argument
84 struct hdac_ext_stream *host_stream = avs_compr_get_host_stream(cstream); in avs_probe_compr_free()
118 snd_compr_free_pages(cstream); in avs_probe_compr_free()
124 static int avs_probe_compr_set_params(struct snd_compr_stream *cstream, in avs_probe_compr_set_params() argument
127 struct hdac_ext_stream *host_stream = avs_compr_get_host_stream(cstream); in avs_probe_compr_set_params()
[all …]
/linux-6.12.1/lib/zstd/
Dzstd_compress_module.c162 zstd_cstream *cstream; in zstd_init_cstream() local
167 cstream = ZSTD_initStaticCStream(workspace, workspace_size); in zstd_init_cstream()
168 if (cstream == NULL) in zstd_init_cstream()
175 if (ZSTD_isError(zstd_cctx_init(cstream, parameters, pledged_src_size))) in zstd_init_cstream()
178 return cstream; in zstd_init_cstream()
182 size_t zstd_reset_cstream(zstd_cstream *cstream, in zstd_reset_cstream() argument
187 ZSTD_FORWARD_IF_ERR( ZSTD_CCtx_reset(cstream, ZSTD_reset_session_only) ); in zstd_reset_cstream()
188 ZSTD_FORWARD_IF_ERR( ZSTD_CCtx_setPledgedSrcSize(cstream, pledged_src_size) ); in zstd_reset_cstream()
193 size_t zstd_compress_stream(zstd_cstream *cstream, zstd_out_buffer *output, in zstd_compress_stream() argument
196 return ZSTD_compressStream(cstream, output, input); in zstd_compress_stream()
[all …]
/linux-6.12.1/tools/perf/util/
Dzstd.c12 data->cstream = NULL; in zstd_init()
23 if (data->cstream) { in zstd_fini()
24 ZSTD_freeCStream(data->cstream); in zstd_fini()
25 data->cstream = NULL; in zstd_fini()
40 if (!data->cstream) { in zstd_compress_stream_to_records()
41 data->cstream = ZSTD_createCStream(); in zstd_compress_stream_to_records()
42 if (data->cstream == NULL) { in zstd_compress_stream_to_records()
47 ret = ZSTD_initCStream(data->cstream, data->comp_level); in zstd_compress_stream_to_records()
63 ret = ZSTD_compressStream(data->cstream, &output, &input); in zstd_compress_stream_to_records()
64 ZSTD_flushStream(data->cstream, &output); in zstd_compress_stream_to_records()
/linux-6.12.1/tools/build/feature/
Dtest-libzstd.c6 ZSTD_CStream *cstream; in main() local
8 cstream = ZSTD_createCStream(); in main()
9 ZSTD_freeCStream(cstream); in main()
/linux-6.12.1/include/sound/
Dsoc-component.h487 struct snd_compr_stream *cstream);
489 struct snd_compr_stream *cstream,
491 int snd_soc_component_compr_trigger(struct snd_compr_stream *cstream, int cmd);
492 int snd_soc_component_compr_set_params(struct snd_compr_stream *cstream,
494 int snd_soc_component_compr_get_params(struct snd_compr_stream *cstream,
496 int snd_soc_component_compr_get_caps(struct snd_compr_stream *cstream,
498 int snd_soc_component_compr_get_codec_caps(struct snd_compr_stream *cstream,
500 int snd_soc_component_compr_ack(struct snd_compr_stream *cstream, size_t bytes);
501 int snd_soc_component_compr_pointer(struct snd_compr_stream *cstream,
503 int snd_soc_component_compr_copy(struct snd_compr_stream *cstream,
[all …]
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);
Dsoc-dai.h246 struct snd_compr_stream *cstream);
248 struct snd_compr_stream *cstream,
251 struct snd_compr_stream *cstream, int cmd);
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,
268 struct snd_compr_stream *cstream,
/linux-6.12.1/include/linux/
Dzstd.h457 size_t zstd_reset_cstream(zstd_cstream *cstream,
477 size_t zstd_compress_stream(zstd_cstream *cstream, zstd_out_buffer *output,
493 size_t zstd_flush_stream(zstd_cstream *cstream, zstd_out_buffer *output);
507 size_t zstd_end_stream(zstd_cstream *cstream, zstd_out_buffer *output);
/linux-6.12.1/sound/hda/
Dhdac_stream.c505 struct snd_compr_stream *cstream = azx_dev->cstream; in snd_hdac_stream_setup_periods() local
515 } else if (cstream) { in snd_hdac_stream_setup_periods()
516 dmab = snd_pcm_get_dma_buf(cstream); in snd_hdac_stream_setup_periods()
588 struct snd_compr_stream *cstream = azx_dev->cstream; in snd_hdac_stream_set_params() local
597 } else if (cstream) { in snd_hdac_stream_set_params()
598 bufsize = cstream->runtime->buffer_size; in snd_hdac_stream_set_params()
599 period_bytes = cstream->runtime->fragment_size; in snd_hdac_stream_set_params()
/linux-6.12.1/sound/hda/ext/
Dhdac_ext_stream.c425 struct snd_compr_stream *cstream) in snd_hdac_ext_cstream_assign() argument
434 if (hstream->direction != cstream->direction) in snd_hdac_ext_cstream_assign()
447 res->hstream.cstream = cstream; in snd_hdac_ext_cstream_assign()

12