Lines Matching full:direction

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