u-boot/arch/sandbox
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
..
cpu sandbox: fix sound driver 2022-12-05 17:43:23 +01:00
dts dm: sandbox: Switch over to using the new host uclass 2022-11-07 16:24:30 -07:00
include/asm test: test sandbox sound driver more rigorously 2022-12-05 17:43:21 +01:00
lib sandbox: Support FDT fixups 2022-10-17 21:17:13 -06:00
config.mk sandbox: Add libfuzzer integration 2022-06-23 12:58:18 -04:00
Kconfig test: dm: Add test cases for FWU Metadata uclass 2022-10-31 14:47:33 -04:00
Makefile sandbox: fix build failure with musl and SDL 2022-02-09 12:26:12 -07:00