diff options
Diffstat (limited to 'firmware/lib/vboot_audio.c')
-rw-r--r-- | firmware/lib/vboot_audio.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/firmware/lib/vboot_audio.c b/firmware/lib/vboot_audio.c index 7f9b5a5b..c2c599bf 100644 --- a/firmware/lib/vboot_audio.c +++ b/firmware/lib/vboot_audio.c @@ -5,6 +5,7 @@ * Delay/beep functions used in dev-mode kernel selection. */ +#include "2api.h" #include "2common.h" #include "2misc.h" #include "2sysincludes.h" @@ -21,16 +22,10 @@ static int beep_count; /* Number of beeps so far */ */ void vb2_audio_start(struct vb2_context *ctx) { - struct vb2_gbb_header *gbb = vb2_get_gbb(ctx); - open_time = vb2ex_mtime(); /* "zero" starts now */ beep_count = 0; - /* - * Use a short developer screen delay on the first audio if indicated - * by GBB flags. - */ - if ((gbb->flags & VB2_GBB_FLAG_DEV_SCREEN_SHORT_DELAY) && + if (vb2api_use_short_dev_screen_delay(ctx) && (audio_open_count++ == 0)) { VB2_DEBUG("vb2_audio_start() - using short dev screen delay\n"); audio_use_short = 1; |