u-boot/arch/sandbox/cpu
Heinrich Schuchardt 304bc9f437 sandbox: fix sound driver
In the callback function we have to use memcpy(). Otherwise we add
the new samples on top of what is stored in the stream buffer.

If we don't have enough data, zero out the rest of the stream buffer.

Our sampling frequency is 48000. Let the batch size for the callback
function be 960. If we play a multiple of 20 ms, this will always be
a full batch.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-12-05 17:43:23 +01:00
..
cache.c sandbox: implement invalidate_icache_all() 2020-12-22 20:39:25 -07:00
cpu.c sandbox: Support setting up the other FDT for testing 2022-09-29 16:10:43 -04:00
eth-raw-os.c sandbox: eth-raw: fix building with musl library 2022-01-25 14:02:38 -07:00
Makefile sandbox: fix build failure with musl and SDL 2022-02-09 12:26:12 -07:00
os.c sandbox: add SIGALRM-based watchdog device 2022-10-24 11:10:21 +02:00
sdl.c sandbox: fix sound driver 2022-12-05 17:43:23 +01:00
spl.c test: Add a way to detect a test that breaks another 2022-11-07 16:24:30 -07:00
start.c sandbox: Add a way to specify the sandbox executable 2022-10-31 11:02:44 -04:00
state.c sandbox: Drop message about writing sandbox state 2022-10-31 11:02:44 -04:00
u-boot-spl.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
u-boot.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00