mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
c34c0246a3
Add a sound driver for sandbox, which uses SDL. Tested-by: Che-Liang Chiou <clchiou@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
23 lines
369 B
C
23 lines
369 B
C
/*
|
|
* Copyright (c) 2013 Google, Inc
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <asm/arch/sound.h>
|
|
#include <asm/sdl.h>
|
|
|
|
int sound_play(uint32_t msec, uint32_t frequency)
|
|
{
|
|
sandbox_sdl_sound_start(frequency);
|
|
mdelay(msec);
|
|
sandbox_sdl_sound_stop();
|
|
|
|
return 0;
|
|
}
|
|
|
|
int sound_init(const void *blob)
|
|
{
|
|
return sandbox_sdl_sound_init();
|
|
}
|