blob: 94eff542824d2442f2a33ab076d424b5ce3b72d4 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Simon Glassc34c0242014-02-27 13:26:18 -07002/*
3 * Copyright (c) 2013 Google, Inc
Simon Glassc34c0242014-02-27 13:26:18 -07004 */
5
6#include <common.h>
Masahiro Yamadaa8b0f9b2014-06-24 22:10:52 +09007#include <asm/sound.h>
Simon Glassc34c0242014-02-27 13:26:18 -07008#include <asm/sdl.h>
9
10int sound_play(uint32_t msec, uint32_t frequency)
11{
12 sandbox_sdl_sound_start(frequency);
13 mdelay(msec);
14 sandbox_sdl_sound_stop();
15
16 return 0;
17}
18
19int sound_init(const void *blob)
20{
21 return sandbox_sdl_sound_init();
22}