Lines Matching refs:direction
146 pcm_setvchans(struct snddev_info *d, int direction, int newcnt, int num)
154 if ((direction == PCMDIR_PLAY && d->playcount < 1) ||
155 (direction == PCMDIR_REC && d->reccount < 1))
164 if (direction == PCMDIR_PLAY)
166 else if (direction == PCMDIR_REC)
180 if (c->direction == direction &&
237 if (c->direction != direction ||
270 pcm_chnalloc(struct snddev_info *d, struct pcm_channel **ch, int direction,
278 (direction == PCMDIR_PLAY || direction == PCMDIR_REC),
279 ("%s(): invalid d=%p ch=%p direction=%d pid=%d devunit=%d",
280 __func__, d, ch, direction, pid, devunit));
288 if (direction != PCMDIR_PLAY)
293 if (direction != PCMDIR_REC)
297 if (!(direction == PCMDIR_PLAY ||
298 direction == PCMDIR_REC))
306 vchancount = (direction == PCMDIR_PLAY) ? d->pvchancount :
314 if (devunit == -1 && c->direction == direction &&
323 if (c->direction == direction && !(c->flags & CHN_F_BUSY) &&
332 if (c->direction != direction)
341 c->direction == direction && (c->flags & CHN_F_BUSY))
356 err = pcm_setvchans(d, direction, vchancount + 1,
481 int direction, err, rpnum, *pnum, max;
493 direction = PCMDIR_PLAY;
500 direction = PCMDIR_PLAY;
507 direction = PCMDIR_REC;
514 direction = PCMDIR_REC;
578 err = chn_init(ch, devinfo, dir, direction);
618 KASSERT(ch != NULL && (ch->direction == PCMDIR_PLAY ||
619 ch->direction == PCMDIR_REC), ("Invalid pcm channel"));