Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | c34c024 | 2014-02-27 13:26:18 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2013 Google, Inc |
Simon Glass | c34c024 | 2014-02-27 13:26:18 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
Masahiro Yamada | a8b0f9b | 2014-06-24 22:10:52 +0900 | [diff] [blame] | 7 | #include <asm/sound.h> |
Simon Glass | c34c024 | 2014-02-27 13:26:18 -0700 | [diff] [blame] | 8 | #include <asm/sdl.h> |
| 9 | |
| 10 | int 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 | |
| 19 | int sound_init(const void *blob) |
| 20 | { |
| 21 | return sandbox_sdl_sound_init(); |
| 22 | } |