mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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>
This commit is contained in:
parent
93a98a6ff3
commit
282e29eb47
3 changed files with 55 additions and 11 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue