sandbox.c 361 B

12345678910111213141516171819202122
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (c) 2013 Google, Inc
  4. */
  5. #include <common.h>
  6. #include <asm/sound.h>
  7. #include <asm/sdl.h>
  8. int sound_play(uint32_t msec, uint32_t frequency)
  9. {
  10. sandbox_sdl_sound_start(frequency);
  11. mdelay(msec);
  12. sandbox_sdl_sound_stop();
  13. return 0;
  14. }
  15. int sound_init(const void *blob)
  16. {
  17. return sandbox_sdl_sound_init();
  18. }