[coreboot] [commit] r5794 - trunk/payloads/libpayload/curses

repository service svn at coreboot.org
Thu Sep 9 16:44:52 CEST 2010


Author: oxygene
Date: Thu Sep  9 16:44:51 2010
New Revision: 5794
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5794

Log:
Only try to beep when speaker support is compiled in.
Trivial change.

Reported-by: Aurelien Guillaume <aurelien at iwi.me>
Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi at coresystems.de>

Modified:
   trunk/payloads/libpayload/curses/tinycurses.c

Modified: trunk/payloads/libpayload/curses/tinycurses.c
==============================================================================
--- trunk/payloads/libpayload/curses/tinycurses.c	Thu Sep  9 16:42:58 2010	(r5793)
+++ trunk/payloads/libpayload/curses/tinycurses.c	Thu Sep  9 16:44:51 2010	(r5794)
@@ -191,7 +191,9 @@
 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) {}




More information about the coreboot mailing list