Home
last modified time | relevance | path

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

/Linux-v5.10/sound/soc/
Dsoc-compress.c25 static int soc_compr_components_open(struct snd_compr_stream *cstream, in soc_compr_components_open() argument
28 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_components_open()
37 ret = component->driver->compress_ops->open(component, cstream); in soc_compr_components_open()
52 static int soc_compr_components_free(struct snd_compr_stream *cstream, in soc_compr_components_free() argument
55 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_components_free()
67 component->driver->compress_ops->free(component, cstream); in soc_compr_components_free()
73 static int soc_compr_open(struct snd_compr_stream *cstream) in soc_compr_open() argument
75 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in soc_compr_open()
80 ret = snd_soc_pcm_component_pm_runtime_get(rtd, cstream); in soc_compr_open()
86 ret = snd_soc_dai_compr_startup(cpu_dai, cstream); in soc_compr_open()
[all …]
Dsoc-link.c146 int snd_soc_link_compr_startup(struct snd_compr_stream *cstream) in snd_soc_link_compr_startup() argument
148 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_link_compr_startup()
153 ret = rtd->dai_link->compr_ops->startup(cstream); in snd_soc_link_compr_startup()
159 void snd_soc_link_compr_shutdown(struct snd_compr_stream *cstream) in snd_soc_link_compr_shutdown() argument
161 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_link_compr_shutdown()
165 rtd->dai_link->compr_ops->shutdown(cstream); in snd_soc_link_compr_shutdown()
169 int snd_soc_link_compr_set_params(struct snd_compr_stream *cstream) in snd_soc_link_compr_set_params() argument
171 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_link_compr_set_params()
176 ret = rtd->dai_link->compr_ops->set_params(cstream); in snd_soc_link_compr_set_params()
Dsoc-dai.c596 struct snd_compr_stream *cstream) in snd_soc_dai_compr_startup() argument
602 ret = dai->driver->cops->startup(cstream, dai); in snd_soc_dai_compr_startup()
609 struct snd_compr_stream *cstream) in snd_soc_dai_compr_shutdown() argument
613 dai->driver->cops->shutdown(cstream, dai); in snd_soc_dai_compr_shutdown()
618 struct snd_compr_stream *cstream, int cmd) in snd_soc_dai_compr_trigger() argument
624 ret = dai->driver->cops->trigger(cstream, cmd, dai); in snd_soc_dai_compr_trigger()
631 struct snd_compr_stream *cstream, in snd_soc_dai_compr_set_params() argument
638 ret = dai->driver->cops->set_params(cstream, params, dai); in snd_soc_dai_compr_set_params()
645 struct snd_compr_stream *cstream, in snd_soc_dai_compr_get_params() argument
652 ret = dai->driver->cops->get_params(cstream, params, dai); in snd_soc_dai_compr_get_params()
[all …]
/Linux-v5.10/sound/soc/sof/intel/
Dhda-compress.c17 hda_compr_get_stream(struct snd_compr_stream *cstream) in hda_compr_get_stream() argument
19 return cstream->runtime->private_data; in hda_compr_get_stream()
23 struct snd_compr_stream *cstream, in hda_probe_compr_assign() argument
28 stream = hda_dsp_stream_get(sdev, cstream->direction); in hda_probe_compr_assign()
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
43 struct hdac_ext_stream *stream = hda_compr_get_stream(cstream); in hda_probe_compr_free()
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()
[all …]
Dhda.h580 struct snd_compr_stream *cstream,
583 struct snd_compr_stream *cstream,
586 struct snd_compr_stream *cstream,
590 struct snd_compr_stream *cstream, int cmd,
593 struct snd_compr_stream *cstream,
Dhda-stream.c678 if ((!s->substream && !s->cstream) || in hda_dsp_stream_check()
686 } else if (s->cstream) { in hda_dsp_stream_check()
688 s->cstream->runtime->buffer_size); in hda_dsp_stream_check()
689 snd_compr_fragment_elapsed(s->cstream); in hda_dsp_stream_check()
/Linux-v5.10/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-v5.10/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()
Daio.h244 struct snd_compr_stream *cstream; member
/Linux-v5.10/sound/soc/sof/
Dcompress.c21 int sof_probe_compr_open(struct snd_compr_stream *cstream, in sof_probe_compr_open() argument
28 ret = snd_sof_probe_compr_assign(sdev, cstream, dai); in sof_probe_compr_open()
39 int sof_probe_compr_free(struct snd_compr_stream *cstream, in sof_probe_compr_free() argument
65 snd_compr_free_pages(cstream); in sof_probe_compr_free()
67 return snd_sof_probe_compr_free(sdev, cstream, dai); in sof_probe_compr_free()
71 int sof_probe_compr_set_params(struct snd_compr_stream *cstream, in sof_probe_compr_set_params() argument
74 struct snd_compr_runtime *rtd = cstream->runtime; in sof_probe_compr_set_params()
79 cstream->dma_buffer.dev.type = SNDRV_DMA_TYPE_DEV_SG; in sof_probe_compr_set_params()
80 cstream->dma_buffer.dev.dev = sdev->dev; in sof_probe_compr_set_params()
81 ret = snd_compr_malloc_pages(cstream, rtd->buffer_size); in sof_probe_compr_set_params()
[all …]
Dcompress.h18 int sof_probe_compr_open(struct snd_compr_stream *cstream,
20 int sof_probe_compr_free(struct snd_compr_stream *cstream,
22 int sof_probe_compr_set_params(struct snd_compr_stream *cstream,
24 int sof_probe_compr_trigger(struct snd_compr_stream *cstream, int cmd,
26 int sof_probe_compr_pointer(struct snd_compr_stream *cstream,
29 struct snd_compr_stream *cstream,
Dops.h399 struct snd_compr_stream *cstream, struct snd_soc_dai *dai) in snd_sof_probe_compr_assign() argument
401 return sof_ops(sdev)->probe_assign(sdev, cstream, dai); in snd_sof_probe_compr_assign()
406 struct snd_compr_stream *cstream, struct snd_soc_dai *dai) in snd_sof_probe_compr_free() argument
408 return sof_ops(sdev)->probe_free(sdev, cstream, dai); in snd_sof_probe_compr_free()
413 struct snd_compr_stream *cstream, in snd_sof_probe_compr_set_params() argument
416 return sof_ops(sdev)->probe_set_params(sdev, cstream, params, dai); in snd_sof_probe_compr_set_params()
421 struct snd_compr_stream *cstream, int cmd, in snd_sof_probe_compr_trigger() argument
424 return sof_ops(sdev)->probe_trigger(sdev, cstream, cmd, dai); in snd_sof_probe_compr_trigger()
429 struct snd_compr_stream *cstream, in snd_sof_probe_compr_pointer() argument
433 return sof_ops(sdev)->probe_pointer(sdev, cstream, tstamp, dai); in snd_sof_probe_compr_pointer()
Dsof-priv.h179 struct snd_compr_stream *cstream,
182 struct snd_compr_stream *cstream,
185 struct snd_compr_stream *cstream,
189 struct snd_compr_stream *cstream, int cmd,
192 struct snd_compr_stream *cstream,
/Linux-v5.10/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-v5.10/tools/perf/util/
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()
Dcompress.h22 ZSTD_CStream *cstream; member
/Linux-v5.10/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-v5.10/include/sound/
Dsoc-dai.h188 struct snd_compr_stream *cstream);
190 struct snd_compr_stream *cstream);
192 struct snd_compr_stream *cstream, int cmd);
194 struct snd_compr_stream *cstream,
197 struct snd_compr_stream *cstream,
200 struct snd_compr_stream *cstream,
203 struct snd_compr_stream *cstream,
206 struct snd_compr_stream *cstream,
209 struct snd_compr_stream *cstream,
Dsoc-link.h25 int snd_soc_link_compr_startup(struct snd_compr_stream *cstream);
26 void snd_soc_link_compr_shutdown(struct snd_compr_stream *cstream);
27 int snd_soc_link_compr_set_params(struct snd_compr_stream *cstream);
Dhdaudio.h519 struct snd_compr_stream *cstream; member
/Linux-v5.10/sound/soc/qcom/qdsp6/
Dq6asm-dai.c52 struct snd_compr_stream *cstream; member
511 struct snd_compr_stream *substream = prtd->cstream; in compress_event_handler()
552 snd_compr_drain_notify(prtd->cstream); in compress_event_handler()
633 prtd->cstream = stream; in q6asm_dai_compr_open()