Lines Matching full:direction

75 	    ("vchan_init: bad direction"));
272 ch = (c->direction == PCMDIR_PLAY) ? &wch : &rch;
302 int direction, vchancount;
314 direction = PCMDIR_PLAY;
319 direction = PCMDIR_REC;
345 err = vchan_setnew(d, direction, cnt);
359 int direction, ret;
371 direction = PCMDIR_PLAY;
374 direction = PCMDIR_REC;
385 if (direction == PCMDIR_PLAY)
395 KASSERT(direction == c->direction, ("%s(): invalid direction %d/%d",
396 __func__, direction, c->direction));
453 int *vchanrate, vchancount, direction, ret, newspd, restart;
464 direction = PCMDIR_PLAY;
469 direction = PCMDIR_REC;
487 if (direction == PCMDIR_PLAY)
497 KASSERT(direction == c->direction, ("%s(): invalid direction %d/%d",
498 __func__, direction, c->direction));
560 int *vchanformat, vchancount, direction, ret, restart;
572 direction = PCMDIR_PLAY;
577 direction = PCMDIR_REC;
595 if (direction == PCMDIR_PLAY)
605 KASSERT(direction == c->direction, ("%s(): invalid direction %d/%d",
606 __func__, direction, c->direction));
675 int ret, direction, r;
688 if (!(parent->direction == PCMDIR_PLAY ||
689 parent->direction == PCMDIR_REC))
695 if (parent->direction == PCMDIR_PLAY) {
696 direction = PCMDIR_PLAY_VIRTUAL;
700 direction = PCMDIR_REC_VIRTUAL;
706 ch = chn_init(d, parent, &vchan_class, direction, parent);
738 device_get_unit(parent->dev), VCHAN_FMT_HINT(direction),
762 device_get_unit(parent->dev), VCHAN_SPD_HINT(direction),
793 if (direction == PCMDIR_PLAY_VIRTUAL) {
898 vchan_setnew(struct snddev_info *d, int direction, int newcnt)
906 if ((direction == PCMDIR_PLAY && d->playcount < 1) ||
907 (direction == PCMDIR_REC && d->reccount < 1))
916 if (direction == PCMDIR_PLAY)
918 else if (direction == PCMDIR_REC)
928 if (c->direction == direction &&
980 if (c->direction != direction ||