Simon Glass | 279fc16 | 2014-02-27 13:26:18 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2013 Google, Inc |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #include <common.h> |
Masahiro Yamada | c5b2a00 | 2014-06-24 22:10:52 +0900 | [diff] [blame] | 8 | #include <asm/sound.h> |
Simon Glass | 279fc16 | 2014-02-27 13:26:18 -0700 | [diff] [blame] | 9 | #include <asm/sdl.h> |
| 10 | |
| 11 | int sound_play(uint32_t msec, uint32_t frequency) |
| 12 | { |
| 13 | sandbox_sdl_sound_start(frequency); |
| 14 | mdelay(msec); |
| 15 | sandbox_sdl_sound_stop(); |
| 16 | |
| 17 | return 0; |
| 18 | } |
| 19 | |
| 20 | int sound_init(const void *blob) |
| 21 | { |
| 22 | return sandbox_sdl_sound_init(); |
| 23 | } |