summaryrefslogtreecommitdiff
path: root/arch/sandbox/include/asm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-12-10 10:37:45 -0700
committerSimon Glass <sjg@chromium.org>2018-12-13 16:36:30 -0700
commit282e29eb4728c43fa42fcba816188cd5523bb6ee (patch)
treef0bb16730fd4c1e39cc0ca70ab9c6f4cd7301268 /arch/sandbox/include/asm
parent93a98a6ff3b1ce86a1a1fef6a6e2dc9d5515c9ba (diff)
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 <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/include/asm')
-rw-r--r--arch/sandbox/include/asm/sdl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/sdl.h b/arch/sandbox/include/asm/sdl.h
index 1c4380c592..0143ed9e62 100644
--- a/arch/sandbox/include/asm/sdl.h
+++ b/arch/sandbox/include/asm/sdl.h
@@ -69,6 +69,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
*
* @return 0 if OK, -ENODEV if no sound is available