--- src/sys/dev/sound/pcm/channel.c 2006/06/13 08:12:02 1.8 +++ src/sys/dev/sound/pcm/channel.c 2006/07/28 02:17:38 1.9 @@ -532,7 +532,7 @@ chn_sync(struct pcm_channel *c, int thre /* called externally, handle locking */ int -chn_poll(struct pcm_channel *c, int ev, struct proc *p) +chn_poll(struct pcm_channel *c, int ev) { struct snd_dbuf *bs = c->bufsoft; int ret; @@ -544,7 +544,7 @@ chn_poll(struct pcm_channel *c, int ev, if (chn_polltrigger(c) && chn_pollreset(c)) ret = ev; else - selrecord(p->p_thread, sndbuf_getsel(bs)); + selrecord(curthread, sndbuf_getsel(bs)); return ret; }