git: a752de91d015 - releng/14.2 - kbdcontrol: correct bell frequency for vt(4)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 05 Nov 2024 04:20:29 UTC
The branch releng/14.2 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=a752de91d015b8e377757a6337b85ebdf39fb7d6
commit a752de91d015b8e377757a6337b85ebdf39fb7d6
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-09-26 23:55:33 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-11-05 04:19:13 +0000
kbdcontrol: correct bell frequency for vt(4)
Do the `1193182 / pitch` hack only for sc(4).
PR: 281713
Reported by: Rudolf Polzer
Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46803
(cherry picked from commit f65c19a242de322930f6a1cd7d5e6bf3ce19ce42)
(cherry picked from commit 2234362780854c426395a35403ed3dce42ccacc9)
Approved by: re (cperciva)
---
usr.sbin/kbdcontrol/kbdcontrol.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/usr.sbin/kbdcontrol/kbdcontrol.c b/usr.sbin/kbdcontrol/kbdcontrol.c
index e55165fd0888..9f8593990542 100644
--- a/usr.sbin/kbdcontrol/kbdcontrol.c
+++ b/usr.sbin/kbdcontrol/kbdcontrol.c
@@ -1038,8 +1038,10 @@ badopt:
warnx("argument to -b must be duration.pitch or [quiet.]visual|normal|off");
return;
}
- if (pitch != 0)
- pitch = 1193182 / pitch; /* in Hz */
+ if (!is_vt4()) {
+ if (pitch != 0)
+ pitch = 1193182 / pitch; /* in Hz */
+ }
duration /= 10; /* in 10 m sec */
}