Lines Matching refs:direction
154 pcm_setvchans(struct snddev_info *d, int direction, int newcnt, int num)
162 if ((direction == PCMDIR_PLAY && d->playcount < 1) ||
163 (direction == PCMDIR_REC && d->reccount < 1))
172 if (direction == PCMDIR_PLAY)
174 else if (direction == PCMDIR_REC)
188 if (c->direction == direction &&
245 if (c->direction != direction ||
278 pcm_chnalloc(struct snddev_info *d, struct pcm_channel **ch, int direction,
286 (direction == PCMDIR_PLAY || direction == PCMDIR_REC),
287 ("%s(): invalid d=%p ch=%p direction=%d pid=%d devunit=%d",
288 __func__, d, ch, direction, pid, devunit));
296 if (direction != PCMDIR_PLAY)
301 if (direction != PCMDIR_REC)
305 if (!(direction == PCMDIR_PLAY ||
306 direction == PCMDIR_REC))
314 vchancount = (direction == PCMDIR_PLAY) ? d->pvchancount :
322 if (devunit == -1 && c->direction == direction &&
331 if (c->direction == direction && !(c->flags & CHN_F_BUSY) &&
340 if (c->direction != direction)
349 c->direction == direction && (c->flags & CHN_F_BUSY))
364 err = pcm_setvchans(d, direction, vchancount + 1,
487 int direction, err, rpnum, *pnum, max;
499 direction = PCMDIR_PLAY;
506 direction = PCMDIR_PLAY;
513 direction = PCMDIR_REC;
520 direction = PCMDIR_REC;
584 err = chn_init(ch, devinfo, dir, direction);
624 KASSERT(ch != NULL && (ch->direction == PCMDIR_PLAY ||
625 ch->direction == PCMDIR_REC), ("Invalid pcm channel"));