Date: Fri, 8 Apr 2022 00:03:48 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 0025422091dd - main - pcm emu10k1: Remove dead code in channel_setblocksize callbacks. Message-ID: <202204080003.23803mwH086839@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=0025422091dd12123b0720bc6cd71023e03b3036 commit 0025422091dd12123b0720bc6cd71023e03b3036 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-08 00:01:29 +0000 Commit: John Baldwin <jhb@FreeBSD.org> 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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204080003.23803mwH086839>