Home
last modified time | relevance | path

Searched refs:frames_to_bytes (Results 1 – 2 of 2) sorted by relevance

/bsp/allwinner/libraries/sunxi-hal/include/hal/sound/
A Dsnd_pcm.h166 static inline ssize_t frames_to_bytes(struct snd_pcm_runtime *runtime, snd_pcm_sframes_t size) in frames_to_bytes() function
174 return frames_to_bytes(runtime, runtime->buffer_size); in snd_pcm_lib_buffer_bytes()
180 return frames_to_bytes(runtime, runtime->period_size); in snd_pcm_lib_period_bytes()
/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/core/
A Dsnd_pcm.c591 char *hwbuf = (char *)(runtime->dma_addr + frames_to_bytes(runtime, ofs)); in snd_pcm_playback_silence()
965 char *buf = (char *)data + frames_to_bytes(runtime, off); in snd_pcm_lib_write_transfer()
975 frames_to_bytes(runtime, frames), in snd_pcm_lib_write_transfer()
977 memcpy(hwbuf, buf, frames_to_bytes(runtime, frames)); in snd_pcm_lib_write_transfer()
979 hwbuf, hwbuf+frames_to_bytes(runtime, frames), in snd_pcm_lib_write_transfer()
980 frames_to_bytes(runtime, frames)); in snd_pcm_lib_write_transfer()
1099 char *buf = (char *)data + frames_to_bytes(runtime, off); in snd_pcm_lib_read_transfer()
1109 frames_to_bytes(runtime, frames), in snd_pcm_lib_read_transfer()
1111 hal_dcache_invalidate((uintptr_t)hwbuf, frames_to_bytes(runtime, frames)); in snd_pcm_lib_read_transfer()
1112 memcpy(buf, hwbuf, frames_to_bytes(runtime, frames)); in snd_pcm_lib_read_transfer()
[all …]

Completed in 9 milliseconds