From 282e29eb4728c43fa42fcba816188cd5523bb6ee Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 10 Dec 2018 10:37:45 -0700 Subject: dm: sandbox: sound: Convert to use driver model Update sandbox's device tree and config to use driver model for sound. Use the double buffer for sound output so that we don't need to wait for the sound to complete before returning. Signed-off-by: Simon Glass --- arch/sandbox/include/asm/sdl.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'arch/sandbox/include') diff --git a/arch/sandbox/include/asm/sdl.h b/arch/sandbox/include/asm/sdl.h index 1c4380c592a..0143ed9e621 100644 --- a/arch/sandbox/include/asm/sdl.h +++ b/arch/sandbox/include/asm/sdl.h @@ -68,6 +68,14 @@ int sandbox_sdl_sound_start(uint frequency); */ int sandbox_sdl_sound_stop(void); +/** + * sandbox_sdl_sound_play() - Play a sound + * + * @data: Data to play (typically 16-bit) + * @count: Number of bytes in data + */ +int sandbox_sdl_sound_play(const void *data, uint count); + /** * sandbox_sdl_sound_init() - set up the sound system * -- cgit v1.3.1