Home
last modified time | relevance | path

Searched full:dpcm (Results 1 – 25 of 45) sorted by relevance

12

/linux/sound/drivers/
H A Daloop.c73 int (*open)(struct loopback_pcm *dpcm);
77 int (*start)(struct loopback_pcm *dpcm);
81 int (*stop)(struct loopback_pcm *dpcm);
83 int (*stop_sync)(struct loopback_pcm *dpcm);
85 int (*close_substream)(struct loopback_pcm *dpcm);
89 int (*close_cable)(struct loopback_pcm *dpcm);
95 void (*dpcm_info)(struct loopback_pcm *dpcm,
174 static inline unsigned int byte_pos(struct loopback_pcm *dpcm, unsigned int x) in byte_pos()
176 if (dpcm->pcm_rate_shift == NO_PITCH) { in byte_pos()
180 HZ * (unsigned long long)dpcm in byte_pos()
171 byte_pos(struct loopback_pcm * dpcm,unsigned int x) byte_pos() argument
182 frac_pos(struct loopback_pcm * dpcm,unsigned int x) frac_pos() argument
193 get_setup(struct loopback_pcm * dpcm) get_setup() argument
202 get_notify(struct loopback_pcm * dpcm) get_notify() argument
207 get_rate_shift(struct loopback_pcm * dpcm) get_rate_shift() argument
213 loopback_jiffies_timer_start(struct loopback_pcm * dpcm) loopback_jiffies_timer_start() argument
234 loopback_snd_timer_start(struct loopback_pcm * dpcm) loopback_snd_timer_start() argument
263 loopback_jiffies_timer_stop(struct loopback_pcm * dpcm) loopback_jiffies_timer_stop() argument
272 loopback_snd_timer_stop(struct loopback_pcm * dpcm) loopback_snd_timer_stop() argument
294 loopback_jiffies_timer_stop_sync(struct loopback_pcm * dpcm) loopback_jiffies_timer_stop_sync() argument
302 loopback_snd_timer_close_cable(struct loopback_pcm * dpcm) loopback_snd_timer_close_cable() argument
405 loopback_active_notify(struct loopback_pcm * dpcm) loopback_active_notify() argument
415 struct loopback_pcm *dpcm = runtime->private_data; loopback_trigger() local
472 struct loopback_pcm *dpcm = runtime->private_data; params_change() local
492 struct loopback_pcm *dpcm = runtime->private_data; loopback_prepare() local
534 clear_capture_buf(struct loopback_pcm * dpcm,unsigned int bytes) clear_capture_buf() argument
628 bytepos_delta(struct loopback_pcm * dpcm,unsigned int jiffies_delta) bytepos_delta() argument
647 bytepos_finish(struct loopback_pcm * dpcm,unsigned int delta) bytepos_finish() argument
712 struct loopback_pcm *dpcm = timer_container_of(dpcm, t, timer); loopback_jiffies_timer_function() local
736 struct loopback_pcm *dpcm = runtime->private_data; loopback_snd_timer_check_resolution() local
892 loopback_jiffies_timer_dpcm_info(struct loopback_pcm * dpcm,struct snd_info_buffer * buffer) loopback_jiffies_timer_dpcm_info() argument
904 loopback_snd_timer_dpcm_info(struct loopback_pcm * dpcm,struct snd_info_buffer * buffer) loopback_snd_timer_dpcm_info() argument
920 struct loopback_pcm *dpcm = runtime->private_data; loopback_pointer() local
960 struct loopback_pcm *dpcm = runtime->private_data; loopback_runtime_free() local
967 struct loopback_pcm *dpcm = runtime->private_data; loopback_hw_free() local
986 struct loopback_pcm *dpcm = rule->private; rule_format() local
1001 struct loopback_pcm *dpcm = rule->private; rule_rate() local
1017 struct loopback_pcm *dpcm = rule->private; rule_channels() local
1033 struct loopback_pcm *dpcm = rule->private; rule_period_bytes() local
1061 struct loopback_pcm *dpcm = substream->runtime->private_data; free_cable() local
1071 loopback_jiffies_timer_open(struct loopback_pcm * dpcm) loopback_jiffies_timer_open() argument
1151 loopback_snd_timer_open(struct loopback_pcm * dpcm) loopback_snd_timer_open() argument
1243 struct loopback_pcm *dpcm; loopback_open() local
1340 struct loopback_pcm *dpcm = substream->runtime->private_data; loopback_close() local
1685 print_dpcm_info(struct snd_info_buffer * buffer,struct loopback_pcm * dpcm,const char * id) print_dpcm_info() argument
[all...]
H A Ddummy.c244 static void dummy_systimer_rearm(struct dummy_systimer_pcm *dpcm) in dummy_systimer_rearm() argument
246 mod_timer(&dpcm->timer, jiffies + in dummy_systimer_rearm()
247 DIV_ROUND_UP(dpcm->frac_period_rest, dpcm->rate)); in dummy_systimer_rearm()
250 static void dummy_systimer_update(struct dummy_systimer_pcm *dpcm) in dummy_systimer_update() argument
254 delta = jiffies - dpcm->base_time; in dummy_systimer_update()
257 dpcm->base_time += delta; in dummy_systimer_update()
258 delta *= dpcm->rate; in dummy_systimer_update()
259 dpcm->frac_pos += delta; in dummy_systimer_update()
260 while (dpcm->frac_pos >= dpcm->frac_buffer_size) in dummy_systimer_update()
261 dpcm->frac_pos -= dpcm->frac_buffer_size; in dummy_systimer_update()
[all …]
/linux/sound/soc/
H A Dsoc-pcm.c25 #include <sound/soc-dpcm.h>
41 if (fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE)
51 if ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) || in snd_soc_dpcm_can_be_update()
52 ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_BE) && in snd_soc_dpcm_can_be_update()
53 be->dpcm[stream].runtime_update)) in snd_soc_dpcm_can_be_update()
64 struct snd_soc_dpcm *dpcm; in snd_soc_dpcm_check_state() local
69 for_each_dpcm_fe(be, stream, dpcm) { in snd_soc_dpcm_check_state()
71 if (dpcm->fe == fe) in snd_soc_dpcm_check_state()
74 state = dpcm->fe->dpcm[strea in snd_soc_dpcm_check_state()
180 struct snd_soc_dpcm *dpcm; dpcm_show_state() local
284 dpcm_create_debugfs_state(struct snd_soc_dpcm * dpcm,int stream) dpcm_create_debugfs_state() argument
299 dpcm_remove_debugfs_state(struct snd_soc_dpcm * dpcm) dpcm_remove_debugfs_state() argument
305 dpcm_create_debugfs_state(struct snd_soc_dpcm * dpcm,int stream) dpcm_create_debugfs_state() argument
310 dpcm_remove_debugfs_state(struct snd_soc_dpcm * dpcm) dpcm_remove_debugfs_state() argument
405 struct snd_soc_dpcm *dpcm; dpcm_dapm_stream_event() local
1304 struct snd_soc_dpcm *dpcm; dpcm_be_connect() local
1351 struct snd_soc_dpcm *dpcm; dpcm_be_reparent() local
1380 struct snd_soc_dpcm *dpcm, *d; dpcm_be_disconnect() local
1514 dpcm_be_is_active(struct snd_soc_dpcm * dpcm,int stream,struct snd_soc_dapm_widget_list * list) dpcm_be_is_active() argument
1538 struct snd_soc_dpcm *dpcm; dpcm_prune_paths() local
1629 struct snd_soc_dpcm *dpcm; dpcm_clear_pending_state() local
1638 struct snd_soc_dpcm *dpcm; dpcm_be_dai_stop() local
1683 struct snd_soc_dpcm *dpcm; dpcm_be_dai_startup() local
1781 struct snd_soc_dpcm *dpcm; dpcm_runtime_setup_be_format() local
1818 struct snd_soc_dpcm *dpcm; dpcm_runtime_setup_be_chan() local
1866 struct snd_soc_dpcm *dpcm; dpcm_runtime_setup_be_rate() local
1901 struct snd_soc_dpcm *dpcm; dpcm_apply_symmetry() local
2010 struct snd_soc_dpcm *dpcm; dpcm_be_dai_hw_free() local
2077 struct snd_soc_dpcm *dpcm; dpcm_be_dai_hw_params() local
2189 struct snd_soc_dpcm *dpcm; dpcm_be_dai_trigger() local
2469 struct snd_soc_dpcm *dpcm; dpcm_be_dai_prepare() local
2566 struct snd_soc_dpcm *dpcm; dpcm_run_update_startup() local
2734 struct snd_soc_dpcm *dpcm; dpcm_fe_dai_cleanup() local
[all...]
H A Dsoc-usb.c61 * @component: USB DPCM backend DAI component
177 * @component: USB DPCM backend DAI component
265 * handle how the DPCM backend selects, which device to enable USB offloading
/linux/sound/pci/asihpi/
H A Dasihpi.c427 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_pcm_hw_params() local
439 hpi_handle_error(hpi_format_create(&dpcm->format, in snd_card_asihpi_pcm_hw_params()
444 if (hpi_instream_reset(dpcm->h_stream) != 0) in snd_card_asihpi_pcm_hw_params()
448 dpcm->h_stream, &dpcm->format) != 0) in snd_card_asihpi_pcm_hw_params()
452 dpcm->hpi_buffer_attached = 0; in snd_card_asihpi_pcm_hw_params()
454 err = hpi_stream_host_buffer_attach(dpcm->h_stream, in snd_card_asihpi_pcm_hw_params()
467 hpi_stream_get_info_ex(dpcm->h_stream, NULL, in snd_card_asihpi_pcm_hw_params()
468 &dpcm->hpi_buffer_attached, NULL, NULL, NULL); in snd_card_asihpi_pcm_hw_params()
477 dpcm in snd_card_asihpi_pcm_hw_params()
488 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; snd_card_asihpi_hw_free() local
497 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; snd_card_asihpi_runtime_free() local
505 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; snd_card_asihpi_pcm_timer_start() local
518 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; snd_card_asihpi_pcm_timer_stop() local
526 struct snd_card_asihpi_pcm *dpcm; snd_card_asihpi_pcm_int_start() local
555 struct snd_card_asihpi_pcm *dpcm = substream->runtime->private_data; snd_card_asihpi_trigger() local
712 struct snd_card_asihpi_pcm *dpcm = timer_container_of(dpcm, t, timer); snd_card_asihpi_timer_function() local
914 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; snd_card_asihpi_playback_prepare() local
927 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; snd_card_asihpi_playback_pointer() local
973 struct snd_card_asihpi_pcm *dpcm; snd_card_asihpi_playback_open() local
1061 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; snd_card_asihpi_playback_close() local
1082 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; snd_card_asihpi_capture_pointer() local
1097 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; snd_card_asihpi_capture_prepare() local
1144 struct snd_card_asihpi_pcm *dpcm; snd_card_asihpi_capture_open() local
1220 struct snd_card_asihpi_pcm *dpcm = substream->runtime->private_data; snd_card_asihpi_capture_close() local
[all...]
/linux/sound/soc/mediatek/common/
H A Dmtk-dsp-sof-common.c78 struct snd_soc_dpcm *dpcm; in mtk_sof_find_tplg_be() local
83 for_each_dpcm_fe(rtd, stream, dpcm) { in mtk_sof_find_tplg_be()
84 fe = dpcm->fe; in mtk_sof_find_tplg_be()
92 for_each_dpcm_be(fe, stream, dpcm) { in mtk_sof_find_tplg_be()
93 be = dpcm->be; in mtk_sof_find_tplg_be()
/linux/drivers/media/platform/qcom/camss/
H A Dcamss-csid-gen1.h24 #define PLAIN_FORMAT_PLAIN8 0x0 /* supports DPCM, UNCOMPRESSED_6/8_BIT */
25 #define PLAIN_FORMAT_PLAIN16 0x1 /* supports DPCM, UNCOMPRESSED_10/16_BIT */
H A Dcamss-csid-gen2.h35 #define PLAIN_FORMAT_PLAIN8 0x0 /* supports DPCM, UNCOMPRESSED_6/8_BIT */
36 #define PLAIN_FORMAT_PLAIN16 0x1 /* supports DPCM, UNCOMPRESSED_10/16_BIT */
/linux/sound/soc/generic/
H A DKconfig12 It also support DPCM of multi CPU single Codec ststem.
21 It also support DPCM of multi CPU single Codec ststem.
H A Daudio-graph-card2.c129 DPCM
154 dpcm {
234 #define GRAPH_NODENAME_DPCM "dpcm"
319 str = "DPCM Front-End"; in graph_get_type()
321 str = "DPCM Back-End"; in graph_get_type()
479 * if DPCM-BE case in __graph_parse_node()
606 * DPCM is out of scope in graph_parse_node_multi()
889 * dpcm { in audio_graph2_link_dpcm()
923 * dpcm { in audio_graph2_link_dpcm()
956 graph_parse_convert(ep, dai_props); /* at node of <dpcm> */ in audio_graph2_link_dpcm()
[all …]
H A Daudio-graph-card.c209 dev_dbg(dev, "link_of DPCM (%pOF)\n", ep); in graph_dai_link_of_dpcm()
330 * It is DPCM in parse_as_dpcm_link()
375 /* check if link requires DPCM parsing */ in __graph_for_each_link()
420 * In DPCM sound case, in graph_for_each_link()
491 dev_dbg(dev, "Count As DPCM\n"); in graph_count_dpcm()
/linux/Documentation/devicetree/bindings/sound/
H A Daudio-graph-card2.yaml30 dpcm:
32 description: DPCM node
H A Dqcom,q6usb.yaml7 title: Qualcomm ASoC DPCM USB backend DAI
13 The USB port is a supported AFE path on the Q6 DSP. This ASoC DPCM
/linux/drivers/slimbus/
H A Dstream.c99 * From ASoC DPCM framework, this state is linked to startup() operation.
201 * return zero on success and error code on failure. From ASoC DPCM framework,
356 * Return: zero on success and error code on failure. From ASoC DPCM framework,
409 * Return: zero on success and error code on failure. From ASoC DPCM framework,
446 * Return: zero on success and error code on failure. From ASoC DPCM framework,
476 * Return: zero on success and error code on failure. From ASoC DPCM framework,
/linux/Documentation/userspace-api/media/v4l/
H A Dpixfmt-srggb10dpcm8.rst26 colour compressed to 8 bits each, using DPCM compression. DPCM,
H A Dfourcc.rst20 - b: raw bayer, DPCM compressed
/linux/sound/soc/intel/avs/
H A Dpcm.c207 struct snd_soc_dpcm *dpcm; in avs_dai_be_hw_params() local
211 for_each_dpcm_fe(be, substream->stream, dpcm) { in avs_dai_be_hw_params()
212 fe = dpcm->fe; in avs_dai_be_hw_params()
213 fe_hw_params = &fe->dpcm[substream->stream].hw_params; in avs_dai_be_hw_params()
461 p = &be->dpcm[substream->stream].hw_params; in avs_dai_hda_be_prepare()
664 struct snd_soc_dpcm *dpcm; in avs_dai_fe_hw_params() local
681 for_each_dpcm_be(fe, substream->stream, dpcm) { in avs_dai_fe_hw_params()
682 be = dpcm->be; in avs_dai_fe_hw_params()
683 be_hw_params = &be->dpcm[substream->stream].hw_params; in avs_dai_fe_hw_params()
1095 ret = dai->driver->ops->hw_params(substream, &rtd->dpcm[substrea in avs_dai_resume_hw_params()
1719 struct snd_soc_dpcm *dpcm; avs_component_hda_open() local
[all...]
/linux/sound/soc/fsl/
H A Dfsl_asrc_dma.c149 struct snd_soc_dpcm *dpcm; in fsl_asrc_dma_hw_params() local
155 /* Fetch the Back-End dma_data from DPCM */ in fsl_asrc_dma_hw_params()
156 for_each_dpcm_be(rtd, stream, dpcm) { in fsl_asrc_dma_hw_params()
157 struct snd_soc_pcm_runtime *be = dpcm->be; in fsl_asrc_dma_hw_params()
163 if (dpcm->fe != rtd) in fsl_asrc_dma_hw_params()
H A Dfsl-asoc-card.c83 * @dai_link: DAI link structure including normal one and DPCM link
117 * This dapm route map exists for DPCM link only.
323 /* DPCM Link between Front-End and Back-End (Optional) */
709 * "DPCM Link Front-End": 1 cpus, 1 codecs (dummy), 1 platforms in fsl_asoc_card_probe()
710 * "DPCM Link Back-End": 1 cpus, 2 codecs in fsl_asoc_card_probe()
991 /* DPCM DAI Links only if ASRC exists */ in fsl_asoc_card_probe()
/linux/Documentation/sound/soc/
H A Dindex.rst19 dpcm
H A Dusb.rst90 - ``params``: Requested PCM parameters from the USB DPCM BE DAI link
183 - ``component``: DPCM BE DAI link component
223 The ASoC DPCM USB BE DAI link is the entity responsible for allocating and
440 execute the registered function calls to the DPCM BE DAI link.
/linux/arch/arm64/boot/dts/renesas/
H A Dulcb-kf-audio-graph-card2-mix+split.dtsi58 dpcm: dpcm { label
H A Dulcb-audio-graph-card2-mix+split.dtsi34 dpcm {
/linux/sound/soc/sof/intel/
H A Dhda-dai-ops.c32 struct snd_soc_dpcm *dpcm; in hda_check_fes() local
34 for_each_dpcm_fe(rtd, dir, dpcm) { in hda_check_fes()
35 fe_substream = snd_soc_dpcm_get_substream(dpcm->fe, dir); in hda_check_fes()
/linux/sound/soc/qcom/
H A DKconfig133 Q6USB DPCM backend DAI link, which will interact

12