From nobody Fri Nov 01 15:55:30 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Xg56p2pCQz5c14l; Fri, 01 Nov 2024 15:55:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xg56p2DgYz4v7H; Fri, 1 Nov 2024 15:55:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730476530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FX+9XntlUaypG+FpjYG3jvr0qvjtMOUKiWM2DNUPGNA=; b=AEv45QR7s1bspge0hTwioEAAtdqmQDBZbvd9O5Q7SqKL/fTpAhXkKKTDR1yWDEV+AiMshb G0AusutLQ0V/bVPrWhRKFyxG9VZ8PRwYvRBisnAPYbvwtADz5EdYRRDO6yfMMUHi5npIxo OSyJ+1mIhnBDfJuF9w0OwT2uFTfJmqybJ6V8iKmyn4AkRsNbvOinpuxZ/hGYVmGGKPAvsW hX8sXS5FyGDrTAvQe1AuffxUFCIOpZnh3IidFRjGshiMVnBPw4+APCpUMe7BSaKZ3LFWyc E3uoJRhufeWGNZCLtnZQggfhMtW6SC5KZnCoB7gk4MQ/dZrFbMoBtdYzQskxCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730476530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FX+9XntlUaypG+FpjYG3jvr0qvjtMOUKiWM2DNUPGNA=; b=VKWuvh+SrluqsUy/NRUOl3hrpm5SABp0hI13JzxUOONsUkLk9BkE5CekNND2udQFv6QlTI ugBzyzqIVuuZINQ+zl5Jv0DIQuYqRSh1TEcGE+Lz7TDFnNchUbNB+ZI01U8gVIaKykClT+ JNqIc7mAX/EhRDGV5sZtLe1hQkkzvZRf1N277D8xdTRKx88ZNuX9+TEMPD6fi+tHoAYECg bUjqsixLrjHkZPA2gR8PJ3Pix07qNOgorUvNYz/PriHy/38C7gpTmT9eRT31efdr0d/FPC r7rQ1o1AweyaNt6/tBORSfLyD1azZ2KrP+1/GYeyJ5+tqUCUrQySJfvUmETs5A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730476530; a=rsa-sha256; cv=none; b=vAyC0xc7yryUGkAk7BLI4cbY5IjsWyDQWop3eCcYO7PMP68gsV5EpkBOSm9NK8dVdhDNFK v1Fqnpgq0crLHNQF6fQIT24ghY+t1DiL9DmPDx+Sy65T+5gQhIcbyfNWlCAhou2dadLJju 2zS63pqxFPXqLvLQWqV5x81c4F8HGkqnqrDC1NoljGU8eIYECq85MjF699uOwalWwxAKhS BTsukirDfxa8WdolLBw2p13RXvzgCp4zB/Hc9EkdqDfSmaxkIf2apJLuAfRGUKyWHpGk8H Ruo5Gyqr+ZDnoHMLF6/LdyjAw8CIh9KShe5JN49uyJAkoBL3nGBEId7IDRDLuw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Xg56p1jf4zRYC; Fri, 1 Nov 2024 15:55:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A1FtUGd048011; Fri, 1 Nov 2024 15:55:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A1FtUps048008; Fri, 1 Nov 2024 15:55:30 GMT (envelope-from git) Date: Fri, 1 Nov 2024 15:55:30 GMT Message-Id: <202411011555.4A1FtUps048008@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: f65c19a242de - main - kbdcontrol: correct bell frequency for vt(4) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f65c19a242de322930f6a1cd7d5e6bf3ce19ce42 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=f65c19a242de322930f6a1cd7d5e6bf3ce19ce42 commit f65c19a242de322930f6a1cd7d5e6bf3ce19ce42 Author: Ed Maste AuthorDate: 2024-09-26 23:55:33 +0000 Commit: Ed Maste CommitDate: 2024-11-01 15:54:40 +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 --- 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 4e27febe2164..349dcfcaff8a 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 */ }