Home
last modified time | relevance | path

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

123456

/kernel/linux/linux-5.10/sound/drivers/
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,
166 static inline unsigned int byte_pos(struct loopback_pcm *dpcm, unsigned int x) in byte_pos() argument
168 if (dpcm->pcm_rate_shift == NO_PITCH) { in byte_pos()
172 HZ * (unsigned long long)dpcm->pcm_rate_shift); in byte_pos()
[all …]
Ddummy.c236 static void dummy_systimer_rearm(struct dummy_systimer_pcm *dpcm) in dummy_systimer_rearm() argument
238 mod_timer(&dpcm->timer, jiffies + in dummy_systimer_rearm()
239 (dpcm->frac_period_rest + dpcm->rate - 1) / dpcm->rate); in dummy_systimer_rearm()
242 static void dummy_systimer_update(struct dummy_systimer_pcm *dpcm) in dummy_systimer_update() argument
246 delta = jiffies - dpcm->base_time; in dummy_systimer_update()
249 dpcm->base_time += delta; in dummy_systimer_update()
250 delta *= dpcm->rate; in dummy_systimer_update()
251 dpcm->frac_pos += delta; in dummy_systimer_update()
252 while (dpcm->frac_pos >= dpcm->frac_buffer_size) in dummy_systimer_update()
253 dpcm->frac_pos -= dpcm->frac_buffer_size; in dummy_systimer_update()
[all …]
/kernel/linux/linux-6.6/sound/drivers/
Daloop.c72 int (*open)(struct loopback_pcm *dpcm);
76 int (*start)(struct loopback_pcm *dpcm);
80 int (*stop)(struct loopback_pcm *dpcm);
82 int (*stop_sync)(struct loopback_pcm *dpcm);
84 int (*close_substream)(struct loopback_pcm *dpcm);
88 int (*close_cable)(struct loopback_pcm *dpcm);
94 void (*dpcm_info)(struct loopback_pcm *dpcm,
165 static inline unsigned int byte_pos(struct loopback_pcm *dpcm, unsigned int x) in byte_pos() argument
167 if (dpcm->pcm_rate_shift == NO_PITCH) { in byte_pos()
171 HZ * (unsigned long long)dpcm->pcm_rate_shift); in byte_pos()
[all …]
Ddummy.c243 static void dummy_systimer_rearm(struct dummy_systimer_pcm *dpcm) in dummy_systimer_rearm() argument
245 mod_timer(&dpcm->timer, jiffies + in dummy_systimer_rearm()
246 DIV_ROUND_UP(dpcm->frac_period_rest, dpcm->rate)); in dummy_systimer_rearm()
249 static void dummy_systimer_update(struct dummy_systimer_pcm *dpcm) in dummy_systimer_update() argument
253 delta = jiffies - dpcm->base_time; in dummy_systimer_update()
256 dpcm->base_time += delta; in dummy_systimer_update()
257 delta *= dpcm->rate; in dummy_systimer_update()
258 dpcm->frac_pos += delta; in dummy_systimer_update()
259 while (dpcm->frac_pos >= dpcm->frac_buffer_size) in dummy_systimer_update()
260 dpcm->frac_pos -= dpcm->frac_buffer_size; in dummy_systimer_update()
[all …]
/kernel/linux/linux-5.10/sound/soc/
Dsoc-pcm.c26 #include <sound/soc-dpcm.h>
64 struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; in dpcm_show_state()
65 struct snd_soc_dpcm *dpcm; in dpcm_show_state() local
75 dpcm_state_string(fe->dpcm[stream].state)); in dpcm_show_state()
77 if ((fe->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
78 (fe->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()
89 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_show_state()
96 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_show_state()
97 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_show_state()
98 params = &dpcm->hw_params; in dpcm_show_state()
[all …]
Dsoc-compress.c21 #include <sound/soc-dpcm.h>
123 struct snd_soc_dpcm *dpcm; in soc_compr_open_fe() local
134 fe->dpcm[stream].runtime = fe_substream->runtime; in soc_compr_open_fe()
144 fe->dpcm[stream].runtime = fe_substream->runtime; in soc_compr_open_fe()
146 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_open_fe()
151 for_each_dpcm_be(fe, stream, dpcm) in soc_compr_open_fe()
152 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in soc_compr_open_fe()
155 fe->dpcm[stream].runtime = NULL; in soc_compr_open_fe()
174 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in soc_compr_open_fe()
175 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
[all …]
/kernel/linux/linux-6.6/sound/soc/
Dsoc-pcm.c25 #include <sound/soc-dpcm.h>
112 struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; in dpcm_show_state()
113 struct snd_soc_dpcm *dpcm; in dpcm_show_state() local
122 dpcm_state_string(fe->dpcm[stream].state)); in dpcm_show_state()
124 if ((fe->dpcm[stream].state >= SND_SOC_DPCM_STATE_HW_PARAMS) && in dpcm_show_state()
125 (fe->dpcm[stream].state <= SND_SOC_DPCM_STATE_STOP)) in dpcm_show_state()
136 if (list_empty(&fe->dpcm[stream].be_clients)) { in dpcm_show_state()
142 for_each_dpcm_be(fe, stream, dpcm) { in dpcm_show_state()
143 struct snd_soc_pcm_runtime *be = dpcm->be; in dpcm_show_state()
144 params = &be->dpcm[stream].hw_params; in dpcm_show_state()
[all …]
Dsoc-compress.c21 #include <sound/soc-dpcm.h>
137 struct snd_soc_dpcm *dpcm; in soc_compr_open_fe() local
153 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_open_fe()
158 for_each_dpcm_be(fe, stream, dpcm) in soc_compr_open_fe()
159 dpcm->state = SND_SOC_DPCM_LINK_STATE_FREE; in soc_compr_open_fe()
180 fe->dpcm[stream].state = SND_SOC_DPCM_STATE_OPEN; in soc_compr_open_fe()
181 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
198 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_NO; in soc_compr_open_fe()
207 struct snd_soc_dpcm *dpcm; in soc_compr_free_fe() local
215 fe->dpcm[stream].runtime_update = SND_SOC_DPCM_UPDATE_FE; in soc_compr_free_fe()
[all …]
/kernel/linux/linux-6.6/sound/pci/asihpi/
Dasihpi.c434 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_pcm_hw_params() local
446 hpi_handle_error(hpi_format_create(&dpcm->format, in snd_card_asihpi_pcm_hw_params()
451 if (hpi_instream_reset(dpcm->h_stream) != 0) in snd_card_asihpi_pcm_hw_params()
455 dpcm->h_stream, &dpcm->format) != 0) in snd_card_asihpi_pcm_hw_params()
459 dpcm->hpi_buffer_attached = 0; in snd_card_asihpi_pcm_hw_params()
461 err = hpi_stream_host_buffer_attach(dpcm->h_stream, in snd_card_asihpi_pcm_hw_params()
474 err = hpi_stream_get_info_ex(dpcm->h_stream, NULL, in snd_card_asihpi_pcm_hw_params()
475 &dpcm->hpi_buffer_attached, NULL, NULL, NULL); in snd_card_asihpi_pcm_hw_params()
484 dpcm->bytes_per_sec = bytes_per_sec; in snd_card_asihpi_pcm_hw_params()
485 dpcm->buffer_bytes = params_buffer_bytes(params); in snd_card_asihpi_pcm_hw_params()
[all …]
/kernel/linux/linux-5.10/sound/pci/asihpi/
Dasihpi.c434 struct snd_card_asihpi_pcm *dpcm = runtime->private_data; in snd_card_asihpi_pcm_hw_params() local
446 hpi_handle_error(hpi_format_create(&dpcm->format, in snd_card_asihpi_pcm_hw_params()
451 if (hpi_instream_reset(dpcm->h_stream) != 0) in snd_card_asihpi_pcm_hw_params()
455 dpcm->h_stream, &dpcm->format) != 0) in snd_card_asihpi_pcm_hw_params()
459 dpcm->hpi_buffer_attached = 0; in snd_card_asihpi_pcm_hw_params()
461 err = hpi_stream_host_buffer_attach(dpcm->h_stream, in snd_card_asihpi_pcm_hw_params()
474 err = hpi_stream_get_info_ex(dpcm->h_stream, NULL, in snd_card_asihpi_pcm_hw_params()
475 &dpcm->hpi_buffer_attached, NULL, NULL, NULL); in snd_card_asihpi_pcm_hw_params()
484 dpcm->bytes_per_sec = bytes_per_sec; in snd_card_asihpi_pcm_hw_params()
485 dpcm->buffer_bytes = params_buffer_bytes(params); in snd_card_asihpi_pcm_hw_params()
[all …]
/kernel/linux/linux-6.6/sound/soc/generic/
Daudio-graph-card2-custom-sample.dtsi67 * [DPCM]
77 * [DPCM-Multi]
115 /* for [DPCM] */
121 /* for [DPCM-Multi] */
157 * [DPCM]: both FE / BE
163 * [DPCM-Multi]: both FE / BE
205 /* [DPCM-Multi]::BE */
246 dpcm {
255 /* [DPCM]::FE */
259 /* [DPCM-Multi]::FE */
[all …]
DKconfig10 It also support DPCM of multi CPU single Codec ststem.
19 It also support DPCM of multi CPU single Codec ststem.
/kernel/linux/linux-5.10/include/sound/
Dsoc-dpcm.h3 * linux/sound/soc-dpcm.h -- ALSA SoC Dynamic PCM Support
77 /* list of BE and FE for this DPCM link */
107 list_for_each_entry(_dpcm, &(be)->dpcm[stream].fe_clients, list_fe)
110 list_for_each_entry(_dpcm, &(fe)->dpcm[stream].be_clients, list_be)
112 list_for_each_entry_safe(_dpcm, __dpcm, &(fe)->dpcm[stream].be_clients, list_be)
114 list_for_each_entry_continue_reverse(_dpcm, &(fe)->dpcm[stream].be_clients, list_be)
/kernel/linux/linux-6.6/include/sound/
Dsoc-dpcm.h3 * linux/sound/soc-dpcm.h -- ALSA SoC Dynamic PCM Support
77 /* list of BE and FE for this DPCM link */
108 list_for_each_entry(_dpcm, &(be)->dpcm[stream].fe_clients, list_fe)
111 list_for_each_entry(_dpcm, &(fe)->dpcm[stream].be_clients, list_be)
113 list_for_each_entry_safe(_dpcm, __dpcm, &(fe)->dpcm[stream].be_clients, list_be)
115 list_for_each_entry_continue_reverse(_dpcm, &(fe)->dpcm[stream].be_clients, list_be)
/kernel/linux/linux-5.10/Documentation/sound/soc/
Ddpcm.rst13 The DPCM runtime routing is determined by the ALSA mixer settings in the same
14 way as the analog signal is routed in an ASoC codec driver. DPCM uses a DAPM
18 DPCM re-uses all the existing component codec, platform and DAI drivers without
53 Example - DPCM Switching playback from DAI0 to DAI1
99 3. DPCM runs the PCM trigger(stop), hw_free(), shutdown() operations on DAI0
104 5. DPCM runs the PCM ops for startup(), hw_params(), prepare() and
108 and then DPCM will take care of managing the DAI PCM operations to either bring
113 DPCM machine driver
116 The DPCM enabled ASoC machine driver is similar to normal machine drivers
166 set the DAI link to a DPCM FE with the ``dynamic = 1``. The supported FE stream
[all …]
/kernel/linux/linux-6.6/Documentation/sound/soc/
Ddpcm.rst13 The DPCM runtime routing is determined by the ALSA mixer settings in the same
14 way as the analog signal is routed in an ASoC codec driver. DPCM uses a DAPM
18 DPCM re-uses all the existing component codec, platform and DAI drivers without
53 Example - DPCM Switching playback from DAI0 to DAI1
99 3. DPCM runs the PCM trigger(stop), hw_free(), shutdown() operations on DAI0
104 5. DPCM runs the PCM ops for startup(), hw_params(), prepare() and
108 and then DPCM will take care of managing the DAI PCM operations to either bring
113 DPCM machine driver
116 The DPCM enabled ASoC machine driver is similar to normal machine drivers
166 set the DAI link to a DPCM FE with the ``dynamic = 1``. The supported FE stream
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sound/
Dfsl,asrc.txt5 output clock. The driver currently works as a Front End of DPCM with other Back
39 - fsl,asrc-rate : Defines a mutual sample rate used by DPCM Back Ends.
41 - fsl,asrc-width : Defines a mutual sample width used by DPCM Back Ends.
54 - fsl,asrc-format : Defines a mutual sample format used by DPCM Back
Daudio-graph-card.txt225 Example: Multi DAI with DPCM
230 CPU2 ------ PCM3168A-p /* DPCM 1ch/2ch */
231 CPU3 --/ /* DPCM 3ch/4ch */
232 CPU4 --/ /* DPCM 5ch/6ch */
233 CPU5 --/ /* DPCM 7ch/8ch */
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/sound/
Dfsl,asrc.txt5 output clock. The driver currently works as a Front End of DPCM with other Back
39 - fsl,asrc-rate : Defines a mutual sample rate used by DPCM Back Ends.
41 - fsl,asrc-width : Defines a mutual sample width used by DPCM Back Ends.
54 - fsl,asrc-format : Defines a mutual sample format used by DPCM Back
/kernel/linux/linux-6.6/drivers/staging/media/omap4iss/
Diss_csi2.c122 /* No DPCM decompression */
124 /* DPCM decompression */
129 /* No DPCM decompression */
131 /* DPCM decompression */
139 /* No DPCM decompression */
141 /* DPCM decompression */
146 /* No DPCM decompression */
148 /* DPCM decompression */
156 /* No DPCM decompression */
158 /* DPCM decompression */
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/omap4iss/
Diss_csi2.c122 /* No DPCM decompression */
124 /* DPCM decompression */
129 /* No DPCM decompression */
131 /* DPCM decompression */
139 /* No DPCM decompression */
141 /* DPCM decompression */
146 /* No DPCM decompression */
148 /* DPCM decompression */
156 /* No DPCM decompression */
158 /* DPCM decompression */
[all …]
/kernel/linux/linux-5.10/sound/soc/generic/
DKconfig10 It also support DPCM of multi CPU single Codec ststem.
19 It also support DPCM of multi CPU single Codec ststem.
/kernel/linux/linux-6.6/drivers/media/platform/qcom/camss/
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 */
/kernel/linux/linux-6.6/drivers/media/platform/ti/omap3isp/
Dispcsi2.c104 /* No DPCM decompression */
106 /* DPCM decompression */
111 /* No DPCM decompression */
114 /* DPCM decompression */
122 /* No DPCM decompression */
124 /* DPCM decompression */
130 /* No DPCM decompression */
133 /* DPCM decompression */
142 /* No DPCM decompression */
145 /* DPCM decompression */
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/omap3isp/
Dispcsi2.c104 /* No DPCM decompression */
106 /* DPCM decompression */
111 /* No DPCM decompression */
114 /* DPCM decompression */
122 /* No DPCM decompression */
124 /* DPCM decompression */
130 /* No DPCM decompression */
133 /* DPCM decompression */
142 /* No DPCM decompression */
145 /* DPCM decompression */
[all …]

123456