Home
last modified time | relevance | path

Searched refs:snd_pcm_substream (Results 1 – 25 of 936) sorted by relevance

12345678910>>...38

/openbmc/linux/include/sound/
H A Ddmaengine_pcm.h22 snd_pcm_substream_to_dma_direction(const struct snd_pcm_substream *substream) in snd_pcm_substream_to_dma_direction()
30 int snd_hwparams_to_dma_slave_config(const struct snd_pcm_substream *substream,
32 int snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd);
33 snd_pcm_uframes_t snd_dmaengine_pcm_pointer(struct snd_pcm_substream *substream);
34 snd_pcm_uframes_t snd_dmaengine_pcm_pointer_no_residue(struct snd_pcm_substream *substream);
36 int snd_dmaengine_pcm_open(struct snd_pcm_substream *substream,
38 int snd_dmaengine_pcm_close(struct snd_pcm_substream *substream);
39 int snd_dmaengine_pcm_sync_stop(struct snd_pcm_substream *substream);
41 int snd_dmaengine_pcm_open_request_chan(struct snd_pcm_substream *substream,
43 int snd_dmaengine_pcm_close_release_chan(struct snd_pcm_substream *substream);
[all …]
H A Dpcm.h49 struct snd_pcm_substream;
55 int (*open)(struct snd_pcm_substream *substream);
56 int (*close)(struct snd_pcm_substream *substream);
57 int (*ioctl)(struct snd_pcm_substream * substream,
59 int (*hw_params)(struct snd_pcm_substream *substream,
61 int (*hw_free)(struct snd_pcm_substream *substream);
62 int (*prepare)(struct snd_pcm_substream *substream);
63 int (*trigger)(struct snd_pcm_substream *substream, int cmd);
64 int (*sync_stop)(struct snd_pcm_substream *substream);
65 snd_pcm_uframes_t (*pointer)(struct snd_pcm_substream *substream);
[all …]
H A Dpxa2xx-lib.h9 struct snd_pcm_substream;
15 extern int pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream,
17 extern int pxa2xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd);
18 extern snd_pcm_uframes_t pxa2xx_pcm_pointer(struct snd_pcm_substream *substream);
19 extern int pxa2xx_pcm_prepare(struct snd_pcm_substream *substream);
20 extern int pxa2xx_pcm_open(struct snd_pcm_substream *substream);
21 extern int pxa2xx_pcm_close(struct snd_pcm_substream *substream);
26 struct snd_pcm_substream *substream);
28 struct snd_pcm_substream *substream);
30 struct snd_pcm_substream *substream,
[all …]
H A Dsoc-component.h116 struct snd_pcm_substream *substream);
118 struct snd_pcm_substream *substream);
120 struct snd_pcm_substream *substream,
123 struct snd_pcm_substream *substream,
126 struct snd_pcm_substream *substream);
128 struct snd_pcm_substream *substream);
130 struct snd_pcm_substream *substream, int cmd);
132 struct snd_pcm_substream *substream);
134 struct snd_pcm_substream *substream);
136 struct snd_pcm_substream *substream, struct timespec64 *system_ts,
[all …]
H A Dsoc-link.h16 int snd_soc_link_startup(struct snd_pcm_substream *substream);
17 void snd_soc_link_shutdown(struct snd_pcm_substream *substream,
19 int snd_soc_link_prepare(struct snd_pcm_substream *substream);
20 int snd_soc_link_hw_params(struct snd_pcm_substream *substream,
22 void snd_soc_link_hw_free(struct snd_pcm_substream *substream,
25 int snd_soc_link_trigger(struct snd_pcm_substream *substream, int cmd,
H A Dsoc-dai.h17 struct snd_pcm_substream;
208 struct snd_pcm_substream *substream,
211 struct snd_pcm_substream *substream,
214 struct snd_pcm_substream *substream);
216 struct snd_pcm_substream *substream, int rollback);
240 int snd_soc_pcm_dai_prepare(struct snd_pcm_substream *substream);
241 int snd_soc_pcm_dai_trigger(struct snd_pcm_substream *substream, int cmd,
243 int snd_soc_pcm_dai_bespoke_trigger(struct snd_pcm_substream *substream,
245 void snd_soc_pcm_dai_delay(struct snd_pcm_substream *substream,
329 int (*startup)(struct snd_pcm_substream *,
[all …]
/openbmc/linux/sound/core/oss/
H A Dpcm_plugin.h61 struct snd_pcm_substream *plug;
70 int snd_pcm_plugin_build(struct snd_pcm_substream *handle,
78 int snd_pcm_plug_alloc(struct snd_pcm_substream *plug, snd_pcm_uframes_t frames);
79 snd_pcm_sframes_t snd_pcm_plug_client_size(struct snd_pcm_substream *handle, snd_pcm_uframes_t drv_…
80 snd_pcm_sframes_t snd_pcm_plug_slave_size(struct snd_pcm_substream *handle, snd_pcm_uframes_t clt_s…
85 int snd_pcm_plugin_build_io(struct snd_pcm_substream *handle,
88 int snd_pcm_plugin_build_linear(struct snd_pcm_substream *handle,
92 int snd_pcm_plugin_build_mulaw(struct snd_pcm_substream *handle,
96 int snd_pcm_plugin_build_rate(struct snd_pcm_substream *handle,
100 int snd_pcm_plugin_build_route(struct snd_pcm_substream *handle,
[all …]
/openbmc/linux/sound/core/
H A Dpcm_local.h26 int pcm_lib_apply_appl_ptr(struct snd_pcm_substream *substream,
28 int snd_pcm_update_state(struct snd_pcm_substream *substream,
30 int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream);
32 void snd_pcm_playback_silence(struct snd_pcm_substream *substream,
36 snd_pcm_avail(struct snd_pcm_substream *substream) in snd_pcm_avail()
45 snd_pcm_hw_avail(struct snd_pcm_substream *substream) in snd_pcm_hw_avail()
54 void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream);
55 void snd_pcm_timer_init(struct snd_pcm_substream *substream);
56 void snd_pcm_timer_done(struct snd_pcm_substream *substream);
59 snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream) {} in snd_pcm_timer_resolution_change()
[all …]
H A Dpcm_native.c64 static int snd_pcm_hw_refine_old_user(struct snd_pcm_substream *substream,
66 static int snd_pcm_hw_params_old_user(struct snd_pcm_substream *substream,
108 void snd_pcm_stream_lock(struct snd_pcm_substream *substream) in snd_pcm_stream_lock()
120 void snd_pcm_stream_unlock(struct snd_pcm_substream *substream) in snd_pcm_stream_unlock()
134 void snd_pcm_stream_lock_irq(struct snd_pcm_substream *substream) in snd_pcm_stream_lock_irq()
141 static void snd_pcm_stream_lock_nested(struct snd_pcm_substream *substream) in snd_pcm_stream_lock_nested()
157 void snd_pcm_stream_unlock_irq(struct snd_pcm_substream *substream) in snd_pcm_stream_unlock_irq()
164 unsigned long _snd_pcm_stream_lock_irqsave(struct snd_pcm_substream *substream) in _snd_pcm_stream_lock_irqsave()
175 unsigned long _snd_pcm_stream_lock_irqsave_nested(struct snd_pcm_substream *substream) in _snd_pcm_stream_lock_irqsave_nested()
195 void snd_pcm_stream_unlock_irqrestore(struct snd_pcm_substream *substream, in snd_pcm_stream_unlock_irqrestore()
[all …]
H A Dpcm_dmaengine.c30 const struct snd_pcm_substream *substream) in substream_to_prtd()
35 struct dma_chan *snd_dmaengine_pcm_get_chan(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_get_chan()
54 int snd_hwparams_to_dma_slave_config(const struct snd_pcm_substream *substream, in snd_hwparams_to_dma_slave_config()
107 const struct snd_pcm_substream *substream, in snd_dmaengine_pcm_set_config_from_dai_data()
137 struct snd_pcm_substream *substream = arg; in dmaengine_pcm_dma_complete()
148 static int dmaengine_pcm_prepare_and_submit(struct snd_pcm_substream *substream) in dmaengine_pcm_prepare_and_submit()
187 int snd_dmaengine_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in snd_dmaengine_pcm_trigger()
233 snd_pcm_uframes_t snd_dmaengine_pcm_pointer_no_residue(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_pointer_no_residue()
249 snd_pcm_uframes_t snd_dmaengine_pcm_pointer(struct snd_pcm_substream *substream) in snd_dmaengine_pcm_pointer()
305 int snd_dmaengine_pcm_open(struct snd_pcm_substream *substream, in snd_dmaengine_pcm_open()
[all …]
H A Dpcm_memory.c103 static int preallocate_pcm_pages(struct snd_pcm_substream *substream, in preallocate_pcm_pages()
134 void snd_pcm_lib_preallocate_free(struct snd_pcm_substream *substream) in snd_pcm_lib_preallocate_free()
147 struct snd_pcm_substream *substream; in snd_pcm_lib_preallocate_free_for_all()
164 struct snd_pcm_substream *substream = entry->private_data; in snd_pcm_lib_preallocate_proc_read()
176 struct snd_pcm_substream *substream = entry->private_data; in snd_pcm_lib_preallocate_max_proc_read()
188 struct snd_pcm_substream *substream = entry->private_data; in snd_pcm_lib_preallocate_proc_write()
237 static inline void preallocate_info_init(struct snd_pcm_substream *substream) in preallocate_info_init()
257 static inline void preallocate_info_init(struct snd_pcm_substream *substream) in preallocate_info_init()
265 static int preallocate_pages(struct snd_pcm_substream *substream, in preallocate_pages()
305 struct snd_pcm_substream *substream; in preallocate_pages_for_all()
[all …]
H A Dpcm_timer.c19 void snd_pcm_timer_resolution_change(struct snd_pcm_substream *substream) in snd_pcm_timer_resolution_change()
54 struct snd_pcm_substream *substream; in snd_pcm_timer_resolution()
62 struct snd_pcm_substream *substream; in snd_pcm_timer_start()
71 struct snd_pcm_substream *substream; in snd_pcm_timer_stop()
94 struct snd_pcm_substream *substream = timer->private_data; in snd_pcm_timer_free()
98 void snd_pcm_timer_init(struct snd_pcm_substream *substream) in snd_pcm_timer_init()
124 void snd_pcm_timer_done(struct snd_pcm_substream *substream) in snd_pcm_timer_done()
/openbmc/linux/sound/soc/meson/
H A Daiu-fifo.h15 struct snd_pcm_substream;
32 struct snd_pcm_substream *substream);
34 int aiu_fifo_trigger(struct snd_pcm_substream *substream, int cmd,
36 int aiu_fifo_prepare(struct snd_pcm_substream *substream,
38 int aiu_fifo_hw_params(struct snd_pcm_substream *substream,
41 int aiu_fifo_hw_free(struct snd_pcm_substream *substream,
43 int aiu_fifo_startup(struct snd_pcm_substream *substream,
45 void aiu_fifo_shutdown(struct snd_pcm_substream *substream,
H A Daxg-fifo.h78 struct snd_pcm_substream *ss);
80 struct snd_pcm_substream *ss);
82 struct snd_pcm_substream *ss,
85 struct snd_pcm_substream *ss,
88 struct snd_pcm_substream *ss);
90 struct snd_pcm_substream *ss);
92 struct snd_pcm_substream *ss, int cmd);
/openbmc/linux/sound/arm/
H A Dpxa2xx-pcm-lib.c32 int pxa2xx_pcm_hw_params(struct snd_pcm_substream *substream, in pxa2xx_pcm_hw_params()
61 int pxa2xx_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in pxa2xx_pcm_trigger()
68 pxa2xx_pcm_pointer(struct snd_pcm_substream *substream) in pxa2xx_pcm_pointer()
74 int pxa2xx_pcm_prepare(struct snd_pcm_substream *substream) in pxa2xx_pcm_prepare()
80 int pxa2xx_pcm_open(struct snd_pcm_substream *substream) in pxa2xx_pcm_open()
119 int pxa2xx_pcm_close(struct snd_pcm_substream *substream) in pxa2xx_pcm_close()
150 struct snd_pcm_substream *substream) in pxa2xx_soc_pcm_open()
157 struct snd_pcm_substream *substream) in pxa2xx_soc_pcm_close()
164 struct snd_pcm_substream *substream, in pxa2xx_soc_pcm_hw_params()
172 struct snd_pcm_substream *substream) in pxa2xx_soc_pcm_prepare()
[all …]
/openbmc/linux/sound/soc/mediatek/common/
H A Dmtk-afe-fe-dai.h16 int mtk_afe_fe_startup(struct snd_pcm_substream *substream,
18 void mtk_afe_fe_shutdown(struct snd_pcm_substream *substream,
20 int mtk_afe_fe_hw_params(struct snd_pcm_substream *substream,
23 int mtk_afe_fe_hw_free(struct snd_pcm_substream *substream,
25 int mtk_afe_fe_prepare(struct snd_pcm_substream *substream,
27 int mtk_afe_fe_trigger(struct snd_pcm_substream *substream, int cmd,
47 int mtk_memif_set_rate_substream(struct snd_pcm_substream *substream,
/openbmc/linux/sound/pci/aw2/
H A Daw2-alsa.c105 static int snd_aw2_pcm_playback_open(struct snd_pcm_substream *substream);
106 static int snd_aw2_pcm_playback_close(struct snd_pcm_substream *substream);
107 static int snd_aw2_pcm_capture_open(struct snd_pcm_substream *substream);
108 static int snd_aw2_pcm_capture_close(struct snd_pcm_substream *substream);
109 static int snd_aw2_pcm_prepare_playback(struct snd_pcm_substream *substream);
110 static int snd_aw2_pcm_prepare_capture(struct snd_pcm_substream *substream);
111 static int snd_aw2_pcm_trigger_playback(struct snd_pcm_substream *substream,
113 static int snd_aw2_pcm_trigger_capture(struct snd_pcm_substream *substream,
115 static snd_pcm_uframes_t snd_aw2_pcm_pointer_playback(struct snd_pcm_substream
117 static snd_pcm_uframes_t snd_aw2_pcm_pointer_capture(struct snd_pcm_substream
[all …]
/openbmc/linux/sound/firewire/tascam/
H A Dtascam-pcm.c11 struct snd_pcm_substream *substream) in pcm_init_hw_params()
43 static int pcm_open(struct snd_pcm_substream *substream) in pcm_open()
107 static int pcm_close(struct snd_pcm_substream *substream) in pcm_close()
116 static int pcm_hw_params(struct snd_pcm_substream *substream, in pcm_hw_params()
138 static int pcm_hw_free(struct snd_pcm_substream *substream) in pcm_hw_free()
154 static int pcm_capture_prepare(struct snd_pcm_substream *substream) in pcm_capture_prepare()
171 static int pcm_playback_prepare(struct snd_pcm_substream *substream) in pcm_playback_prepare()
188 static int pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd) in pcm_capture_trigger()
206 static int pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd) in pcm_playback_trigger()
224 static snd_pcm_uframes_t pcm_capture_pointer(struct snd_pcm_substream *sbstrm) in pcm_capture_pointer()
[all …]
/openbmc/linux/sound/firewire/oxfw/
H A Doxfw-pcm.c110 struct snd_pcm_substream *substream) in init_hw_params()
146 static int limit_to_current_params(struct snd_pcm_substream *substream) in limit_to_current_params()
170 static int pcm_open(struct snd_pcm_substream *substream) in pcm_open()
228 static int pcm_close(struct snd_pcm_substream *substream) in pcm_close()
236 static int pcm_capture_hw_params(struct snd_pcm_substream *substream, in pcm_capture_hw_params()
259 static int pcm_playback_hw_params(struct snd_pcm_substream *substream, in pcm_playback_hw_params()
283 static int pcm_capture_hw_free(struct snd_pcm_substream *substream) in pcm_capture_hw_free()
298 static int pcm_playback_hw_free(struct snd_pcm_substream *substream) in pcm_playback_hw_free()
314 static int pcm_capture_prepare(struct snd_pcm_substream *substream) in pcm_capture_prepare()
329 static int pcm_playback_prepare(struct snd_pcm_substream *substream) in pcm_playback_prepare()
[all …]
/openbmc/linux/sound/soc/sof/intel/
H A Dhda-dai-ops.c29 struct snd_pcm_substream *fe_substream; in hda_check_fes()
44 hda_link_stream_assign(struct hdac_bus *bus, struct snd_pcm_substream *substream) in hda_link_stream_assign()
119 struct snd_pcm_substream *substream) in hda_get_hext_stream()
126 struct snd_pcm_substream *substream) in hda_ipc4_get_hext_stream()
146 struct snd_pcm_substream *substream) in hda_assign_hext_stream()
168 struct snd_pcm_substream *substream) in hda_release_hext_stream()
193 struct snd_pcm_substream *substream, in hda_codec_dai_set_stream()
204 struct snd_pcm_substream *substream, in hda_calc_stream_format()
227 struct snd_pcm_substream *substream) in hda_get_hlink()
237 struct snd_pcm_substream *substream, in generic_calc_stream_format()
[all …]
/openbmc/linux/sound/firewire/digi00x/
H A Ddigi00x-pcm.c58 struct snd_pcm_substream *substream) in pcm_init_hw_params()
100 static int pcm_open(struct snd_pcm_substream *substream) in pcm_open()
178 static int pcm_close(struct snd_pcm_substream *substream) in pcm_close()
187 static int pcm_hw_params(struct snd_pcm_substream *substream, in pcm_hw_params()
209 static int pcm_hw_free(struct snd_pcm_substream *substream) in pcm_hw_free()
225 static int pcm_capture_prepare(struct snd_pcm_substream *substream) in pcm_capture_prepare()
241 static int pcm_playback_prepare(struct snd_pcm_substream *substream) in pcm_playback_prepare()
259 static int pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd) in pcm_capture_trigger()
277 static int pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd) in pcm_playback_trigger()
295 static snd_pcm_uframes_t pcm_capture_pointer(struct snd_pcm_substream *sbstrm) in pcm_capture_pointer()
[all …]
/openbmc/linux/sound/soc/generic/
H A Dtest-component.c25 struct snd_pcm_substream *substream;
150 static int test_dai_startup(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) in test_dai_startup()
157 static void test_dai_shutdown(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) in test_dai_shutdown()
162 static int test_dai_hw_params(struct snd_pcm_substream *substream, in test_dai_hw_params()
170 static int test_dai_hw_free(struct snd_pcm_substream *substream, struct snd_soc_dai *dai) in test_dai_hw_free()
177 static int test_dai_trigger(struct snd_pcm_substream *substream, int cmd, struct snd_soc_dai *dai) in test_dai_trigger()
184 static int test_dai_bespoke_trigger(struct snd_pcm_substream *substream, in test_dai_bespoke_trigger()
353 struct snd_pcm_substream *substream) in test_component_open()
367 struct snd_pcm_substream *substream) in test_component_close()
375 struct snd_pcm_substream *substream, in test_component_ioctl()
[all …]
/openbmc/linux/sound/firewire/dice/
H A Ddice-pcm.c14 struct snd_pcm_substream *substream = rule->private; in dice_rate_constraint()
52 struct snd_pcm_substream *substream = rule->private; in dice_channels_constraint()
126 struct snd_pcm_substream *substream) in init_hw_info()
164 static int pcm_open(struct snd_pcm_substream *substream) in pcm_open()
254 static int pcm_close(struct snd_pcm_substream *substream) in pcm_close()
263 static int pcm_hw_params(struct snd_pcm_substream *substream, in pcm_hw_params()
290 static int pcm_hw_free(struct snd_pcm_substream *substream) in pcm_hw_free()
306 static int capture_prepare(struct snd_pcm_substream *substream) in capture_prepare()
320 static int playback_prepare(struct snd_pcm_substream *substream) in playback_prepare()
335 static int capture_trigger(struct snd_pcm_substream *substream, int cmd) in capture_trigger()
[all …]
/openbmc/linux/sound/firewire/fireworks/
H A Dfireworks_pcm.c133 struct snd_pcm_substream *substream) in pcm_init_hw_params()
173 static int pcm_open(struct snd_pcm_substream *substream) in pcm_open()
240 static int pcm_close(struct snd_pcm_substream *substream) in pcm_close()
247 static int pcm_hw_params(struct snd_pcm_substream *substream, in pcm_hw_params()
269 static int pcm_hw_free(struct snd_pcm_substream *substream) in pcm_hw_free()
285 static int pcm_capture_prepare(struct snd_pcm_substream *substream) in pcm_capture_prepare()
296 static int pcm_playback_prepare(struct snd_pcm_substream *substream) in pcm_playback_prepare()
308 static int pcm_capture_trigger(struct snd_pcm_substream *substream, int cmd) in pcm_capture_trigger()
325 static int pcm_playback_trigger(struct snd_pcm_substream *substream, int cmd) in pcm_playback_trigger()
343 static snd_pcm_uframes_t pcm_capture_pointer(struct snd_pcm_substream *sbstrm) in pcm_capture_pointer()
[all …]
/openbmc/linux/sound/firewire/motu/
H A Dmotu-pcm.c96 struct snd_pcm_substream *substream) in init_hw_info()
130 static int pcm_open(struct snd_pcm_substream *substream) in pcm_open()
198 static int pcm_close(struct snd_pcm_substream *substream) in pcm_close()
207 static int pcm_hw_params(struct snd_pcm_substream *substream, in pcm_hw_params()
229 static int pcm_hw_free(struct snd_pcm_substream *substream) in pcm_hw_free()
245 static int capture_prepare(struct snd_pcm_substream *substream) in capture_prepare()
258 static int playback_prepare(struct snd_pcm_substream *substream) in playback_prepare()
272 static int capture_trigger(struct snd_pcm_substream *substream, int cmd) in capture_trigger()
289 static int playback_trigger(struct snd_pcm_substream *substream, int cmd) in playback_trigger()
307 static snd_pcm_uframes_t capture_pointer(struct snd_pcm_substream *substream) in capture_pointer()
[all …]

12345678910>>...38