2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2014-02-27 20:26:18 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013 Google, Inc
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
2014-06-24 13:10:52 +00:00
|
|
|
#include <asm/sound.h>
|
2014-02-27 20:26:18 +00:00
|
|
|
#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();
|
|
|
|
}
|