Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160559937
D57834.id180571.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
497 B
Referenced Files
None
Subscribers
None
D57834.id180571.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D57834: snd_dummy: advance pointers for both channels
Attached
Detach File
Event Timeline
Log In to Comment