chn_poll
int chn_poll(struct pcm_channel *c, int ev, struct thread *td);
ready = chn_poll(rdch, 1, td);
ready = chn_poll(wrch, 1, td);