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
This commit is contained in:
Ed Maste 2024-09-26 19:55:33 -04:00
parent 79679a18ea
commit f65c19a242

View File

@ -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 */
}