summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-02-12 20:04:17 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-02-12 20:04:17 +0000
commita202b71a003ffd5f7b1b9870b8ea24682fcc6df6 (patch)
treed63f6763a09e44b113362fb161f66594272177d2 /sys/dev
parent7390c7303f567bb38f5609a913aca5725be9d2f6 (diff)
Do not bell if keyboard.bell.volume=0;
reported by Michael Knudsen (mk, molioner dk)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/pcppi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/pcppi.c b/sys/dev/isa/pcppi.c
index 41c57e974e6..2a906883e8d 100644
--- a/sys/dev/isa/pcppi.c
+++ b/sys/dev/isa/pcppi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcppi.c,v 1.6 2006/01/02 05:21:40 brad Exp $ */
+/* $OpenBSD: pcppi.c,v 1.7 2006/02/12 20:04:16 miod Exp $ */
/* $NetBSD: pcppi.c,v 1.1 1998/04/15 20:26:18 drochner Exp $ */
/*
@@ -265,7 +265,7 @@ pcppi_pckbd_bell(arg, pitch, period, volume, poll)
/*
* Comes in as ms, goes out as ticks; volume ignored.
*/
- pcppi_bell(arg, pitch, (period * hz) / 1000,
+ pcppi_bell(arg, volume ? pitch : 0, (period * hz) / 1000,
poll ? PCPPI_BELL_POLL : 0);
}
#endif /* NPCKBD > 0 */