vboot_audio.h 788 B

1234567891011121314151617181920212223242526272829303132
  1. /* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
  2. * Use of this source code is governed by a BSD-style license that can be
  3. * found in the LICENSE file.
  4. *
  5. * Delay/beep functions used in dev-mode kernel selection.
  6. */
  7. #ifndef VBOOT_REFERENCE_VBOOT_AUDIO_H_
  8. #define VBOOT_REFERENCE_VBOOT_AUDIO_H_
  9. #include "vboot_api.h"
  10. typedef struct VbAudioContext VbAudioContext;
  11. /**
  12. * Initialization function. Returns context for processing dev-mode delay.
  13. */
  14. VbAudioContext *VbAudioOpen(VbCommonParams *cparams);
  15. /**
  16. * Caller should loop without extra delay until this returns false.
  17. */
  18. int VbAudioLooping(VbAudioContext *audio);
  19. /**
  20. * Caller should call this prior to booting.
  21. */
  22. void VbAudioClose(VbAudioContext *audio);
  23. #endif /* VBOOT_REFERENCE_VBOOT_AUDIO_H_ */