From nobody Fri May 17 19:30:58 2024 X-Original-To: dev-commits-src-branches@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 4Vgxrz28gwz5Lg98; Fri, 17 May 2024 19:30:59 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vgxrz03z8z4v7w; Fri, 17 May 2024 19:30:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715974259; 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=kyqR2JL1GU14PrauoL6zpsL+vCAstm0P19krs86vkeA=; b=TCSfQRNf64sAuiCJLGRm94BYkhLTWBJLRKCXddbspXoRQPq/VuiotNYdQj9i+hqsNdzWgQ 8GGkFk5oH0Cfp51rjupLUdZElFeH+f8jWpkxKy6qs5Dd8hEt2IUEEnBfDOMj7197L3JArp LCemkDN0FJE3t+0saUgRc/QAxIzR7Gg2GstJ60tqg8E3Wvg6APEArDRBl93ZsMizreXDwe 0qJofpk6OImBAT0h31EKttvO6XVvmc+3nL+lDzMz2BKqezwCZGP/bhrDd2FBMDs3Q+x8H4 xCOGc2vbhq+Tn8/JSMEZ5WKD/MUBrOuF+XpB79zFtLP1qihlqxl5UmNj83sROg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715974259; a=rsa-sha256; cv=none; b=G1r3TeqA90KKet1ybcxYZhFx8LlJXGcs6gnn0JxwJXUgPxHmYxkVwreDd8lS/zPqu2AKWJ bx4NKjOjqPaIkAcqJHtuFlSIMjycrXkkeitZXEJ8/FVy+zVUtmKDlZnHwVUQyOjtDCcBUN OfIyzMKFqNzCNAExFfTDjIGRK5TaDVcnUhvVfH2B6H2ul0BDlpXDxV5iMfnqd0hZZISRRz a3AC4VzYqDoC6+EM7Ekyh3W2FmYQ1n0aa6yTQNeeHgCtZP0ecxTuchJBnTjALZ/ojESoCw S0dkE9eKYaHAzt4w/dFvOkeXyBccrYGoVBmWxWPFoYj+QQ4UzmLUjjYC4vbaIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715974259; 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=kyqR2JL1GU14PrauoL6zpsL+vCAstm0P19krs86vkeA=; b=IJxN5twP/dL6YPSkguThEen3LaKIDuVn64N86lx40NaM4QlO5ZjaFaLxlVME4oIyLxISI7 lsRX812isDf9CZV5uqFw763ido5QwcTuOlYbSFDI8U+jO5KZgjKMJBmorriHVlIq/eiCzA JTXUcZMCrqY0O6LHW/xF7BpPssCeQNJ3R4EAhp9o8udI981k1TXRGu5W2Ev11QudGrOglD 3gp2AKExPTMgLReNA0hrcWGl1kfJ69JztSPKaD4UPZjSz0m2QDARjz3stMCMXxF6BWLVrD Bcu7cNQZg3e81m0LC/+OtQ5c4cpj2Skbm8cabgGxBjE+j9QO+tVmzQ8vXhxhNw== 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 4Vgxry6YPtzvsP; Fri, 17 May 2024 19:30:58 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44HJUwnL099520; Fri, 17 May 2024 19:30:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44HJUwRa099517; Fri, 17 May 2024 19:30:58 GMT (envelope-from git) Date: Fri, 17 May 2024 19:30:58 GMT Message-Id: <202405171930.44HJUwRa099517@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Christos Margiolis Subject: git: 0baaaf8543d5 - stable/14 - sound: Remove chn_timeout check from chn_init() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: christos X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 0baaaf8543d5d88bbfe1a537e6fb7d0773fa9261 Auto-Submitted: auto-generated The branch stable/14 has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=0baaaf8543d5d88bbfe1a537e6fb7d0773fa9261 commit 0baaaf8543d5d88bbfe1a537e6fb7d0773fa9261 Author: Christos Margiolis AuthorDate: 2024-04-28 19:47:33 +0000 Commit: Christos Margiolis CommitDate: 2024-05-17 19:30:34 +0000 sound: Remove chn_timeout check from chn_init() This check is not related to channel initializion, but is also unnecessary, since sysctl_hw_snd_timeout() takes care of checking if chn_timeout is within bounds. Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D44992 (cherry picked from commit 7cc1afc5589000ac6ad7a908b07fad3401367bd1) --- sys/dev/sound/pcm/channel.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c index 0fea169e3eb7..859476f212ae 100644 --- a/sys/dev/sound/pcm/channel.c +++ b/sys/dev/sound/pcm/channel.c @@ -1164,9 +1164,6 @@ chn_init(struct pcm_channel *c, void *devinfo, int dir, int direction) struct snd_dbuf *b, *bs; int i, ret; - if (chn_timeout < CHN_TIMEOUT_MIN || chn_timeout > CHN_TIMEOUT_MAX) - chn_timeout = CHN_TIMEOUT; - chn_lockinit(c, dir); b = NULL;