Lines Matching full:caps

59 	struct pcmchan_caps caps;  member
95 info->caps.fmtlist = info->fmtlist + in vchan_init()
123 if (!snd_fmtvalid(format, info->caps.fmtlist)) in vchan_setformat()
138 return (info->caps.maxspeed); in vchan_setspeed()
206 info->caps.fmtlist = info->fmtlist; in vchan_getcaps()
208 for (i = 0; info->caps.fmtlist[i] != 0; i++) { in vchan_getcaps()
209 if (info->caps.fmtlist[i] & AFMT_PASSTHROUGH) in vchan_getcaps()
213 info->caps.fmtlist[i] = pformat; in vchan_getcaps()
216 info->caps.minspeed = c->speed; in vchan_getcaps()
218 info->caps.minspeed = pspeed; in vchan_getcaps()
219 info->caps.maxspeed = info->caps.minspeed; in vchan_getcaps()
221 info->caps.fmtlist = info->fmtlist + FMTLIST_OFFSET; in vchan_getcaps()
223 info->caps.fmtlist[0] = pformat; in vchan_getcaps()
228 info->caps.fmtlist[0] = VCHAN_DEFAULT_FORMAT; in vchan_getcaps()
230 info->caps.minspeed = pspeed; in vchan_getcaps()
231 info->caps.maxspeed = info->caps.minspeed; in vchan_getcaps()
234 return (&info->caps); in vchan_getcaps()
452 struct pcmchan_caps *caps; in sysctl_dev_pcm_vchanrate() local
525 caps = chn_getcaps(c); in sysctl_dev_pcm_vchanrate()
526 RANGE(newspd, caps->minspeed, caps->maxspeed); in sysctl_dev_pcm_vchanrate()
901 struct pcmchan_caps *caps; in vchan_setnew() local
943 caps = chn_getcaps(c); in vchan_setnew()
944 if (caps == NULL) { in vchan_setnew()
948 for (i = 0; caps->fmtlist[i] != 0; i++) { in vchan_setnew()
949 if (caps->fmtlist[i] & AFMT_CONVERTIBLE) in vchan_setnew()
952 if (caps->fmtlist[i] != 0) { in vchan_setnew()