Home
last modified time | relevance | path

Searched refs:cstream (Results 1 - 25 of 61) sorted by relevance

123

/kernel/linux/linux-6.6/sound/soc/
H A 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 in soc_compr_clean()
93 soc_compr_free(struct snd_compr_stream *cstream) soc_compr_free() argument
98 soc_compr_open(struct snd_compr_stream *cstream) soc_compr_open() argument
133 soc_compr_open_fe(struct snd_compr_stream *cstream) soc_compr_open_fe() argument
203 soc_compr_free_fe(struct snd_compr_stream *cstream) soc_compr_free_fe() argument
244 soc_compr_trigger(struct snd_compr_stream *cstream, int cmd) soc_compr_trigger() argument
276 soc_compr_trigger_fe(struct snd_compr_stream *cstream, int cmd) soc_compr_trigger_fe() argument
322 soc_compr_set_params(struct snd_compr_stream *cstream, struct snd_compr_params *params) soc_compr_set_params() argument
366 soc_compr_set_params_fe(struct snd_compr_stream *cstream, struct snd_compr_params *params) soc_compr_set_params_fe() argument
418 soc_compr_get_params(struct snd_compr_stream *cstream, struct snd_codec *params) soc_compr_get_params() argument
437 soc_compr_ack(struct snd_compr_stream *cstream, size_t bytes) soc_compr_ack() argument
455 soc_compr_pointer(struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) soc_compr_pointer() argument
474 soc_compr_set_metadata(struct snd_compr_stream *cstream, struct snd_compr_metadata *metadata) soc_compr_set_metadata() argument
488 soc_compr_get_metadata(struct snd_compr_stream *cstream, struct snd_compr_metadata *metadata) soc_compr_get_metadata() argument
[all...]
H 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()
216 int snd_soc_link_compr_set_params(struct snd_compr_stream *cstream) in snd_soc_link_compr_set_params() argument
[all...]
H A Dsoc-dai.c737 struct snd_compr_stream *cstream) in snd_soc_dai_compr_startup()
743 ret = dai->driver->cops->startup(cstream, dai); in snd_soc_dai_compr_startup()
745 /* mark cstream if succeeded */ in snd_soc_dai_compr_startup()
747 soc_dai_mark_push(dai, cstream, compr_startup); in snd_soc_dai_compr_startup()
754 struct snd_compr_stream *cstream, in snd_soc_dai_compr_shutdown()
757 if (rollback && !soc_dai_mark_match(dai, cstream, compr_startup)) in snd_soc_dai_compr_shutdown()
762 dai->driver->cops->shutdown(cstream, dai); in snd_soc_dai_compr_shutdown()
764 /* remove marked cstream */ in snd_soc_dai_compr_shutdown()
765 soc_dai_mark_pop(dai, cstream, compr_startup); in snd_soc_dai_compr_shutdown()
770 struct snd_compr_stream *cstream, in in snd_soc_dai_compr_trigger()
736 snd_soc_dai_compr_startup(struct snd_soc_dai *dai, struct snd_compr_stream *cstream) snd_soc_dai_compr_startup() argument
753 snd_soc_dai_compr_shutdown(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, int rollback) snd_soc_dai_compr_shutdown() argument
769 snd_soc_dai_compr_trigger(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, int cmd) snd_soc_dai_compr_trigger() argument
782 snd_soc_dai_compr_set_params(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, struct snd_compr_params *params) snd_soc_dai_compr_set_params() argument
796 snd_soc_dai_compr_get_params(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, struct snd_codec *params) snd_soc_dai_compr_get_params() argument
810 snd_soc_dai_compr_ack(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, size_t bytes) snd_soc_dai_compr_ack() argument
824 snd_soc_dai_compr_pointer(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) snd_soc_dai_compr_pointer() argument
838 snd_soc_dai_compr_set_metadata(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, struct snd_compr_metadata *metadata) snd_soc_dai_compr_set_metadata() argument
852 snd_soc_dai_compr_get_metadata(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, struct snd_compr_metadata *metadata) snd_soc_dai_compr_get_metadata() argument
[all...]
H A Dsoc-component.c476 struct snd_compr_stream *cstream) in snd_soc_component_compr_open()
482 ret = component->driver->compress_ops->open(component, cstream); in snd_soc_component_compr_open()
486 soc_component_mark_push(component, cstream, compr_open); in snd_soc_component_compr_open()
493 struct snd_compr_stream *cstream, in snd_soc_component_compr_free()
496 if (rollback && !soc_component_mark_match(component, cstream, compr_open)) in snd_soc_component_compr_free()
501 component->driver->compress_ops->free(component, cstream); in snd_soc_component_compr_free()
504 soc_component_mark_pop(component, cstream, compr_open); in snd_soc_component_compr_free()
508 int snd_soc_component_compr_trigger(struct snd_compr_stream *cstream, int cmd) in snd_soc_component_compr_trigger() argument
510 struct snd_soc_pcm_runtime *rtd = cstream->private_data; in snd_soc_component_compr_trigger()
518 component, cstream, cm in snd_soc_component_compr_trigger()
475 snd_soc_component_compr_open(struct snd_soc_component *component, struct snd_compr_stream *cstream) snd_soc_component_compr_open() argument
492 snd_soc_component_compr_free(struct snd_soc_component *component, struct snd_compr_stream *cstream, int rollback) snd_soc_component_compr_free() argument
528 snd_soc_component_compr_set_params(struct snd_compr_stream *cstream, struct snd_compr_params *params) snd_soc_component_compr_set_params() argument
549 snd_soc_component_compr_get_params(struct snd_compr_stream *cstream, struct snd_codec *params) snd_soc_component_compr_get_params() argument
569 snd_soc_component_compr_get_caps(struct snd_compr_stream *cstream, struct snd_compr_caps *caps) snd_soc_component_compr_get_caps() argument
593 snd_soc_component_compr_get_codec_caps(struct snd_compr_stream *cstream, struct snd_compr_codec_caps *codec) snd_soc_component_compr_get_codec_caps() argument
617 snd_soc_component_compr_ack(struct snd_compr_stream *cstream, size_t bytes) snd_soc_component_compr_ack() argument
637 snd_soc_component_compr_pointer(struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) snd_soc_component_compr_pointer() argument
657 snd_soc_component_compr_copy(struct snd_compr_stream *cstream, char __user *buf, size_t count) snd_soc_component_compr_copy() argument
681 snd_soc_component_compr_set_metadata(struct snd_compr_stream *cstream, struct snd_compr_metadata *metadata) snd_soc_component_compr_set_metadata() argument
702 snd_soc_component_compr_get_metadata(struct snd_compr_stream *cstream, struct snd_compr_metadata *metadata) snd_soc_component_compr_get_metadata() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/
H A 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()
116 soc_compr_open_fe(struct snd_compr_stream *cstream) soc_compr_open_fe() argument
195 soc_compr_free(struct snd_compr_stream *cstream) soc_compr_free() argument
234 soc_compr_free_fe(struct snd_compr_stream *cstream) soc_compr_free_fe() argument
281 soc_compr_components_trigger(struct snd_compr_stream *cstream, int cmd) soc_compr_components_trigger() argument
302 soc_compr_trigger(struct snd_compr_stream *cstream, int cmd) soc_compr_trigger() argument
333 soc_compr_trigger_fe(struct snd_compr_stream *cstream, int cmd) soc_compr_trigger_fe() argument
383 soc_compr_components_set_params(struct snd_compr_stream *cstream, struct snd_compr_params *params) soc_compr_components_set_params() argument
404 soc_compr_set_params(struct snd_compr_stream *cstream, struct snd_compr_params *params) soc_compr_set_params() argument
452 soc_compr_set_params_fe(struct snd_compr_stream *cstream, struct snd_compr_params *params) soc_compr_set_params_fe() argument
507 soc_compr_get_params(struct snd_compr_stream *cstream, struct snd_codec *params) soc_compr_get_params() argument
536 soc_compr_get_caps(struct snd_compr_stream *cstream, struct snd_compr_caps *caps) soc_compr_get_caps() argument
559 soc_compr_get_codec_caps(struct snd_compr_stream *cstream, struct snd_compr_codec_caps *codec) soc_compr_get_codec_caps() argument
582 soc_compr_ack(struct snd_compr_stream *cstream, size_t bytes) soc_compr_ack() argument
611 soc_compr_pointer(struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) soc_compr_pointer() argument
639 soc_compr_copy(struct snd_compr_stream *cstream, char __user *buf, size_t count) soc_compr_copy() argument
662 soc_compr_set_metadata(struct snd_compr_stream *cstream, struct snd_compr_metadata *metadata) soc_compr_set_metadata() argument
688 soc_compr_get_metadata(struct snd_compr_stream *cstream, struct snd_compr_metadata *metadata) soc_compr_get_metadata() argument
[all...]
H A 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()
H A Dsoc-dai.c596 struct snd_compr_stream *cstream) in snd_soc_dai_compr_startup()
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()
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()
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()
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()
652 ret = dai->driver->cops->get_params(cstream, param in snd_soc_dai_compr_get_params()
595 snd_soc_dai_compr_startup(struct snd_soc_dai *dai, struct snd_compr_stream *cstream) snd_soc_dai_compr_startup() argument
608 snd_soc_dai_compr_shutdown(struct snd_soc_dai *dai, struct snd_compr_stream *cstream) snd_soc_dai_compr_shutdown() argument
617 snd_soc_dai_compr_trigger(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, int cmd) snd_soc_dai_compr_trigger() argument
630 snd_soc_dai_compr_set_params(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, struct snd_compr_params *params) snd_soc_dai_compr_set_params() argument
644 snd_soc_dai_compr_get_params(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, struct snd_codec *params) snd_soc_dai_compr_get_params() argument
658 snd_soc_dai_compr_ack(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, size_t bytes) snd_soc_dai_compr_ack() argument
672 snd_soc_dai_compr_pointer(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) snd_soc_dai_compr_pointer() argument
686 snd_soc_dai_compr_set_metadata(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, struct snd_compr_metadata *metadata) snd_soc_dai_compr_set_metadata() argument
700 snd_soc_dai_compr_get_metadata(struct snd_soc_dai *dai, struct snd_compr_stream *cstream, struct snd_compr_metadata *metadata) snd_soc_dai_compr_get_metadata() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/sof/intel/
H A 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()
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()
43 struct hdac_ext_stream *stream = hda_compr_get_stream(cstream); in hda_probe_compr_free()
46 ret = hda_dsp_stream_put(sdev, cstream in hda_probe_compr_free()
22 hda_probe_compr_assign(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai) hda_probe_compr_assign() argument
39 hda_probe_compr_free(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai) hda_probe_compr_free() argument
59 hda_probe_compr_set_params(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, struct snd_compr_params *params, struct snd_soc_dai *dai) hda_probe_compr_set_params() argument
92 hda_probe_compr_trigger(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, int cmd, struct snd_soc_dai *dai) hda_probe_compr_trigger() argument
101 hda_probe_compr_pointer(struct snd_sof_dev *sdev, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp, struct snd_soc_dai *dai) hda_probe_compr_pointer() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/sof/intel/
H A 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()
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()
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 in hda_probes_compr_shutdown()
28 hda_probes_compr_startup(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai, u32 *stream_id) hda_probes_compr_startup() argument
48 hda_probes_compr_shutdown(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai) hda_probes_compr_shutdown() argument
69 hda_probes_compr_set_params(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_compr_params *params, struct snd_soc_dai *dai) hda_probes_compr_set_params() argument
103 hda_probes_compr_trigger(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, int cmd, struct snd_soc_dai *dai) hda_probes_compr_trigger() argument
113 hda_probes_compr_pointer(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp, struct snd_soc_dai *dai) hda_probes_compr_pointer() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/sof/
H A 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()
82 struct snd_dma_buffer *dmab = cstream->runtime->dma_buffer_p; in create_page_table()
83 struct snd_soc_pcm_runtime *rtd = cstream in create_page_table()
78 create_page_table(struct snd_soc_component *component, struct snd_compr_stream *cstream, unsigned char *dma_area, size_t size) create_page_table() argument
95 sof_compr_open(struct snd_soc_component *component, struct snd_compr_stream *cstream) sof_compr_open() argument
131 sof_compr_free(struct snd_soc_component *component, struct snd_compr_stream *cstream) sof_compr_free() argument
162 sof_compr_set_params(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_params *params) sof_compr_set_params() argument
259 sof_compr_get_params(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_codec *params) sof_compr_get_params() argument
268 sof_compr_trigger(struct snd_soc_component *component, struct snd_compr_stream *cstream, int cmd) sof_compr_trigger() argument
347 sof_compr_copy(struct snd_soc_component *component, struct snd_compr_stream *cstream, char __user *buf, size_t count) sof_compr_copy() argument
362 sof_compr_pointer(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) sof_compr_pointer() argument
[all...]
H A 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,
H A 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, rt in sof_probes_compr_set_params()
128 sof_probes_compr_trigger(struct snd_compr_stream *cstream, int cmd, struct snd_soc_dai *dai) sof_probes_compr_trigger() argument
139 sof_probes_compr_pointer(struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp, struct snd_soc_dai *dai) sof_probes_compr_pointer() argument
159 sof_probes_compr_copy(struct snd_soc_component *component, struct snd_compr_stream *cstream, char __user *buf, size_t count) sof_probes_compr_copy() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/intel/atom/
H A 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()
46 struct snd_compr_runtime *runtime = cstream->runtime; in sst_platform_compr_open()
76 struct snd_compr_stream *cstream) in sst_platform_compr_free()
81 stream = cstream in sst_platform_compr_free()
42 sst_platform_compr_open(struct snd_soc_component *component, struct snd_compr_stream *cstream) sst_platform_compr_open() argument
75 sst_platform_compr_free(struct snd_soc_component *component, struct snd_compr_stream *cstream) sst_platform_compr_free() argument
95 sst_platform_compr_set_params(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_params *params) sst_platform_compr_set_params() argument
169 sst_platform_compr_trigger(struct snd_soc_component *component, struct snd_compr_stream *cstream, int cmd) sst_platform_compr_trigger() argument
203 sst_platform_compr_pointer(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) sst_platform_compr_pointer() argument
217 sst_platform_compr_ack(struct snd_soc_component *component, struct snd_compr_stream *cstream, size_t bytes) sst_platform_compr_ack() argument
230 sst_platform_compr_get_caps(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_caps *caps) sst_platform_compr_get_caps() argument
240 sst_platform_compr_get_codec_caps(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_codec_caps *codec) sst_platform_compr_get_codec_caps() argument
250 sst_platform_compr_set_metadata(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_metadata *metadata) sst_platform_compr_set_metadata() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/intel/atom/
H A 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()
46 struct snd_compr_runtime *runtime = cstream->runtime; in sst_platform_compr_open()
76 struct snd_compr_stream *cstream) in sst_platform_compr_free()
81 stream = cstream in sst_platform_compr_free()
42 sst_platform_compr_open(struct snd_soc_component *component, struct snd_compr_stream *cstream) sst_platform_compr_open() argument
75 sst_platform_compr_free(struct snd_soc_component *component, struct snd_compr_stream *cstream) sst_platform_compr_free() argument
95 sst_platform_compr_set_params(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_params *params) sst_platform_compr_set_params() argument
169 sst_platform_compr_trigger(struct snd_soc_component *component, struct snd_compr_stream *cstream, int cmd) sst_platform_compr_trigger() argument
203 sst_platform_compr_pointer(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) sst_platform_compr_pointer() argument
217 sst_platform_compr_ack(struct snd_soc_component *component, struct snd_compr_stream *cstream, size_t bytes) sst_platform_compr_ack() argument
230 sst_platform_compr_get_caps(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_caps *caps) sst_platform_compr_get_caps() argument
240 sst_platform_compr_get_codec_caps(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_codec_caps *codec) sst_platform_compr_get_codec_caps() argument
250 sst_platform_compr_set_metadata(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_metadata *metadata) sst_platform_compr_set_metadata() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/sof/
H A 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, rt in sof_probe_compr_set_params()
100 sof_probe_compr_trigger(struct snd_compr_stream *cstream, int cmd, struct snd_soc_dai *dai) sof_probe_compr_trigger() argument
110 sof_probe_compr_pointer(struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp, struct snd_soc_dai *dai) sof_probe_compr_pointer() argument
120 sof_probe_compr_copy(struct snd_soc_component *component, struct snd_compr_stream *cstream, char __user *buf, size_t count) sof_probe_compr_copy() argument
[all...]
H A 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,
/kernel/linux/linux-5.10/sound/soc/uniphier/
H 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()
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()
104 struct snd_soc_pcm_runtime *rtd = cstream in uniphier_aio_compr_free()
75 uniphier_aio_compr_open(struct snd_soc_component *component, struct snd_compr_stream *cstream) uniphier_aio_compr_open() argument
101 uniphier_aio_compr_free(struct snd_soc_component *component, struct snd_compr_stream *cstream) uniphier_aio_compr_free() argument
121 uniphier_aio_compr_get_params(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_codec *params) uniphier_aio_compr_get_params() argument
134 uniphier_aio_compr_set_params(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_params *params) uniphier_aio_compr_set_params() argument
171 uniphier_aio_compr_hw_free(struct snd_soc_component *component, struct snd_compr_stream *cstream) uniphier_aio_compr_hw_free() argument
183 uniphier_aio_compr_prepare(struct snd_soc_component *component, struct snd_compr_stream *cstream) uniphier_aio_compr_prepare() argument
221 uniphier_aio_compr_trigger(struct snd_soc_component *component, struct snd_compr_stream *cstream, int cmd) uniphier_aio_compr_trigger() argument
255 uniphier_aio_compr_pointer(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) uniphier_aio_compr_pointer() argument
329 uniphier_aio_compr_copy(struct snd_soc_component *component, struct snd_compr_stream *cstream, char __user *buf, size_t count) uniphier_aio_compr_copy() argument
389 uniphier_aio_compr_get_caps(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_caps *caps) uniphier_aio_compr_get_caps() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/uniphier/
H 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()
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()
104 struct snd_soc_pcm_runtime *rtd = cstream in uniphier_aio_compr_free()
75 uniphier_aio_compr_open(struct snd_soc_component *component, struct snd_compr_stream *cstream) uniphier_aio_compr_open() argument
101 uniphier_aio_compr_free(struct snd_soc_component *component, struct snd_compr_stream *cstream) uniphier_aio_compr_free() argument
121 uniphier_aio_compr_get_params(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_codec *params) uniphier_aio_compr_get_params() argument
134 uniphier_aio_compr_set_params(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_params *params) uniphier_aio_compr_set_params() argument
166 uniphier_aio_compr_hw_free(struct snd_soc_component *component, struct snd_compr_stream *cstream) uniphier_aio_compr_hw_free() argument
178 uniphier_aio_compr_prepare(struct snd_soc_component *component, struct snd_compr_stream *cstream) uniphier_aio_compr_prepare() argument
216 uniphier_aio_compr_trigger(struct snd_soc_component *component, struct snd_compr_stream *cstream, int cmd) uniphier_aio_compr_trigger() argument
250 uniphier_aio_compr_pointer(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) uniphier_aio_compr_pointer() argument
324 uniphier_aio_compr_copy(struct snd_soc_component *component, struct snd_compr_stream *cstream, char __user *buf, size_t count) uniphier_aio_compr_copy() argument
384 uniphier_aio_compr_get_caps(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_caps *caps) uniphier_aio_compr_get_caps() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/sof/amd/
H A Dacp-probes.c24 struct snd_compr_stream *cstream, in acp_probes_compr_startup()
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()
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()
74 struct acp_dsp_stream *stream = cstream in acp_probes_compr_set_params()
23 acp_probes_compr_startup(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai, u32 *stream_id) acp_probes_compr_startup() argument
45 acp_probes_compr_shutdown(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_soc_dai *dai) acp_probes_compr_shutdown() argument
68 acp_probes_compr_set_params(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_compr_params *params, struct snd_soc_dai *dai) acp_probes_compr_set_params() argument
101 acp_probes_compr_trigger(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, int cmd, struct snd_soc_dai *dai) acp_probes_compr_trigger() argument
109 acp_probes_compr_pointer(struct sof_client_dev *cdev, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp, struct snd_soc_dai *dai) acp_probes_compr_pointer() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/sprd/
H A 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()
134 struct snd_compr_runtime *runtime = cstream in sprd_platform_compr_dma_config()
129 sprd_platform_compr_dma_config(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_params *params, int channel) sprd_platform_compr_dma_config() argument
264 sprd_platform_compr_set_params(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_params *params) sprd_platform_compr_set_params() argument
315 sprd_platform_compr_open(struct snd_soc_component *component, struct snd_compr_stream *cstream) sprd_platform_compr_open() argument
392 sprd_platform_compr_free(struct snd_soc_component *component, struct snd_compr_stream *cstream) sprd_platform_compr_free() argument
418 sprd_platform_compr_trigger(struct snd_soc_component *component, struct snd_compr_stream *cstream, int cmd) sprd_platform_compr_trigger() argument
514 sprd_platform_compr_pointer(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) sprd_platform_compr_pointer() argument
529 sprd_platform_compr_copy(struct snd_soc_component *component, struct snd_compr_stream *cstream, char __user *buf, size_t count) sprd_platform_compr_copy() argument
607 sprd_platform_compr_get_caps(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_caps *caps) sprd_platform_compr_get_caps() argument
624 sprd_platform_compr_get_codec_caps(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_codec_caps *codec) sprd_platform_compr_get_codec_caps() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/sprd/
H A 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()
134 struct snd_compr_runtime *runtime = cstream in sprd_platform_compr_dma_config()
129 sprd_platform_compr_dma_config(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_params *params, int channel) sprd_platform_compr_dma_config() argument
264 sprd_platform_compr_set_params(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_params *params) sprd_platform_compr_set_params() argument
315 sprd_platform_compr_open(struct snd_soc_component *component, struct snd_compr_stream *cstream) sprd_platform_compr_open() argument
392 sprd_platform_compr_free(struct snd_soc_component *component, struct snd_compr_stream *cstream) sprd_platform_compr_free() argument
418 sprd_platform_compr_trigger(struct snd_soc_component *component, struct snd_compr_stream *cstream, int cmd) sprd_platform_compr_trigger() argument
514 sprd_platform_compr_pointer(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp) sprd_platform_compr_pointer() argument
529 sprd_platform_compr_copy(struct snd_soc_component *component, struct snd_compr_stream *cstream, char __user *buf, size_t count) sprd_platform_compr_copy() argument
607 sprd_platform_compr_get_caps(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_caps *caps) sprd_platform_compr_get_caps() argument
624 sprd_platform_compr_get_codec_caps(struct snd_soc_component *component, struct snd_compr_stream *cstream, struct snd_compr_codec_caps *codec) sprd_platform_compr_get_codec_caps() argument
[all...]
/kernel/linux/linux-6.6/lib/zstd/
H 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()
126 if (ZSTD_isError(zstd_cctx_init(cstream, parameters, pledged_src_size))) 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
138 ZSTD_FORWARD_IF_ERR( ZSTD_CCtx_reset(cstream, ZSTD_reset_session_only) ); in zstd_reset_cstream()
139 ZSTD_FORWARD_IF_ERR( ZSTD_CCtx_setPledgedSrcSize(cstream, pledged_src_size) ); in zstd_reset_cstream()
144 size_t zstd_compress_stream(zstd_cstream *cstream, zstd_out_buffer *output, in zstd_compress_stream() argument
147 return ZSTD_compressStream(cstream, outpu in zstd_compress_stream()
151 zstd_flush_stream(zstd_cstream *cstream, zstd_out_buffer *output) zstd_flush_stream() argument
157 zstd_end_stream(zstd_cstream *cstream, zstd_out_buffer *output) zstd_end_stream() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/intel/avs/
H A Dprobes.c49 static inline struct hdac_ext_stream *avs_compr_get_host_stream(struct snd_compr_stream *cstream) in avs_compr_get_host_stream() argument
51 return cstream->runtime->private_data; in avs_compr_get_host_stream()
54 static int avs_probe_compr_open(struct snd_compr_stream *cstream, struct snd_soc_dai *dai) in avs_probe_compr_open() argument
65 host_stream = snd_hdac_ext_cstream_assign(bus, cstream); in avs_probe_compr_open()
73 cstream->runtime->private_data = host_stream; in avs_probe_compr_open()
78 static int avs_probe_compr_free(struct snd_compr_stream *cstream, struct snd_soc_dai *dai) in avs_probe_compr_free() argument
80 struct hdac_ext_stream *host_stream = avs_compr_get_host_stream(cstream); in avs_probe_compr_free()
114 snd_compr_free_pages(cstream); in avs_probe_compr_free()
120 static int avs_probe_compr_set_params(struct snd_compr_stream *cstream, in avs_probe_compr_set_params() argument
123 struct hdac_ext_stream *host_stream = avs_compr_get_host_stream(cstream); in avs_probe_compr_set_params()
177 avs_probe_compr_trigger(struct snd_compr_stream *cstream, int cmd, struct snd_soc_dai *dai) avs_probe_compr_trigger() argument
212 avs_probe_compr_pointer(struct snd_compr_stream *cstream, struct snd_compr_tstamp *tstamp, struct snd_soc_dai *dai) avs_probe_compr_pointer() argument
225 avs_probe_compr_copy(struct snd_soc_component *comp, struct snd_compr_stream *cstream, char __user *buf, size_t count) avs_probe_compr_copy() argument
[all...]
/kernel/linux/linux-5.10/tools/perf/util/
H 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()
/kernel/linux/linux-6.6/tools/perf/util/
H 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()

Completed in 14 milliseconds

123