Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143853170
D53337.id165106.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
438 B
Referenced Files
None
Subscribers
None
D53337.id165106.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
@@ -104,9 +104,10 @@
ch = &sc->chans[i];
if (!ch->run)
continue;
- if (ch->dir == PCMDIR_PLAY)
+ if (ch->dir == PCMDIR_PLAY) {
ch->ptr += sndbuf_getblksz(ch->buf);
- else
+ ch->ptr %= sndbuf_getsize(ch->buf);
+ } else
sndbuf_fillsilence(ch->buf);
snd_mtxunlock(sc->lock);
chn_intr(ch->chan);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 2, 1:15 AM (13 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28408700
Default Alt Text
D53337.id165106.diff (438 B)
Attached To
Mode
D53337: snd_dummy: Round channel pointer after each write
Attached
Detach File
Event Timeline
Log In to Comment