summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pcm/channel.c
diff options
context:
space:
mode:
authorcg <cg@FreeBSD.org>2001-08-23 11:58:38 +0000
committercg <cg@FreeBSD.org>2001-08-23 11:58:38 +0000
commitebfee899aacd8a41aa98ba5500b280aaef29a1a1 (patch)
tree98153e28b03c5e2d4a4d63c0dbcb858d74be89e3 /sys/dev/sound/pcm/channel.c
parent14ef1eed0d59834c781d84b22b34c15b75ed9036 (diff)
downloadFreeBSD-src-ebfee899aacd8a41aa98ba5500b280aaef29a1a1.zip
FreeBSD-src-ebfee899aacd8a41aa98ba5500b280aaef29a1a1.tar.gz
MFS: make SNDCTL_DSP_SETTRIGGER work
Diffstat (limited to 'sys/dev/sound/pcm/channel.c')
-rw-r--r--sys/dev/sound/pcm/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pcm/channel.c b/sys/dev/sound/pcm/channel.c
index 6f4893a..ce9344f 100644
--- a/sys/dev/sound/pcm/channel.c
+++ b/sys/dev/sound/pcm/channel.c
@@ -422,7 +422,7 @@ chn_start(struct pcm_channel *c, int force)
CHN_LOCKASSERT(c);
/* if we're running, or if we're prevented from triggering, bail */
- if ((c->flags & CHN_F_TRIGGERED) || (c->flags & CHN_F_NOTRIGGER))
+ if ((c->flags & CHN_F_TRIGGERED) || ((c->flags & CHN_F_NOTRIGGER) && !force))
return EINVAL;
i = (c->direction == PCMDIR_PLAY)? sndbuf_getready(bs) : sndbuf_getfree(bs);
OpenPOWER on IntegriCloud