From nobody Fri Apr 08 00:03:48 2022 X-Original-To: dev-commits-src-main@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 372A21A88635; Fri, 8 Apr 2022 00:03:50 +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 4KZJPd23L4z4lDy; Fri, 8 Apr 2022 00:03:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649376229; 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=UDAM4WaLbZI3ZV/OU4Xo9HjOtraTYOasYizIfJIChvk=; b=incjsdnBe4Z4v/o8JoFYHR5BAIqfXuKBeSArWhBl3oK6lesXU6zU8OrS/damyv4R3MOK4m +lbtiUKQh7wydQdkUzCnb5wIFZbD/cSjOXinw3eFicBNXDPYHvq6diV9W2Fd52Jc1JMJvG hcoCpgKwShEsUbr9SEq84wKk8unOFnZhBiUFCl9WoQ45PNRxGakdvh9NkVPaXCMVIPWoCL KwNc12sN7gHOmIODMPF6Hx0/bCenDRsGEp8uKV4QJU5kSVVCxC/aS+6ZF/AdHCK6H7SRPn /hL0loMxCVMbVoNV5qneOPUDd7rlda65gRyzcDS/b/yE2B+1fK2/0x6v5xwcqw== 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 DC5111A342; Fri, 8 Apr 2022 00:03:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23803mBS086840; Fri, 8 Apr 2022 00:03:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23803mwH086839; Fri, 8 Apr 2022 00:03:48 GMT (envelope-from git) Date: Fri, 8 Apr 2022 00:03:48 GMT Message-Id: <202204080003.23803mwH086839@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 0025422091dd - main - pcm emu10k1: Remove dead code in channel_setblocksize callbacks. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0025422091dd12123b0720bc6cd71023e03b3036 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649376229; 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=UDAM4WaLbZI3ZV/OU4Xo9HjOtraTYOasYizIfJIChvk=; b=ddc/dVgN3OqosdXFCHiLLmtz6iUl99nz8MgVM038iY8qocSmR8z4yygqtCWY/aZd/Qu/Dy LVbRtzjBTlAXTmTM2hv9JyT4cKoy5DP5m29MelnG9jN2NJghgZmeJBKKkVq1nUPSKQEr+5 r7PKRVkNNHQfuQ4DPSoGgaSyZ4P25LTdcC00JL4uFrhlwHThNGJl/1p1yxODhctvbP2k6+ XKkLnMR+FZPVaH9z5AO6EBS40r/GyTuE+V9ZLWgr3mEBk2/Q7FICt74HEGAFij8sdEDeWf evk2koFNPbhgFT2Uif+UC/36jzBk1oeRcTghoIvTOg/czL666IgViU6bz58TxA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649376229; a=rsa-sha256; cv=none; b=JpLnJPCvgOTWunQlwKK/J/3eue19zH15jWmlHIkPOMhXA3QpkVGpgIcR+dtyWvlYlGExHi c8drzn6hHENsnYD+67LG0Be42UL4QMChvb2isaMZ4/g/gbbxkkPUnK8xb7dukF2RJ2S1VY Qd7rqecqYTGjjWZQD1NRZnvKyOU0vinlav6D4tYrSomFRWZBvE7dUudHH44qdIOajuhmiI sDLFw7g/oKrJ/RMknxp7FBXATkScVQrP3TLBgRTR4/DUX/S89JdrnC2PF+b95Ejb8J2FHJ VcAxd/YqTk2Gm3Ga32loLw64UEZLgFcX15iuTJgCmZaYRH05az76HUzn4K1ipQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=0025422091dd12123b0720bc6cd71023e03b3036 commit 0025422091dd12123b0720bc6cd71023e03b3036 Author: John Baldwin AuthorDate: 2022-04-08 00:01:29 +0000 Commit: John Baldwin CommitDate: 2022-04-08 00:01:29 +0000 pcm emu10k1: Remove dead code in channel_setblocksize callbacks. --- sys/dev/sound/pci/emu10k1.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/dev/sound/pci/emu10k1.c b/sys/dev/sound/pci/emu10k1.c index c8829a4017e3..b0e7d5b3c204 100644 --- a/sys/dev/sound/pci/emu10k1.c +++ b/sys/dev/sound/pci/emu10k1.c @@ -869,14 +869,11 @@ emupchan_setblocksize(kobj_t obj, void *data, u_int32_t blocksize) { struct sc_pchinfo *ch = data; struct sc_info *sc = ch->parent; - int irqrate, blksz; ch->blksz = blocksize; snd_mtxlock(sc->lock); emu_settimer(sc); - irqrate = 48000 / sc->timerinterval; snd_mtxunlock(sc->lock); - blksz = (ch->spd * sndbuf_getalign(ch->buffer)) / irqrate; return blocksize; } @@ -1030,14 +1027,11 @@ emurchan_setblocksize(kobj_t obj, void *data, u_int32_t blocksize) { struct sc_rchinfo *ch = data; struct sc_info *sc = ch->parent; - int irqrate, blksz; ch->blksz = blocksize; snd_mtxlock(sc->lock); emu_settimer(sc); - irqrate = 48000 / sc->timerinterval; snd_mtxunlock(sc->lock); - blksz = (ch->spd * sndbuf_getalign(ch->buffer)) / irqrate; return blocksize; }