Lines Matching refs:direction
69 ("vchan_init: bad direction"));
267 ch = (c->direction == PCMDIR_PLAY) ? &wch : &rch;
297 int direction, vchancount;
309 direction = PCMDIR_PLAY;
314 direction = PCMDIR_REC;
340 err = pcm_setvchans(d, direction, cnt, -1);
354 int direction, ret;
366 direction = PCMDIR_PLAY;
369 direction = PCMDIR_REC;
380 if (direction == PCMDIR_PLAY)
390 KASSERT(direction == c->direction, ("%s(): invalid direction %d/%d",
391 __func__, direction, c->direction));
448 int *vchanrate, vchancount, direction, ret, newspd, restart;
459 direction = PCMDIR_PLAY;
464 direction = PCMDIR_REC;
482 if (direction == PCMDIR_PLAY)
492 KASSERT(direction == c->direction, ("%s(): invalid direction %d/%d",
493 __func__, direction, c->direction));
556 int *vchanformat, vchancount, direction, ret, restart;
568 direction = PCMDIR_PLAY;
573 direction = PCMDIR_REC;
591 if (direction == PCMDIR_PLAY)
601 KASSERT(direction == c->direction, ("%s(): invalid direction %d/%d",
602 __func__, direction, c->direction));
671 int ret, direction, r, save;
681 if (!(parent->direction == PCMDIR_PLAY ||
682 parent->direction == PCMDIR_REC))
690 if (parent->direction == PCMDIR_PLAY) {
691 direction = PCMDIR_PLAY_VIRTUAL;
695 direction = PCMDIR_REC_VIRTUAL;
701 ch = pcm_chn_create(d, parent, &vchan_class, direction, num, parent);
741 device_get_unit(parent->dev), VCHAN_FMT_HINT(direction),
765 device_get_unit(parent->dev), VCHAN_SPD_HINT(direction),
815 if (direction == PCMDIR_PLAY_VIRTUAL) {