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 f65c19a242)
This commit is contained in:
parent
a1883e20bc
commit
2234362780
1 changed files with 4 additions and 2 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue