summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-09-09 14:44:51 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-09-09 14:44:51 +0000
commit6b247d3ef866704108d7f30a3195db0a72db2095 (patch)
tree3766303ad5c22b7f239362380f4a24d681d1100f /payloads
parentf53eaa39662b614763035031bd2586176c43c85c (diff)
Only try to beep when speaker support is compiled in.
Trivial change. Reported-by: Aurelien Guillaume <aurelien@iwi.me> Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5794 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/curses/tinycurses.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/payloads/libpayload/curses/tinycurses.c b/payloads/libpayload/curses/tinycurses.c
index 6e0ab3cfdd..cb1d695933 100644
--- a/payloads/libpayload/curses/tinycurses.c
+++ b/payloads/libpayload/curses/tinycurses.c
@@ -191,7 +191,9 @@ NCURSES_CH_T _nc_render(WINDOW *win, NCURSES_CH_T ch)
int beep(void)
{
/* TODO: Flash the screen if beeping fails? */
+#ifdef CONFIG_SPEAKER
speaker_tone(1760, 500); /* 1760 == note A6 */
+#endif
return OK;
}
// bool can_change_color(void) {}