The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=0025422091dd12123b0720bc6cd71023e03b3036

commit 0025422091dd12123b0720bc6cd71023e03b3036
Author:     John Baldwin <[email protected]>
AuthorDate: 2022-04-08 00:01:29 +0000
Commit:     John Baldwin <[email protected]>
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;
 }
 

Reply via email to