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 <[email protected]>
Signed-off-by: Patrick Georgi <[email protected]>
Acked-by: Patrick Georgi <[email protected]>

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) {}

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to