Fix a glitch in my last commit and revert to using selwakeuppri

Noticed by:	tanimura
Noticed by:	truckman
This commit is contained in:
matk 2004-02-20 01:24:57 +00:00
parent f2c24e9bc6
commit 6562bf3d42

View File

@ -121,7 +121,7 @@ chn_wakeup(struct pcm_channel *c)
CHN_LOCKASSERT(c);
if (SLIST_EMPTY(&c->children)) {
if (SEL_WAITING(sndbuf_getsel(bs)) && chn_polltrigger(c))
selwakeup(sndbuf_getsel(bs));
selwakeuppri(sndbuf_getsel(bs), PRIBIO);
} else {
SLIST_FOREACH(pce, &c->children, link) {
CHN_LOCK(pce->channel);