Home
last modified time | relevance | path

Searched refs:snd_pcm_sframes_t (Results 1 – 25 of 27) sorted by relevance

12

/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/component/aw-alsa-lib/
A Dpcm_plugin_generic.c38 static snd_pcm_sframes_t
48 static snd_pcm_sframes_t
58 snd_pcm_sframes_t
68 snd_pcm_sframes_t
89 snd_pcm_sframes_t sd; in snd_pcm_plugin_delay()
151 snd_pcm_sframes_t result; in snd_pcm_plugin_write_areas()
211 snd_pcm_sframes_t result; in snd_pcm_plugin_read_areas()
263 static snd_pcm_sframes_t
273 static snd_pcm_sframes_t
362 static snd_pcm_sframes_t
[all …]
A Dpcm_generic.h63 int snd_pcm_generic_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp);
64 snd_pcm_sframes_t snd_pcm_generic_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size…
65 snd_pcm_sframes_t snd_pcm_generic_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size);
66 snd_pcm_sframes_t snd_pcm_generic_avail_update(snd_pcm_t *pcm);
67 snd_pcm_sframes_t snd_pcm_generic_mmap_commit(snd_pcm_t *pcm,
A Dpcm_mmap.c41 snd_pcm_sframes_t appl_ptr = *pcm->appl.ptr; in snd_pcm_mmap_appl_backward()
59 snd_pcm_sframes_t hw_ptr = *pcm->hw.ptr; in snd_pcm_mmap_hw_backward()
75 static snd_pcm_sframes_t snd_pcm_mmap_write_areas(snd_pcm_t *pcm, in snd_pcm_mmap_write_areas()
91 snd_pcm_sframes_t result; in snd_pcm_mmap_write_areas()
100 return xfer > 0 ? (snd_pcm_sframes_t)xfer : result; in snd_pcm_mmap_write_areas()
105 return (snd_pcm_sframes_t)xfer; in snd_pcm_mmap_write_areas()
116 static snd_pcm_sframes_t snd_pcm_mmap_read_areas(snd_pcm_t *pcm, in snd_pcm_mmap_read_areas()
131 snd_pcm_sframes_t result; in snd_pcm_mmap_read_areas()
140 return xfer > 0 ? (snd_pcm_sframes_t)xfer : result; in snd_pcm_mmap_read_areas()
145 return (snd_pcm_sframes_t)xfer; in snd_pcm_mmap_read_areas()
[all …]
A Dpcm_local.h101 int (*delay)(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp);
107 snd_pcm_sframes_t (*rewind)(snd_pcm_t *pcm, snd_pcm_uframes_t frames);
112 snd_pcm_sframes_t (*readi)(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size);
114 snd_pcm_sframes_t (*avail_update)(snd_pcm_t *pcm);
191 typedef snd_pcm_sframes_t (*snd_pcm_xfer_areas_func_t)(snd_pcm_t *pcm,
232 snd_pcm_sframes_t __snd_pcm_mmap_commit(snd_pcm_t *pcm,
237 static inline snd_pcm_sframes_t __snd_pcm_avail_update(snd_pcm_t *pcm) in __snd_pcm_avail_update()
277 snd_pcm_sframes_t avail; in snd_pcm_mmap_playback_avail()
288 snd_pcm_sframes_t avail; in snd_pcm_mmap_capture_avail()
303 static inline snd_pcm_sframes_t snd_pcm_mmap_playback_hw_avail(snd_pcm_t *pcm) in snd_pcm_mmap_playback_hw_avail()
[all …]
A Dpcm_plugin_generic.h46 typedef snd_pcm_sframes_t (*snd_pcm_slave_xfer_areas_undo_func_t)
69 snd_pcm_sframes_t snd_pcm_plugin_undo_read_generic
76 snd_pcm_sframes_t snd_pcm_plugin_undo_write_generic
A Dpcm_generic.c202 int snd_pcm_generic_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp) in snd_pcm_generic_delay()
209 snd_pcm_sframes_t snd_pcm_generic_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size) in snd_pcm_generic_writei()
216 snd_pcm_sframes_t snd_pcm_generic_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size) in snd_pcm_generic_readi()
223 snd_pcm_sframes_t snd_pcm_generic_avail_update(snd_pcm_t *pcm) in snd_pcm_generic_avail_update()
230 snd_pcm_sframes_t snd_pcm_generic_mmap_commit(snd_pcm_t *pcm, in snd_pcm_generic_mmap_commit()
A Dpcm_hw.c250 static int snd_pcm_hw_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp) in snd_pcm_hw_delay()
271 static snd_pcm_sframes_t snd_pcm_hw_writei(snd_pcm_t *pcm, const void *buffer, in snd_pcm_hw_writei()
274 snd_pcm_sframes_t ret = 0; in snd_pcm_hw_writei()
285 static snd_pcm_sframes_t snd_pcm_hw_readi(snd_pcm_t *pcm, void *buffer, in snd_pcm_hw_readi()
288 snd_pcm_sframes_t ret = 0; in snd_pcm_hw_readi()
300 static snd_pcm_sframes_t snd_pcm_hw_avail_update(snd_pcm_t *pcm) in snd_pcm_hw_avail_update()
325 static snd_pcm_sframes_t snd_pcm_hw_mmap_commit(snd_pcm_t *pcm, snd_pcm_uframes_t offset, in snd_pcm_hw_mmap_commit()
398 static snd_pcm_sframes_t snd_pcm_hw_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames) in snd_pcm_hw_rewind()
A Dpcm_multi.c420 snd_pcm_sframes_t ret = LONG_MAX; in snd_pcm_multi_avail_update()
423 snd_pcm_sframes_t avail; in snd_pcm_multi_avail_update()
560 static snd_pcm_sframes_t snd_pcm_multi_rewindable(snd_pcm_t *pcm)
564 snd_pcm_sframes_t frames = LONG_MAX;
578 static snd_pcm_sframes_t snd_pcm_multi_forwardable(snd_pcm_t *pcm)
582 snd_pcm_sframes_t frames = LONG_MAX;
604 snd_pcm_sframes_t f = snd_pcm_rewind(slave_i, frames);
614 snd_pcm_sframes_t result;
644 snd_pcm_sframes_t result;
720 static snd_pcm_sframes_t snd_pcm_multi_mmap_commit(snd_pcm_t *pcm, in snd_pcm_multi_mmap_commit()
[all …]
A Dpcm.c691 snd_pcm_sframes_t ret = 0; in snd_pcm_writei()
704 snd_pcm_sframes_t ret = 0; in snd_pcm_readi()
1031 snd_pcm_sframes_t err = 0; in snd_pcm_read_areas()
1040 snd_pcm_sframes_t avail; in snd_pcm_read_areas()
1112 snd_pcm_sframes_t err = 0; in snd_pcm_write_areas()
1122 snd_pcm_sframes_t avail; in snd_pcm_write_areas()
1605 snd_pcm_sframes_t snd_pcm_avail_update(snd_pcm_t *pcm) in snd_pcm_avail_update()
1607 snd_pcm_sframes_t result; in snd_pcm_avail_update()
1679 snd_pcm_sframes_t snd_pcm_mmap_commit(snd_pcm_t *pcm, in snd_pcm_mmap_commit()
1683 snd_pcm_sframes_t result; in snd_pcm_mmap_commit()
[all …]
A Dpcm_rate.c744 snd_pcm_sframes_t last_slave_hw_ptr_frac; in snd_pcm_rate_sync_hwptr0()
778 snd_pcm_sframes_t last_slave_hw_ptr_frac; in snd_pcm_rate_sync_hwptr0()
849 snd_pcm_sframes_t slave_delay; in snd_pcm_rate_delay()
947 snd_pcm_sframes_t result; in snd_pcm_rate_commit_area()
1026 if (result < (snd_pcm_sframes_t)cont) { in snd_pcm_rate_commit_area()
1059 if (result < (snd_pcm_sframes_t)cont) { in snd_pcm_rate_commit_area()
1105 snd_pcm_sframes_t result; in snd_pcm_rate_grab_next_period()
1207 snd_pcm_sframes_t slave_size; in snd_pcm_rate_sync_playback_area()
1292 return (snd_pcm_sframes_t)xfer; in snd_pcm_rate_avail_update()
1300 return (snd_pcm_sframes_t)xfer; in snd_pcm_rate_avail_update()
[all …]
A Dpcm_file.c203 snd_pcm_sframes_t err = -1; in snd_pcm_file_write_bytes()
329 static snd_pcm_sframes_t snd_pcm_file_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t … in snd_pcm_file_writei()
334 snd_pcm_sframes_t n = _snd_pcm_writei(file->gen.slave, buffer, size); in snd_pcm_file_writei()
346 static snd_pcm_sframes_t snd_pcm_file_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size) in snd_pcm_file_readi()
350 snd_pcm_sframes_t n; in snd_pcm_file_readi()
362 static snd_pcm_sframes_t snd_pcm_file_mmap_commit(snd_pcm_t *pcm, in snd_pcm_file_mmap_commit()
370 snd_pcm_sframes_t result; in snd_pcm_file_mmap_commit()
A Dpcm_dsnoop.c121 snd_pcm_sframes_t diff; in snd_pcm_dsnoop_sync_ptr()
209 static int snd_pcm_dsnoop_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp) in snd_pcm_dsnoop_delay()
329 static snd_pcm_sframes_t snd_pcm_dsnoop_writei(snd_pcm_t *pcm ATTRIBUTE_UNUSED, const void *buffer … in snd_pcm_dsnoop_writei()
334 static snd_pcm_sframes_t snd_pcm_dsnoop_avail_update(snd_pcm_t *pcm) in snd_pcm_dsnoop_avail_update()
350 static snd_pcm_sframes_t snd_pcm_dsnoop_mmap_commit(snd_pcm_t *pcm, in snd_pcm_dsnoop_mmap_commit()
A Dpcm_direct.h182 snd_pcm_sframes_t period_size;
183 snd_pcm_sframes_t buffer_size;
A Dpcm_dmix.c355 snd_pcm_sframes_t diff; in snd_pcm_dmix_sync_ptr0()
455 static int snd_pcm_dmix_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp) in snd_pcm_dmix_delay()
545 static snd_pcm_sframes_t snd_pcm_dmix_avail_update(snd_pcm_t *pcm) in snd_pcm_dmix_avail_update()
562 static snd_pcm_sframes_t snd_pcm_dmix_mmap_commit(snd_pcm_t *pcm, in snd_pcm_dmix_mmap_commit()
617 snd_pcm_sframes_t avail; in snd_pcm_dmix_start()
770 static snd_pcm_sframes_t snd_pcm_dmix_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size) in snd_pcm_dmix_readi()
/bsp/allwinner/libraries/sunxi-hal/include/hal/sound/
A Dsnd_pcm.h161 static inline snd_pcm_sframes_t bytes_to_frames(struct snd_pcm_runtime *runtime, ssize_t size) in bytes_to_frames()
166 static inline ssize_t frames_to_bytes(struct snd_pcm_runtime *runtime, snd_pcm_sframes_t size) in frames_to_bytes()
186 snd_pcm_sframes_t avail = runtime->status->hw_ptr - runtime->control->appl_ptr; in snd_pcm_capture_avail()
195snd_pcm_sframes_t avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_… in snd_pcm_playback_avail()
206 static inline snd_pcm_sframes_t snd_pcm_playback_hw_avail(struct snd_pcm_runtime *runtime) in snd_pcm_playback_hw_avail()
212 static inline snd_pcm_sframes_t snd_pcm_capture_hw_avail(struct snd_pcm_runtime *runtime) in snd_pcm_capture_hw_avail()
A Dksound.h51 snd_pcm_sframes_t ksnd_pcm_writei(void *substream_handle, const void *buffer, snd_pcm_uframes_t siz…
52 snd_pcm_sframes_t ksnd_pcm_readi(void *substream_handle, void *buffer, snd_pcm_uframes_t size);
/bsp/allwinner/libraries/sunxi-hal/include/hal/aw-alsa-lib/
A Dpcm.h200 int snd_pcm_delay(snd_pcm_t *pcm, snd_pcm_sframes_t *delayp);
201 snd_pcm_sframes_t snd_pcm_avail_update(snd_pcm_t *pcm);
203 snd_pcm_sframes_t snd_pcm_rewind(snd_pcm_t *pcm, snd_pcm_uframes_t frames);
207 snd_pcm_sframes_t snd_pcm_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size);
208 snd_pcm_sframes_t snd_pcm_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size);
349 snd_pcm_sframes_t snd_pcm_bytes_to_frames(snd_pcm_t *pcm, ssize_t bytes);
350 ssize_t snd_pcm_frames_to_bytes(snd_pcm_t *pcm, snd_pcm_sframes_t frames);
365 snd_pcm_sframes_t snd_pcm_mmap_commit(snd_pcm_t *pcm,
368 snd_pcm_sframes_t snd_pcm_mmap_writei(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size);
369 snd_pcm_sframes_t snd_pcm_mmap_readi(snd_pcm_t *pcm, void *buffer, snd_pcm_uframes_t size);
A Dpcm_extplug.h103 snd_pcm_sframes_t (*transfer)(snd_pcm_extplug_t *ext,
/bsp/allwinner/libraries/sunxi-hal/include/hal/aw-alsa-lib/plugin/
A Dpcm_direct_config.h43 snd_pcm_sframes_t period_size;
44 snd_pcm_sframes_t buffer_size;
/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/core/
A Dsnd_pcm.c563 snd_pcm_sframes_t avail = snd_pcm_playback_hw_avail(runtime); in snd_pcm_playback_silence()
575 if ((snd_pcm_sframes_t)frames < 0) in snd_pcm_playback_silence()
578 if ((snd_pcm_sframes_t)runtime->silence_filled < 0) { in snd_pcm_playback_silence()
657 snd_pcm_sframes_t delta; in snd_pcm_update_hw_ptr0()
1087 return xfer > 0 ? (snd_pcm_sframes_t)xfer : err; in snd_pcm_lib_write()
1118 static snd_pcm_sframes_t snd_pcm_lib_read(struct snd_pcm_substream *substream, in snd_pcm_lib_read()
1225 return xfer > 0 ? (snd_pcm_sframes_t)xfer : err; in snd_pcm_lib_read()
2319 snd_pcm_sframes_t n = -1, *delay = delay_wrap; in ksnd_pcm_delay()
2451 snd_pcm_sframes_t appl_ptr; in ksnd_pcm_rewind()
2452 snd_pcm_sframes_t ret; in ksnd_pcm_rewind()
[all …]
/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/component/aw-alsa-utils/
A Daduplex.c63 snd_pcm_sframes_t size; in pcm_read()
109 snd_pcm_sframes_t size; in pcm_write()
A Darecord_mad.c63 snd_pcm_sframes_t size; in pcm_read()
A Darecord.c56 snd_pcm_sframes_t size; in pcm_read()
A Daplay.c72 snd_pcm_sframes_t size; in pcm_write()
/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/component/aw-alsa-lib/thirdparty/sona_audioaef/
A Dpcm_sona_audioaef.c62 static snd_pcm_sframes_t sona_audioaef_transfer(snd_pcm_extplug_t *ext, in sona_audioaef_transfer()

Completed in 1692 milliseconds

12