Page MenuHomeFreeBSD

D57834.id180571.diff
No OneTemporary

D57834.id180571.diff

diff --git a/sys/dev/sound/dummy.c b/sys/dev/sound/dummy.c
--- a/sys/dev/sound/dummy.c
+++ b/sys/dev/sound/dummy.c
@@ -112,11 +112,10 @@
ch = &sc->chans[i];
if (!ch->run)
continue;
- if (ch->dir == PCMDIR_PLAY) {
- ch->ptr += ch->buf->blksz;
- ch->ptr %= ch->buf->bufsize;
- } else
+ if (ch->dir == PCMDIR_REC)
sndbuf_fillsilence(ch->buf);
+ ch->ptr += ch->buf->blksz;
+ ch->ptr %= ch->buf->bufsize;
mtx_unlock(&sc->lock);
chn_intr(ch->chan);
mtx_lock(&sc->lock);

File Metadata

Mime Type
text/plain
Expires
Fri, Jun 26, 4:43 PM (4 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34331280
Default Alt Text
D57834.id180571.diff (497 B)

Event Timeline