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
This commit is contained in:
Patrick Georgi 2010-09-09 14:44:51 +00:00
parent f53eaa3966
commit 6b247d3ef8
1 changed files with 2 additions and 0 deletions

View File

@ -191,7 +191,9 @@ NCURSES_CH_T _nc_render(WINDOW *win, NCURSES_CH_T ch)
int beep(void) int beep(void)
{ {
/* TODO: Flash the screen if beeping fails? */ /* TODO: Flash the screen if beeping fails? */
#ifdef CONFIG_SPEAKER
speaker_tone(1760, 500); /* 1760 == note A6 */ speaker_tone(1760, 500); /* 1760 == note A6 */
#endif
return OK; return OK;
} }
// bool can_change_color(void) {} // bool can_change_color(void) {}