0001-Use-timeout-delay-of-3-seconds-don-t-beep.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 2e8eaaff41b4d177a219fc4cbcb9125e008eb641 Mon Sep 17 00:00:00 2001
  2. From: Hal Emmerich <hal@halemmerich.com>
  3. Date: Wed, 11 Dec 2019 20:55:50 -0600
  4. Subject: [PATCH] Use timeout delay of 3 seconds, don't beep
  5. ---
  6. firmware/lib/vboot_audio.c | 15 ++-------------
  7. 1 files changed, 2 insertions(+), 12 deletions(-)
  8. diff --git a/firmware/lib/vboot_audio.c b/firmware/lib/vboot_audio.c
  9. index 42a50798..cf9ff1f1 100644
  10. --- a/firmware/lib/vboot_audio.c
  11. +++ b/firmware/lib/vboot_audio.c
  12. @@ -28,22 +28,11 @@ static int beep_count; /* Number of beeps so far */
  13. */
  14. void vb2_audio_start(struct vb2_context *ctx)
  15. {
  16. - struct vb2_shared_data *sd = vb2_get_sd(ctx);
  17. -
  18. open_time = VbExGetTimer(); /* "zero" starts now */
  19. beep_count = 0;
  20. - /*
  21. - * Use a short developer screen delay on the first audio if indicated
  22. - * by GBB flags.
  23. - */
  24. - if ((sd->gbb_flags & VB2_GBB_FLAG_DEV_SCREEN_SHORT_DELAY) &&
  25. - (audio_open_count++ == 0)) {
  26. - VB2_DEBUG("vb2_audio_start() - using short dev screen delay\n");
  27. - audio_use_short = 1;
  28. - } else {
  29. - audio_use_short = 0;
  30. - }
  31. + VB2_DEBUG("vb2_audio_start() - using short dev screen delay\n");
  32. + audio_use_short = 1;
  33. }
  34. /**
  35. --
  36. 2.20.1