From 193d571957c3648d9f844f3883a2bee126472afe Mon Sep 17 00:00:00 2001 From: Cameron Grant Date: Sun, 23 Dec 2001 13:10:29 +0000 Subject: [PATCH] make mmapped vchans work --- sys/dev/sound/pcm/vchan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/sound/pcm/vchan.c b/sys/dev/sound/pcm/vchan.c index 46b30614d06d..52b7a9096ddd 100644 --- a/sys/dev/sound/pcm/vchan.c +++ b/sys/dev/sound/pcm/vchan.c @@ -94,6 +94,8 @@ feed_vchan_s16(struct pcm_feeder *f, struct pcm_channel *c, u_int8_t *b, u_int32 SLIST_FOREACH(cce, &c->children, link) { ch = cce->channel; if (ch->flags & CHN_F_TRIGGERED) { + if (ch->flags & CHN_F_MAPPED) + sndbuf_acquire(ch->bufsoft, NULL, sndbuf_getfree(ch->bufsoft)); cnt = FEEDER_FEED(ch->feeder, ch, (u_int8_t *)tmp, count, ch->bufsoft); vchan_mix_s16(dst, tmp, cnt / 2); }