sandbox.c 364 B

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