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:
parent
f53eaa3966
commit
6b247d3ef8
|
@ -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) {}
|
||||||
|
|
Loading…
Reference in New Issue