| /bsp/allwinner/libraries/sunxi-hal/hal/source/sound/component/aw-alsa-lib/ |
| A D | pcm_plugin_generic.c | 38 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 D | pcm_generic.h | 63 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 D | pcm_mmap.c | 41 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 D | pcm_local.h | 101 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 D | pcm_plugin_generic.h | 46 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 D | pcm_generic.c | 202 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 D | pcm_hw.c | 250 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 D | pcm_multi.c | 420 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 D | pcm.c | 691 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 D | pcm_rate.c | 744 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 D | pcm_file.c | 203 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 D | pcm_dsnoop.c | 121 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 D | pcm_direct.h | 182 snd_pcm_sframes_t period_size; 183 snd_pcm_sframes_t buffer_size;
|
| A D | pcm_dmix.c | 355 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 D | snd_pcm.h | 161 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() 195 …snd_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 D | ksound.h | 51 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 D | pcm.h | 200 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 D | pcm_extplug.h | 103 snd_pcm_sframes_t (*transfer)(snd_pcm_extplug_t *ext,
|
| /bsp/allwinner/libraries/sunxi-hal/include/hal/aw-alsa-lib/plugin/ |
| A D | pcm_direct_config.h | 43 snd_pcm_sframes_t period_size; 44 snd_pcm_sframes_t buffer_size;
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/sound/core/ |
| A D | snd_pcm.c | 563 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 D | aduplex.c | 63 snd_pcm_sframes_t size; in pcm_read() 109 snd_pcm_sframes_t size; in pcm_write()
|
| A D | arecord_mad.c | 63 snd_pcm_sframes_t size; in pcm_read()
|
| A D | arecord.c | 56 snd_pcm_sframes_t size; in pcm_read()
|
| A D | aplay.c | 72 snd_pcm_sframes_t size; in pcm_write()
|
| /bsp/allwinner/libraries/sunxi-hal/hal/source/sound/component/aw-alsa-lib/thirdparty/sona_audioaef/ |
| A D | pcm_sona_audioaef.c | 62 static snd_pcm_sframes_t sona_audioaef_transfer(snd_pcm_extplug_t *ext, in sona_audioaef_transfer()
|