mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-12 19:04:59 +00:00
Vboot firmware previously supported a rather complex audio looping library. Our original intent was to allow developers to flash a custom beep sequence / tune as an easter egg. We never fully supported that, but the code to allow it lived on. Get rid of that. Vboot also previously made no assumptions about the frequency of VbExGetTimer(), which was only used by the vboot_audio library. So it spent 10ms every boot measuring the frequency. Which is silly now, because depthcharge implements that as a microsecond timer. Get rid of that measurement and define the timer as a microsecond timer. BUG=chromium:611535 BRANCH=none TEST=make -j runtests; build bob firmware and boot it Change-Id: I350246874fb36b00149423696285cfcaca0fc526 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/847311 Reviewed-by: Shelley Chen <shchen@chromium.org>
25 lines
577 B
C
25 lines
577 B
C
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*
|
|
* Delay/beep functions used in dev-mode kernel selection.
|
|
*/
|
|
|
|
#ifndef VBOOT_REFERENCE_VBOOT_AUDIO_H_
|
|
#define VBOOT_REFERENCE_VBOOT_AUDIO_H_
|
|
|
|
#include "vboot_api.h"
|
|
|
|
/**
|
|
* Initialization function.
|
|
*/
|
|
void vb2_audio_start(struct vb2_context *ctx);
|
|
|
|
/**
|
|
* Caller should loop without extra delay until this returns false.
|
|
*/
|
|
int vb2_audio_looping(void);
|
|
|
|
#endif /* VBOOT_REFERENCE_VBOOT_AUDIO_H_ */
|
|
|