diff options
author | Taylor Hutt <thutt@chromium.org> | 2012-08-21 11:25:14 -0700 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-08-24 12:15:45 -0700 |
commit | f7257d56288a3d59007062db3116b30d8aa71d58 (patch) | |
tree | c993dd4b3c7a47b78e6a50b876d574b7913bc331 | |
parent | ea1b7dd9d9e3151849346b5e2ae0546624f43ed5 (diff) | |
download | vboot-f7257d56288a3d59007062db3116b30d8aa71d58.tar.gz |
Short-circuit looping for audio in Sandbox U-Boot builds
Sandbox U-Boot has no sound, so there is no point in looping while it
doesn't really play.
BRANCH=none
BUG=chromium-os:32603
TEST=Sandbox U-Boot has no sound, no need to loop
Signed-off-by: Taylor Hutt <thutt@chromium.org>
Change-Id: I5ff987d9d80c2d24ae6502c36cf399e582dff524
Reviewed-on: https://gerrit.chromium.org/gerrit/31015
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Commit-Ready: Taylor Hutt <thutt@chromium.org>
Reviewed-by: Taylor Hutt <thutt@chromium.org>
Tested-by: Taylor Hutt <thutt@chromium.org>
-rw-r--r-- | firmware/lib/vboot_audio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/lib/vboot_audio.c b/firmware/lib/vboot_audio.c index 87921266..f9d28f61 100644 --- a/firmware/lib/vboot_audio.c +++ b/firmware/lib/vboot_audio.c @@ -236,6 +236,10 @@ int VbAudioLooping(VbAudioContext* audio) { uint16_t msec = 0; int looping = 1; +#if defined(CONFIG_SANDBOX) + return 0; +#endif + now = VbExGetTimer(); while (audio->next_note < audio->note_count && now >= audio->play_until) { freq = audio->music_notes[audio->next_note].frequency; |